Sync

@Serializable
data class Sync(val filter: String? = null, val fullState: Boolean? = null, val setPresence: Presence? = null, val since: String? = null, val timeout: Long? = null, val asUserId: UserId? = null) : MatrixEndpoint<Unit, Sync.Response>

See also

Constructors

Link copied to clipboard
constructor(filter: String? = null, fullState: Boolean? = null, setPresence: Presence? = null, since: String? = null, timeout: Long? = null, asUserId: UserId? = null)

Types

Link copied to clipboard
@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)

Properties

Link copied to clipboard
val asUserId: UserId? = null
Link copied to clipboard
val filter: String? = null
Link copied to clipboard
val fullState: Boolean? = null
Link copied to clipboard
open val requestContentType: ContentType?
Link copied to clipboard
open val responseContentType: ContentType?
Link copied to clipboard
val setPresence: Presence? = null
Link copied to clipboard
val since: String? = null
Link copied to clipboard
val timeout: Long? = null

Functions

Link copied to clipboard
open fun requestSerializerBuilder(mappings: EventContentSerializerMappings, json: Json): KSerializer<Unit>?
Link copied to clipboard
open override fun responseSerializerBuilder(mappings: EventContentSerializerMappings, json: Json): KSerializer<Sync.Response>