WarClan

data class WarClan(val destructionPercentage: Float, val tag: String?, val name: String?, val badgeUrls: Badge, val clanLevel: Int, val attacks: Int, val stars: Int, val expEarned: Int, val members: List<ClanWarMember>?)

Represents the WarClan model of the Clash of Clans API.

Constructors

Link copied to clipboard
constructor(destructionPercentage: Float, tag: String?, name: String?, badgeUrls: Badge, clanLevel: Int, attacks: Int, stars: Int, expEarned: Int, members: List<ClanWarMember>?)

Properties

Link copied to clipboard

The total number of attacks.

Link copied to clipboard

The badge URLs representing the clan's badge in different sizes.

Link copied to clipboard

The level of the clan.

Link copied to clipboard

The overall destruction percentage achieved by the clan in the war.

Link copied to clipboard

The total amount of experience earned.

Link copied to clipboard

A list of ClanWarMember objects containing information about individual member's participation.

Link copied to clipboard
val name: String?

The name of the clan in the war.

Link copied to clipboard
val stars: Int

The total number of stars earned.

Link copied to clipboard
val tag: String?

The tag of the clan in the war.