diff src/services/anilist.cc @ 120:275da698697d

config: template-ify INI now it's... slightly less ugly :')
author Paper <mrpapersonic@gmail.com>
date Wed, 08 Nov 2023 18:13:37 -0500
parents 9b2b41f83a5e
children 9b10175be389
line wrap: on
line diff
--- a/src/services/anilist.cc	Wed Nov 08 13:50:00 2023 -0500
+++ b/src/services/anilist.cc	Wed Nov 08 18:13:37 2023 -0500
@@ -24,14 +24,14 @@
 
 class Account {
 	public:
-		std::string Username() const { return session.config.anilist.username; }
-		void SetUsername(std::string const& username) { session.config.anilist.username = username; }
+		std::string Username() const { return session.config.auth.anilist.username; }
+		void SetUsername(std::string const& username) { session.config.auth.anilist.username = username; }
 
-		int UserId() const { return session.config.anilist.user_id; }
-		void SetUserId(const int id) { session.config.anilist.user_id = id; }
+		int UserId() const { return session.config.auth.anilist.user_id; }
+		void SetUserId(const int id) { session.config.auth.anilist.user_id = id; }
 
-		std::string AuthToken() const { return session.config.anilist.auth_token; }
-		void SetAuthToken(std::string const& auth_token) { session.config.anilist.auth_token = auth_token; }
+		std::string AuthToken() const { return session.config.auth.anilist.auth_token; }
+		void SetAuthToken(std::string const& auth_token) { session.config.auth.anilist.auth_token = auth_token; }
 
 		bool Authenticated() const { return !AuthToken().empty(); }
 };