Mercurial > minori
annotate src/include/anilist.h @ 7:07a9095eaeed
Update
Refactored some code, moved some around
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Thu, 24 Aug 2023 23:11:38 -0400 |
parents | 1d82f6e04d7d |
children |
rev | line source |
---|---|
2 | 1 #ifndef __anilist_h |
2 #define __anilist_h | |
3 #include <curl/curl.h> | |
4 #include "anime.h" | |
5 #include "json.h" | |
6 class AniList { | |
7 public: | |
6
1d82f6e04d7d
Update: add first parts to the settings dialog
Paper <mrpapersonic@gmail.com>
parents:
2
diff
changeset
|
8 static int Authorize(); |
7 | 9 static int GetUserId(std::string name); |
10 static int UpdateAnimeList(std::vector<AnimeList>* anime_lists, int id); | |
2 | 11 |
12 private: | |
13 static size_t CurlWriteCallback(void *contents, size_t size, size_t nmemb, void *userdata); | |
7 | 14 static std::string SendRequest(std::string data); |
15 static enum AnimeWatchingStatus ConvertWatchingStatusToEnum(std::string status); | |
16 static enum AnimeAiringStatus ConvertAiringStatusToEnum(std::string status); | |
17 static enum AnimeFormat ConvertFormatToEnum(std::string format); | |
18 static enum AnimeSeason ConvertSeasonToEnum(std::string season); | |
19 static CURL* curl; | |
20 static CURLcode res; | |
2 | 21 }; |
22 #endif // __anilist_h |