public class SFSInvitation extends java.lang.Object implements Invitation
The SFS2X Invitation Manager is very simple to use. All you need to provide is:
InvitationCallback.| Constructor and Description |
|---|
SFSInvitation(User inviter,
User invitee,
int secondsForAnswer) |
SFSInvitation(User inviter,
User invitee,
int secondsForAnswer,
ISFSObject params) |
| Modifier and Type | Method and Description |
|---|---|
static Invitation |
fromSFSArray(ISFSArray sfsa) |
InvitationCallback |
getCallback()
Obtain a reference to the CallBack handler class
|
int |
getExpiryTime()
The expiration timestamp.
|
int |
getId()
Get the unique invitation ID
|
User |
getInvitee()
Get the Invitee, the user that receives the invitation
|
User |
getInviter()
Get the Inviter, the user that started this invitation
|
ISFSObject |
getParams()
An SFSObject of custom parameters can be attached to the invitation.
|
int |
getSecondsForAnswer()
The amount of seconds given to the invitee to respond to the invitation
|
boolean |
isExpired()
Checks if the invitation is expired.
|
void |
setCallback(InvitationCallback callback)
Set the CallBack handler for the invitation.
|
void |
setParams(ISFSObject params)
An SFSObject of custom parameters can be attached to the invitation.
|
java.lang.String |
toString() |
public SFSInvitation(User inviter, User invitee, int secondsForAnswer, ISFSObject params)
public static Invitation fromSFSArray(ISFSArray sfsa)
public int getId()
InvitationgetId in interface Invitationpublic ISFSObject getParams()
InvitationgetParams in interface InvitationSFSObjectpublic void setParams(ISFSObject params)
InvitationsetParams in interface Invitationparams - the custom parametersSFSObjectpublic User getInviter()
InvitationgetInviter in interface Invitationpublic User getInvitee()
InvitationgetInvitee in interface Invitationpublic int getExpiryTime()
InvitationgetExpiryTime in interface Invitationpublic boolean isExpired()
InvitationisExpired in interface Invitationpublic int getSecondsForAnswer()
InvitationgetSecondsForAnswer in interface Invitationpublic InvitationCallback getCallback()
InvitationgetCallback in interface InvitationInvitationCallbackpublic void setCallback(InvitationCallback callback)
InvitationsetCallback in interface Invitationcallback - the callback handlerInvitationCallbackpublic java.lang.String toString()
toString in class java.lang.Object