Package com.smartfoxserver.game
Class SFSGameInvitationCallback
java.lang.Object
com.smartfoxserver.game.BaseGameInvitationCallback
com.smartfoxserver.game.SFSGameInvitationCallback
- All Implemented Interfaces:
InvitationCallback
-
Field Summary
Fields inherited from class com.smartfoxserver.game.BaseGameInvitationCallback
log, sfsAPI -
Constructor Summary
ConstructorsConstructorDescriptionSFSGameInvitationCallback(Room game, int invitedPlayersCount, boolean leaveLastJoinedRoom) -
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 invitationMethods inherited from class com.smartfoxserver.game.BaseGameInvitationCallback
getGame, isLeaveLastJoindRoom
-
Constructor Details
-
SFSGameInvitationCallback
-
-
Method Details
-
onAccepted
Description copied from interface:InvitationCallbackFired when the invited User has accepted the invitation- Parameters:
invObj- the invitationparams- optional custom parameters sent by the invitee
-
onRefused
Description copied from interface:InvitationCallbackFired when the invited User has refused the invitation- 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.- Parameters:
invObj- the invitation
-