ChannelsUnreadCountParams

public final class ChannelsUnreadCountParams

by Channel type and Notification level Query Unread message count parameters. Via levels List Control Whether Contains Do Not Disturb channel Unread message count.

Usage Example:

// Get private chat and group chat, Notification level ALL or DEFAULT channel Unread count (exclude DND)
val params = ChannelsUnreadCountParams(
channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP),
levels = listOf(NotificationLevel.ALL, NotificationLevel.DEFAULT)
)
BaseChannel.getChannelsUnreadCount(params) { count, error ->
// ...
}

// Get all Notification level (Contains Do Not Disturb) Unread count
val params2 = ChannelsUnreadCountParams(
channelTypes = listOf(ChannelType.DIRECT, ChannelType.GROUP),
levels = emptyList()
)

Parameters

channelTypes

Channel type list

levels

Notification level List. Pass empty List indicates Contains all Notification level (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()