Interface ScoreService
- All Known Implementing Classes:
UserScoreService
public interface ScoreService
Creates and manages instances of
Score
.-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateScore
(String leaderboardNameOrId, Score score) Creates, or updates, a newScore
.
-
Method Details
-
createOrUpdateScore
Creates, or updates, a newScore
. If the profile submitted with the theScore
matches an existingLeaderboard
andProfile
, then the existing record will be updated.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
score
- theScore
- Returns:
- the
Score
as it was written to the database
-