docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LeaderboardEntry

    LeaderboardEntry model

    Inheritance
    object
    LeaderboardEntry
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Services.Leaderboards.Models
    Assembly: Unity.Services.Leaderboards.dll
    Syntax
    [Preserve]
    [DataContract(Name = "LeaderboardEntry")]
    public class LeaderboardEntry

    Constructors

    LeaderboardEntry(string, string, int, 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, string metadata = null)
    Parameters
    Type Name Description
    string playerId

    playerId param

    string playerName

    playerName param

    int 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]
    [DataMember(Name = "metadata", EmitDefaultValue = false)]
    public string Metadata { get; }
    Property Value
    Type Description
    string

    PlayerId

    Parameter playerId of LeaderboardEntry

    Declaration
    [Preserve]
    [DataMember(Name = "playerId", IsRequired = true, EmitDefaultValue = true)]
    public string PlayerId { get; }
    Property Value
    Type Description
    string

    PlayerName

    Parameter playerName of LeaderboardEntry

    Declaration
    [Preserve]
    [DataMember(Name = "playerName", IsRequired = true, EmitDefaultValue = true)]
    public string PlayerName { get; }
    Property Value
    Type Description
    string

    Rank

    Parameter rank of LeaderboardEntry

    Declaration
    [Preserve]
    [DataMember(Name = "rank", IsRequired = true, EmitDefaultValue = true)]
    public int Rank { get; }
    Property Value
    Type Description
    int

    Score

    Parameter score of LeaderboardEntry

    Declaration
    [Preserve]
    [DataMember(Name = "score", IsRequired = true, EmitDefaultValue = true)]
    public double Score { get; }
    Property Value
    Type Description
    double

    Tier

    Parameter tier of LeaderboardEntry

    Declaration
    [Preserve]
    [DataMember(Name = "tier", EmitDefaultValue = false)]
    public string Tier { get; }
    Property Value
    Type Description
    string

    UpdatedTime

    Parameter updatedTime of LeaderboardEntry

    Declaration
    [Preserve]
    [DataMember(Name = "updatedTime", EmitDefaultValue = false)]
    public DateTime UpdatedTime { get; }
    Property Value
    Type Description
    DateTime
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)