SessionServerEvent Class

  • java.lang.Object
    • com.azure.ai.voicelive.models.SessionServerEvent

Implements

public class SessionServerEvent
implements JsonSerializable<SessionServerEvent>

A voicelive server event.

Constructor Summary

Modifier Constructor Description
protected SessionServerEvent()

Creates an instance of SessionServerEvent class.

Method Summary

Modifier and Type Method and Description
static SessionServerEvent fromJson(JsonReader jsonReader)

Reads an instance of SessionServerEvent from the JsonReader.

String getEventId()

Get the eventId property: The event_id property.

ServerEventType getType()

Get the type property: The type of event.

JsonWriter 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:

jsonReader - The JsonReader being read.

Returns:

An instance of SessionServerEvent if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the SessionServerEvent.

getEventId

public String getEventId()

Get the eventId property: The event_id property.

Returns:

the eventId value.

getType

public ServerEventType getType()

Get the type property: The type of event.

Returns:

the type value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to