Interface InvitationManager
-
- All Known Implementing Classes:
SFSInvitationManager
public interface InvitationManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Invitation
findById(int id)
Find an invitation from its idIDGenerator
getIDGenerator()
int
getMaxInvitationsPerUser()
void
onInvitationResult(int invitationId, InvitationResponse result, ISFSObject params)
Handle the response to an invitationvoid
onInvitationResult(Invitation invitation, InvitationResponse result, ISFSObject params)
Handle the response to an invitationvoid
setMaxInvitationsPerUser(int value)
void
startInvitation(Invitation invitation, InvitationCallback callBack)
Start a new invitationvoid
suppressInvitation(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 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()
-
-