StoredNotificationState

@Serializable
sealed interface StoredNotificationState

Allows to save the state of notification processing.

Inheritors

Types

Link copied to clipboard
@Serializable
@SerialName(value = "push")
data class Push(val roomId: RoomId) : StoredNotificationState

There was push notification from external sources.

Link copied to clipboard
@Serializable
@SerialName(value = "read")
data class Read(val roomId: RoomId) : StoredNotificationState

Notifications and this state are scheduled to be removed.

Link copied to clipboard
@Serializable
@SerialName(value = "sync_without_timeline")
data class SyncWithoutTimeline(val roomId: RoomId, val notificationsDisabled: Boolean = false) : StoredNotificationState

The room has been received in a sync without a timeline.

Link copied to clipboard
@Serializable
@SerialName(value = "sync_with_timeline")
data class SyncWithTimeline(val roomId: RoomId, val needsSync: Boolean, val notificationsDisabled: Boolean = false, val readReceipts: Set<EventId>, val lastEventId: EventId, val lastRelevantEventId: EventId? = null, val lastProcessedEventId: EventId?, val expectedMaxNotificationCount: Long?, val isRead: StoredNotificationState.SyncWithTimeline.IsRead = IsRead.CHECK) : StoredNotificationState

The room has been received in a sync with various information including a timeline.

Properties

Link copied to clipboard
abstract val needsProcess: Boolean
Link copied to clipboard
abstract val needsSync: Boolean
Link copied to clipboard
Link copied to clipboard
abstract val roomId: RoomId