Interface InvitationManager
-
- All Known Implementing Classes:
SFSInvitationManager
public interface InvitationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InvitationfindById(int id)Find an invitation from its idIDGeneratorgetIDGenerator()intgetMaxInvitationsPerUser()voidonInvitationResult(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 Detail
-
findById
Invitation findById(int id)
Find an invitation from its id- Returns:
- the invitation object
-
startInvitation
void startInvitation(Invitation invitation, InvitationCallback callBack)
Start a new invitation- Parameters:
invitation- the invitation objectcallBack- the response handler
-
suppressInvitation
void suppressInvitation(Invitation invitation)
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 SFSInvitationExceptionHandle 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()
-
-