Package sfs3.client.requests.buddylist
Class BlockBuddyRequest
java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.buddylist.BlockBuddyRequest
- All Implemented Interfaces:
sfs3.client.requests.IClientRequest
Blocks or unblocks a buddy in the current user's buddies list. Blocked
buddies won't be able to see if the user who blocked them is online in their
buddies list; they also won't be able to send messages or requests to that
user.
In order to block a buddy, the current user must be online in the Buddy List system. If the operation is successful, a buddyBlock confirmation event is dispatched; otherwise the buddyError event is fired.
NOTE: this request can be sent if the Buddy List system was previously initialized only (see the InitBuddyListRequest request description).
- 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
ConstructorsConstructorDescriptionBlockBuddyRequest(String buddyName, boolean blocked) Creates a new BlockBuddyRequest instance. -
Method Summary
Methods inherited from class sfs3.client.requests.BaseRequest
getId, getRequest, getTargetController, getTransportType, setId, setTargetController, setTransportType
-
Field Details
-
KEY_BUDDY_NAME
- See Also:
- Internal
-
KEY_BUDDY
- See Also:
- Internal
-
KEY_BUDDY_BLOCK_STATE
- See Also:
- Internal
-
-
Constructor Details
-
BlockBuddyRequest
Creates a new BlockBuddyRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.- Parameters:
buddyName- The name of the buddy to be blocked or unblocked.blocked-trueif the buddy must be blocked;falseif he must be unblocked.- See Also:
-
-
Method Details
-
validate
- Throws:
SFSValidationException- Internal
-
execute
- Internal
-