view src/services/services.cpp @ 44:619cbd6e69f9

filesystem: fix CreateDirectories function
author Paper <mrpapersonic@gmail.com>
date Fri, 22 Sep 2023 13:52:11 -0400
parents cde8f67a7c7d
children d8eb763e6661
line wrap: on
line source

#include "services/services.h"
#include "core/session.h"
#include "services/anilist.h"

namespace Services {

void Synchronize() {
	switch (session.config.service) {
		case Anime::Services::ANILIST: AniList::GetAnimeList(); break;
		default: break;
	}
}

bool Authorize() {
	switch (session.config.service) {
		case Anime::Services::ANILIST:
			return AniList::AuthorizeUser();
		default:
			return true;
	}
}

}; // namespace Services