Package sfs3.client.requests
Class SetRoomVariablesRequest
java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.SetRoomVariablesRequest
- All Implemented Interfaces:
sfs3.client.requests.IClientRequest
Sets one or more custom Room Variables in a Room.
When a Room Variable is set, the roomVariablesUpdate event is dispatched to all the users in the target Room, including the user who updated it. Also, if the Room Variable is global (see the SFSRoomVariable class description), the event is dispatched to all users who subscribed the Group to which the target Room is associated.
- See Also:
-
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionSetRoomVariablesRequest(List<RoomVariable> roomVariables) SetRoomVariablesRequest(List<RoomVariable> roomVariables, Room room) Creates a new SetRoomVariablesRequest instance. -
Method Summary
Methods inherited from class sfs3.client.requests.BaseRequest
getId, getRequest, getTargetController, getTransportType, setId, setTargetController, setTransportType
-
Field Details
-
KEY_VAR_ROOM
- See Also:
- Internal
-
KEY_VAR_LIST
- See Also:
- Internal
-
-
Constructor Details
-
SetRoomVariablesRequest
Creates a new SetRoomVariablesRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.- Parameters:
roomVariables- A list of RoomVariable objects representing the Room Variables to be set.room- A Room object representing the Room where to set the Room Variables; ifnull, the last Room joined by the current user is used.- See Also:
-
SetRoomVariablesRequest
- See Also:
-
-
Method Details
-
validate
- Throws:
SFSValidationException- Internal
-
execute
- Internal
-