Package ai.nexconn.chat.params
Class ChannelsUnreadCountParams
-
- All Implemented Interfaces:
public final class ChannelsUnreadCountParamsParameters for querying unread message count by channel type and notification level. Controls whether to include unread message counts from do-not-disturb channels via the levels list.
Usage example:
// get unread count for private and group chats with ALL or DEFAULT notification level (excluding DND) val params = ChannelsUnreadCountParams( channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP), levels = listOf(NotificationLevel.ALL, NotificationLevel.DEFAULT) ) BaseChannel.getChannelsUnreadCount(params) { count, error -> // ... } // get unread count for all notification levels (including do-not-disturb) val params2 = ChannelsUnreadCountParams( channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP), levels = emptyList() )
-
-
Field Summary
Fields Modifier and Type Field Description private final List<ChannelType>channelTypesprivate final List<ChannelNoDisturbLevel>levels
-
Constructor Summary
Constructors Constructor Description ChannelsUnreadCountParams(List<ChannelType> channelTypes, List<ChannelNoDisturbLevel> levels)
-
Method Summary
Modifier and Type Method Description final List<ChannelType>getChannelTypes()final List<ChannelNoDisturbLevel>getLevels()-
-
Constructor Detail
-
ChannelsUnreadCountParams
ChannelsUnreadCountParams(List<ChannelType> channelTypes, List<ChannelNoDisturbLevel> levels)
- Parameters:
channelTypes- channel type listlevels- notification level list.
-
-
Method Detail
-
getChannelTypes
final List<ChannelType> getChannelTypes()
-
getLevels
final List<ChannelNoDisturbLevel> getLevels()
-
-
-
-