SessionServerEvent Class
- java.
lang. Object - com.
azure. ai. voicelive. models. SessionServerEvent
- com.
Implements
public class SessionServerEvent
implements JsonSerializable<SessionServerEvent>
A voicelive server event.
Constructor Summary
| Modifier | Constructor | Description |
|---|---|---|
| protected | SessionServerEvent() |
Creates an instance of Session |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Session |
fromJson(JsonReader jsonReader)
Reads an instance of Session |
| String |
getEventId()
Get the event |
|
Server |
getType()
Get the type property: The type of event. |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SessionServerEvent
protected SessionServerEvent()
Creates an instance of SessionServerEvent class.
Method Details
fromJson
public static SessionServerEvent fromJson(JsonReader jsonReader)
Reads an instance of SessionServerEvent from the JsonReader.
Parameters:
Returns:
Throws:
getEventId
public String getEventId()
Get the eventId property: The event_id property.
Returns:
getType
public ServerEventType getType()
Get the type property: The type of event.
Returns: