Skip to main content

Class: LeaderboardPlayer

Representing a leaderboard player.

Hierarchy

  • default

    LeaderboardPlayer

Methods

getID

getID(): string

Get the player's ID.

Example

player.getID(); // '5458282176661711'

Returns

string

Player ID

Inherited from

Player.getID

Defined in

models/player.ts:29


getName

getName(): string

Get the player's name.

Example

player.getName(); // 'Alpha Omega'

Returns

string

Player name

Inherited from

Player.getName

Defined in

models/player.ts:41


getPhoto

getPhoto(): string

Get the player's photo.

Example

player.getPhoto(); // A CORS supported URL to user's photo

Returns

string

URL of player photo

Inherited from

Player.getPhoto

Defined in

models/player.ts:55


hasPlayed

hasPlayed(): true

Get info about if the player has played the game.

Returns

true

Always true

Overrides

Player.hasPlayed

Defined in

models/leaderboard-player.ts:12