是否可以获取openfire中包含的所有用户列表? [英] Is it possible to get all users list which contain in the openfire?

查看:123
本文介绍了是否可以获取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?

推荐答案

  1. 获取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中包含的所有用户列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆