Package com.smartfoxserver.v2.game
Class GenericInvitationCallback
- java.lang.Object
-
- com.smartfoxserver.v2.game.GenericInvitationCallback
-
- All Implemented Interfaces:
InvitationCallback
public class GenericInvitationCallback extends java.lang.Object implements InvitationCallback
-
-
Field Summary
Fields Modifier and Type Field Description protected com.smartfoxserver.v2.api.response.ISFSGameResponseApiresponseApi
-
Constructor Summary
Constructors Constructor Description GenericInvitationCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonAccepted(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
-
-
-
Method Detail
-
onAccepted
public void onAccepted(Invitation invObj, ISFSObject params)
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
public void onExpired(Invitation invObj)
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
public void onRefused(Invitation invObj, ISFSObject params)
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
-
-