Locations And Rankings

Locations, leagues, seasons, labels, and ranked clan/player wrappers.

Location

struct clashy.Location

Location is a country or global location used by ranking endpoints.

ID

int json: id

ID is the numeric location identifier.

Name

string json: name

Name is the English location name.

IsCountry

bool json: isCountry

IsCountry reports whether the location is a country.

CountryCode

string json: countryCode

CountryCode is the ISO-style country code when the location is a country.

Localised

string json: localizedName

Localised is the API-provided localized display name.

League

struct clashy.League

League is a league, war league, builder-base league, or capital league.

ID

int json: id

ID is the numeric league identifier.

Name

string json: name

Name is the league display name.

Icon

*Icon json: iconUrls

Icon contains league icon URLs when the endpoint provides them.

Season

struct clashy.Season

Season describes one ranked season placement.

ID

string json: id

ID is the season identifier, usually YYYY-MM.

Rank

int json: rank

Rank is the player's season rank.

Trophies

int json: trophies

Trophies is the player's trophy count for the season.

Label

struct clashy.Label

Label is a player or clan label.

ID

int json: id

ID is the label identifier.

Name

string json: name

Name is the label display name.

Icon

*Icon json: iconUrls

Icon contains label icon URLs.

Icon

struct clashy.Icon

Icon contains small icon URLs returned for leagues and labels.

Small

string json: small

Small is the small icon URL.

Medium

string json: medium

Medium is the medium icon URL.

Tiny

string json: tiny

Tiny is the tiny icon URL.

Badge

struct clashy.Badge

Badge contains the common small, medium, and large image URLs for clan badges.

Small

string json: small

Small is the small badge image URL.

Medium

string json: medium

Medium is the medium badge image URL.

Large

string json: large

Large is the large badge image URL.

Gold Pass Season

struct clashy.GoldPassSeason

GoldPassSeason describes the current Gold Pass season.

StartTime

*Timestamp json: startTime

StartTime is when the Gold Pass season starts.

EndTime

*Timestamp json: endTime

EndTime is when the Gold Pass season ends.

Ranked Clan

struct clashy.RankedClan

RankedClan is a clan ranking entry.

Clan

Clan

Rank

int json: rank

Rank is the current ranking position.

PreviousRank

int json: previousRank

PreviousRank is the previous ranking position when the API provides it.

Ranked Player

struct clashy.RankedPlayer

RankedPlayer is a player ranking entry.

Player

Player

Rank

int json: rank

Rank is the current ranking position.

PreviousRank

int json: previousRank

PreviousRank is the previous ranking position when the API provides it.