1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-11-25 15:35:37 +01:00
GiantsTools/Sdk/Include/Network/Public/IGiantsApiClient.h
2021-02-28 00:46:21 -08:00

17 lines
522 B
C++

#pragma once
#include <json/json.hpp>
#include "PlayerInfoResponse.h"
#include "ServerInfoResponse.h"
typedef std::future<std::vector<ServerInfoResponse>> ServerInfoFuture;
DEFINE_SERVICE("{EE129A81-0A86-49C4-8D23-A771A7350952}", IGiantsApiClient)
{
virtual ~IGiantsApiClient() = default;
virtual void DeleteServerInformationAsync(tstring_view gameName, int hostPort) = 0;
virtual ServerInfoFuture GetServerInformationAsync() = 0;
virtual void PostServerInformationAsync(const nlohmann::json& requestBody) = 0;
};