comparison include/core/anime.h @ 324:5d3c9b31aa6e

anime: add completed date member
author Paper <paper@paper.us.eu.org>
date Wed, 12 Jun 2024 23:03:22 -0400
parents 1b5c04268d6a
children b5d6c27c308f
comparison
equal deleted inserted replaced
323:1686fac290c5 324:5d3c9b31aa6e
129 std::map<Service, std::string> ids; 129 std::map<Service, std::string> ids;
130 std::map<TitleLanguage, std::string> titles; 130 std::map<TitleLanguage, std::string> titles;
131 std::vector<std::string> synonyms; 131 std::vector<std::string> synonyms;
132 int episodes = 0; 132 int episodes = 0;
133 SeriesStatus status = SeriesStatus::Unknown; 133 SeriesStatus status = SeriesStatus::Unknown;
134 Date air_date; 134 Date started;
135 Date completed;
135 std::vector<std::string> genres; 136 std::vector<std::string> genres;
136 std::vector<std::string> producers; 137 std::vector<std::string> producers;
137 SeriesFormat format = SeriesFormat::Unknown; 138 SeriesFormat format = SeriesFormat::Unknown;
138 double audience_score = 0; 139 double audience_score = 0;
139 std::string synopsis; 140 std::string synopsis;
174 std::optional<std::string> GetServiceId(Service service) const; 175 std::optional<std::string> GetServiceId(Service service) const;
175 std::optional<std::string> GetTitle(TitleLanguage language) const; 176 std::optional<std::string> GetTitle(TitleLanguage language) const;
176 std::vector<std::string> GetTitleSynonyms() const; 177 std::vector<std::string> GetTitleSynonyms() const;
177 int GetEpisodes() const; 178 int GetEpisodes() const;
178 SeriesStatus GetAiringStatus() const; 179 SeriesStatus GetAiringStatus() const;
179 Date GetAirDate() const; 180 Date GetStartedDate() const;
181 Date GetCompletedDate() const;
180 std::vector<std::string> GetGenres() const; 182 std::vector<std::string> GetGenres() const;
181 std::vector<std::string> GetProducers() const; 183 std::vector<std::string> GetProducers() const;
182 SeriesFormat GetFormat() const; 184 SeriesFormat GetFormat() const;
183 SeriesSeason GetSeason() const; 185 SeriesSeason GetSeason() const;
184 double GetAudienceScore() const; 186 double GetAudienceScore() const;
192 void SetTitle(TitleLanguage language, const std::string& title); 194 void SetTitle(TitleLanguage language, const std::string& title);
193 void SetTitleSynonyms(const std::vector<std::string>& synonyms); 195 void SetTitleSynonyms(const std::vector<std::string>& synonyms);
194 void AddTitleSynonym(const std::string& synonym); 196 void AddTitleSynonym(const std::string& synonym);
195 void SetEpisodes(int episodes); 197 void SetEpisodes(int episodes);
196 void SetAiringStatus(SeriesStatus status); 198 void SetAiringStatus(SeriesStatus status);
197 void SetAirDate(const Date& date); 199 void SetStartedDate(const Date& date);
200 void SetCompletedDate(const Date& date);
198 void SetGenres(const std::vector<std::string>& genres); 201 void SetGenres(const std::vector<std::string>& genres);
199 void SetProducers(const std::vector<std::string>& producers); 202 void SetProducers(const std::vector<std::string>& producers);
200 void SetFormat(SeriesFormat format); 203 void SetFormat(SeriesFormat format);
201 void SetAudienceScore(double audience_score); 204 void SetAudienceScore(double audience_score);
202 void SetSynopsis(std::string synopsis); 205 void SetSynopsis(std::string synopsis);