Class AddLeaderboardScore
AddLeaderboardScore model
Inherited Members
Namespace: Unity.Services.Leaderboards.Internal.Models
Assembly: Unity.Services.Leaderboards.dll
Syntax
[Preserve]
[DataContract(Name = "AddLeaderboardScore")]
public class AddLeaderboardScore
Constructors
AddLeaderboardScore(double, object, string)
Creates an instance of AddLeaderboardScore.
Declaration
[Preserve]
public AddLeaderboardScore(double score, object metadata = null, string versionId = null)
Parameters
Type | Name | Description |
---|---|---|
double | score | score param |
object | metadata | metadata param |
string | versionId | versionId param |
Properties
Metadata
Parameter metadata of AddLeaderboardScore
Declaration
[Preserve]
[DataMember(Name = "metadata", IsRequired = true, EmitDefaultValue = false)]
public object Metadata { get; }
Property Value
Type | Description |
---|---|
object |
Score
Parameter score of AddLeaderboardScore
Declaration
[Preserve]
[DataMember(Name = "score", IsRequired = true, EmitDefaultValue = true)]
public double Score { get; }
Property Value
Type | Description |
---|---|
double |
VersionId
Parameter versionId of AddLeaderboardScore
Declaration
[Preserve]
[DataMember(Name = "versionId", EmitDefaultValue = false)]
public string VersionId { get; }
Property Value
Type | Description |
---|---|
string |