Mercurial > minori
comparison include/core/anime.h @ 320:1b5c04268d6a
services/kitsu: ACTUALLY finish GetAnimeList
there are some things the API just... doesn't provide. therefore
we have to request the genres separately any time a new anime info
box is opened...
author | Paper <paper@paper.us.eu.org> |
---|---|
date | Wed, 12 Jun 2024 19:49:19 -0400 |
parents | b1f4d1867ab1 |
children | 5d3c9b31aa6e |
comparison
equal
deleted
inserted
replaced
319:d928ec7b6a0d | 320:1b5c04268d6a |
---|---|
159 | 159 |
160 void SetUserId(const std::string& id); | 160 void SetUserId(const std::string& id); |
161 void SetUserStatus(ListStatus status); | 161 void SetUserStatus(ListStatus status); |
162 void SetUserScore(int score); | 162 void SetUserScore(int score); |
163 void SetUserProgress(int progress); | 163 void SetUserProgress(int progress); |
164 void SetUserDateStarted(Date const& started); | 164 void SetUserDateStarted(const Date& started); |
165 void SetUserDateCompleted(Date const& completed); | 165 void SetUserDateCompleted(const Date& completed); |
166 void SetUserIsPrivate(bool is_private); | 166 void SetUserIsPrivate(bool is_private); |
167 void SetUserRewatchedTimes(int rewatched); | 167 void SetUserRewatchedTimes(int rewatched); |
168 void SetUserIsRewatching(bool rewatching); | 168 void SetUserIsRewatching(bool rewatching); |
169 void SetUserTimeUpdated(uint64_t updated); | 169 void SetUserTimeUpdated(uint64_t updated); |
170 void SetUserNotes(std::string const& notes); | 170 void SetUserNotes(const std::string& notes); |
171 | 171 |
172 /* Series data */ | 172 /* Series data */ |
173 int GetId() const; | 173 int GetId() const; |
174 std::optional<std::string> GetServiceId(Service service) const; | 174 std::optional<std::string> GetServiceId(Service service) const; |
175 std::optional<std::string> GetTitle(TitleLanguage language) const; | 175 std::optional<std::string> GetTitle(TitleLanguage language) const; |
188 std::optional<std::string> GetServiceUrl(Service service) const; | 188 std::optional<std::string> GetServiceUrl(Service service) const; |
189 | 189 |
190 void SetId(int id); | 190 void SetId(int id); |
191 void SetServiceId(Service service, const std::string& id); | 191 void SetServiceId(Service service, const std::string& id); |
192 void SetTitle(TitleLanguage language, const std::string& title); | 192 void SetTitle(TitleLanguage language, const std::string& title); |
193 void SetTitleSynonyms(std::vector<std::string> const& synonyms); | 193 void SetTitleSynonyms(const std::vector<std::string>& synonyms); |
194 void AddTitleSynonym(std::string const& synonym); | 194 void AddTitleSynonym(const std::string& synonym); |
195 void SetEpisodes(int episodes); | 195 void SetEpisodes(int episodes); |
196 void SetAiringStatus(SeriesStatus status); | 196 void SetAiringStatus(SeriesStatus status); |
197 void SetAirDate(Date const& date); | 197 void SetAirDate(const Date& date); |
198 void SetGenres(std::vector<std::string> const& genres); | 198 void SetGenres(const std::vector<std::string>& genres); |
199 void SetProducers(std::vector<std::string> const& producers); | 199 void SetProducers(const std::vector<std::string>& producers); |
200 void SetFormat(SeriesFormat format); | 200 void SetFormat(SeriesFormat format); |
201 void SetAudienceScore(double audience_score); | 201 void SetAudienceScore(double audience_score); |
202 void SetSynopsis(std::string synopsis); | 202 void SetSynopsis(std::string synopsis); |
203 void SetDuration(int duration); | 203 void SetDuration(int duration); |
204 void SetPosterUrl(std::string poster); | 204 void SetPosterUrl(std::string poster); |