Package ai.nexconn.chat.channel
Object CommunityChannel.Companion
-
- All Implemented Interfaces:
public class CommunityChannel.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static CommunityChannel.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final UnitgetChannelsUnreadInfo(Array<String> channelIds, OperationHandler<List<CommunityUnreadInfo>> handler)Gets unread info for the specified community channels. final UnitgetTotalUnreadCount(OperationHandler<Integer> handler)Gets the total unread message count across all community channels. final UnitgetTotalUnreadMentionedCount(OperationHandler<Integer> handler)Gets the total unread mentioned message count across all community channels. final UnitcheckRemoteMessages(List<Message> messages, OperationHandler<BatchRemoteMessagesResult> handler)Validates remote community channel messages. -
-
Method Detail
-
getChannelsUnreadInfo
final Unit getChannelsUnreadInfo(Array<String> channelIds, OperationHandler<List<CommunityUnreadInfo>> handler)
Gets unread info for the specified community channels.
Batch retrieves unread message count, mentioned message count, and do-not-disturb status for multiple community channels.
- Parameters:
channelIds- Array of community channel IDshandler- Callback returning the list of channel unread info on success
-
getTotalUnreadCount
final Unit getTotalUnreadCount(OperationHandler<Integer> handler)
Gets the total unread message count across all community channels.
- Parameters:
handler- Callback returning the total unread count on success
-
getTotalUnreadMentionedCount
final Unit getTotalUnreadMentionedCount(OperationHandler<Integer> handler)
Gets the total unread mentioned message count across all community channels.
- Parameters:
handler- Callback returning the total unread mentioned count on success
-
checkRemoteMessages
final Unit checkRemoteMessages(List<Message> messages, OperationHandler<BatchRemoteMessagesResult> handler)
Validates remote community channel messages.
Checks whether the given messages exist on the server.
- Parameters:
messages- List of messages to validatehandler- Callback returning matched and unmatched message lists on success
-
-
-
-