v2.0.0
Latest
2021.3+

Class LeaderboardEntry

LeaderboardEntry model

Inheritance
LeaderboardEntry
Namespace: Unity.Services.Leaderboards.Models
Syntax
[Preserve]
public class LeaderboardEntry

Constructors

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
TypeNameDescription
StringplayerId

playerId param

StringplayerName

playerName param

Int32rank

rank param

Doublescore

score param

Stringtier

tier param

DateTimeupdatedTime

updatedTime param

Stringmetadata

metadata param

Properties

Metadata

Parameter metadata of LeaderboardEntry

Declaration
[Preserve]
public string Metadata { get; }
Property Value
TypeDescription
String

PlayerId

Parameter playerId of LeaderboardEntry

Declaration
[Preserve]
public string PlayerId { get; }
Property Value
TypeDescription
String

PlayerName

Parameter playerName of LeaderboardEntry

Declaration
[Preserve]
public string PlayerName { get; }
Property Value
TypeDescription
String

Rank

Parameter rank of LeaderboardEntry

Declaration
[Preserve]
public int Rank { get; }
Property Value
TypeDescription
Int32

Score

Parameter score of LeaderboardEntry

Declaration
[Preserve]
public double Score { get; }
Property Value
TypeDescription
Double

Tier

Parameter tier of LeaderboardEntry

Declaration
[Preserve]
public string Tier { get; }
Property Value
TypeDescription
String

UpdatedTime

Parameter updatedTime of LeaderboardEntry

Declaration
[Preserve]
public DateTime UpdatedTime { get; }
Property Value
TypeDescription
DateTime