Package com.smartfoxserver.game
Class BaseGameInvitationCallback
java.lang.Object
com.smartfoxserver.game.BaseGameInvitationCallback
- All Implemented Interfaces:
InvitationCallback
- Direct Known Subclasses:
SFSGameInvitationCallback
Basic invitation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBaseGameInvitationCallback(Room game, boolean leaveLastJoinedRoom) Create a new Callback object keeping track of the Game Room -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.smartfoxserver.entities.invitation.InvitationCallback
onAccepted, onExpired, onRefused
-
Field Details
-
log
protected final org.slf4j.Logger logA reference to the logger -
sfsAPI
A reference to the SFS API
-
-
Constructor Details
-
BaseGameInvitationCallback
Create a new Callback object keeping track of the Game Room- Parameters:
game- the gameleaveLastJoinedRoom- true if the lastJoined Room should be left
-
-
Method Details
-
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
-