Quickblox:没有获得EJabber的联系人列表

时间:2015-06-15 13:05:38

标签: android chat quickblox

我使用getUsersByPhoneNumbers方法从quickblox查看用户列表。作为回应,我得到了我通过此方法传递的电话号码的用户的详细信息,但之后我的应用程序显示在场时发送和接收空白请求以及聊天消息。我在这里分享我的代码详情:

private void loadNextPage() {
//  ++currentPage;

    QBPagedRequestBuilder pagedRequestBuilder = new QBPagedRequestBuilder();
    pagedRequestBuilder.setPage(1);
    pagedRequestBuilder.setPerPage(50);

    //ArrayList<String> phone_string = new ArrayList<String>();
    System.out.println("newUsers..ByPhone no>>"+newUsers);
    ArrayList<String> phones  = new ArrayList<String>();
    phones.add("8765678456");
    phones.add("98067583875");
    phones.add("9854897659");
    phones.add("9352085748");


    System.out.println("usersIds..ByPhone no>>"+phones );

    QBUsers.getUsersByPhoneNumbers(phones, pagedRequestBuilder, new QBEntityCallbackImpl<ArrayList<QBUser>>()  {
        @Override
        public void onSuccess(ArrayList<QBUser> users, Bundle params) {
            System.out.println("onSuccessUsers"+users);
            users.addAll(newUsers);
    }

        @Override
        public void onError(List<String> errors){

        }

});

我的日志详细信息是:

06-15 18:31:57.961: I/System.out(23029): onSuccessUsers[QBUser{id=3499103, createdAt=Fri Jun 12 12:50:46 GMT+05:30 2015, updatedAt=Fri Jun 12 12:50:46 GMT+05:30 2015, fullName='null', email='null', login='MAdapp38990523', phone='9000000000', website='null', lastRequestAt='Fri Jun 12 13:01:34 GMT+05:30 2015', externalId=null, facebookId=null, twitterId=null, blobId=null, tags='null', password='null', oldPassword='null', customData='null'}
06-15 18:31:57.961: I/System.out(23029): , QBUser{id=3566557, createdAt=Mon Jun 15 11:47:35 GMT+05:30 2015, updatedAt=Mon Jun 15 11:47:35 GMT+05:30 2015, fullName='Abhilasha', email='abhi@gmail.com', login='null', phone='8239309713', website='null', lastRequestAt='null', externalId=null, facebookId=null, twitterId=null, blobId=null, tags='null', password='null', oldPassword='null', customData='null'}
06-15 18:31:57.961: I/System.out(23029): , QBUser{id=3566609, createdAt=Mon Jun 15 11:50:18 GMT+05:30 2015, updatedAt=Mon Jun 15 11:50:18 GMT+05:30 2015, fullName='null', email='null', login='MAdapp95850548', phone='9582365285', website='null', lastRequestAt='null', externalId=null, facebookId=null, twitterId=null, blobId=null, tags='null', password='null', oldPassword='null', customData='null'}
06-15 18:31:57.961: I/System.out(23029): , QBUser{id=3570949, createdAt=Mon Jun 15 16:34:23 GMT+05:30 2015, updatedAt=Mon Jun 15 16:34:23 GMT+05:30 2015, fullName='null', email='null', login='MAdapp76801609', phone='9829079973', website='null', lastRequestAt='null', externalId=null, facebookId=null, twitterId=null, blobId=null, tags='null', password='null', oldPassword='null', customData='null'}
06-15 18:31:57.961: I/System.out(23029): ]
06-15 18:32:16.946: D/SMACK(23029): SENT (0): <presence id='6gARC-28'></presence>
06-15 18:32:17.186: D/SMACK(23029): RCV (0): <presence id="6gARC-28" to="3157814-23812@chat.quickblox.com" from="3157814-23812@chat.quickblox.com/ccd8e69b3cfdf742" xmlns="jabber:client"/>

请有人帮助我并解释我出错的地方。

0 个答案:

没有答案