是否可以获取openfire中包含的所有用户列表?

编程入门 行业动态 更新时间:2024-10-24 12:32:44
本文介绍了是否可以获取openfire中包含的所有用户列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在使用XMPP在Asmack的android中进行应用聊天,并且希望用户客户端安装该应用,他将能够检索该应用 数据库中包含的所有用户的列表. 这将使客户端能够从列表中选择用户 并与他一一列出朋友. 我该怎么办?

I am doing an app chat in android by asmack with XMPP and want to user client install the application he will be able to retrieve The list of all the users which contain on the database. This will allow to the client be able to select user from the List and joined him to list friend one on one. How can I do that?

如果不可能的话,如何实现呢?

If it not possible, how can achieve that?

推荐答案

  • 获取WebManager实例.
  • WebManager webMan = ...; UserManager userMan = webMan.getUserManager(); userMan.getUsers(); // Returns the user collection.

    UserManager API

    从收集列表中,您可以获取所有想要的用户.

    From the collection list you can get all the users you wany.

    更多推荐

    是否可以获取openfire中包含的所有用户列表?

    本文发布于:2023-10-28 19:15:21,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1537536.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:用户列表   openfire

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!