简体   繁体   English

Quickblox Android:未读邮件总数请求

[英]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

}

I opened an issue with this in the quickblox github repo and they have already included it in the next release. 我在quickblox github存储库中打开了一个与此相关的问题 ,他们已经将其包含在下一个版本中。 It is already available in the last snapshot. 在上一个快照中已经可用。

当您获取聊天对话框时,每个对话框中都有一个键“ unreadMessageCount ”,该键负责提供未读计数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM