简体   繁体   English

如何使用QuickBlox SDK iOS按名称获取用户

[英]How to get users by name using QuickBlox SDK iOS

i am integrating QuickBlox SDK in iOS App.i wanted to fetch all the users with the username.how to get this done with Quickblox.what search query is to be made.Please suggest me any ideas on this. 我正在将QuickBlox SDK集成到iOS App中。我想使用用户名来获取所有用户。如何使用Quickblox完成此操作。要进行什么样的搜索查询。请给我提出任何想法。

Use Case: whenever user enters some characters in the SearchBar then i have to fetch all my QuickBlox users with that name. 用例:每当用户在SearchBar中输入一些字符时,我就必须提取具有该名称的所有QuickBlox用户。

You should use method: 您应该使用方法:

+ (QB_NONNULL QBRequest *)usersWithFullName:(QB_NONNULL NSString *)userFullName
                                   page:(QB_NULLABLE QBGeneralResponsePage *)page
                           successBlock:(QB_NULLABLE void (^)(QBResponse * QB_NONNULL_S response, QBGeneralResponsePage * QB_NULLABLE_S page, NSArray QB_GENERIC(QBUUser *) * QB_NULLABLE_S users))successBlock
                             errorBlock:(QB_NULLABLE void (^)(QBResponse * QB_NONNULL_S response))errorBlock;

where userFullName will be your string from the search bar 其中userFullName将是您在搜索栏中的字符串

Pagination parameter (for example): 分页参数(例如):

 QBGeneralResponsePage * page = [QBGeneralResponsePage responsePageWithCurrentPage:1 perPage:100]

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

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