ChannelsUnreadCountParams

public final class ChannelsUnreadCountParams

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()
)

Parameters

channelTypes

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

Properties

Link copied to clipboard
private final List<ChannelType> channelTypes
Link copied to clipboard
private final List<ChannelNoDisturbLevel> levels

Functions

Link copied to clipboard
public final List<ChannelType> getChannelTypes()
Link copied to clipboard
public final List<ChannelNoDisturbLevel> getLevels()