You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
128 lines
3.6 KiB
128 lines
3.6 KiB
package main |
|
|
|
// RealmSearch struct is generated from https://us.api.blizzard.com/data/wow/connected-realm/index |
|
type RealmSearch struct { |
|
Page int `json:"page"` |
|
PageSize int `json:"pageSize"` |
|
MaxPageSize int `json:"maxPageSize"` |
|
PageCount int `json:"pageCount"` |
|
Results []struct { |
|
Key struct { |
|
Href string `json:"href"` |
|
} `json:"key"` |
|
Data struct { |
|
Realms []struct { |
|
IsTournament bool `json:"is_tournament"` |
|
Timezone string `json:"timezone"` |
|
Name struct { |
|
ItIT string `json:"it_IT"` |
|
RuRU string `json:"ru_RU"` |
|
EnGB string `json:"en_GB"` |
|
ZhTW string `json:"zh_TW"` |
|
KoKR string `json:"ko_KR"` |
|
EnUS string `json:"en_US"` |
|
EsMX string `json:"es_MX"` |
|
PtBR string `json:"pt_BR"` |
|
EsES string `json:"es_ES"` |
|
ZhCN string `json:"zh_CN"` |
|
FrFR string `json:"fr_FR"` |
|
DeDE string `json:"de_DE"` |
|
} `json:"name"` |
|
ID int `json:"id"` |
|
Region struct { |
|
Name struct { |
|
ItIT string `json:"it_IT"` |
|
RuRU string `json:"ru_RU"` |
|
EnGB string `json:"en_GB"` |
|
ZhTW string `json:"zh_TW"` |
|
KoKR string `json:"ko_KR"` |
|
EnUS string `json:"en_US"` |
|
EsMX string `json:"es_MX"` |
|
PtBR string `json:"pt_BR"` |
|
EsES string `json:"es_ES"` |
|
ZhCN string `json:"zh_CN"` |
|
FrFR string `json:"fr_FR"` |
|
DeDE string `json:"de_DE"` |
|
} `json:"name"` |
|
ID int `json:"id"` |
|
} `json:"region"` |
|
Category struct { |
|
ItIT string `json:"it_IT"` |
|
RuRU string `json:"ru_RU"` |
|
EnGB string `json:"en_GB"` |
|
ZhTW string `json:"zh_TW"` |
|
KoKR string `json:"ko_KR"` |
|
EnUS string `json:"en_US"` |
|
EsMX string `json:"es_MX"` |
|
PtBR string `json:"pt_BR"` |
|
EsES string `json:"es_ES"` |
|
ZhCN string `json:"zh_CN"` |
|
FrFR string `json:"fr_FR"` |
|
DeDE string `json:"de_DE"` |
|
} `json:"category"` |
|
Locale string `json:"locale"` |
|
Type struct { |
|
Name struct { |
|
ItIT string `json:"it_IT"` |
|
RuRU string `json:"ru_RU"` |
|
EnGB string `json:"en_GB"` |
|
ZhTW string `json:"zh_TW"` |
|
KoKR string `json:"ko_KR"` |
|
EnUS string `json:"en_US"` |
|
EsMX string `json:"es_MX"` |
|
PtBR string `json:"pt_BR"` |
|
EsES string `json:"es_ES"` |
|
ZhCN string `json:"zh_CN"` |
|
FrFR string `json:"fr_FR"` |
|
DeDE string `json:"de_DE"` |
|
} `json:"name"` |
|
Type string `json:"type"` |
|
} `json:"type"` |
|
Slug string `json:"slug"` |
|
} `json:"realms"` |
|
ID int `json:"id"` |
|
HasQueue bool `json:"has_queue"` |
|
Status struct { |
|
Name struct { |
|
ItIT string `json:"it_IT"` |
|
RuRU string `json:"ru_RU"` |
|
EnGB string `json:"en_GB"` |
|
ZhTW string `json:"zh_TW"` |
|
KoKR string `json:"ko_KR"` |
|
EnUS string `json:"en_US"` |
|
EsMX string `json:"es_MX"` |
|
PtBR string `json:"pt_BR"` |
|
EsES string `json:"es_ES"` |
|
ZhCN string `json:"zh_CN"` |
|
FrFR string `json:"fr_FR"` |
|
DeDE string `json:"de_DE"` |
|
} `json:"name"` |
|
Type string `json:"type"` |
|
} `json:"status"` |
|
Population struct { |
|
Name struct { |
|
ItIT string `json:"it_IT"` |
|
RuRU string `json:"ru_RU"` |
|
EnGB string `json:"en_GB"` |
|
ZhTW string `json:"zh_TW"` |
|
KoKR string `json:"ko_KR"` |
|
EnUS string `json:"en_US"` |
|
EsMX string `json:"es_MX"` |
|
PtBR string `json:"pt_BR"` |
|
EsES string `json:"es_ES"` |
|
ZhCN string `json:"zh_CN"` |
|
FrFR string `json:"fr_FR"` |
|
DeDE string `json:"de_DE"` |
|
} `json:"name"` |
|
Type string `json:"type"` |
|
} `json:"population"` |
|
} `json:"data"` |
|
} `json:"results"` |
|
} |
|
|
|
// Realm is a parsed realm from the API |
|
type Realm struct { |
|
ID int |
|
Name string |
|
Up bool |
|
} |