ClanWarAttack

data class ClanWarAttack(val order: Int, val attackerTag: String, val defenderTag: String, val stars: Int, val destructionPercentage: Int, val duration: Int)

Represents the ClanWarAttack model of the Clash of Clans API. The ClanWarAttack data class stores information about an attack made during a clan war.

Constructors

Link copied to clipboard
constructor(order: Int, attackerTag: String, defenderTag: String, stars: Int, destructionPercentage: Int, duration: Int)

Properties

Link copied to clipboard

The tag of the player who launched the attack.

Link copied to clipboard

The tag of the opponent's base that was attacked.

Link copied to clipboard

The percentage of destruction achieved in the attack.

Link copied to clipboard

The duration of the attack in seconds.

Link copied to clipboard
val order: Int

The order in which the attack occurred during the war.

Link copied to clipboard
val stars: Int

The number of stars earned in the attack.