public class Games.Scores
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Games.Scores.Get |
class |
Games.Scores.List |
class |
Games.Scores.ListWindow |
class |
Games.Scores.Submit |
class |
Games.Scores.SubmitMultiple |
| Constructor and Description |
|---|
Games.Scores() |
| Modifier and Type | Method and Description |
|---|---|
Games.Scores.Get |
get(java.lang.String playerId,
java.lang.String leaderboardId,
java.lang.String timeSpan)
Get high scores, and optionally ranks, in leaderboards for the currently authenticated player.
|
Games.Scores.List |
list(java.lang.String leaderboardId,
java.lang.String collection,
java.lang.String timeSpan)
Lists the scores in a leaderboard, starting from the top.
|
Games.Scores.ListWindow |
listWindow(java.lang.String leaderboardId,
java.lang.String collection,
java.lang.String timeSpan)
Lists the scores in a leaderboard around (and including) a player's score.
|
Games.Scores.Submit |
submit(java.lang.String leaderboardId,
java.lang.Long score)
Submits a score to the specified leaderboard.
|
Games.Scores.SubmitMultiple |
submitMultiple(PlayerScoreSubmissionList content)
Submits multiple scores to leaderboards.
|
public Games.Scores.Get get(java.lang.String playerId, java.lang.String leaderboardId, java.lang.String timeSpan) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.playerId - A player ID. A value of me may be used in place of the authenticated player's ID.leaderboardId - The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this
application.timeSpan - The time span for the scores and ranks you're requesting.java.io.IOExceptionpublic Games.Scores.List list(java.lang.String leaderboardId, java.lang.String collection, java.lang.String timeSpan) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.leaderboardId - The ID of the leaderboard.collection - The collection of scores you're requesting.timeSpan - The time span for the scores and ranks you're requesting.java.io.IOExceptionpublic Games.Scores.ListWindow listWindow(java.lang.String leaderboardId, java.lang.String collection, java.lang.String timeSpan) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.leaderboardId - The ID of the leaderboard.collection - The collection of scores you're requesting.timeSpan - The time span for the scores and ranks you're requesting.java.io.IOExceptionpublic Games.Scores.Submit submit(java.lang.String leaderboardId, java.lang.Long score) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.leaderboardId - The ID of the leaderboard.score - The score you're submitting. The submitted score is ignored if it is worse than a previously
submitted score, where worse depends on the leaderboard sort order. The meaning of the
score value depends on the leaderboard format type. For fixed-point, the score represents
the raw value. For time, the score represents elapsed time in milliseconds. For currency,
the score represents a value in micro units.java.io.IOExceptionpublic Games.Scores.SubmitMultiple submitMultiple(PlayerScoreSubmissionList content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the PlayerScoreSubmissionListjava.io.IOException