RoomSync

@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)

Constructors

Link copied to clipboard
constructor(@Json(name = "state") state: RoomSyncState? = null, @Json(name = "timeline") timeline: RoomSyncTimeline? = null, @Json(name = "ephemeral") ephemeral: LazyRoomSyncEphemeral? = null, @Json(name = "account_data") accountData: RoomSyncAccountData? = null, @Json(name = "unread_notifications") unreadNotifications: RoomSyncUnreadNotifications? = null, @Json(name = "unread_thread_notifications") unreadThreadNotifications: Map<String, RoomSyncUnreadThreadNotifications>? = null, @Json(name = "summary") summary: RoomSyncSummary? = null)

Properties

Link copied to clipboard

The account data events for the room (e.g. tags).

Link copied to clipboard

The ephemeral events in the room that aren't recorded in the timeline or state of the room (e.g. typing, receipts).

Link copied to clipboard
val state: RoomSyncState? = null

The state updates for the room.

Link copied to clipboard

The room summary.

Link copied to clipboard

The timeline of messages and state changes in the room.

Link copied to clipboard

The notification counts for the room.

Link copied to clipboard

The count of threads with unread notifications (not the total # of notifications in all threads).