Mercurial > minori
annotate src/include/anilist.h @ 6:1d82f6e04d7d
Update: add first parts to the settings dialog
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Wed, 16 Aug 2023 00:49:17 -0400 |
parents | 23d0d9319a00 |
children | 07a9095eaeed |
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(); |
2 | 9 int GetUserId(std::string name); |
10 int UpdateAnimeList(std::vector<AnimeList>* anime_lists, int id); | |
11 | |
12 private: | |
13 static size_t CurlWriteCallback(void *contents, size_t size, size_t nmemb, void *userdata); | |
14 enum AnimeWatchingStatus ConvertWatchingStatusToEnum(std::string status); | |
15 enum AnimeAiringStatus ConvertAiringStatusToEnum(std::string status); | |
16 enum AnimeFormat ConvertFormatToEnum(std::string format); | |
17 enum AnimeSeason ConvertSeasonToEnum(std::string season); | |
18 std::string SendRequest(std::string data); | |
19 CURL* curl; | |
20 CURLcode res; | |
21 }; | |
22 #endif // __anilist_h |