public class Games.Scores.ListWindow extends GamesRequest<LeaderboardScores>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
ListWindow(String leaderboardId,
String collection,
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() |
String |
getCollection()
The collection of scores you're requesting.
|
String |
getLanguage()
The preferred language to use for strings returned by this method.
|
String |
getLeaderboardId()
The ID of the leaderboard.
|
Integer |
getMaxResults()
The maximum number of leaderboard scores to return in the response.
|
String |
getPageToken()
The token returned by the previous request.
|
Integer |
getResultsAbove()
The preferred number of scores to return above the player's score.
|
Boolean |
getReturnTopIfAbsent()
True if the top scores should be returned when the player is not in the leaderboard.
|
String |
getTimeSpan()
Required.
|
Games.Scores.ListWindow |
set(String parameterName,
Object value) |
Games.Scores.ListWindow |
set$Xgafv(String $Xgafv)
V1 error format.
|
Games.Scores.ListWindow |
setAccessToken(String accessToken)
OAuth access token.
|
Games.Scores.ListWindow |
setAlt(String alt)
Data format for response.
|
Games.Scores.ListWindow |
setCallback(String callback)
JSONP
|
Games.Scores.ListWindow |
setCollection(String collection)
The collection of scores you're requesting.
|
Games.Scores.ListWindow |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Games.Scores.ListWindow |
setKey(String key)
API key.
|
Games.Scores.ListWindow |
setLanguage(String language)
The preferred language to use for strings returned by this method.
|
Games.Scores.ListWindow |
setLeaderboardId(String leaderboardId)
The ID of the leaderboard.
|
Games.Scores.ListWindow |
setMaxResults(Integer maxResults)
The maximum number of leaderboard scores to return in the response.
|
Games.Scores.ListWindow |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Games.Scores.ListWindow |
setPageToken(String pageToken)
The token returned by the previous request.
|
Games.Scores.ListWindow |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Games.Scores.ListWindow |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Games.Scores.ListWindow |
setResultsAbove(Integer resultsAbove)
The preferred number of scores to return above the player's score.
|
Games.Scores.ListWindow |
setReturnTopIfAbsent(Boolean returnTopIfAbsent)
True if the top scores should be returned when the player is not in the leaderboard.
|
Games.Scores.ListWindow |
setTimeSpan(String timeSpan)
Required.
|
Games.Scores.ListWindow |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Games.Scores.ListWindow |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected ListWindow(String leaderboardId, String collection, 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 - Required. The time span for the scores and ranks you're requesting.public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<LeaderboardScores>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<LeaderboardScores>IOExceptionpublic Games.Scores.ListWindow set$Xgafv(String $Xgafv)
GamesRequestset$Xgafv in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setAccessToken(String accessToken)
GamesRequestsetAccessToken in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setAlt(String alt)
GamesRequestsetAlt in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setCallback(String callback)
GamesRequestsetCallback in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setFields(String fields)
GamesRequestsetFields in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setKey(String key)
GamesRequestsetKey in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setOauthToken(String oauthToken)
GamesRequestsetOauthToken in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setPrettyPrint(Boolean prettyPrint)
GamesRequestsetPrettyPrint in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setQuotaUser(String quotaUser)
GamesRequestsetQuotaUser in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setUploadType(String uploadType)
GamesRequestsetUploadType in class GamesRequest<LeaderboardScores>public Games.Scores.ListWindow setUploadProtocol(String uploadProtocol)
GamesRequestsetUploadProtocol in class GamesRequest<LeaderboardScores>public String getLeaderboardId()
public Games.Scores.ListWindow setLeaderboardId(String leaderboardId)
public String getCollection()
public Games.Scores.ListWindow setCollection(String collection)
public String getTimeSpan()
public Games.Scores.ListWindow setTimeSpan(String timeSpan)
public String getLanguage()
public Games.Scores.ListWindow setLanguage(String language)
public Integer getMaxResults()
public Games.Scores.ListWindow setMaxResults(Integer maxResults)
public String getPageToken()
public Games.Scores.ListWindow setPageToken(String pageToken)
public Integer getResultsAbove()
public Games.Scores.ListWindow setResultsAbove(Integer resultsAbove)
public Boolean getReturnTopIfAbsent()
public Games.Scores.ListWindow setReturnTopIfAbsent(Boolean returnTopIfAbsent)
public Games.Scores.ListWindow set(String parameterName, Object value)
set in class GamesRequest<LeaderboardScores>Copyright © 2011–2025 Google. All rights reserved.