001/*
002 *   Copyright 2024 Vonage
003 *
004 *   Licensed under the Apache License, Version 2.0 (the "License");
005 *   you may not use this file except in compliance with the License.
006 *   You may obtain a copy of the License at
007 *
008 *        http://www.apache.org/licenses/LICENSE-2.0
009 *
010 *   Unless required by applicable law or agreed to in writing, software
011 *   distributed under the License is distributed on an "AS IS" BASIS,
012 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 *   See the License for the specific language governing permissions and
014 *   limitations under the License.
015 */
016package com.vonage.client.meetings;
017
018import com.fasterxml.jackson.annotation.JsonValue;
019
020/**
021 * Represents the event type in {@link MeetingsEventCallback#getEvent()}.
022 */
023public enum EventType {
024        /**
025         * Room expired.
026         */
027        ROOM_EXPIRED,
028
029        /**
030         * Session started.
031         */
032        SESSION_STARTED,
033
034        /**
035         * Session ended.
036         */
037        SESSION_ENDED,
038
039        /**
040         * Recording started.
041         */
042        RECORDING_STARTED,
043
044        /**
045         * Recording ended.
046         */
047        RECORDING_ENDED,
048
049        /**
050         * Recording uploaded.
051         */
052        RECORDING_UPLOADED,
053
054        /**
055         * Participant joined.
056         */
057        SESSION_PARTICIPANT_JOINED,
058
059        /**
060         * Participant left.
061         */
062        SESSION_PARTICIPANT_LEFT;
063
064        @JsonValue
065        @Override
066        public String toString() {
067                return name().toLowerCase().replace('_', ':');
068        }
069}