java.lang.Object | |
↳ | com.google.android.gms.games.leaderboard.SubmitScoreResult |
Data object representing the result of submitting a score to a leaderboard.
Nested Classes | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
SubmitScoreResult.Result | Simple data class containing the result data for a particular time span. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Construct a new result describing a SubmitScore operation.
| |||||||||||
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Retrieves the ID of the leaderboard the score was submitted to.
| |||||||||||
Retrieves the ID of the player the score was submitted for.
| |||||||||||
Retrieves the
SubmitScoreResult.Result object for the given time span, if any. | |||||||||||
Retrieve the status code of the submit score operation.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Construct a new result describing a SubmitScore operation.
statusCode | The status code (from GamesClient ) to report to the client. |
---|---|
leaderboardId | The leaderboard ID the score was submitted to. |
playerId | The player whose score was submitted. |
results | A map from timespan to result for that timespan. |
Retrieves the ID of the leaderboard the score was submitted to.
Retrieves the ID of the player the score was submitted for.
Retrieves the SubmitScoreResult.Result
object for the given time span, if any.
timeSpan | Time span to retrieve result for. Valid values are
TIME_SPAN_DAILY ,
TIME_SPAN_WEEKLY , or
TIME_SPAN_ALL_TIME . |
---|
SubmitScoreResult.Result
or null
if no result was returned for the
given time span.
Retrieve the status code of the submit score operation. This will be one of the following values:
STATUS_OK
if the operation succeeded.STATUS_NETWORK_ERROR_OPERATION_DEFERRED
if the operation could not be
completed at this time. The operation will be cached and retried again later.STATUS_NETWORK_ERROR_OPERATION_FAILED
if the operation encountered a
non-recoverable network error. In this case, the operation will not be retried.