diff options
author | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-24 21:40:43 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@protonmail.ch> | 2022-02-24 21:40:43 +0530 |
commit | 314d9bf6cad4bebec431a217c23016680c56179b (patch) | |
tree | a08e45454724d84c3dab6f07cd04bf4bf37e87a9 /anime/anime.structs.go | |
parent | e4f90575f920cbd429814dfc27a775c0666bf718 (diff) |
moved DefaultListStatus back to each package seperately
Diffstat (limited to 'anime/anime.structs.go')
-rw-r--r-- | anime/anime.structs.go | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/anime/anime.structs.go b/anime/anime.structs.go index 039af12..4132989 100644 --- a/anime/anime.structs.go +++ b/anime/anime.structs.go @@ -47,7 +47,16 @@ type Recommendation struct { } type ListStatus struct { - u.DefaultListStatus + Status string `json:"status"` + Score int `json:"score"` + StartDate string `json:"start_date"` + FinishDate string `json:"finish_date"` + Priority int `json:"priority"` + Tags string `json:"tags"` + Comments string `json:"comments"` + UpdatedAt string `json:"updated_at"` + + // these fields are exclusive to anime EpWatched int `json:"num_watched_episodes"` IsRewatching bool `json:"is_rewatching"` TimesRewatched int `json:"num_times_rewatched"` @@ -68,16 +77,19 @@ type Anime struct { NumListUsers int `json:"num_list_users"` NumScoringUsers int `json:"num_scoring_users"` /* NsfwStatus potential values: - * white = sfw - * gray = probably nsfw - * black = nsfw */ + * white = sfw + * gray = probably nsfw + * black = nsfw */ NsfwStatus string `json:"nsfw"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` MediaType string `json:"media_type"` Status string `json:"status"` - Genres []u.Genre `json:"genres"` - ListStatus ListStatus `json:"my_list_status"` + Genres []u.Genre `json:"genres"` + /* MyListStatus refers to the authenticated user's info + * while ListStatus can be used for other users */ + MyListStatus ListStatus `json:"my_list_status"` + ListStatus ListStatus `json:"list_status"` NumEpisodes int `json:"num_episodes"` StartSeason Season `json:"start_season"` Broadcast Broadcast `json:"broadcast"` |