Player
Represents the Player model of the Clash of Clans API. The Player data class stores comprehensive information about a player in the game.
Constructors
Properties
A list of player's achievements and their progress.
The total number of attack wins achieved by the player.
The highest number of builder base trophies earned by the player.
The highest number of trophies ever earned by the player.
The highest number of versus trophies earned by the player.
Information about the player's builder base league.
The current number of builder base trophies earned by the player.
The level of the player's builder hall.
Information about the player's clan.
The total number of contributions made by the player to the clan capital.
The total number of defense wins achieved by the player.
The total number of troops received by the player as donations.
A list of player's heroes and their levels.
Information about the player's legend league statistics.
Information about the player's house elements.
The role of the player in their clan (e.g., Member, Leader, etc.).
A list of player's spells and their levels.
The level of the player's town hall.
The level of the player's town hall weapon (if available).
A list of player's troops and their levels.
The war preference status of the player (In or Out).