libkazv
versions.hpp
Go to the documentation of this file.
1 /******************************************************************************
2  * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3  */
4 
5 #pragma once
6 
7 #include "basejob.hpp"
8 
9 
10 namespace Kazv::Api {
11 
33 class GetVersionsJob : public BaseJob {
34 public:
35 
36 
37 
38 class JobResponse : public Response
39 {
40 
41 public:
43  bool success() const;
44 
45  // Result properties
46 
47 
48 
49 
51 immer::array<std::string> versions() const;
52 
53 
57 immer::map<std::string, bool> unstableFeatures() const;
58 
59 };
60  static constexpr auto needsAuth() {
61  return
62  false;
63  }
64 
65 
66 // Construction/destruction
67 
69  explicit GetVersionsJob(std::string serverUrl
70 
71 
72 
73  );
74 
75 
77  );
78 
79  static BaseJob::Body buildBody();
80 
81 
82 
83 
84 
86  GetVersionsJob withData(JsonWrap j) const &;
87  };
89  }
90  namespace nlohmann
91  {
92  using namespace Kazv;
93  using namespace Kazv::Api;
94 
95  }
96 
97  namespace Kazv::Api
98  {
99 
100 } // namespace Kazv::Api
Kazv::Api::GetVersionsJob::JobResponse
Definition: versions.hpp:42
Kazv::Api::GetVersionsJob::JobResponse::success
bool success() const
Definition: versions.cpp:72
nlohmann
Definition: location.hpp:26
Kazv
Definition: location.hpp:10
Kazv::Api::GetVersionsJob::withData
GetVersionsJob withData(JsonWrap j) &&
Definition: versions.cpp:55
Kazv::Api::GetVersionsJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: versions.cpp:69
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api::GetVersionsJob::buildQuery
static BaseJob::Query buildQuery()
Definition: versions.cpp:15
Kazv::Api
Definition: location.hpp:10
Kazv::Api::GetVersionsJob::GetVersionsJob
GetVersionsJob(std::string serverUrl)
Gets the versions of the specification supported by the server.
Definition: versions.cpp:35
basejob.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Api::GetVersionsJob::JobResponse::versions
immer::array< std::string > versions() const
The supported versions.
Definition: versions.cpp:83
Kazv::Api::GetVersionsJob::JobResponse::unstableFeatures
immer::map< std::string, bool > unstableFeatures() const
Experimental features the server supports.
Definition: versions.cpp:94
Kazv::Api::GetVersionsJob
Gets the versions of the specification supported by the server.
Definition: versions.hpp:35
Kazv::Api::GetVersionsJob::buildBody
static BaseJob::Body buildBody()
Definition: versions.cpp:23
Kazv::Api::GetVersionsJob::needsAuth
static constexpr auto needsAuth()
Definition: versions.hpp:64
Kazv::Response
Definition: basejob.hpp:50