35 lines
456 B
C
35 lines
456 B
C
|
#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;
|
||
|
};
|