District

data class District(val name: String, val id: Int, val districtHallLevel: Int)

Represents the District model of the Clash of Clans API. The District data class stores information about a district within a clan's capital.

Constructors

Link copied to clipboard
constructor(name: String, id: Int, districtHallLevel: Int)

Properties

Link copied to clipboard

The hall level of the district.

Link copied to clipboard
val id: Int

The unique identifier for the district.

Link copied to clipboard

The name of the district.