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 theScorematches an existingLeaderboardandProfile, then the existing record will be updated.- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()score- theScore- Returns:
- the
Scoreas it was written to the database
-