WarState

Represents the WarState enum class of the Clash of Clans API.

Entries

Link copied to clipboard
@SerializedName(value = "clanNotFound")
CLAN_NOT_FOUND

The clan was not found in the war state.

Link copied to clipboard
@SerializedName(value = "accessDenied")
ACCESS_DENIED

The access to the war state was denied (Private war log).

Link copied to clipboard
@SerializedName(value = "notInWar")
NOT_IN_WAR

The clan is not currently in a war.

Link copied to clipboard
@SerializedName(value = "inMatchmaking")
IN_MATCHMAKING

The clan is in the matchmaking process, searching for an opponent.

Link copied to clipboard
@SerializedName(value = "enterWar")
ENTER_WAR

The clan is about to enter the war.

Link copied to clipboard
@SerializedName(value = "matched")
MATCHED

The clan has been matched with an opponent.

Link copied to clipboard
@SerializedName(value = "preparation")
PREPARATION

The clan is in the preparation phase of the war.

Link copied to clipboard
@SerializedName(value = "war")
WAR

The clan is currently in the war phase.

Link copied to clipboard
@SerializedName(value = "inWar")
IN_WAR

The clan is participating in an ongoing war.

Link copied to clipboard
@SerializedName(value = "ended")
ENDED

The war has ended for the clan.

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): WarState

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.