Package sfs3.client.requests.invitation
Class InviteUsersRequest
java.lang.Object
sfs3.client.requests.BaseRequest
sfs3.client.requests.invitation.InviteUsersRequest
- All Implemented Interfaces:
sfs3.client.requests.IClientRequest
Sends a generic invitation to a list of users.
Invitations can be used for different purposes, such as requesting users to join a game or visit a specific Room, asking the permission to add them as buddies, etc. Invited users receive the invitation as an invitation event dispatched to their clients: they can accept or refuse it by means of the InvitationReplyRequest request, which must be sent within the specified amount of time.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intFields 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
ConstructorsConstructorDescriptionInviteUsersRequest(List<Object> invitedUsers, int secondsForAnswer, ISFSObject params) Creates a new InviteUsersRequest instance. -
Method Summary
Methods inherited from class sfs3.client.requests.BaseRequest
getId, getRequest, getTargetController, getTransportType, setId, setTargetController, setTransportType
-
Field Details
-
KEY_USER
- See Also:
- Internal
-
KEY_USER_ID
- See Also:
- Internal
-
KEY_INVITATION_ID
- See Also:
- Internal
-
KEY_TIME
- See Also:
- Internal
-
KEY_PARAMS
- See Also:
- Internal
-
KEY_INVITEE_ID
- See Also:
- Internal
-
KEY_INVITED_USERS
- See Also:
- Internal
-
KEY_REPLY_ID
- See Also:
- Internal
-
MAX_INVITATIONS_FROM_CLIENT_SIDE
public static final int MAX_INVITATIONS_FROM_CLIENT_SIDE- See Also:
- Internal
-
MIN_EXPIRY_TIME
public static final int MIN_EXPIRY_TIME- See Also:
- Internal
-
MAX_EXPIRY_TIME
public static final int MAX_EXPIRY_TIME- See Also:
- Internal
-
-
Constructor Details
-
InviteUsersRequest
Creates a new InviteUsersRequest instance. The instance must be passed to the SmartFox.send() method for the request to be performed.- Parameters:
invitedUsers- A list of User or Buddy objects representing user to send the invitation to.secondsForAnswer- The number of seconds available to each invited user to reply to the invitation (recommended range: 15 to 40 seconds).params- An instance of SFSObject containing custom parameters which specify the invitation details.- See Also:
-
-
Method Details
-
validate
- Throws:
SFSValidationException- Internal
-
execute
- Internal
-