Interface ClientSecretCreateResponse.Session.Visitor
-
- All Implemented Interfaces:
public interface ClientSecretCreateResponse.Session.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitRealtime(RealtimeSessionCreateResponse realtime)
A new Realtime session configuration, with an ephemeral key. abstract T
visitTranscription(RealtimeTranscriptionSessionCreateResponse transcription)
A Realtime transcription session configuration object. T
unknown(JsonValue json)
Maps an unknown variant of Session to a value of type T. -
-
Method Detail
-
visitRealtime
abstract T visitRealtime(RealtimeSessionCreateResponse realtime)
A new Realtime session configuration, with an ephemeral key. Default TTL for keys is one minute.
-
visitTranscription
abstract T visitTranscription(RealtimeTranscriptionSessionCreateResponse transcription)
A Realtime transcription session configuration object.
-
unknown
T unknown(JsonValue json)
Maps an unknown variant of Session to a value of type T.
An instance of Session can contain an unknown variant if it was deserialized from data that doesn't match any known variant. For example, if the SDK is on an older version than the API, then the API may respond with new variants that the SDK is unaware of.
-
-
-
-