Interface ClientSecretCreateResponse.Session.Visitor
-
- All Implemented Interfaces:
public interface ClientSecretCreateResponse.Session.Visitor<T extends Object>
-
-
Method Summary
Modifier and Type Method Description abstract T
visitRealtimeSessionCreateResponse(RealtimeSessionCreateResponse realtimeSessionCreateResponse)
A new Realtime session configuration, with an ephemeral key. abstract T
visitRealtimeTranscriptionSessionCreateResponse(RealtimeTranscriptionSessionCreateResponse realtimeTranscriptionSessionCreateResponse)
A new Realtime transcription session configuration. T
unknown(JsonValue json)
Maps an unknown variant of Session to a value of type T. -
-
Method Detail
-
visitRealtimeSessionCreateResponse
abstract T visitRealtimeSessionCreateResponse(RealtimeSessionCreateResponse realtimeSessionCreateResponse)
A new Realtime session configuration, with an ephemeral key. Default TTL for keys is one minute.
-
visitRealtimeTranscriptionSessionCreateResponse
abstract T visitRealtimeTranscriptionSessionCreateResponse(RealtimeTranscriptionSessionCreateResponse realtimeTranscriptionSessionCreateResponse)
A new Realtime transcription session configuration.
When a session is created on the server via REST API, the session object also contains an ephemeral key. Default TTL for keys is 10 minutes. This property is not present when a session is updated via the WebSocket API.
-
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.
-
-
-
-