Class ScoresResource.GetRequest
Get high scores, and optionally ranks, in leaderboards for the currently authenticated player. For a specific time span, leaderboardId can be set to ALL to retrieve data for all leaderboards in a given time span. NOTE: You cannot ask for 'ALL' leaderboards and 'ALL' timeSpans in the same request; only one parameter may be set to 'ALL'.
Inheritance
Inherited Members
Namespace: Google.Apis.Games.v1
Assembly: Google.Apis.Games.v1.dll
Syntax
public class GetRequest : GamesBaseServiceRequest<PlayerLeaderboardScoreListResponse>, IClientServiceRequest<PlayerLeaderboardScoreListResponse>, IClientServiceRequest
Constructors
GetRequest(IClientService, String, String, ScoresResource.GetRequest.TimeSpanEnum)
Constructs a new Get request.
Declaration
public GetRequest(IClientService service, string playerId, string leaderboardId, ScoresResource.GetRequest.TimeSpanEnum timeSpan)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| System.String | playerId | |
| System.String | leaderboardId | |
| ScoresResource.GetRequest.TimeSpanEnum | timeSpan |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
IncludeRankType
The types of ranks to return. If the parameter is omitted, no ranks will be returned.
Declaration
public virtual Nullable<ScoresResource.GetRequest.IncludeRankTypeEnum> IncludeRankType { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<ScoresResource.GetRequest.IncludeRankTypeEnum> |
Language
The preferred language to use for strings returned by this method.
Declaration
public virtual string Language { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
LeaderboardId
The ID of the leaderboard. Can be set to 'ALL' to retrieve data for all leaderboards for this application.
Declaration
public virtual string LeaderboardId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
MaxResults
The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
Declaration
public virtual Nullable<int> MaxResults { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
PageToken
The token returned by the previous request.
Declaration
public virtual string PageToken { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
PlayerId
A player ID. A value of me may be used in place of the authenticated player's ID.
Declaration
public virtual string PlayerId { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
TimeSpan
The time span for the scores and ranks you're requesting.
Declaration
public virtual ScoresResource.GetRequest.TimeSpanEnum TimeSpan { get; }
Property Value
| Type | Description |
|---|---|
| ScoresResource.GetRequest.TimeSpanEnum |
Methods
InitParameters()
Initializes Get parameter list.
Declaration
protected override void InitParameters()