Interface InvitationManager
- All Known Implementing Classes:
SFSInvitationManager
public interface InvitationManager
-
Method Summary
Modifier and TypeMethodDescriptionfindById(int id) Find an invitation from its idintvoidonInvitationResult(int invitationId, InvitationResponse result, ISFSObject params) Handle the response to an invitationvoidonInvitationResult(Invitation invitation, InvitationResponse result, ISFSObject params) Handle the response to an invitationvoidsetMaxInvitationsPerUser(int value) voidstartInvitation(Invitation invitation, InvitationCallback callBack) Start a new invitationvoidsuppressInvitation(Invitation invitation) Stop an invitation that is running
-
Method Details
-
findById
Find an invitation from its id- Returns:
- the invitation object
-
startInvitation
Start a new invitation- Parameters:
invitation- the invitation objectcallBack- the response handler
-
suppressInvitation
Stop an invitation that is running- Parameters:
invitation- the invitation
-
onInvitationResult
void onInvitationResult(Invitation invitation, InvitationResponse result, ISFSObject params) throws SFSInvitationException Handle the response to an invitation- Parameters:
invitation- the invitationresult- the resultparams- optional params- Throws:
SFSInvitationException
-
onInvitationResult
void onInvitationResult(int invitationId, InvitationResponse result, ISFSObject params) throws SFSInvitationException Handle the response to an invitation- Parameters:
invitationId- the id of the invitationresult- the resultparams- optional params- Throws:
SFSInvitationException
-
getMaxInvitationsPerUser
int getMaxInvitationsPerUser()- Returns:
- the max amount of invitations a User can run simultaneously
-
setMaxInvitationsPerUser
void setMaxInvitationsPerUser(int value) - Parameters:
value- the max amount of invitations a User can run simultaneously
-
getIDGenerator
IDGenerator getIDGenerator()
-