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
Definition: versions.hpp:39
immer::map< std::string, bool > unstableFeatures() const
Experimental features the server supports.
Definition: versions.cpp:92
JobResponse(Response r)
Definition: versions.cpp:67
immer::array< std::string > versions() const
The supported versions.
Definition: versions.cpp:81
bool success() const
Definition: versions.cpp:70
Gets the versions of the specification supported by the server.
Definition: versions.hpp:33
static BaseJob::Body buildBody()
Definition: versions.cpp:21
static constexpr auto needsAuth()
Definition: versions.hpp:60
static BaseJob::Query buildQuery()
Definition: versions.cpp:13
GetVersionsJob(std::string serverUrl)
Gets the versions of the specification supported by the server.
Definition: versions.cpp:33
GetVersionsJob withData(JsonWrap j) &&
Definition: versions.cpp:53
Definition: basejob.hpp:91
Definition: basejob.hpp:77
::Kazv::Body Body
Definition: basejob.hpp:100
Definition: jsonwrap.hpp:23
Definition: location.hpp:10
Definition: location.hpp:10
Definition: location.hpp:27
Definition: basejob.hpp:50