Package org.matrix.android.sdk.api.session.sync.model

Types

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class DeviceListResponse(val changed: List<String> = emptyList(), val left: List<String> = emptyList())

This class describes the device list response from a sync request.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class DeviceOneTimeKeysCountSyncResponse(@Json(name = "signed_curve25519") val signedCurve25519: Int? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class InvitedRoomSync(@Json(name = "invite_state") val inviteState: RoomInviteState? = null)
Link copied to clipboard
@JsonClass(generateAdapter = false)
sealed class LazyRoomSyncEphemeral
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PresenceSyncResponse(val events: List<Event>? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomInviteState(@Json(name = "events") val events: List<Event> = emptyList())
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomsSyncResponse(    @Json(name = "join") val join: Map<String, RoomSync> = emptyMap(),     @Json(name = "invite") val invite: Map<String, InvitedRoomSync> = emptyMap(),     @Json(name = "leave") val leave: Map<String, RoomSync> = emptyMap())
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomSync(    @Json(name = "state") val state: RoomSyncState? = null,     @Json(name = "timeline") val timeline: RoomSyncTimeline? = null,     @Json(name = "ephemeral") val ephemeral: LazyRoomSyncEphemeral? = null,     @Json(name = "account_data") val accountData: RoomSyncAccountData? = null,     @Json(name = "unread_notifications") val unreadNotifications: RoomSyncUnreadNotifications? = null,     @Json(name = "unread_thread_notifications") val unreadThreadNotifications: Map<String, RoomSyncUnreadThreadNotifications>? = null,     @Json(name = "summary") val summary: RoomSyncSummary? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomSyncAccountData(@Json(name = "events") val events: List<Event>? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomSyncEphemeral(@Json(name = "events") val events: List<Event>? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomSyncState(@Json(name = "events") val events: List<Event>? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomSyncSummary(    @Json(name = "m.heroes") val heroes: List<String> = emptyList(),     @Json(name = "m.joined_member_count") val joinedMembersCount: Int? = null,     @Json(name = "m.invited_member_count") val invitedMembersCount: Int? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomSyncTimeline(    @Json(name = "events") val events: List<Event>? = null,     @Json(name = "limited") val limited: Boolean = false,     @Json(name = "prev_batch") val prevToken: String? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomSyncUnreadNotifications(    @Json(name = "events") val events: List<Event>? = null,     @Json(name = "notification_count") val notificationCount: Int? = null,     @Json(name = "highlight_count") val highlightCount: Int? = null)

MXRoomSyncUnreadNotifications represents the unread counts for a room.

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RoomSyncUnreadThreadNotifications(@Json(name = "notification_count") val notificationCount: Int? = null, @Json(name = "highlight_count") val highlightCount: Int? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class SyncResponse(    @Json(name = "account_data") val accountData: UserAccountDataSync? = null,     @Json(name = "next_batch") val nextBatch: String? = null,     @Json(name = "presence") val presence: PresenceSyncResponse? = null,     @Json(name = "to_device") val toDevice: ToDeviceSyncResponse? = null,     @Json(name = "rooms") val rooms: RoomsSyncResponse? = null,     @Json(name = "device_lists") val deviceLists: DeviceListResponse? = null,     @Json(name = "device_one_time_keys_count") val deviceOneTimeKeysCount: DeviceOneTimeKeysCountSyncResponse? = null,     @Json(name = "org.matrix.msc2732.device_unused_fallback_key_types") val devDeviceUnusedFallbackKeyTypes: List<String>? = null,     @Json(name = "device_unused_fallback_key_types") val stableDeviceUnusedFallbackKeyTypes: List<String>? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class ToDeviceSyncResponse(val events: List<Event>? = null)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class UserAccountDataSync(@Json(name = "events") val list: List<UserAccountDataEvent> = emptyList())