Package sfs3.client.requests.invitation
Class InvitationReplyRequest
java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.invitation.InvitationReplyRequest
- All Implemented Interfaces:
sfs3.client.requests.IClientRequest
Replies to an invitation received by the current user.
Users who receive an invitation sent by means of the InviteUsersRequest request can either accept or refuse it using this request. The reply causes an invitationReply event to be dispatched to the inviter; if a reply is not sent, or it is sent after the invitation expiration, the system will react as if the invitation was refused.
If an error occurs while the reply is delivered to the inviter user (for example the invitation is already expired), an invitationReplyError event is returned to the current user.
- 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
ConstructorsConstructorDescriptionInvitationReplyRequest(Invitation invitation, InvitationReply invitationReply) InvitationReplyRequest(Invitation invitation, InvitationReply invitationReply, ISFSObject params) Creates a new InvitationReplyRequest instance. -
Method Summary
Methods inherited from class sfs3.client.requests.BaseRequest
getId, getRequest, getTargetController, getTransportType, setId, setTargetController, setTransportType
-
Field Details
-
KEY_INVITATION_ID
- See Also:
- Internal
-
KEY_INVITATION_REPLY
- See Also:
- Internal
-
KEY_INVITATION_PARAMS
- See Also:
- Internal
-
-
Constructor Details
-
InvitationReplyRequest
public InvitationReplyRequest(Invitation invitation, InvitationReply invitationReply, ISFSObject params) Creates a new InvitationReplyRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.- Parameters:
invitation- An instance of the Invitation class containing the invitation details (inviter, custom parameters, etc).invitationReply- The answer to be sent to the inviter, among those available as constants in the InvitationReply class.params- An instance of SFSObject containing custom parameters to be returned to the inviter together with the reply (for example a message describing the reason of refusal).- See Also:
-
InvitationReplyRequest
- See Also:
-
-
Method Details
-
validate
- Throws:
SFSValidationException- Internal
-
execute
- Internal
-