Package dev.getelements.elements.sdk.dao
Interface ScoreDao
- All Known Implementing Classes:
MongoScoreDao
public interface ScoreDao
Manipulates instances of
Score
within the database.-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdateScore
(String leaderboardNameOrId, Score score) Creates an instance ofScore
, or updates the instance if the same leaderboard andProfile
are specified byScore.getProfile()
.
-
Method Details
-
createOrUpdateScore
Creates an instance ofScore
, or updates the instance if the same leaderboard andProfile
are specified byScore.getProfile()
.- Parameters:
leaderboardNameOrId
- the value ofLeaderboard.getId()
orLeaderboard.getName()
score
- theScore
to specify- Returns:
- the
Score
as it was written to the database.
-