ClanWar

data class ClanWar(val clan: WarClan, val teamSize: Int, val attacksPerMember: Int, val opponent: WarClan, val startTime: String?, val state: WarState, val endTime: String?, val preparationStartTime: String?)

Represents the ClanWar model of the Clash of Clans API.

Constructors

Link copied to clipboard
constructor(clan: WarClan, teamSize: Int, attacksPerMember: Int, opponent: WarClan, startTime: String?, state: WarState, endTime: String?, preparationStartTime: String?)

Properties

Link copied to clipboard

The number of attacks allowed per member in the war.

Link copied to clipboard

The information about the clan participating in the war.

Link copied to clipboard

The end time of the war in ISO 8601 date-time format.

Link copied to clipboard

The information about the opponent clan in the war.

Link copied to clipboard

The start time of the preparation phase in ISO 8601 date-time format.

Link copied to clipboard

The start time of the war in ISO 8601 date-time format.

Link copied to clipboard

The current state of the clan war.

Link copied to clipboard

The size of the team participating in the war.

Functions

Link copied to clipboard

Retrieves a list of clan attacks during the war, sorted by attack order.

Link copied to clipboard

Retrieves the clan member who launched the specified attack, if found.

Link copied to clipboard

Retrieves a list of clan members participating in the war, sorted by map position.