Package | Description |
---|---|
com.smartfoxserver.v2.api | |
com.smartfoxserver.v2.entities.invitation | |
com.smartfoxserver.v2.game |
Modifier and Type | Method and Description |
---|---|
void |
ISFSGameApi.sendInvitation(Invitation invitation,
InvitationCallback callBackHandler)
Send an Invitation to a User.
|
void |
SFSGameApi.sendInvitation(Invitation invitation,
InvitationCallback callBackHandler)
Send an Invitation to a User.
|
Modifier and Type | Class and Description |
---|---|
class |
SFSInvitation
Overview
An Invitation object provides the ability to send a generic invitation for a specific event going on
in your application, be it a game, visiting a personal room or another location of the virtual world etc...
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.Integer,Invitation> |
SFSInvitationManager.invitationsById |
protected java.util.Map<User,java.util.List<Invitation>> |
SFSInvitationManager.invitationsByOwner |
Modifier and Type | Method and Description |
---|---|
Invitation |
SFSInvitationManager.findById(int id) |
Invitation |
InvitationManager.findById(int id)
Find an invitation from its id
|
static Invitation |
SFSInvitation.fromSFSArray(ISFSArray sfsa) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Invitation> |
SFSInvitationManager.prepareStartInvitation(Invitation invitation,
InvitationCallback callBack) |
Modifier and Type | Method and Description |
---|---|
protected void |
SFSInvitationManager.handleAcceptedInvitation(Invitation invitation,
ISFSObject params) |
protected void |
SFSInvitationManager.handleRefusedInvitation(Invitation invitation,
ISFSObject params) |
void |
InvitationCallback.onAccepted(Invitation invObj,
ISFSObject params)
Fired when the invited User has accepted the invitation
|
void |
InvitationCallback.onExpired(Invitation invObj)
The event is fired when the invitation has expired or if the invitee gets disconnected
before he sends a response.
|
void |
SFSInvitationManager.onInvitationResult(Invitation invitation,
InvitationResponse result,
ISFSObject params) |
void |
InvitationManager.onInvitationResult(Invitation invitation,
InvitationResponse result,
ISFSObject params)
Handle the response to an invitation
|
void |
InvitationCallback.onRefused(Invitation invObj,
ISFSObject params)
Fired when the invited User has refused the invitation
|
protected java.util.List<Invitation> |
SFSInvitationManager.prepareStartInvitation(Invitation invitation,
InvitationCallback callBack) |
protected void |
SFSInvitationManager.removeInvitation(Invitation invitation) |
void |
SFSInvitationManager.startInvitation(Invitation invitation,
InvitationCallback callBack) |
void |
InvitationManager.startInvitation(Invitation invitation,
InvitationCallback callBack)
Start a new invitation
|
void |
SFSInvitationManager.suppressInvitation(Invitation invitation) |
void |
InvitationManager.suppressInvitation(Invitation invitation)
Stop an invitation that is running
|
Modifier and Type | Method and Description |
---|---|
void |
SFSGameInvitationCallback.onAccepted(Invitation invObj,
ISFSObject params) |
void |
JoinRoomInvitationCallback.onAccepted(Invitation invObj,
ISFSObject params) |
void |
GenericInvitationCallback.onAccepted(Invitation invObj,
ISFSObject params) |
void |
SFSGameInvitationCallback.onExpired(Invitation invObj) |
void |
JoinRoomInvitationCallback.onExpired(Invitation invObj) |
void |
GenericInvitationCallback.onExpired(Invitation invObj) |
void |
SFSGameInvitationCallback.onRefused(Invitation invObj,
ISFSObject params) |
void |
JoinRoomInvitationCallback.onRefused(Invitation invObj,
ISFSObject params) |
void |
GenericInvitationCallback.onRefused(Invitation invObj,
ISFSObject params) |