libkazv
account-data.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 
18 class SetAccountDataJob : public BaseJob {
19 public:
20 
21 
22 
23 class JobResponse : public Response
24 {
25 
26 public:
28  bool success() const;
29 
30 };
31  static constexpr auto needsAuth() {
32  return true
33  ;
34  }
35 
36 
37 // Construction/destruction
38 
52  explicit SetAccountDataJob(std::string serverUrl
53  , std::string _accessToken
54  ,
55  std::string userId , std::string type , JsonWrap content = {}
56  );
57 
58 
60  );
61 
62  static BaseJob::Body buildBody(std::string userId, std::string type, JsonWrap content);
63 
64 
65 
66 
67 
70  };
72  }
73  namespace nlohmann
74  {
75  using namespace Kazv;
76  using namespace Kazv::Api;
77 
78  }
79 
80  namespace Kazv::Api
81  {
82 
88 class GetAccountDataJob : public BaseJob {
89 public:
90 
91 
92 
93 class JobResponse : public Response
94 {
95 
96 public:
98  bool success() const;
99 
100 };
101  static constexpr auto needsAuth() {
102  return true
103  ;
104  }
105 
106 
107 // Construction/destruction
108 
119  explicit GetAccountDataJob(std::string serverUrl
120  , std::string _accessToken
121  ,
122  std::string userId , std::string type
123  );
124 
125 
126  static BaseJob::Query buildQuery(
127  );
128 
129  static BaseJob::Body buildBody(std::string userId, std::string type);
130 
131 
132 
133 
134 
135  GetAccountDataJob withData(JsonWrap j) &&;
136  GetAccountDataJob withData(JsonWrap j) const &;
137  };
139  }
140  namespace nlohmann
141  {
142  using namespace Kazv;
143  using namespace Kazv::Api;
144 
145  }
146 
147  namespace Kazv::Api
148  {
149 
157 public:
158 
159 
160 
161 class JobResponse : public Response
162 {
163 
164 public:
166  bool success() const;
167 
168 };
169  static constexpr auto needsAuth() {
170  return true
171  ;
172  }
173 
174 
175 // Construction/destruction
176 
193  explicit SetAccountDataPerRoomJob(std::string serverUrl
194  , std::string _accessToken
195  ,
196  std::string userId , std::string roomId , std::string type , JsonWrap content = {}
197  );
198 
199 
200  static BaseJob::Query buildQuery(
201  );
202 
203  static BaseJob::Body buildBody(std::string userId, std::string roomId, std::string type, JsonWrap content);
204 
205 
206 
207 
208 
209  SetAccountDataPerRoomJob withData(JsonWrap j) &&;
210  SetAccountDataPerRoomJob withData(JsonWrap j) const &;
211  };
213  }
214  namespace nlohmann
215  {
216  using namespace Kazv;
217  using namespace Kazv::Api;
218 
219  }
220 
221  namespace Kazv::Api
222  {
223 
230 public:
231 
232 
233 
234 class JobResponse : public Response
235 {
236 
237 public:
239  bool success() const;
240 
241 };
242  static constexpr auto needsAuth() {
243  return true
244  ;
245  }
246 
247 
248 // Construction/destruction
249 
263  explicit GetAccountDataPerRoomJob(std::string serverUrl
264  , std::string _accessToken
265  ,
266  std::string userId , std::string roomId , std::string type
267  );
268 
269 
270  static BaseJob::Query buildQuery(
271  );
272 
273  static BaseJob::Body buildBody(std::string userId, std::string roomId, std::string type);
274 
275 
276 
277 
278 
279  GetAccountDataPerRoomJob withData(JsonWrap j) &&;
280  GetAccountDataPerRoomJob withData(JsonWrap j) const &;
281  };
283  }
284  namespace nlohmann
285  {
286  using namespace Kazv;
287  using namespace Kazv::Api;
288 
289  }
290 
291  namespace Kazv::Api
292  {
293 
294 } // namespace Kazv::Api
Kazv::Api::SetAccountDataJob::SetAccountDataJob
SetAccountDataJob(std::string serverUrl, std::string _accessToken, std::string userId, std::string type, JsonWrap content={})
Set some account_data for the user.
Definition: account-data.cpp:36
nlohmann
Definition: location.hpp:26
Kazv::Api::SetAccountDataJob::JobResponse
Definition: account-data.hpp:27
Kazv
Definition: location.hpp:10
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api::SetAccountDataJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: account-data.cpp:70
Kazv::Api::SetAccountDataJob::withData
SetAccountDataJob withData(JsonWrap j) &&
Definition: account-data.cpp:56
Kazv::Api::GetAccountDataJob::JobResponse
Definition: account-data.hpp:93
Kazv::Api::SetAccountDataJob::buildQuery
static BaseJob::Query buildQuery()
Definition: account-data.cpp:15
Kazv::Api
Definition: location.hpp:10
Kazv::Api::GetAccountDataPerRoomJob::JobResponse
Definition: account-data.hpp:234
Kazv::Api::GetAccountDataJob::needsAuth
static constexpr auto needsAuth()
Definition: account-data.hpp:101
Kazv::Api::SetAccountDataJob::JobResponse::success
bool success() const
Definition: account-data.cpp:73
Kazv::Api::SetAccountDataJob::buildBody
static BaseJob::Body buildBody(std::string userId, std::string type, JsonWrap content)
Definition: account-data.cpp:23
basejob.hpp
Kazv::Api::GetAccountDataPerRoomJob
Get some account_data for the user.
Definition: account-data.hpp:229
Kazv::Api::SetAccountDataPerRoomJob
Set some account_data for the user.
Definition: account-data.hpp:156
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::Api::SetAccountDataPerRoomJob::needsAuth
static constexpr auto needsAuth()
Definition: account-data.hpp:169
Kazv::Api::GetAccountDataPerRoomJob::needsAuth
static constexpr auto needsAuth()
Definition: account-data.hpp:242
Kazv::BaseJob
Definition: basejob.hpp:76
Kazv::Api::SetAccountDataJob::needsAuth
static constexpr auto needsAuth()
Definition: account-data.hpp:35
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Api::GetAccountDataJob
Get some account_data for the user.
Definition: account-data.hpp:88
Kazv::Api::SetAccountDataJob
Set some account_data for the user.
Definition: account-data.hpp:20
Kazv::Api::SetAccountDataPerRoomJob::JobResponse
Definition: account-data.hpp:161
Kazv::Response
Definition: basejob.hpp:50