Clan

data class Clan(val warLeague: SimpleLeague, val capitalLeague: SimpleLeague, val memberList: List<ClanMember>, val tag: String, val warFrequency: WarFrequency, val clanLevel: Int, val warWinStreak: Int, val warWins: Int, val warTies: Int, val warLosses: Int, val clanPoints: Int, val requiredTownhallLevel: Int, val chatLanguage: Language?, val isFamilyFriendly: Boolean, val requiredTrophies: Int, val requiredBuilderBaseTrophies: Int, val isWarLogPublic: Boolean, val clanBuilderBasePoints: Int, val clanCapitalPoints: Int, val labels: List<Label>, val name: String, val location: Location?, val type: ClanType, val members: Int, val description: String, val clanCapital: ClanCapital, val badgeUrls: Badge)

Represents the Clan model of the Clash of Clans API. The Clan data class stores detailed information about a clan in the game.

Constructors

Link copied to clipboard
constructor(warLeague: SimpleLeague, capitalLeague: SimpleLeague, memberList: List<ClanMember>, tag: String, warFrequency: WarFrequency, clanLevel: Int, warWinStreak: Int, warWins: Int, warTies: Int, warLosses: Int, clanPoints: Int, requiredTownhallLevel: Int, chatLanguage: Language?, isFamilyFriendly: Boolean, requiredTrophies: Int, requiredBuilderBaseTrophies: Int, isWarLogPublic: Boolean, clanBuilderBasePoints: Int, clanCapitalPoints: Int, labels: List<Label>, name: String, location: Location?, type: ClanType, members: Int, description: String, clanCapital: ClanCapital, badgeUrls: Badge)

Properties

Link copied to clipboard

The badge URLs representing the clan's badge in different sizes.

Link copied to clipboard

The league information for the clan's capital.

Link copied to clipboard

The language used for clan chat.

Link copied to clipboard

The builder base points earned by the clan.

Link copied to clipboard

The information about the clan's capital.

Link copied to clipboard

The points earned by the clan's capital.

Link copied to clipboard

The level of the clan.

Link copied to clipboard

The total points earned by the clan.

Link copied to clipboard

The description of the clan.

Link copied to clipboard

A flag indicating if the clan is family-friendly.

Link copied to clipboard

A flag indicating if the clan's war log is public.

Link copied to clipboard

A list of Label objects categorizing the clan.

Link copied to clipboard

The location of the clan.

Link copied to clipboard

A list of ClanMember objects representing the clan's members.

Link copied to clipboard

The total number of clan members.

Link copied to clipboard

The name of the clan.

Link copied to clipboard

The minimum required builder base trophies to join the clan.

Link copied to clipboard

The minimum required town hall level to join the clan.

Link copied to clipboard

The minimum required trophies to join the clan.

Link copied to clipboard
val tag: String

The tag of the clan.

Link copied to clipboard

The type of the clan (open, invite-only, closed).

Link copied to clipboard

The frequency of clan wars.

Link copied to clipboard

The league information for clan wars.

Link copied to clipboard

The total number of war losses.

Link copied to clipboard

The total number of war ties.

Link copied to clipboard

The total number of war wins.

Link copied to clipboard

The current winning streak in clan wars.