getUnreadCount

public void getUnreadCount(ConversationType conversationType, String targetId, String channelId, IIntegerCallback callback)

获取来自某用户(某会话)的未读消息数。

Return

未读消息数。

Parameters

conversationType

会话类型。

targetId

目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。

channelId

消息所属会话的业务标识。


public void getUnreadCount(String channelId, Array<ConversationType> conversationTypes, IIntegerCallback callback)

获取某会话类型的未读消息数.

Return

未读消息数。

Parameters

conversationTypes

会话类型


public void getUnreadCount(String channelId, boolean withDND, Array<ConversationType> conversationTypes, IIntegerCallback callback)

获取某会话类型的未读消息数.

Return

未读消息数

Parameters

withDND

是否带有消息免打扰的会话类型

conversationTypes

消息类型