Class BaseGameInvitationCallback

java.lang.Object
com.smartfoxserver.game.BaseGameInvitationCallback
All Implemented Interfaces:
InvitationCallback
Direct Known Subclasses:
SFSGameInvitationCallback

public abstract class BaseGameInvitationCallback extends Object implements InvitationCallback
Basic invitation
  • Field Details

    • log

      protected final org.slf4j.Logger log
      A reference to the logger
    • sfsAPI

      protected final ISFSApi sfsAPI
      A reference to the SFS API
  • Constructor Details

    • BaseGameInvitationCallback

      public BaseGameInvitationCallback(Room game, boolean leaveLastJoinedRoom)
      Create a new Callback object keeping track of the Game Room
      Parameters:
      game - the game
      leaveLastJoinedRoom - true if the lastJoined Room should be left
  • Method Details

    • 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