Packagecom.smartfoxserver.v2.entities.invitation
Interfacepublic interface Invitation
Implementors SFSInvitation

The Invitation interface defines all the methods and properties that an object representing an invitation entity exposes.

In the SmartFoxServer 2X client API this interface is implemented by the SFSInvitation class. Read the class description for additional informations.

See also

SFSInvitation


Public Properties
 PropertyDefined By
  id : int
Indicates the id of this invitation.
Invitation
  invitee : User
[read-only] Returns the User object corresponding to the user who received the invitation.
Invitation
  inviter : User
[read-only] Returns the User object corresponding to the user who sent the invitation.
Invitation
  params : ISFSObject
[read-only] Returns an instance of SFSObject containing a custom set of parameters.
Invitation
  secondsForAnswer : int
[read-only] Returns the number of seconds available to the invitee to reply to the invitation, after which the invitation expires.
Invitation
Property Detail
idproperty
id:int

Indicates the id of this invitation. It is generated by the server when the invitation is sent.

NOTE: setting the id property manually has no effect on the server and can disrupt the API functioning.


Implementation
    public function get id():int
    public function set id(value:int):void
inviteeproperty 
invitee:User  [read-only]

Returns the User object corresponding to the user who received the invitation.


Implementation
    public function get invitee():User
inviterproperty 
inviter:User  [read-only]

Returns the User object corresponding to the user who sent the invitation.


Implementation
    public function get inviter():User
paramsproperty 
params:ISFSObject  [read-only]

Returns an instance of SFSObject containing a custom set of parameters. It usually stores invitation details, like a message to the invitee and any other relevant data.


Implementation
    public function get params():ISFSObject
secondsForAnswerproperty 
secondsForAnswer:int  [read-only]

Returns the number of seconds available to the invitee to reply to the invitation, after which the invitation expires.


Implementation
    public function get secondsForAnswer():int