Browse Source

implement findRunningGamesOfUser-Method

feat-serverGameRepresentation
Steffen Nitschke 4 years ago
parent
commit
9b2100e4bc
  1. 6
      fh.fd.ci.server/src/main/java/de/fd/fh/server/game/GameService.java

6
fh.fd.ci.server/src/main/java/de/fd/fh/server/game/GameService.java

@ -4,6 +4,7 @@ import de.fd.fh.server.user.UserId;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import java.util.HashSet; import java.util.HashSet;
import java.util.List;
import java.util.Set; import java.util.Set;
@RequiredArgsConstructor @RequiredArgsConstructor
@ -101,4 +102,9 @@ public class GameService
} }
return null; return null;
} }
public List<Game> findRunningGamesOfUser(final UserId userId)
{
return repository.findRunningGamesOfPlayer(userId);
}
} }
Loading…
Cancel
Save