Class LeaderboardVersionEntry
LeaderboardVersionEntry model
Inherited Members
Namespace: Unity.Services.Leaderboards.Models
Assembly: Unity.Services.Leaderboards.dll
Syntax
[Preserve]
[DataContract(Name = "LeaderboardVersionEntry")]
public class LeaderboardVersionEntry
Constructors
LeaderboardVersionEntry(string, string, int, double, LeaderboardVersion)
Creates an instance of LeaderboardVersionEntry.
Declaration
[Preserve]
public LeaderboardVersionEntry(string playerId, string playerName, int rank, double score, LeaderboardVersion version = null)
Parameters
Type | Name | Description |
---|---|---|
string | playerId | playerId param |
string | playerName | playerName param |
int | rank | rank param |
double | score | score param |
LeaderboardVersion | version | version param |
Properties
PlayerId
Parameter playerId of LeaderboardVersionEntry
Declaration
[Preserve]
[DataMember(Name = "playerId", IsRequired = true, EmitDefaultValue = true)]
public string PlayerId { get; }
Property Value
Type | Description |
---|---|
string |
PlayerName
Parameter playerName of LeaderboardVersionEntry
Declaration
[Preserve]
[DataMember(Name = "playerName", IsRequired = true, EmitDefaultValue = true)]
public string PlayerName { get; }
Property Value
Type | Description |
---|---|
string |
Rank
Parameter rank of LeaderboardVersionEntry
Declaration
[Preserve]
[DataMember(Name = "rank", IsRequired = true, EmitDefaultValue = true)]
public int Rank { get; }
Property Value
Type | Description |
---|---|
int |
Score
Parameter score of LeaderboardVersionEntry
Declaration
[Preserve]
[DataMember(Name = "score", IsRequired = true, EmitDefaultValue = true)]
public double Score { get; }
Property Value
Type | Description |
---|---|
double |
Version
Parameter version of LeaderboardVersionEntry
Declaration
[Preserve]
[DataMember(Name = "version", EmitDefaultValue = false)]
public LeaderboardVersion Version { get; }
Property Value
Type | Description |
---|---|
LeaderboardVersion |