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