Class LeaderboardEntry
LeaderboardEntry
Inherited Members
Namespace: Unity.Services.Apis.Admin.Leaderboards
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "LeaderboardEntry")]
[Preserve]
public class LeaderboardEntry
Constructors
LeaderboardEntry(string, string, double, int, string)
Initializes a new instance of the Leaderboard
Declaration
[Preserve]
public LeaderboardEntry(string playerId = null, string playerName = null, double score = 0, int rank = 0, string tier = null)
Parameters
Type | Name | Description |
---|---|---|
string | playerId | playerId (required). |
string | playerName | playerName (required). |
double | score | score (required). |
int | rank | Rank of the score on the leaderboard, or the rank within the bucket if the leaderboard is bucketed. (required). |
string | tier | tier. |
Properties
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
Rank of the score on the leaderboard, or the rank within the bucket if the leaderboard is bucketed.
Declaration
[DataMember(Name = "rank", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Rank { get; set; }
Property Value
Type | Description |
---|---|
int | Rank of the score on the leaderboard, or the rank within the bucket if the leaderboard is bucketed. |
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 |