Package sfs3.client.requests
Class FindRoomsRequest
java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.FindRoomsRequest
- All Implemented Interfaces:
sfs3.client.requests.IClientRequest
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class sfs3.client.requests.BaseRequest
AddBuddy, AdminMessage, AutoJoin, BanUser, BanUsersFromRoom, BlockBuddy, CallExtension, ChangeRoomCapacity, ChangeRoomName, ChangeRoomPassword, ClusterInviteUsers, ClusterJoinOrCreate, CreateRoom, CreateSFSGame, FindRooms, FindUsers, GameServerConnectionRequired, GenericMessage, GetRoomList, GoOnline, Handshake, InitBuddyList, InvitationReply, InviteUser, JoinRoom, JoinRoomInvite, KEY_ERROR_CODE, KEY_ERROR_PARAMS, KickUser, LeaveRoom, Login, Logout, ManualDisconnection, ModeratorMessage, ObjectMessage, PingPong, PlayerToSpectator, PrivateMessage, PublicMessage, QuickJoinGame, QuickJoinOrCreateRoom, RemoveBuddy, SetBuddyVariables, SetRoomVariables, SetUserPosition, SetUserVariables, sfso, SpectatorToPlayer, SubscribeRoomGroup, targetController, UdpInit, UnsubscribeRoomGroup -
Constructor Summary
ConstructorsConstructorDescriptionFindRoomsRequest(MatchExpression expr, String groupId) FindRoomsRequest(MatchExpression expr, String groupId, short limit) Creates a new FindRoomsRequest instance. -
Method Summary
Methods inherited from class sfs3.client.requests.BaseRequest
getId, getRequest, getTargetController, getTransportType, setId, setTargetController, setTransportType
-
Field Details
-
KEY_EXPRESSION
- See Also:
- Internal
-
KEY_GROUP
- See Also:
- Internal
-
KEY_LIMIT
- See Also:
- Internal
-
KEY_FILTERED_ROOMS
- See Also:
- Internal
-
-
Constructor Details
-
FindRoomsRequest
Creates a new FindRoomsRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.- Parameters:
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; ifnull, 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. If0, all the found Rooms are returned.- See Also:
-
FindRoomsRequest
- See Also:
-
FindRoomsRequest
- See Also:
-
-
Method Details
-
validate
- Throws:
SFSValidationException- Internal
-
execute
- Internal
-