Mercurial > minori
comparison include/core/anime.h @ 15:cde8f67a7c7d
*: update, megacommit :)
| author | Paper <mrpapersonic@gmail.com> |
|---|---|
| date | Tue, 19 Sep 2023 22:36:08 -0400 |
| parents | 4b198a111713 |
| children | 75c804f713b2 |
comparison
equal
deleted
inserted
replaced
| 14:a29c9402faf0 | 15:cde8f67a7c7d |
|---|---|
| 14 COMPLETED, | 14 COMPLETED, |
| 15 DROPPED, | 15 DROPPED, |
| 16 PAUSED | 16 PAUSED |
| 17 }; | 17 }; |
| 18 | 18 |
| 19 constexpr std::array<ListStatus, 5> ListStatuses{ListStatus::CURRENT, ListStatus::PLANNING, ListStatus::COMPLETED, | 19 constexpr std::array<ListStatus, 5> ListStatuses{ListStatus::CURRENT, ListStatus::COMPLETED, ListStatus::PAUSED, |
| 20 ListStatus::DROPPED, ListStatus::PAUSED}; | 20 ListStatus::DROPPED, ListStatus::PLANNING}; |
| 21 | 21 |
| 22 enum class SeriesStatus { | 22 enum class SeriesStatus { |
| 23 UNKNOWN, | 23 UNKNOWN, |
| 24 FINISHED, | 24 FINISHED, |
| 25 RELEASING, | 25 RELEASING, |
| 61 ANILIST, | 61 ANILIST, |
| 62 NB_SERVICES | 62 NB_SERVICES |
| 63 }; | 63 }; |
| 64 | 64 |
| 65 struct ListInformation { | 65 struct ListInformation { |
| 66 int id = 0; | 66 int id = 0; |
| 67 int progress = 0; | 67 int progress = 0; |
| 68 int score = 0; | 68 int score = 0; |
| 69 ListStatus status = ListStatus::NOT_IN_LIST; | 69 ListStatus status = ListStatus::NOT_IN_LIST; |
| 70 Date started; | 70 Date started; |
| 71 Date completed; | 71 Date completed; |
| 72 bool is_private = false; | 72 bool is_private = false; |
| 73 unsigned int rewatched_times = 0; | 73 unsigned int rewatched_times = 0; |
| 74 bool rewatching = false; | 74 bool rewatching = false; |
| 75 uint64_t updated = 0; | 75 uint64_t updated = 0; |
| 76 std::string notes; | 76 std::string notes; |
| 77 }; | 77 }; |
| 78 | 78 |
| 79 struct SeriesInformation { | 79 struct SeriesInformation { |
| 80 int id; | 80 int id; |
| 81 struct { | 81 struct { |
| 82 std::string romaji; | 82 std::string romaji; |
| 83 std::string english; | 83 std::string english; |
| 84 std::string native; | 84 std::string native; |
| 85 } title; | 85 } title; |
| 86 std::vector<std::string> synonyms; | 86 std::vector<std::string> synonyms; |
| 87 int episodes = 0; | 87 int episodes = 0; |
| 88 SeriesStatus status = SeriesStatus::UNKNOWN; | 88 SeriesStatus status = SeriesStatus::UNKNOWN; |
| 89 Date air_date; | 89 Date air_date; |
| 90 std::vector<std::string> genres; | 90 std::vector<std::string> genres; |
| 91 std::vector<std::string> producers; | 91 std::vector<std::string> producers; |
| 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 }; | 97 }; |
| 98 | 98 |
| 99 class Anime { | 99 class Anime { |
| 100 public: | 100 public: |
| 101 /* User list data */ | 101 /* User list data */ |
