Class ScoresResource.ListWindowRequest
Lists the scores in a leaderboard around (and including) a player's score.
Inheritance
Inherited Members
Namespace: Google.Apis.Games.v1
Assembly: Google.Apis.Games.v1.dll
Syntax
public class ListWindowRequest : GamesBaseServiceRequest<LeaderboardScores>, IClientServiceRequest<LeaderboardScores>, IClientServiceRequest
Constructors
ListWindowRequest(IClientService, String, ScoresResource.ListWindowRequest.CollectionEnum, ScoresResource.ListWindowRequest.TimeSpanEnum)
Constructs a new ListWindow request.
Declaration
public ListWindowRequest(IClientService service, string leaderboardId, ScoresResource.ListWindowRequest.CollectionEnum collection, ScoresResource.ListWindowRequest.TimeSpanEnum timeSpan)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| System.String | leaderboardId | |
| ScoresResource.ListWindowRequest.CollectionEnum | collection | |
| ScoresResource.ListWindowRequest.TimeSpanEnum | timeSpan |
Properties
Collection
The collection of scores you're requesting.
Declaration
public virtual ScoresResource.ListWindowRequest.CollectionEnum Collection { get; }
Property Value
| Type | Description |
|---|---|
| ScoresResource.ListWindowRequest.CollectionEnum |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
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.
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 |
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
ResultsAbove
The preferred number of scores to return above the player's score. More scores may be returned if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the top. Must be less than or equal to maxResults.
Declaration
public virtual Nullable<int> ResultsAbove { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
ReturnTopIfAbsent
True if the top scores should be returned when the player is not in the leaderboard. Defaults to true.
Declaration
public virtual Nullable<bool> ReturnTopIfAbsent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Boolean> |
TimeSpan
The time span for the scores and ranks you're requesting.
Declaration
public virtual ScoresResource.ListWindowRequest.TimeSpanEnum TimeSpan { get; }
Property Value
| Type | Description |
|---|---|
| ScoresResource.ListWindowRequest.TimeSpanEnum |
Methods
InitParameters()
Initializes ListWindow parameter list.
Declaration
protected override void InitParameters()