-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathcontests.go
57 lines (54 loc) · 1.4 KB
/
contests.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package structs
// ContestType is a single contest type.
type ContestType struct {
BerryFlavor struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"berry_flavor"`
ID int `json:"id"`
Name string `json:"name"`
Names []struct {
Color string `json:"color"`
Language struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"language"`
Name string `json:"name"`
} `json:"names"`
}
// ContestEffect is a single contest effect.
type ContestEffect struct {
Appeal int `json:"appeal"`
EffectEntries []struct {
Effect string `json:"effect"`
Language struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"language"`
} `json:"effect_entries"`
FlavorTextEntries []struct {
FlavorText string `json:"flavor_text"`
Language struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"language"`
} `json:"flavor_text_entries"`
ID int `json:"id"`
Jam int `json:"jam"`
}
// SuperContestEffect is a single super contest effect.
type SuperContestEffect struct {
Appeal int `json:"appeal"`
FlavorTextEntries []struct {
FlavorText string `json:"flavor_text"`
Language struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"language"`
} `json:"flavor_text_entries"`
ID int `json:"id"`
Moves []struct {
Name string `json:"name"`
URL string `json:"url"`
} `json:"moves"`
}