Location

data class Location(val localizedName: String, val id: Int, val name: String, val isCountry: Boolean, val countryCode: String)

Represents the Location model of the Clash of Clans API. The Location data class stores information about a location.

Constructors

Link copied to clipboard
constructor(localizedName: String, id: Int, name: String, isCountry: Boolean, countryCode: String)

Properties

Link copied to clipboard

The country code of the location.

Link copied to clipboard
val id: Int

The unique identifier of the location.

Link copied to clipboard

A flag indicating whether the location is a country or not.

Link copied to clipboard

The localized name of the location.

Link copied to clipboard

The name of the location.