Class LeaderboardVersionEntry
LeaderboardVersionEntry
Inherited Members
Namespace: Unity.Services.Apis.Leaderboards
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "LeaderboardVersionEntry")]
[Preserve]
public class LeaderboardVersionEntry
Constructors
LeaderboardVersionEntry(LeaderboardVersion, string, string, int, double, string, string)
Initializes a new instance of the Leaderboard
Declaration
[Preserve]
public LeaderboardVersionEntry(LeaderboardVersion version = null, string playerId = null, string playerName = null, int rank = 0, double score = 0, string tier = null, string metadata = null)
Parameters
Type | Name | Description |
---|---|---|
Leaderboard |
version | version. |
string | playerId | playerId (required). |
string | playerName | playerName (required). |
int | rank | rank (required). |
double | score | score (required). |
string | tier | tier. |
string | metadata | metadata. |
Properties
Metadata
Gets or Sets Metadata
Declaration
[DataMember(Name = "metadata", EmitDefaultValue = false)]
[Preserve]
public string Metadata { get; set; }
Property Value
Type | Description |
---|---|
string |
PlayerId
Gets or Sets PlayerId
Declaration
[DataMember(Name = "playerId", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string PlayerId { get; set; }
Property Value
Type | Description |
---|---|
string |
PlayerName
Gets or Sets PlayerName
Declaration
[DataMember(Name = "playerName", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string PlayerName { get; set; }
Property Value
Type | Description |
---|---|
string |
Rank
Gets or Sets Rank
Declaration
[DataMember(Name = "rank", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Rank { get; set; }
Property Value
Type | Description |
---|---|
int |
Score
Gets or Sets Score
Declaration
[DataMember(Name = "score", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public double Score { get; set; }
Property Value
Type | Description |
---|---|
double |
Tier
Gets or Sets Tier
Declaration
[DataMember(Name = "tier", EmitDefaultValue = false)]
[Preserve]
public string Tier { get; set; }
Property Value
Type | Description |
---|---|
string |
_Version
Gets or Sets _Version
Declaration
[DataMember(Name = "version", EmitDefaultValue = false)]
[Preserve]
public LeaderboardVersion _Version { get; set; }
Property Value
Type | Description |
---|---|
Leaderboard |