public interface InvitationManager
Modifier and Type | Method and Description |
---|---|
Invitation |
findById(int id)
Find an invitation from its id
|
IDGenerator |
getIDGenerator() |
int |
getMaxInvitationsPerUser() |
void |
onInvitationResult(int invitationId,
InvitationResponse result,
ISFSObject params)
Handle the response to an invitation
|
void |
onInvitationResult(Invitation invitation,
InvitationResponse result,
ISFSObject params)
Handle the response to an invitation
|
void |
setMaxInvitationsPerUser(int value) |
void |
startInvitation(Invitation invitation,
InvitationCallback callBack)
Start a new invitation
|
void |
suppressInvitation(Invitation invitation)
Stop an invitation that is running
|
Invitation findById(int id)
void startInvitation(Invitation invitation, InvitationCallback callBack)
invitation
- the invitation objectcallBack
- the response handlervoid suppressInvitation(Invitation invitation)
invitation
- the invitationvoid onInvitationResult(Invitation invitation, InvitationResponse result, ISFSObject params) throws SFSInvitationException
invitation
- the invitationresult
- the resultparams
- optional paramsSFSInvitationException
void onInvitationResult(int invitationId, InvitationResponse result, ISFSObject params) throws SFSInvitationException
invitationId
- the id of the invitationresult
- the resultparams
- optional paramsSFSInvitationException
int getMaxInvitationsPerUser()
void setMaxInvitationsPerUser(int value)
value
- the max amount of invitations a User can run simultaneouslyIDGenerator getIDGenerator()