v2.0.0
Latest
2021.3+
Class LeaderboardEntry
LeaderboardEntry model
Namespace: Unity.Services.Leaderboards.Models
Syntax
[Preserve]
public class LeaderboardEntryConstructors
LeaderboardEntry(String, String, Int32, Double, String, DateTime, String)
Creates an instance of LeaderboardEntry.
Declaration
[Preserve]
public LeaderboardEntry(string playerId, string playerName, int rank, double score, string tier = null, DateTime updatedTime = default(DateTime), string metadata = null)Parameters
| Type | Name | Description |
|---|---|---|
| String | playerId | playerId param |
| String | playerName | playerName param |
| Int32 | rank | rank param |
| Double | score | score param |
| String | tier | tier param |
| DateTime | updatedTime | updatedTime param |
| String | metadata | metadata param |
Properties
Metadata
Parameter metadata of LeaderboardEntry
Declaration
[Preserve]
public string Metadata { get; }Property Value
| Type | Description |
|---|---|
| String |
PlayerId
Parameter playerId of LeaderboardEntry
Declaration
[Preserve]
public string PlayerId { get; }Property Value
| Type | Description |
|---|---|
| String |
PlayerName
Parameter playerName of LeaderboardEntry
Declaration
[Preserve]
public string PlayerName { get; }Property Value
| Type | Description |
|---|---|
| String |
Rank
Parameter rank of LeaderboardEntry
Declaration
[Preserve]
public int Rank { get; }Property Value
| Type | Description |
|---|---|
| Int32 |
Score
Parameter score of LeaderboardEntry
Declaration
[Preserve]
public double Score { get; }Property Value
| Type | Description |
|---|---|
| Double |
Tier
Parameter tier of LeaderboardEntry
Declaration
[Preserve]
public string Tier { get; }Property Value
| Type | Description |
|---|---|
| String |
UpdatedTime
Parameter updatedTime of LeaderboardEntry
Declaration
[Preserve]
public DateTime UpdatedTime { get; }Property Value
| Type | Description |
|---|---|
| DateTime |