Channels Unread Count Params
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()
)Content copied to clipboard
Parameters
channel Types
Channel type list
levels
Notification level List. Pass empty List indicates Contains all Notification level (Including Do Not Disturb).
Constructors
Link copied to clipboard
public ChannelsUnreadCountParams ChannelsUnreadCountParams(List<ChannelType> channelTypes, List<ChannelNoDisturbLevel> levels)