Class AddLeaderboardScore
AddLeaderboardScore
Inherited Members
Namespace: Unity.Services.Apis.Leaderboards
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "AddLeaderboardScore")]
[Preserve]
public class AddLeaderboardScore
Constructors
AddLeaderboardScore(double, object, string)
Initializes a new instance of the Add
Declaration
[Preserve]
public AddLeaderboardScore(double score = 0, object metadata = null, string versionId = null)
Parameters
Type | Name | Description |
---|---|---|
double | score | score (required). |
object | metadata | metadata. |
string | versionId | versionId. |
Properties
Metadata
Gets or Sets Metadata
Declaration
[DataMember(Name = "metadata", EmitDefaultValue = false)]
[Preserve]
public object Metadata { get; set; }
Property Value
Type | Description |
---|---|
object |
Score
Gets or Sets Score
Declaration
[DataMember(Name = "score", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public double Score { get; set; }
Property Value
Type | Description |
---|---|
double |
VersionId
Gets or Sets VersionId
Declaration
[DataMember(Name = "versionId", EmitDefaultValue = false)]
[Preserve]
public string VersionId { get; set; }
Property Value
Type | Description |
---|---|
string |