lolautoaccept/include/clientapi.h

35 lines
456 B
C
Raw Normal View History

2022-06-27 20:45:01 +02:00
#pragma once
#include "clientaccess.h"
#include "restclient.h"
class ClientAPI : public RestClient {
public:
enum class SearchState : uint32_t {
INVALID = 0,
SEARCHING,
FOUND,
ABANDONEDLOWPRIORITYQUEUE,
CANCELED,
ERROR,
SERVICEERROR,
SERVICESHUTDOWN,
};
ClientAPI(const ClientAccess& access);
~ClientAPI();
SearchState getSearchState();
void acceptMatch();
void declineMatch();
protected:
private:
ClientAccess access;
};