Package com.smartfoxserver.v2.game
Class SFSGameInvitationCallback
- java.lang.Object
-
- com.smartfoxserver.v2.game.BaseGameInvitationCallback
-
- com.smartfoxserver.v2.game.SFSGameInvitationCallback
-
- All Implemented Interfaces:
InvitationCallback
public class SFSGameInvitationCallback extends BaseGameInvitationCallback
-
-
Field Summary
-
Fields inherited from class com.smartfoxserver.v2.game.BaseGameInvitationCallback
log, sfsAPI
-
-
Constructor Summary
Constructors Constructor Description SFSGameInvitationCallback(Room game, int invitedPlayersCount, boolean leaveLastJoinedRoom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onAccepted(Invitation invObj, ISFSObject params)
Fired when the invited User has accepted the invitationvoid
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-
Methods inherited from class com.smartfoxserver.v2.game.BaseGameInvitationCallback
getGame, isLeaveLastJoindRoom
-
-
-
-
Constructor Detail
-
SFSGameInvitationCallback
public SFSGameInvitationCallback(Room game, int invitedPlayersCount, boolean leaveLastJoinedRoom)
-
-
Method Detail
-
onAccepted
public void onAccepted(Invitation invObj, ISFSObject params)
Description copied from interface:InvitationCallback
Fired when the invited User has accepted the invitation- Parameters:
invObj
- the invitationparams
- optional custom parameters sent by the invitee
-
onRefused
public void onRefused(Invitation invObj, ISFSObject params)
Description copied from interface:InvitationCallback
Fired when the invited User has refused the invitation- Parameters:
invObj
- the invitationparams
- optional custom parameters sent by the invitee
-
onExpired
public void onExpired(Invitation invObj)
Description copied from interface:InvitationCallback
The event is fired when the invitation has expired or if the invitee gets disconnected before he sends a response.- Parameters:
invObj
- the invitation
-
-