|
SmartFoxServer 3 C++ Client API 3.1.0-beta
Client API for SmartFoxServer 3
|
Retrieves a list of users from the server which match the specified criteria. More...
#include <FindUsersRequest.h>
Public Member Functions | |
| FindUsersRequest (entities::match::MatchExpression expr, int16_t limit=0) | |
| Creates a new FindUsersRequest searching the whole Zone. | |
| FindUsersRequest (entities::match::MatchExpression expr, const entities::Room &room, int16_t limit=0) | |
| Creates a new FindUsersRequest searching a single Room. | |
| FindUsersRequest (entities::match::MatchExpression expr, std::string groupId, int16_t limit=0) | |
| Creates a new FindUsersRequest searching a Room Group. | |
Retrieves a list of users from the server which match the specified criteria.
By providing a matching expression and a search scope (a Room, a Group or the entire Zone), SmartFoxServer can find those users matching the passed criteria and return them by means of the userFindResult event.
The users carried by that event are detached snapshots: they are not added to the local user list and are not managed by the UserManager, so they must be treated as read-only search results. The only exception is the requester himself, who is returned as the live SmartFox::getMySelf instance.
|
inline |
Creates a new FindUsersRequest searching the whole Zone.
Pass it to SmartFox::send for the request to be performed.
| expr | A matching expression that the system will use to retrieve the users. |
| limit | The maximum size of the list of users that will be returned by the userFindResult event. If 0, the Zone's own limit is applied. |
|
inline |
Creates a new FindUsersRequest searching a single Room.
| expr | A matching expression that the system will use to retrieve the users. |
| room | The Room where to search for matching users. |
| limit | The maximum size of the list of users that will be returned by the userFindResult event. If 0, the Zone's own limit is applied. |
|
inline |
Creates a new FindUsersRequest searching a Room Group.
| expr | A matching expression that the system will use to retrieve the users. |
| groupId | The name of the Group where to search for matching users; the Group must be public. |
| limit | The maximum size of the list of users that will be returned by the userFindResult event. If 0, the Zone's own limit is applied. |