PlayerItemLevel

data class PlayerItemLevel(val level: Int, val name: String, val maxLevel: Int, val village: Village, val superTroopIsActive: Boolean, val equipment: List<PlayerItemLevel>?)

Represents the PlayerItemLevel model of the Clash of Clans API. The PlayerItemLevel data class stores information about an item level of a player in the game.

Constructors

Link copied to clipboard
constructor(level: Int, name: String, maxLevel: Int, village: Village, superTroopIsActive: Boolean, equipment: List<PlayerItemLevel>?)

Properties

Link copied to clipboard

A list of PlayerItemLevel that represents equipments.

Link copied to clipboard
val level: Int

The current level of the item.

Link copied to clipboard

The maximum level that the item can reach.

Link copied to clipboard

The name of the item.

Link copied to clipboard

A flag indicating whether a super troop is active for the item.

Link copied to clipboard

The type of village associated with the item (Home Village or Builder Base).