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
Definition: account-data.hpp:94
Get some account_data for the user.
Definition: account-data.hpp:88
static constexpr auto needsAuth()
Definition: account-data.hpp:101
Definition: account-data.hpp:235
Get some account_data for the user.
Definition: account-data.hpp:229
static constexpr auto needsAuth()
Definition: account-data.hpp:242
Definition: account-data.hpp:24
JobResponse(Response r)
Definition: account-data.cpp:68
bool success() const
Definition: account-data.cpp:71
Set some account_data for the user.
Definition: account-data.hpp:18
SetAccountDataJob withData(JsonWrap j) &&
Definition: account-data.cpp:54
static BaseJob::Body buildBody(std::string userId, std::string type, JsonWrap content)
Definition: account-data.cpp:21
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:34
static BaseJob::Query buildQuery()
Definition: account-data.cpp:13
static constexpr auto needsAuth()
Definition: account-data.hpp:31
Definition: account-data.hpp:162
Set some account_data for the user.
Definition: account-data.hpp:156
static constexpr auto needsAuth()
Definition: account-data.hpp:169
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