public class Games.Scores.List extends GamesRequest<LeaderboardScores>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Games.Scores.List(java.lang.String leaderboardId,
java.lang.String collection,
java.lang.String timeSpan)
Lists the scores in a leaderboard, starting from the top.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
java.lang.String |
getCollection()
The collection of scores you're requesting.
|
java.lang.Long |
getConsistencyToken()
The last-seen mutation timestamp.
|
java.lang.String |
getLanguage()
The preferred language to use for strings returned by this method.
|
java.lang.String |
getLeaderboardId()
The ID of the leaderboard.
|
java.lang.Integer |
getMaxResults()
The maximum number of leaderboard scores to return in the response.
|
java.lang.String |
getPageToken()
The token returned by the previous request.
|
java.lang.String |
getTimeSpan()
The time span for the scores and ranks you're requesting.
|
Games.Scores.List |
set(java.lang.String parameterName,
java.lang.Object value) |
Games.Scores.List |
setAlt(java.lang.String alt)
Data format for the response.
|
Games.Scores.List |
setCollection(java.lang.String collection)
The collection of scores you're requesting.
|
Games.Scores.List |
setConsistencyToken(java.lang.Long consistencyToken)
The last-seen mutation timestamp.
|
Games.Scores.List |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Games.Scores.List |
setKey(java.lang.String key)
API key.
|
Games.Scores.List |
setLanguage(java.lang.String language)
The preferred language to use for strings returned by this method.
|
Games.Scores.List |
setLeaderboardId(java.lang.String leaderboardId)
The ID of the leaderboard.
|
Games.Scores.List |
setMaxResults(java.lang.Integer maxResults)
The maximum number of leaderboard scores to return in the response.
|
Games.Scores.List |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Games.Scores.List |
setPageToken(java.lang.String pageToken)
The token returned by the previous request.
|
Games.Scores.List |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Games.Scores.List |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Games.Scores.List |
setTimeSpan(java.lang.String timeSpan)
The time span for the scores and ranks you're requesting.
|
Games.Scores.List |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queueclone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysprotected Games.Scores.List(java.lang.String leaderboardId,
java.lang.String collection,
java.lang.String timeSpan)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Games.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
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.public com.google.api.client.http.HttpResponse executeUsingHead()
throws java.io.IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<LeaderboardScores>java.io.IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws java.io.IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<LeaderboardScores>java.io.IOExceptionpublic Games.Scores.List setAlt(java.lang.String alt)
GamesRequestsetAlt in class GamesRequest<LeaderboardScores>public Games.Scores.List setFields(java.lang.String fields)
GamesRequestsetFields in class GamesRequest<LeaderboardScores>public Games.Scores.List setKey(java.lang.String key)
GamesRequestsetKey in class GamesRequest<LeaderboardScores>public Games.Scores.List setOauthToken(java.lang.String oauthToken)
GamesRequestsetOauthToken in class GamesRequest<LeaderboardScores>public Games.Scores.List setPrettyPrint(java.lang.Boolean prettyPrint)
GamesRequestsetPrettyPrint in class GamesRequest<LeaderboardScores>public Games.Scores.List setQuotaUser(java.lang.String quotaUser)
GamesRequestsetQuotaUser in class GamesRequest<LeaderboardScores>public Games.Scores.List setUserIp(java.lang.String userIp)
GamesRequestsetUserIp in class GamesRequest<LeaderboardScores>public java.lang.String getLeaderboardId()
public Games.Scores.List setLeaderboardId(java.lang.String leaderboardId)
public java.lang.String getCollection()
public Games.Scores.List setCollection(java.lang.String collection)
public java.lang.String getTimeSpan()
public Games.Scores.List setTimeSpan(java.lang.String timeSpan)
public java.lang.Long getConsistencyToken()
public Games.Scores.List setConsistencyToken(java.lang.Long consistencyToken)
public java.lang.String getLanguage()
public Games.Scores.List setLanguage(java.lang.String language)
public java.lang.Integer getMaxResults()
public Games.Scores.List setMaxResults(java.lang.Integer maxResults)
public java.lang.String getPageToken()
public Games.Scores.List setPageToken(java.lang.String pageToken)
public Games.Scores.List set(java.lang.String parameterName, java.lang.Object value)
set in class GamesRequest<LeaderboardScores>