JODA  0.13.1 (59b41972)
JSON On-Demand Analysis
ResultRequest.h
Go to the documentation of this file.
1 //
2 // Created by Nico on 23/08/2019.
3 //
4 
5 #ifndef JODA_RESULTREQUEST_H
6 #define JODA_RESULTREQUEST_H
7 
8 #include <httplib.h>
9 
10 namespace joda::network::client {
12  public:
13  static std::vector<std::string> result(httplib::Client &client,
14  const std::string &prefix,
15  unsigned int id, bool pretty = false);
16  static std::vector<std::string> result(httplib::Client &client,
17  const std::string &prefix,
18  unsigned int id, unsigned int offset,
19  unsigned int count,
20  bool pretty = false);
21  static constexpr auto endpoint = "/result";
22 
23  private:
24  static std::vector<std::string> result(httplib::Client &client,
25  const std::string &prefix,
26  httplib::Params &params,
27  bool pretty = false);
28 };
29 } // namespace joda::network::client
30 
31 #endif // JODA_RESULTREQUEST_H
Definition: ResultRequest.h:11
static constexpr auto endpoint
Definition: ResultRequest.h:21
static std::vector< std::string > result(httplib::Client &client, const std::string &prefix, unsigned int id, bool pretty=false)
Definition: ResultRequest.cpp:61
Definition: JodaClient.h:12