Response

@Serializable
data class Response(val nextBatch: String, val room: Sync.Response.Rooms? = null, val presence: Sync.Response.Presence? = null, val accountData: Sync.Response.GlobalAccountData? = null, val toDevice: Sync.Response.ToDevice? = null, val deviceLists: Sync.Response.DeviceLists? = null, val oneTimeKeysCount: OneTimeKeysCount? = null, val unusedFallbackKeyTypes: UnusedFallbackKeyTypes? = null)

Constructors

Link copied to clipboard
constructor(nextBatch: String, room: Sync.Response.Rooms? = null, presence: Sync.Response.Presence? = null, accountData: Sync.Response.GlobalAccountData? = null, toDevice: Sync.Response.ToDevice? = null, deviceLists: Sync.Response.DeviceLists? = null, oneTimeKeysCount: OneTimeKeysCount? = null, unusedFallbackKeyTypes: UnusedFallbackKeyTypes? = null)

Types

Link copied to clipboard
@Serializable
data class DeviceLists(val changed: Set<UserId>? = null, val left: Set<UserId>? = null)
Link copied to clipboard
@Serializable
data class GlobalAccountData(val events: List<ClientEvent.GlobalAccountDataEvent<*>>? = null)
Link copied to clipboard
@Serializable
data class Presence(val events: List<ClientEvent.EphemeralEvent<PresenceEventContent>>? = null)
Link copied to clipboard
@Serializable
data class ToDevice(val events: List<ClientEvent.ToDeviceEvent<*>>? = null)

Properties

Link copied to clipboard
@SerialName(value = "account_data")
val accountData: Sync.Response.GlobalAccountData?
Link copied to clipboard
@SerialName(value = "device_lists")
val deviceLists: Sync.Response.DeviceLists?
Link copied to clipboard
@SerialName(value = "next_batch")
val nextBatch: String
Link copied to clipboard
@SerialName(value = "device_one_time_keys_count")
val oneTimeKeysCount: OneTimeKeysCount?
Link copied to clipboard
@SerialName(value = "presence")
val presence: Sync.Response.Presence?
Link copied to clipboard
@SerialName(value = "rooms")
val room: Sync.Response.Rooms?
Link copied to clipboard
@SerialName(value = "to_device")
val toDevice: Sync.Response.ToDevice?
Link copied to clipboard
@SerialName(value = "device_unused_fallback_key_types")
val unusedFallbackKeyTypes: UnusedFallbackKeyTypes?

Functions

Link copied to clipboard