docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class LeaderboardVersionEntry

    LeaderboardVersionEntry

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

    Constructors

    LeaderboardVersionEntry(LeaderboardVersion, string, string, double, int, string)

    Initializes a new instance of the LeaderboardVersionEntry class.

    Declaration
    [Preserve]
    public LeaderboardVersionEntry(LeaderboardVersion version = null, string playerId = null, string playerName = null, double score = 0, int rank = 0, string tier = null)
    Parameters
    Type Name Description
    LeaderboardVersion version

    version (required).

    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

    _Version

    Gets or Sets _Version

    Declaration
    [DataMember(Name = "version", IsRequired = true, EmitDefaultValue = true)]
    [Preserve]
    public LeaderboardVersion _Version { get; set; }
    Property Value
    Type Description
    LeaderboardVersion
    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)