diff src/services/services.cc @ 279:657fda1b9cac

*: clean up enums
author Paper <paper@paper.us.eu.org>
date Fri, 19 Apr 2024 13:24:06 -0400
parents c130f47f6f48
children 2115488eb302
line wrap: on
line diff
--- a/src/services/services.cc	Thu Apr 18 17:24:42 2024 -0400
+++ b/src/services/services.cc	Fri Apr 19 13:24:06 2024 -0400
@@ -7,28 +7,28 @@
 
 void Synchronize() {
 	switch (session.config.service) {
-		case Anime::Services::ANILIST: AniList::GetAnimeList(); break;
+		case Anime::Service::AniList: AniList::GetAnimeList(); break;
 		default: break;
 	}
 }
 
 std::vector<int> Search(const std::string& search) {
 	switch (session.config.service) {
-		case Anime::Services::ANILIST: return AniList::Search(search);
+		case Anime::Service::AniList: return AniList::Search(search);
 		default: return {};
 	}
 }
 
 void UpdateAnimeEntry(int id) {
 	switch (session.config.service) {
-		case Anime::Services::ANILIST: AniList::UpdateAnimeEntry(id); break;
+		case Anime::Service::AniList: AniList::UpdateAnimeEntry(id); break;
 		default: break;
 	}
 }
 
 bool Authorize() {
 	switch (session.config.service) {
-		case Anime::Services::ANILIST: return AniList::AuthorizeUser();
+		case Anime::Service::AniList: return AniList::AuthorizeUser();
 		default: return true;
 	}
 }