clan

package
v0.0.0-...-6698619 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Attack

type Attack struct {
	AttackerTag           *string `json:"attackerTag,omitempty"`
	DefenderTag           *string `json:"defenderTag,omitempty"`
	Stars                 *int64  `json:"stars,omitempty"`
	DestructionPercentage *int64  `json:"destructionPercentage,omitempty"`
	Order                 *int64  `json:"order,omitempty"`
	Duration              *int64  `json:"duration,omitempty"`
}

type BadgeUrls

type BadgeUrls struct {
	Small  string `json:"small,omitempty"`
	Large  string `json:"large,omitempty"`
	Medium string `json:"medium,omitempty"`
}

type ChatLanguage

type ChatLanguage struct {
	ID           int64  `json:"id,omitempty"`
	Name         string `json:"name,omitempty"`
	LanguageCode string `json:"languageCode,omitempty"`
}

type Clan

type Clan struct {
	BadgeUrls              BadgeUrls    `json:"badgeUrls"`
	ChatLanguage           ChatLanguage `json:"chatLanguage,omitempty"`
	ClanLevel              int64        `json:"clanLevel"`
	ClanPoints             int64        `json:"clanPoints"`
	ClanVersusPoints       int64        `json:"clanVersusPoints"`
	Description            string       `json:"description"`
	IsWarLogPublic         bool         `json:"isWarLogPublic"`
	Location               Location     `json:"location"`
	MemberList             []ClanMember `json:"memberList"`
	Members                int64        `json:"members"`
	Name                   string       `json:"name"`
	RequiredTrophies       int64        `json:"requiredTrophies"`
	RequiredVersusTrophies int64        `json:"requiredVersusTrophies,omitempty"`
	RequiredTownhallLevel  int64        `json:"requiredTownhallLevel,omitempty"`
	Tag                    string       `json:"tag"`
	Type                   string       `json:"type"`
	WarFrequency           string       `json:"warFrequency"`
	WarLosses              int64        `json:"warLosses"`
	WarTies                int64        `json:"warTies"`
	WarWinStreak           int64        `json:"warWinStreak"`
	WarWins                int64        `json:"warWins"`
	WarLeague              WarLeague    `json:"warLeague,omitempty"`
	Labels                 []Label      `json:"labels,omitempty"`
}

type ClanList

type ClanList struct {
	Clans  []Clan `json:"items,omitempty"`
	Paging struct {
		Cursors struct {
		} `json:"cursors,omitempty"`
	} `json:"paging,omitempty"`
}

type ClanMember

type ClanMember struct {
	Tag      string `json:"tag,omitempty"`
	Name     string `json:"name,omitempty"`
	Role     Role   `json:"role,omitempty"`
	ExpLevel int64  `json:"expLevel,omitempty"`
	League   struct {
		ID       int64  `json:"id,omitempty"`
		Name     string `json:"name,omitempty"`
		IconUrls struct {
			Small  *string `json:"small,omitempty"`
			Tiny   *string `json:"tiny,omitempty"`
			Medium *string `json:"medium,omitempty"`
		} `json:"iconUrls,omitempty"`
	} `json:"league,omitempty"`
	Trophies          int64 `json:"trophies,omitempty"`
	VersusTrophies    int64 `json:"versusTrophies,omitempty"`
	ClanRank          int64 `json:"clanRank,omitempty"`
	PreviousClanRank  int64 `json:"previousClanRank,omitempty"`
	Donations         int64 `json:"donations,omitempty"`
	DonationsReceived int64 `json:"donationsReceived,omitempty"`
}

type CurrentWar

type CurrentWar struct {
	State                string  `json:"state,omitempty"`
	TeamSize             int64   `json:"teamSize,omitempty"`
	PreparationStartTime string  `json:"preparationStartTime,omitempty"`
	StartTime            string  `json:"startTime,omitempty"`
	EndTime              string  `json:"endTime,omitempty"`
	Clan                 WarClan `json:"clan,omitempty"`
	Opponent             WarClan `json:"opponent,omitempty"`
}

type IconUrls

type IconUrls struct {
	Small  string `json:"small,omitempty"`
	Tiny   string `json:"tiny,omitempty"`
	Medium string `json:"medium,omitempty"`
}

type Label

type Label struct {
	ID       int64    `json:"id,omitempty"`
	Name     string   `json:"name,omitempty"`
	IconUrls IconUrls `json:"iconUrls,omitempty"`
}

type Location

type Location struct {
	ID          int64  `json:"id,omitempty"`
	Name        string `json:"name,omitempty"`
	IsCountry   bool   `json:"isCountry,omitempty"`
	CountryCode string `json:"countryCode,omitempty"`
}

type MemberList

type MemberList struct {
	Members []ClanMember `json:"items,omitempty"`
	Paging  struct {
		Cursors struct {
		} `json:"cursors,omitempty"`
	} `json:"paging,omitempty"`
}

type Result

type Result string
const (
	Lose Result = "lose"
	Tie  Result = "tie"
	Win  Result = "win"
)

type Role

type Role string
const (
	Admin    Role = "admin"
	CoLeader Role = "coLeader"
	Leader   Role = "leader"
	Member   Role = "member"
)

type War

type War struct {
	Result   Result `json:"result"`
	EndTime  string `json:"endTime,omitempty"`
	TeamSize int64  `json:"teamSize,omitempty"`
	Clan     Clan   `json:"clan,omitempty"`
	Opponent Clan   `json:"opponent,omitempty"`
}

type WarClan

type WarClan struct {
	Tag                   string      `json:"tag,omitempty"`
	Name                  string      `json:"name,omitempty"`
	BadgeUrls             BadgeUrls   `json:"badgeUrls,omitempty"`
	ClanLevel             int64       `json:"clanLevel,omitempty"`
	Attacks               int64       `json:"attacks,omitempty"`
	Stars                 int64       `json:"stars,omitempty"`
	DestructionPercentage float64     `json:"destructionPercentage,omitempty"`
	Members               []WarMember `json:"members,omitempty"`
}

type WarLeague

type WarLeague struct {
	ID   int64  `json:"id,omitempty"`
	Name string `json:"name,omitempty"`
}

type WarLog

type WarLog struct {
	Wars   []War `json:"items,omitempty"`
	Paging struct {
		Cursors struct {
		} `json:"cursors,omitempty"`
	} `json:"paging,omitempty"`
}

type WarMember

type WarMember struct {
	Tag                string   `json:"tag,omitempty"`
	Name               string   `json:"name,omitempty"`
	TownhallLevel      int64    `json:"townhallLevel,omitempty"`
	MapPosition        int64    `json:"mapPosition,omitempty"`
	OpponentAttacks    int64    `json:"opponentAttacks,omitempty"`
	BestOpponentAttack Attack   `json:"bestOpponentAttack,omitempty"`
	Attacks            []Attack `json:"attacks,omitempty"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL