Village

Represents the Village model of the Clash of Clans API. The Village enum class defines the type of village: Home Village or Builder Base.

Entries

Link copied to clipboard
@SerializedName(value = "home")
HOME_VILLAGE

The Home Village.

Link copied to clipboard
@SerializedName(value = "builderBase")
BUILDER_BASE

The Builder Base.

Link copied to clipboard
@SerializedName(value = "clanCapital")
CLAN_CAPITAL

The Clan Capital.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Village

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.