UnreadCounts

data class UnreadCounts(val messagesCount: Int = 0, val threadsCount: Int = 0, val messagesCountByTeam: Map<String, Int> = emptyMap(), val channels: List<UnreadChannel> = emptyList(), val threads: List<UnreadThread> = emptyList(), val channelsByType: List<UnreadChannelByType> = emptyList())

Represents the unread counts for channels and threads in a chat application.

Constructors

Link copied to clipboard
constructor(messagesCount: Int = 0, threadsCount: Int = 0, messagesCountByTeam: Map<String, Int> = emptyMap(), channels: List<UnreadChannel> = emptyList(), threads: List<UnreadThread> = emptyList(), channelsByType: List<UnreadChannelByType> = emptyList())

Properties

Link copied to clipboard

A list of unread channels with their details.

Link copied to clipboard

A list of unread channels grouped by type.

Link copied to clipboard

The total number of unread messages.

Link copied to clipboard

A map containing the count of unread messages by team ID.

Link copied to clipboard

A list of unread threads with their details.

Link copied to clipboard
val threadsCount: Int = 0

The total number of unread threads.