Raids

Clan Capital raid weekend logs, districts, attacks, and member totals.

Raid Log Entry

struct clashy.RaidLogEntry

RaidLogEntry is one Clan Capital raid weekend log entry.

State

string json: state

State is the raid weekend state.

TotalLoot

int json: capitalTotalLoot

TotalLoot is the clan's total capital gold looted.

CompletedRaidCount

int json: raidsCompleted

CompletedRaidCount is the number of completed raids.

AttackCount

int json: totalAttacks

AttackCount is the total number of attacks used by the clan.

DestroyedDistrictCount

int json: enemyDistrictsDestroyed

DestroyedDistrictCount is the number of enemy districts destroyed.

OffensiveReward

int json: offensiveReward

OffensiveReward is the offensive raid medal reward.

DefensiveReward

int json: defensiveReward

DefensiveReward is the defensive raid medal reward.

StartTime

*Timestamp json: startTime

StartTime is when the raid weekend started.

EndTime

*Timestamp json: endTime

EndTime is when the raid weekend ended.

AttackLog

[]RaidClan json: attackLog

AttackLog contains raids made by the requested clan.

DefenseLog

[]RaidClan json: defenseLog

DefenseLog contains raids made against the requested clan.

Members

[]RaidMember json: members

Members contains member-level attack and loot totals.

Raid Clan

struct clashy.RaidClan

RaidClan describes one opposing clan entry in a raid attack or defense log.

Attack log entries use Attacker for the clan being attacked by the requested clan. Defense log entries use Defender for the clan that attacked the requested clan.

AttackCount

int json: attackCount

AttackCount is the number of attacks used in this raid.

DistrictCount

int json: districtCount

DistrictCount is the number of districts available.

DestroyedDistrictCount

int json: districtsDestroyed

DestroyedDistrictCount is the number of districts destroyed.

Districts

[]RaidDistrict json: districts

Districts contains district-level attack details.

Attacker

*struct { Tag string `json:"tag,omitempty"` Name string `json:"name,omitempty"` Level int `json:"level,omitempty"` } json: attacker

Attacker is set on attack-log entries.

Defender

*struct { Tag string `json:"tag,omitempty"` Name string `json:"name,omitempty"` Level int `json:"level,omitempty"` } json: defender

Defender is set on defense-log entries.

Raid District

struct clashy.RaidDistrict

RaidDistrict describes one district in a raid attack or defense log.

ID

int json: id

ID is the district identifier.

Name

string json: name

Name is the district display name.

HallLevel

int json: districtHallLevel

HallLevel is the district hall level.

Destruction

float64 json: destructionPercent

Destruction is the final destruction percentage for the district.

AttackCount

int json: attackCount

AttackCount is the number of attacks used against the district.

Looted

int json: totalLooted

Looted is the total capital gold looted from the district.

Attacks

[]RaidAttack json: attacks

Attacks contains individual attacks against the district.

Raid Attack

struct clashy.RaidAttack

RaidAttack is one attack against a Clan Capital district.

AttackerTag

string

AttackerTag can be populated by callers that join attacks to raid members.

AttackerName

string

AttackerName can be populated by callers that join attacks to raid members.

Stars

int json: stars

Stars is the star count earned by this district attack.

Destruction

float64 json: destructionPercent

Destruction is the destruction percentage earned by this district attack.

Raid Member

struct clashy.RaidMember

RaidMember is one clan member's contribution in a raid weekend.

Tag

string json: tag

Tag is the member's player tag.

Name

string json: name

Name is the member's display name.

AttackCount

int json: attacks

AttackCount is the number of attacks used.

AttackLimit

int json: attackLimit

AttackLimit is the normal attack limit.

BonusAttackLimit

int json: bonusAttackLimit

BonusAttackLimit is the number of bonus attacks available.

CapitalResourcesLooted

int json: capitalResourcesLooted

CapitalResourcesLooted is the capital gold looted by the member.

Capital District

struct clashy.CapitalDistrict

CapitalDistrict describes a clan capital district from clan and raid data.

ID

int json: id

ID is the district identifier.

Name

string json: name

Name is the district display name.

DistrictHallLevel

int json: districtHallLevel

DistrictHallLevel is the district hall level.

DestructionPercent

float64 json: destructionPercent

DestructionPercent is the destruction percentage in raid contexts.

AttackCount

int json: attackCount

AttackCount is the number of attacks used against the district.

Looted

int json: totalLooted

Looted is the total capital gold looted from the district.

Raid Log Entry Methods

clashy.RaidLogEntry.GetMember(tag: string) -> *RaidMember

GetMember returns the raid member with the provided tag.

Parameters:

tag (string)

Return type:
*RaidMember

Raid Clan Methods

clashy.RaidClan.Level() -> int

Level returns the attacker or defender clan level for this raid clan entry.

Return type:
int

clashy.RaidClan.Name() -> string

Name returns the attacker or defender name for this raid clan entry.

Return type:
string

clashy.RaidClan.Tag() -> string

Tag returns the attacker or defender tag for this raid clan entry.

Return type:
string