Information for a user who submitted a score to the leaderboard.

interface UserRecord {
    globalExactRank?: number;
    globalRankPercentile: number;
    score: number;
    snapchatUser: SnapchatUser;
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
}

Hierarchy (view full)

Properties

globalExactRank?: number

The numerical rank of the user in the global leaderboard.

globalRankPercentile: number

The percentile rank of the user in the global leaderboard.

score: number

The exact score of the user.

snapchatUser: SnapchatUser

The user which submitted the score. Display name and user name will not be available for global users.

Methods

  • Returns true if the object matches or derives from the passed in type.

    Parameters

    • type: string

    Returns boolean

  • Returns true if this object is the same as other. Useful for checking if two references point to the same thing.

    Parameters

    Returns boolean