blob: b3279b86745d500f855ab785f625b2a218ac325a (
plain)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
|
package types
type JikanGenericPaginationEntity struct {
LastVisiblePage int `json:"last_visible_page"`
HasNextPage bool `json:"has_next_page"`
}
type JikanExtendedPaginationItems struct {
Count int `json:"count"`
Total int `json:"total"`
PerPage int `json:"per_page"`
}
type JikanExtendedPagination struct {
LastVisiblePage int `json:"last_visible_page"`
HasNextPage bool `json:"has_next_page"`
CurrentPage int `json:"current_page"`
Items JikanExtendedPaginationItems `json:"items"`
}
type JikanGenericTitleEntity struct {
Type string `json:"type"`
Title string `json:"title"`
}
type JikanGenericImageSizeEntity struct {
ImageURL string `json:"image_url,omitempty"`
SmallImageURL string `json:"small_image_url,omitempty"`
MediumImageURL string `json:"medium_image_url,omitempty"`
LargeImageURL string `json:"large_image_url,omitempty"`
MaximumImageURL string `json:"maximum_image_url,omitempty"`
}
type JikanGenericImageEntity struct {
JPG JikanGenericImageSizeEntity `json:"jpg"`
WebP JikanGenericImageSizeEntity `json:"webp,omitempty"`
}
type JikanGenericRelatedEntity struct {
MALID int `json:"mal_id"`
Type string `json:"type"`
URL string `json:"url"`
Name string `json:"name"`
}
type JikanGenericDate struct {
Day int `json:"day"`
Month int `json:"month"`
Year int `json:"year"`
}
type JikanGenericSchedule struct {
From JikanGenericDate `json:"from"`
To JikanGenericDate `json:"to"`
}
type JikanGenericRelation struct {
Relation string `json:"relation"`
Entry []JikanGenericRelatedEntity `json:"entry"`
}
type JikanGenericURL struct {
Name string `json:"name"`
URL string `json:"url"`
}
type JikanAiringSchedule struct {
From string `json:"from"`
To string `json:"to"`
Prop JikanGenericSchedule `json:"prop"`
String string `json:"string"`
}
type JikanBroadcastSchedule struct {
Day string `json:"day"`
Time string `json:"time"`
Timezone string `json:"timezone"`
String string `json:"string"`
}
type JikanAnimeTrailer struct {
YoutubeID string `json:"youtube_id"`
URL string `json:"url"`
EmbedURL string `json:"embed_url"`
Images JikanGenericImageEntity `json:"images"`
}
type JikanAnimeTheme struct {
Openings []string `json:"openings"`
Endings []string `json:"endings"`
}
type JikanSingleAnime struct {
MALID int `json:"mal_id"`
URL string `json:"url"`
Title string `json:"title"`
TitleEnglish string `json:"title_english"`
TitleJapanese string `json:"title_japanese"`
TitleSynonyms []string `json:"title_synonyms"`
Type string `json:"type"`
Source string `json:"source"`
Episodes int `json:"episodes"`
Status string `json:"status"`
Airing bool `json:"airing"`
Synopsis string `json:"synopsis"`
Score float64 `json:"score"`
ScoredBy int `json:"scored_by"`
Rank int `json:"rank"`
Popularity int `json:"popularity"`
Members int `json:"members"`
Favorites int `json:"favorites"`
Season string `json:"season"`
Year int `json:"year"`
Images JikanGenericImageEntity `json:"images"`
Trailer JikanAnimeTrailer `json:"trailer"`
Approved bool `json:"approved"`
Titles []JikanGenericTitleEntity `json:"titles"`
Aired JikanAiringSchedule `json:"aired"`
Duration string `json:"duration"`
Rating string `json:"rating"`
Background string `json:"background"`
Broadcast JikanBroadcastSchedule `json:"broadcast"`
Genres []JikanGenericRelatedEntity `json:"genres"`
ExplicitGenres []JikanGenericRelatedEntity `json:"explicit_genres"`
Themes []JikanGenericRelatedEntity `json:"themes"`
Demographics []JikanGenericRelatedEntity `json:"demographics"`
Producers []JikanGenericRelatedEntity `json:"producers"`
Licensors []JikanGenericRelatedEntity `json:"licensors"`
Studios []JikanGenericRelatedEntity `json:"studios"`
Relations []JikanGenericRelation `json:"relations"`
Theme JikanAnimeTheme `json:"theme"`
External []JikanGenericURL `json:"external"`
Streaming []JikanGenericURL `json:"streaming"`
}
type JikanAnimeResponse struct {
Data JikanSingleAnime `json:"data"`
}
type JikanAnimeSingleEpisode struct {
MALID int `json:"mal_id"`
URL string `json:"url"`
Title string `json:"title"`
TitleJapanese string `json:"title_japanese"`
TitleRomaji string `json:"title_romaji"`
Aired string `json:"aired"`
Score float64 `json:"score"`
Filler bool `json:"filler"`
Recap bool `json:"recap"`
ForumURL string `json:"forum_url"`
}
type JikanAnimeEpisodeResponse struct {
Pagination JikanGenericPaginationEntity `json:"pagination"`
Data []JikanAnimeSingleEpisode `json:"data"`
}
type JikanCharacterPerson struct {
MALID int `json:"mal_id"`
URL string `json:"url"`
Images JikanGenericImageEntity `json:"images"`
Name string `json:"name"`
}
type JikanSingleCharacter struct {
Character JikanCharacterPerson `json:"character"`
Role string `json:"role"`
VoiceActors []JikanVoiceActor `json:"voice_actors"`
}
type JikanVoiceActor struct {
Person JikanCharacterPerson `json:"person"`
Language string `json:"language"`
}
type JikanAnimeCharacterResponse struct {
Data []JikanSingleCharacter `json:"data"`
}
type JikanCharacterSimpleAnime struct {
MALID int `json:"mal_id"`
URL string `json:"url"`
Images JikanGenericImageEntity `json:"images"`
Title string `json:"title"`
}
type JikanCharacterAnimeEntry struct {
Role string `json:"role"`
Anime JikanCharacterSimpleAnime `json:"anime"`
}
type JikanFullCharacterData struct {
MALID int `json:"mal_id"`
URL string `json:"url"`
Images JikanGenericImageEntity `json:"images"`
Name string `json:"name"`
NameKanji string `json:"name_kanji"`
Nicknames []string `json:"nicknames"`
Favorites int `json:"favorites"`
About string `json:"about"`
Anime []JikanCharacterAnimeEntry `json:"anime"`
Voices []JikanVoiceActor `json:"voices"`
}
type JikanCharacterFullResponse struct {
Data JikanFullCharacterData `json:"data"`
}
type JikanGenre struct {
MALID int `json:"mal_id"`
Name string `json:"name"`
URL string `json:"url"`
Count int `json:"count"`
}
type JikanGenresResponse struct {
Data []JikanGenre `json:"data"`
}
type JikanAnimeSearchResponse struct {
Pagination JikanExtendedPagination `json:"pagination"`
Data []JikanSingleAnime `json:"data"`
}
type JikanSingleProducer struct {
MALID int `json:"mal_id"`
URL string `json:"url"`
Titles []JikanGenericTitleEntity `json:"titles"`
Images JikanGenericImageEntity `json:"images"`
Favorites int `json:"favorites"`
Count int `json:"count"`
Established string `json:"established"`
About string `json:"about"`
External []JikanGenericURL `json:"external,omitempty"`
}
type JikanProducersResponse struct {
Data []JikanSingleProducer `json:"data"`
Pagination JikanGenericPaginationEntity `json:"pagination"`
}
type JikanSingleProducerResponse struct {
Data JikanSingleProducer `json:"data"`
}
type JikanPersonVoiceRole struct {
Role string `json:"role"`
Anime JikanCharacterSimpleAnime `json:"anime"`
Character JikanCharacterPerson `json:"character"`
}
type JikanPersonAnimeCredit struct {
Position string `json:"position"`
Anime JikanCharacterSimpleAnime `json:"anime"`
}
type JikanPersonMangaCredit struct {
Position string `json:"position"`
Manga JikanCharacterSimpleAnime `json:"manga"`
}
type JikanFullPersonData struct {
MALID int `json:"mal_id"`
URL string `json:"url"`
WebsiteURL *string `json:"website_url"`
Images JikanGenericImageEntity `json:"images"`
Name string `json:"name"`
GivenName string `json:"given_name"`
FamilyName string `json:"family_name"`
AlternateNames []string `json:"alternate_names"`
Birthday *string `json:"birthday"`
Favorites int `json:"favorites"`
About string `json:"about"`
Anime []JikanPersonAnimeCredit `json:"anime"`
Manga []JikanPersonMangaCredit `json:"manga"`
Voices []JikanPersonVoiceRole `json:"voices"`
}
type JikanPersonFullResponse struct {
Data JikanFullPersonData `json:"data"`
}
|