Mercurial > minori
comparison include/core/anime.h @ 66:6481c5aed3e1
posters: add poster widget...
why does AniList call these cover images? they're posters...
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Mon, 02 Oct 2023 05:56:32 -0400 |
parents | 75c804f713b2 |
children | 442065432549 |
comparison
equal
deleted
inserted
replaced
65:26721c28bf22 | 66:6481c5aed3e1 |
---|---|
92 SeriesFormat format = SeriesFormat::UNKNOWN; | 92 SeriesFormat format = SeriesFormat::UNKNOWN; |
93 SeriesSeason season = SeriesSeason::UNKNOWN; | 93 SeriesSeason season = SeriesSeason::UNKNOWN; |
94 int audience_score = 0; | 94 int audience_score = 0; |
95 std::string synopsis; | 95 std::string synopsis; |
96 int duration = 0; | 96 int duration = 0; |
97 std::string poster_url; | |
97 }; | 98 }; |
98 | 99 |
99 class Anime { | 100 class Anime { |
100 public: | 101 public: |
101 /* User list data */ | 102 /* User list data */ |
135 SeriesFormat GetFormat() const; | 136 SeriesFormat GetFormat() const; |
136 SeriesSeason GetSeason() const; | 137 SeriesSeason GetSeason() const; |
137 int GetAudienceScore() const; /* should be double once MAL and Kitsu are implemented */ | 138 int GetAudienceScore() const; /* should be double once MAL and Kitsu are implemented */ |
138 std::string GetSynopsis() const; | 139 std::string GetSynopsis() const; |
139 int GetDuration() const; | 140 int GetDuration() const; |
141 std::string GetPosterUrl() const; | |
140 | 142 |
141 void SetId(int id); | 143 void SetId(int id); |
142 void SetRomajiTitle(std::string const& title); | 144 void SetRomajiTitle(std::string const& title); |
143 void SetEnglishTitle(std::string const& title); | 145 void SetEnglishTitle(std::string const& title); |
144 void SetNativeTitle(std::string const& title); | 146 void SetNativeTitle(std::string const& title); |
152 void SetFormat(SeriesFormat format); | 154 void SetFormat(SeriesFormat format); |
153 void SetSeason(SeriesSeason season); | 155 void SetSeason(SeriesSeason season); |
154 void SetAudienceScore(int audience_score); | 156 void SetAudienceScore(int audience_score); |
155 void SetSynopsis(std::string synopsis); | 157 void SetSynopsis(std::string synopsis); |
156 void SetDuration(int duration); | 158 void SetDuration(int duration); |
159 void SetPosterUrl(std::string poster); | |
157 | 160 |
158 std::string GetUserPreferredTitle() const; | 161 std::string GetUserPreferredTitle() const; |
159 | 162 |
160 /* User stuff */ | 163 /* User stuff */ |
161 void AddToUserList(); | 164 void AddToUserList(); |