Class ScoresResource.SubmitRequest
Submits a score to the specified leaderboard.
Inheritance
Inherited Members
Namespace: Google.Apis.Games.v1
Assembly: Google.Apis.Games.v1.dll
Syntax
public class SubmitRequest : GamesBaseServiceRequest<PlayerScoreResponse>, IClientServiceRequest<PlayerScoreResponse>, IClientServiceRequest
Constructors
SubmitRequest(IClientService, String, Int64)
Constructs a new Submit request.
Declaration
public SubmitRequest(IClientService service, string leaderboardId, long score)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service | |
| System.String | leaderboardId | |
| System.Int64 | score |
Properties
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 |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Score
The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units.
Declaration
public virtual long Score { get; }
Property Value
| Type | Description |
|---|---|
| System.Int64 |
ScoreTag
Additional information about the score you're submitting. Values must contain no more than 64 URI-safe characters as defined by section 2.3 of RFC 3986.
Declaration
public virtual string ScoreTag { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String |
Methods
InitParameters()
Initializes Submit parameter list.
Declaration
protected override void InitParameters()