mirror of
https://github.com/ncblakely/GiantsTools
synced 2024-11-05 06:45:37 +01:00
24 lines
795 B
C++
24 lines
795 B
C++
#pragma once
|
|
|
|
#include <json/json.hpp>
|
|
|
|
#include <MasterServer/PlayerInfoResponse.h>
|
|
#include <MasterServer/ServerInfoResponse.h>
|
|
|
|
using njson = nlohmann::json;
|
|
|
|
typedef std::future<std::vector<ServerInfoResponse>> ServerInfoFuture;
|
|
|
|
// {EE129A81-0A86-49C4-8D23-A771A7350952}
|
|
inline const GUID IID_IGiantsApiClient = { 0xee129a81, 0xa86, 0x49c4, 0x8d, 0x23, 0xa7, 0x71, 0xa7, 0x35, 0x9, 0x52 };
|
|
|
|
struct IGiantsApiClient : IComponent
|
|
{
|
|
virtual ~IGiantsApiClient() = default;
|
|
|
|
virtual void STDMETHODCALLTYPE DeleteServerInformationAsync() = 0;
|
|
virtual ServerInfoFuture STDMETHODCALLTYPE GetServerInformationAsync() = 0;
|
|
virtual void STDMETHODCALLTYPE PostServerInformationAsync(const njson& requestBody) = 0;
|
|
};
|
|
|
|
struct DECLSPEC_UUID("{EE129A81-0A86-49C4-8D23-A771A7350952}") IGiantsApiClient; |