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
fun RoomSync(    @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
val accountData: RoomSyncAccountData? = null

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

Link copied to clipboard
val ephemeral: LazyRoomSyncEphemeral? = null

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
val summary: RoomSyncSummary? = null

The room summary.

Link copied to clipboard
val timeline: RoomSyncTimeline? = null

The timeline of messages and state changes in the room.

Link copied to clipboard
val unreadNotifications: RoomSyncUnreadNotifications? = null

The notification counts for the room.

Link copied to clipboard
val unreadThreadNotifications: Map<String, RoomSyncUnreadThreadNotifications>? = null

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