Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pa165 Ice Hockey Manager
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tomáš Madeja
pa165 Ice Hockey Manager
Commits
1cc1d499
There was an error fetching the commit references. Please try again later.
Commit
1cc1d499
authored
3 years ago
by
Erik Moravec
Browse files
Options
Downloads
Patches
Plain Diff
doc: added documenation to GameService
parent
fbbb5d54
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/cz/muni/fi/pa165/icehockeymanager/services/GameService.java
+25
-0
25 additions, 0 deletions
.../muni/fi/pa165/icehockeymanager/services/GameService.java
with
25 additions
and
0 deletions
src/main/java/cz/muni/fi/pa165/icehockeymanager/services/GameService.java
+
25
−
0
View file @
1cc1d499
...
...
@@ -18,13 +18,38 @@ public interface GameService {
*/
Collection
<
Game
>
getAllGames
();
/**
* Create a new entity game in DB.
* @param game the game to be created.
*/
void
createGame
(
Game
game
);
/**
* Finds the game by given id.
* @param gameId ID of the game to be found.
* @return return Optional of the game to be found.
*/
Optional
<
Game
>
findGame
(
long
gameId
);
/**
* Removes a game entity from DB.
* @param game the entity to be removed
*/
void
deleteGame
(
Game
game
);
/**
* Updates the score of a game and the winner if a winner is
* determined by the new score.
* @param game the entity to be updated.
* @param homeTeamScore new score of the home team.
* @param awayTeamScore new score of the away team.
*/
void
updateGameScore
(
Game
game
,
int
homeTeamScore
,
int
awayTeamScore
);
/**
* Sets the winner of a game.
* @param game the entity to be updated.
* @param team the new winner of the game.
*/
void
setGameWinner
(
Game
game
,
Team
team
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment