libkazv
Loading...
Searching...
No Matches
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
10namespace Kazv::Api {
11
18class SetAccountDataJob : public BaseJob {
19public:
20
21
22
23class JobResponse : public Response
24{
25
26public:
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
88class GetAccountDataJob : public BaseJob {
89public:
90
91
92
93class JobResponse : public Response
94{
95
96public:
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
127 );
128
129 static BaseJob::Body buildBody(std::string userId, std::string type);
130
131
132
133
134
137 };
139 }
140 namespace nlohmann
141 {
142 using namespace Kazv;
143 using namespace Kazv::Api;
144
145 }
146
147 namespace Kazv::Api
148 {
149
157public:
158
159
160
161class JobResponse : public Response
162{
163
164public:
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
201 );
202
203 static BaseJob::Body buildBody(std::string userId, std::string roomId, std::string type, JsonWrap content);
204
205
206
207
208
211 };
213 }
214 namespace nlohmann
215 {
216 using namespace Kazv;
217 using namespace Kazv::Api;
218
219 }
220
221 namespace Kazv::Api
222 {
223
230public:
231
232
233
234class JobResponse : public Response
235{
236
237public:
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
271 );
272
273 static BaseJob::Body buildBody(std::string userId, std::string roomId, std::string type);
274
275
276
277
278
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
bool success() const
Definition account-data.cpp:139
Get some account_data for the user.
Definition account-data.hpp:88
static BaseJob::Body buildBody(std::string userId, std::string type)
Definition account-data.cpp:90
static constexpr auto needsAuth()
Definition account-data.hpp:101
GetAccountDataJob withData(JsonWrap j) &&
Definition account-data.cpp:122
static BaseJob::Query buildQuery()
Definition account-data.cpp:82
bool success() const
Definition account-data.cpp:276
Get some account_data for the user.
Definition account-data.hpp:229
static BaseJob::Body buildBody(std::string userId, std::string roomId, std::string type)
Definition account-data.cpp:227
static BaseJob::Query buildQuery()
Definition account-data.cpp:219
GetAccountDataPerRoomJob withData(JsonWrap j) &&
Definition account-data.cpp:259
static constexpr auto needsAuth()
Definition account-data.hpp:242
Definition account-data.hpp:24
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
static BaseJob::Query buildQuery()
Definition account-data.cpp:13
static constexpr auto needsAuth()
Definition account-data.hpp:31
bool success() const
Definition account-data.cpp:208
Set some account_data for the user.
Definition account-data.hpp:156
static BaseJob::Query buildQuery()
Definition account-data.cpp:150
static constexpr auto needsAuth()
Definition account-data.hpp:169
static BaseJob::Body buildBody(std::string userId, std::string roomId, std::string type, JsonWrap content)
Definition account-data.cpp:158
SetAccountDataPerRoomJob withData(JsonWrap j) &&
Definition account-data.cpp:191
Definition basejob.hpp:94
Definition basejob.hpp:68
::Kazv::Body Body
Definition basejob.hpp:103
Definition jsonwrap.hpp:23
Definition location.hpp:10
Definition location.hpp:10
Definition location.hpp:27
Definition basejob.hpp:49