Package com.smartfoxserver.game
Class GenericInvitationCallback
java.lang.Object
com.smartfoxserver.game.GenericInvitationCallback
- All Implemented Interfaces:
InvitationCallback
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.smartfoxserver.api.response.ISFSGameResponseApi -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonAccepted(Invitation invObj, ISFSObject params) Fired when the invited User has accepted the invitationvoidonExpired(Invitation invObj) The event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.voidonRefused(Invitation invObj, ISFSObject params) Fired when the invited User has refused the invitation
-
Field Details
-
responseApi
protected final com.smartfoxserver.api.response.ISFSGameResponseApi responseApi
-
-
Constructor Details
-
GenericInvitationCallback
public GenericInvitationCallback()
-
-
Method Details
-
onAccepted
Description copied from interface:InvitationCallbackFired when the invited User has accepted the invitation- Specified by:
onAcceptedin interfaceInvitationCallback- Parameters:
invObj- the invitationparams- optional custom parameters sent by the invitee
-
onExpired
Description copied from interface:InvitationCallbackThe event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.- Specified by:
onExpiredin interfaceInvitationCallback- Parameters:
invObj- the invitation
-
onRefused
Description copied from interface:InvitationCallbackFired when the invited User has refused the invitation- Specified by:
onRefusedin interfaceInvitationCallback- Parameters:
invObj- the invitationparams- optional custom parameters sent by the invitee
-