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 ScoresResource.SubmitRequest : GamesBaseServiceRequest<PlayerScoreResponse>, IClientServiceRequest<PlayerScoreResponse>, IClientServiceRequest
Constructors
SubmitRequest(IClientService, string, long)
Constructs a new Submit request.
Declaration
public SubmitRequest(IClientService service, string leaderboardId, long score)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
string | leaderboardId | |
long | score |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Language
The preferred language to use for strings returned by this method.
Declaration
[RequestParameter("language", RequestParameterType.Query)]
public virtual string Language { get; set; }
Property Value
Type | Description |
---|---|
string |
LeaderboardId
The ID of the leaderboard.
Declaration
[RequestParameter("leaderboardId", RequestParameterType.Path)]
public virtual string LeaderboardId { get; }
Property Value
Type | Description |
---|---|
string |
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Score
Required. 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
[RequestParameter("score", RequestParameterType.Query)]
public virtual long Score { get; }
Property Value
Type | Description |
---|---|
long |
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
[RequestParameter("scoreTag", RequestParameterType.Query)]
public virtual string ScoreTag { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
InitParameters()
Initializes Submit parameter list.
Declaration
protected override void InitParameters()