PlayerRanking

data class PlayerRanking(val clan: PlayerRankingClan, val attackWins: Int, val defenseWins: Int, val tag: String, val name: String, val expLevel: Int, val rank: Int, val previousRank: Int, val trophies: Int)

Represents the PlayerRanking model of the Clash of Clans API. The PlayerRanking data class stores information about a player's ranking.

Constructors

Link copied to clipboard
constructor(clan: PlayerRankingClan, attackWins: Int, defenseWins: Int, tag: String, name: String, expLevel: Int, rank: Int, previousRank: Int, trophies: Int)

Properties

Link copied to clipboard

The total number of attack wins achieved by the player.

Link copied to clipboard

Information about the player's clan and its ranking.

Link copied to clipboard

The total number of defense wins achieved by the player.

Link copied to clipboard

The experience level of the player.

Link copied to clipboard

The name of the player.

Link copied to clipboard

The previous rank of the player in the rankings.

Link copied to clipboard
val rank: Int

The current rank of the player in the rankings.

Link copied to clipboard
val tag: String

The tag of the player.

Link copied to clipboard

The current number of trophies earned by the player.