Package io.getstream.chat.android.models
Class UnreadCounts
-
- All Implemented Interfaces:
public final class UnreadCountsRepresents the unread counts for channels and threads in a chat application.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegermessagesCountprivate final IntegerthreadsCountprivate final Map<String, Integer>messagesCountByTeamprivate final List<UnreadChannel>channelsprivate final List<UnreadThread>threadsprivate final List<UnreadChannelByType>channelsByType
-
Constructor Summary
Constructors Constructor Description UnreadCounts(Integer messagesCount, Integer threadsCount, Map<String, Integer> messagesCountByTeam, List<UnreadChannel> channels, List<UnreadThread> threads, List<UnreadChannelByType> channelsByType)
-
Method Summary
Modifier and Type Method Description final IntegergetMessagesCount()The total number of unread messages. final IntegergetThreadsCount()The total number of unread threads. final Map<String, Integer>getMessagesCountByTeam()A map containing the count of unread messages by team ID. final List<UnreadChannel>getChannels()A list of unread channels with their details. final List<UnreadThread>getThreads()A list of unread threads with their details. final List<UnreadChannelByType>getChannelsByType()A list of unread channels grouped by type. -
-
Constructor Detail
-
UnreadCounts
UnreadCounts(Integer messagesCount, Integer threadsCount, Map<String, Integer> messagesCountByTeam, List<UnreadChannel> channels, List<UnreadThread> threads, List<UnreadChannelByType> channelsByType)
-
-
Method Detail
-
getMessagesCount
final Integer getMessagesCount()
The total number of unread messages.
-
getThreadsCount
final Integer getThreadsCount()
The total number of unread threads.
-
getMessagesCountByTeam
final Map<String, Integer> getMessagesCountByTeam()
A map containing the count of unread messages by team ID.
-
getChannels
final List<UnreadChannel> getChannels()
A list of unread channels with their details.
-
getThreads
final List<UnreadThread> getThreads()
A list of unread threads with their details.
-
getChannelsByType
final List<UnreadChannelByType> getChannelsByType()
A list of unread channels grouped by type.
-
-
-
-