Channels Unread Count Params
Parameters 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()
)Content copied to clipboard
Parameters
channel Types
channel type list
levels
notification level list. Pass an empty list to include all notification levels (including do-not-disturb).
Constructors
Link copied to clipboard
public ChannelsUnreadCountParams ChannelsUnreadCountParams(List<ChannelType> channelTypes, List<ChannelNoDisturbLevel> levels)