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

Method loadState

src/main/java/scorekeep/StateModel.java:38–44  ·  view source on GitHub ↗
(String stateId)

Source from the content-addressed store, hash-verified

36 }
37
38 public State loadState(String stateId) throws StateNotFoundException {
39 State state = mapper.load(State.class, stateId);
40 if ( state == null ) {
41 throw new StateNotFoundException(stateId);
42 }
43 return state;
44 }
45
46 public List<State> loadStates(String sessionId, String gameId) throws SessionNotFoundException, GameNotFoundException {
47 if ( sessionModel.loadSession(sessionId) == null ) {

Callers 1

getStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected