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)
InvitationCallback
onAccepted
in interface InvitationCallback
invObj
- the invitationparams
- optional custom parameters sent by the inviteepublic void onExpired(Invitation invObj)
InvitationCallback
onExpired
in interface InvitationCallback
invObj
- the invitationpublic void onRefused(Invitation invObj, ISFSObject params)
InvitationCallback
onRefused
in interface InvitationCallback
invObj
- the invitationparams
- optional custom parameters sent by the invitee