Class UserScoreService
java.lang.Object
dev.getelements.elements.service.leaderboard.UserScoreService
- All Implemented Interfaces:
ScoreService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateScore(String leaderboardNameOrId, Score score) Creates, or updates, a newScore.voidsetCurrentProfileSupplier(Supplier<Profile> currentProfileSupplier) voidsetScoreDao(ScoreDao scoreDao)
-
Constructor Details
-
UserScoreService
public UserScoreService()
-
-
Method Details
-
createOrUpdateScore
Description copied from interface:ScoreServiceCreates, or updates, a newScore. If the profile submitted with the theScorematches an existingLeaderboardandProfile, then the existing record will be updated.- Specified by:
createOrUpdateScorein interfaceScoreService- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()score- theScore- Returns:
- the
Scoreas it was written to the database
-
getScoreDao
-
setScoreDao
-
getCurrentProfileSupplier
-
setCurrentProfileSupplier
-