diff 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
line wrap: on
line diff
--- a/src/include/anilist.h	Wed Aug 16 00:49:17 2023 -0400
+++ b/src/include/anilist.h	Thu Aug 24 23:11:38 2023 -0400
@@ -6,17 +6,17 @@
 class AniList {
 	public:
 		static int Authorize();
-		int GetUserId(std::string name);
-		int UpdateAnimeList(std::vector<AnimeList>* anime_lists, int id);
+		static int GetUserId(std::string name);
+		static int UpdateAnimeList(std::vector<AnimeList>* anime_lists, int id);
 
 	private:
 		static size_t CurlWriteCallback(void *contents, size_t size, size_t nmemb, void *userdata);
-		enum AnimeWatchingStatus ConvertWatchingStatusToEnum(std::string status);
-		enum AnimeAiringStatus ConvertAiringStatusToEnum(std::string status);
-		enum AnimeFormat ConvertFormatToEnum(std::string format);
-		enum AnimeSeason ConvertSeasonToEnum(std::string season);
-		std::string SendRequest(std::string data);
-		CURL* curl;
-		CURLcode res;
+		static std::string SendRequest(std::string data);
+		static enum AnimeWatchingStatus ConvertWatchingStatusToEnum(std::string status);
+		static enum AnimeAiringStatus ConvertAiringStatusToEnum(std::string status);
+		static enum AnimeFormat ConvertFormatToEnum(std::string format);
+		static enum AnimeSeason ConvertSeasonToEnum(std::string season);
+		static CURL* curl;
+		static CURLcode res;
 };
 #endif // __anilist_h