#pragma once #include #include #include #include "Types.h" #include "Singleton.h" namespace TheGamesDb { struct Game { uint32 id; std::string baseImgUrl; std::string title; std::string overview; std::string boxArtUrl; std::vector discIds; }; typedef std::vector GamesList; class CClient : public CSingleton { public: virtual ~CClient() = default; Game GetGame(uint32 id); GamesList GetGamesList(const std::string& platformID, const std::string& name); GamesList GetGames(std::vector serials); private: GamesList PopulateGameList(const nlohmann::json&); }; }