public class Games.Scores.ListWindow extends GamesRequest<LeaderboardScores>
com.google.api.client.util.GenericData.Flags| Modifier | Constructor and Description |
|---|---|
protected |
Games.Scores.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.
|
| 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.Integer |
getResultsAbove()
The preferred number of scores to return above the player's score.
|
java.lang.Boolean |
getReturnTopIfAbsent()
True if the top scores should be returned when the player is not in the leaderboard.
|
java.lang.String |
getTimeSpan()
The time span for the scores and ranks you're requesting.
|
Games.Scores.ListWindow |
set(java.lang.String parameterName,
java.lang.Object value) |
Games.Scores.ListWindow |
setAlt(java.lang.String alt)
Data format for the response.
|
Games.Scores.ListWindow |
setCollection(java.lang.String collection)
The collection of scores you're requesting.
|
Games.Scores.ListWindow |
setConsistencyToken(java.lang.Long consistencyToken)
The last-seen mutation timestamp.
|
Games.Scores.ListWindow |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Games.Scores.ListWindow |
setKey(java.lang.String key)
API key.
|
Games.Scores.ListWindow |
setLanguage(java.lang.String language)
The preferred language to use for strings returned by this method.
|
Games.Scores.ListWindow |
setLeaderboardId(java.lang.String leaderboardId)
The ID of the leaderboard.
|
Games.Scores.ListWindow |
setMaxResults(java.lang.Integer maxResults)
The maximum number of leaderboard scores to return in the response.
|
Games.Scores.ListWindow |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Games.Scores.ListWindow |
setPageToken(java.lang.String pageToken)
The token returned by the previous request.
|
Games.Scores.ListWindow |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Games.Scores.ListWindow |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Games.Scores.ListWindow |
setResultsAbove(java.lang.Integer resultsAbove)
The preferred number of scores to return above the player's score.
|
Games.Scores.ListWindow |
setReturnTopIfAbsent(java.lang.Boolean returnTopIfAbsent)
True if the top scores should be returned when the player is not in the leaderboard.
|
Games.Scores.ListWindow |
setTimeSpan(java.lang.String timeSpan)
The time span for the scores and ranks you're requesting.
|
Games.Scores.ListWindow |
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.ListWindow(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.ListWindow setAlt(java.lang.String alt)
GamesRequestsetAlt in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setFields(java.lang.String fields)
GamesRequestsetFields in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setKey(java.lang.String key)
GamesRequestsetKey in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setOauthToken(java.lang.String oauthToken)
GamesRequestsetOauthToken in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setPrettyPrint(java.lang.Boolean prettyPrint)
GamesRequestsetPrettyPrint in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setQuotaUser(java.lang.String quotaUser)
GamesRequestsetQuotaUser in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setUserIp(java.lang.String userIp)
GamesRequestsetUserIp in class GamesRequest<LeaderboardScores>public java.lang.String getLeaderboardId()
public Games.Scores.ListWindow setLeaderboardId(java.lang.String leaderboardId)
public java.lang.String getCollection()
public Games.Scores.ListWindow setCollection(java.lang.String collection)
public java.lang.String getTimeSpan()
public Games.Scores.ListWindow setTimeSpan(java.lang.String timeSpan)
public java.lang.Long getConsistencyToken()
public Games.Scores.ListWindow setConsistencyToken(java.lang.Long consistencyToken)
public java.lang.String getLanguage()
public Games.Scores.ListWindow setLanguage(java.lang.String language)
public java.lang.Integer getMaxResults()
public Games.Scores.ListWindow setMaxResults(java.lang.Integer maxResults)
public java.lang.String getPageToken()
public Games.Scores.ListWindow setPageToken(java.lang.String pageToken)
public java.lang.Integer getResultsAbove()
public Games.Scores.ListWindow setResultsAbove(java.lang.Integer resultsAbove)
public java.lang.Boolean getReturnTopIfAbsent()
public Games.Scores.ListWindow setReturnTopIfAbsent(java.lang.Boolean returnTopIfAbsent)
public Games.Scores.ListWindow set(java.lang.String parameterName, java.lang.Object value)
set in class GamesRequest<LeaderboardScores>