MCPcopy Create free account
hub / github.com/aws-samples/eb-java-scorekeep / saveGame

Method saveGame

src/main/java/scorekeep/GameModel.java:21–28  ·  view source on GitHub ↗
(Game game)

Source from the content-addressed store, hash-verified

19 private final SessionModel sessionModel = new SessionModel();
20
21 public void saveGame(Game game) throws SessionNotFoundException {
22 // check session
23 String sessionId = game.getSession();
24 if (sessionModel.loadSession(sessionId) == null ) {
25 throw new SessionNotFoundException(sessionId);
26 }
27 mapper.save(game);
28 }
29
30 public Game loadGame(String gameId) throws GameNotFoundException {
31 Game game = mapper.load(Game.class, gameId);

Callers 10

newGameMethod · 0.80
updateGameMethod · 0.80
setGameNameMethod · 0.80
setGameRulesMethod · 0.80
setGameUserMethod · 0.80
setGameUsersMethod · 0.80
setStartTimeMethod · 0.80
setEndTimeMethod · 0.80
setGameMoveMethod · 0.80
setGameStateMethod · 0.80

Calls 2

loadSessionMethod · 0.80
getSessionMethod · 0.45

Tested by

no test coverage detected