InvitationReplyRequest

Replies to an Invitation received by the User.


Users receiving an Invitation sent by means of the InviteUsersRequest can either accept or refuse it using this request. The reply causes an SFSEvent.INVITATION_REPLY event to be dispatched to the inviter; if a reply is not sent, or it is sent after the Invitation expiration, the system will act as if the Invitation was refused.

If an error occurs while the reply is delivered to the inviter (for example the Invitation is already expired), an SFSEvent.INVITATION_REPLY_ERROR event is returned to the User.

Constructor

new InvitationReplyRequest(invitation, reply, parametersopt)

Creates a new instance of the InvitationReplyRequest class.
Pass the instance to the SmartFox#send method to validate and execute the request.
Parameters:
NameTypeAttributesDefaultDescription
invitationSFSInvitationAn instance of the SFSInvitation class containing the Invitation details (inviter, custom parameters, etc).
replynumberThe identifier of the answer to be sent to the inviter, among those provided by the InvitationReply class.
parametersSFSObject<optional>
nullAn object containing custom parameters to be returned to the inviter together with the reply, for example a message describing the reason of refusal.