diff options
Diffstat (limited to 'anime/anime.structs.go')
-rw-r--r-- | anime/anime.structs.go | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/anime/anime.structs.go b/anime/anime.structs.go index 596f16e..3b468d1 100644 --- a/anime/anime.structs.go +++ b/anime/anime.structs.go @@ -73,12 +73,17 @@ type Recommendation struct { Num int `json:"num_recommendations"` } +type AltTitles struct { + Synonyms []string `json:"synonyms"` + En string `json:"en"` + Ja string `json:"ja"` +} + type Anime struct { Id int `json:"id"` Title string `json:"title"` MainPicture AnimePicture `json:"main_picture"` - // TODO: AltTitles should also have options for JP and EN Titles - AltTitles []string `json:"alternative_titles"` + AltTitles AltTitles `json:"alternative_titles"` StartDate string `json:"start_date"` EndDate string `json:"end_date"` Synopsis string `json:"synopsis"` @@ -99,6 +104,7 @@ type Anime struct { Broadcast Broadcast `json:"broadcast"` Source string `json:"source"` DurationSeconds int `json:"average_episode_duration"` + // Rating as in R, PG13, etc Rating string `json:"rating"` Pictures []AnimePicture `json:"pictures"` Background string `json:"background"` |