Class ExecutedMoveService

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

@Service public class ExecutedMoveService extends Object
This class handles the call to say which move was executed.
Author:
Hannes Stuetzer
  • Constructor Details

    • ExecutedMoveService

      @Autowired public ExecutedMoveService(ChessGameService gameService)
  • Method Details

    • executedMove

      public String executedMove(ExecutedMoveObject executedMoveObject)
      This method calls the ChessGameService to say which move was executed.
      Parameters:
      executedMoveObject - the object that is generated via the API-Call of the ExecutedMoveController.
      Returns:
      containing value if the move is valid.