diff 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
line wrap: on
line diff
--- a/include/core/anime.h	Sun Oct 01 23:26:35 2023 -0400
+++ b/include/core/anime.h	Mon Oct 02 05:56:32 2023 -0400
@@ -94,6 +94,7 @@
 		int audience_score = 0;
 		std::string synopsis;
 		int duration = 0;
+		std::string poster_url;
 };
 
 class Anime {
@@ -137,6 +138,7 @@
 		int GetAudienceScore() const; /* should be double once MAL and Kitsu are implemented */
 		std::string GetSynopsis() const;
 		int GetDuration() const;
+		std::string GetPosterUrl() const;
 
 		void SetId(int id);
 		void SetRomajiTitle(std::string const& title);
@@ -154,6 +156,7 @@
 		void SetAudienceScore(int audience_score);
 		void SetSynopsis(std::string synopsis);
 		void SetDuration(int duration);
+		void SetPosterUrl(std::string poster);
 
 		std::string GetUserPreferredTitle() const;