public class GenericInvitationCallback extends java.lang.Object implements InvitationCallback
| Modifier and Type | Field and Description |
|---|---|
protected com.smartfoxserver.v2.api.response.ISFSGameResponseApi |
responseApi |
| Constructor and Description |
|---|
GenericInvitationCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAccepted(Invitation invObj,
ISFSObject params)
Fired when the invited User has accepted the invitation
|
void |
onExpired(Invitation invObj)
The event is fired when the invitation has expired or if the invitee gets disconnected
before he sends a response.
|
void |
onRefused(Invitation invObj,
ISFSObject params)
Fired when the invited User has refused the invitation
|
protected final com.smartfoxserver.v2.api.response.ISFSGameResponseApi responseApi
public void onAccepted(Invitation invObj, ISFSObject params)
InvitationCallbackonAccepted in interface InvitationCallbackinvObj - the invitationparams - optional custom parameters sent by the inviteepublic void onExpired(Invitation invObj)
InvitationCallbackonExpired in interface InvitationCallbackinvObj - the invitationpublic void onRefused(Invitation invObj, ISFSObject params)
InvitationCallbackonRefused in interface InvitationCallbackinvObj - the invitationparams - optional custom parameters sent by the invitee