2017-10-23 07:35:47 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
#include "Types.h"
|
|
|
|
#include "Singleton.h"
|
|
|
|
|
|
|
|
namespace TheGamesDb
|
|
|
|
{
|
|
|
|
struct Game
|
|
|
|
{
|
|
|
|
std::string baseImgUrl;
|
|
|
|
std::string title;
|
|
|
|
std::string overview;
|
|
|
|
std::string boxArtUrl;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct GamesListItem
|
|
|
|
{
|
|
|
|
uint32 id;
|
|
|
|
std::string gameTitle;
|
|
|
|
};
|
|
|
|
typedef std::vector<GamesListItem> GamesList;
|
|
|
|
|
|
|
|
class CClient : public CSingleton<CClient>
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~CClient() = default;
|
|
|
|
|
2018-08-29 13:53:51 -04:00
|
|
|
Game GetGame(uint32 id);
|
2017-10-23 07:35:47 -04:00
|
|
|
GamesList GetGamesList(const std::string& platformName, const std::string& name);
|
|
|
|
};
|
|
|
|
}
|