Class GetPlayerTurnService

java.lang.Object
com.chess.backend.restController.service.GetPlayerTurnService

@Service public class GetPlayerTurnService extends Object
This class handles the call to get the player who is currently on turn.
Author:
Hannes Stuetzer
  • Constructor Details

    • GetPlayerTurnService

      @Autowired public GetPlayerTurnService(ChessGameService gameService)
  • Method Details

    • getPlayerTurn

      public GetPlayerTurnObject getPlayerTurn(int gameID)
      This methods gets the player who is currently on turn from the ChessGameService.
      Parameters:
      gameID - the id of the current game.
      Returns:
      containing the name of the player.