RequestRegistrationTokenResponse

@Serializable
data class RequestRegistrationTokenResponse(val token: String, val expires: Duration, val registrationId: RegistrationId, val directoryEnabled: Boolean, val routeViaRegistrar: Boolean, val version: VersionResponse) : Token

Constructors

Link copied to clipboard
constructor(token: String, expires: Duration, registrationId: RegistrationId, directoryEnabled: Boolean, routeViaRegistrar: Boolean, version: VersionResponse)

Properties

Link copied to clipboard
@SerialName(value = "directory_enabled")
val directoryEnabled: Boolean
Link copied to clipboard
@Serializable(with = DurationAsSecondsStringSerializer::class)
open override val expires: Duration

a duration for which this token remains valid

Link copied to clipboard
@SerialName(value = "registration_uuid")
val registrationId: RegistrationId
Link copied to clipboard
@SerialName(value = "route_via_registrar")
val routeViaRegistrar: Boolean
Link copied to clipboard
open override val token: String

an actual token value

Link copied to clipboard