1
0
mirror of https://github.com/ncblakely/GiantsTools synced 2024-09-28 01:42:14 +02:00
GiantsTools/Sdk/Include/Network/Public/IGiantsApiClient.h

17 lines
522 B
C
Raw Normal View History

2020-09-22 07:30:26 +02:00
#pragma once
#include <json/json.hpp>
2021-01-24 00:40:09 +01:00
#include "PlayerInfoResponse.h"
#include "ServerInfoResponse.h"
2020-09-22 07:30:26 +02:00
typedef std::future<std::vector<ServerInfoResponse>> ServerInfoFuture;
2021-01-24 00:40:09 +01:00
DEFINE_SERVICE("{EE129A81-0A86-49C4-8D23-A771A7350952}", IGiantsApiClient)
2020-09-22 07:30:26 +02:00
{
virtual ~IGiantsApiClient() = default;
2021-01-24 00:40:09 +01:00
virtual void DeleteServerInformationAsync(tstring_view gameName, int hostPort) = 0;
virtual ServerInfoFuture GetServerInformationAsync() = 0;
virtual void PostServerInformationAsync(const nlohmann::json& requestBody) = 0;
2021-02-28 09:46:21 +01:00
};