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 andProfileare specified byScore.getProfile().
-
Method Details
-
createOrUpdateScore
Creates an instance ofScore, or updates the instance if the same leaderboard andProfileare specified byScore.getProfile().- Parameters:
leaderboardNameOrId- the value ofLeaderboard.getId()orLeaderboard.getName()score- theScoreto specify- Returns:
- the
Scoreas it was written to the database.
-