get Unread Count
public void getUnreadCount(ConversationType conversationType, String targetId, String channelId, IIntegerCallback callback)
获取来自某用户(某会话)的未读消息数。
Return
未读消息数。
Parameters
conversation Type
会话类型。
target Id
目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。
channel Id
消息所属会话的业务标识。
public void getUnreadCount(String channelId, Array<ConversationType> conversationTypes, IIntegerCallback callback)
获取某会话类型的未读消息数.
Return
未读消息数。
Parameters
conversation Types
会话类型
public void getUnreadCount(String channelId, boolean withDND, Array<ConversationType> conversationTypes, IIntegerCallback callback)
获取某会话类型的未读消息数.
Return
未读消息数
Parameters
with DND
是否带有消息免打扰的会话类型
conversation Types
消息类型