Package com.smartfoxserver.v2.game
Class BaseGameInvitationCallback
- java.lang.Object
-
- com.smartfoxserver.v2.game.BaseGameInvitationCallback
-
- All Implemented Interfaces:
InvitationCallback
- Direct Known Subclasses:
SFSGameInvitationCallback
public abstract class BaseGameInvitationCallback extends java.lang.Object implements InvitationCallback
Basic invitation
-
-
Constructor Summary
Constructors Constructor Description BaseGameInvitationCallback(Room game, boolean leaveLastJoinedRoom)
Create a new Callback object keeping track of the Game Room
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Room
getGame()
Get the Gameprotected boolean
isLeaveLastJoindRoom()
Check if the join operation should include leaving the last joined Room-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.smartfoxserver.v2.entities.invitation.InvitationCallback
onAccepted, onExpired, onRefused
-
-
-
-
Field Detail
-
log
protected final org.slf4j.Logger log
A reference to the logger
-
sfsAPI
protected final ISFSApi sfsAPI
A reference to the SFS API
-
-
Constructor Detail
-
BaseGameInvitationCallback
public BaseGameInvitationCallback(Room game, boolean leaveLastJoinedRoom)
Create a new Callback object keeping track of the Game Room- Parameters:
game
- the gameleaveLastJoinedRoom
- true if the lastJoined Room should be left
-
-
Method Detail
-
getGame
protected Room getGame()
Get the Game- Returns:
- the game to which this invitation refers to
-
isLeaveLastJoindRoom
protected boolean isLeaveLastJoindRoom()
Check if the join operation should include leaving the last joined Room- Returns:
- true if the join operation should include leaving the last joined Room
-
-