[英]Quickblox Android: Total unread messages count request
I have seen that in the iOS sdk and the API I can get the total unread messages count, but I couldn't find a way to do the same with the Quickblox Android SDK. 我已经看到,在iOS sdk和API中,我可以获得未读消息总数,但是我找不到找到与Quickblox Android SDK相同的方法。 Is there a way to achieve this? 有没有办法做到这一点?
I need something similar to this but for Android instead of iOS: 我需要类似的东西,但要使用Android而不是iOS:
let dialogsIDs: NSSet = NSSet(array: ["55fae39ca28f9a701d0058fb"])
QBRequest.totalUnreadMessageCountForDialogsWithIDs(dialogsIDs as! Set<String>, successBlock: { (response: QBResponse, count: UInt, dialogs: [String : AnyObject]?) -> Void in
}) { (response: QBResponse) -> Void in
}
当您获取聊天对话框时,每个对话框中都有一个键“ unreadMessageCount ”,该键负责提供未读计数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.