Class NewChessGameService
java.lang.Object
com.chess.backend.restController.service.NewChessGameService
- All Implemented Interfaces:
INewGameService
@Service
@Qualifier("NewChessGameService")
public class NewChessGameService
extends Object
implements INewGameService
This class handles the call to create a new game.
-
Constructor Summary
ConstructorsConstructorDescriptionNewChessGameService
(ChessGameService gameService, IGameRepository gameRepository) -
Method Summary
Modifier and TypeMethodDescriptionint
getNewGameID
(NewGameObject newGameObject) This method tells theChessGameService
to create a new game and gets the id of the new game.
-
Constructor Details
-
NewChessGameService
-
-
Method Details
-
getNewGameID
This method tells theChessGameService
to create a new game and gets the id of the new game.- Specified by:
getNewGameID
in interfaceINewGameService
- Parameters:
newGameObject
- the object that is generated via the API-Call of theNewGameController
.- Returns:
- the id of the new created game.
-