libkazv
joining.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"
9 
10 namespace Kazv::Api {
11 
26 class JoinRoomByIdJob : public BaseJob {
27 public:
28 
29 
30 
31 class JobResponse : public Response
32 {
33 
34 public:
36  bool success() const;
37 
38  // Result properties
39 
40 
41 
42 
44 std::string roomId() const;
45 
46 };
47  static constexpr auto needsAuth() {
48  return true
49  ;
50  }
51 
52 
53 // Construction/destruction
54 
69  explicit JoinRoomByIdJob(std::string serverUrl
70  , std::string _accessToken
71  ,
72  std::string roomId , std::optional<ThirdPartySigned> thirdPartySigned = std::nullopt, std::optional<std::string> reason = std::nullopt
73  );
74 
75 
77  );
78 
79  static BaseJob::Body buildBody(std::string roomId, std::optional<ThirdPartySigned> thirdPartySigned, std::optional<std::string> reason);
80 
81 
82 
83 
84 
87  };
89  }
90  namespace nlohmann
91  {
92  using namespace Kazv;
93  using namespace Kazv::Api;
94 
95  }
96 
97  namespace Kazv::Api
98  {
99 
113 class JoinRoomJob : public BaseJob {
114 public:
115 
116 
117 
118 class JobResponse : public Response
119 {
120 
121 public:
123  bool success() const;
124 
125  // Result properties
126 
127 
128 
129 
131 std::string roomId() const;
132 
133 };
134  static constexpr auto needsAuth() {
135  return true
136  ;
137  }
138 
139 
140 // Construction/destruction
141 
160  explicit JoinRoomJob(std::string serverUrl
161  , std::string _accessToken
162  ,
163  std::string roomIdOrAlias , immer::array<std::string> serverName = {}, std::optional<ThirdPartySigned> thirdPartySigned = std::nullopt, std::optional<std::string> reason = std::nullopt
164  );
165 
166 
167  static BaseJob::Query buildQuery(
168  immer::array<std::string> serverName);
169 
170  static BaseJob::Body buildBody(std::string roomIdOrAlias, immer::array<std::string> serverName, std::optional<ThirdPartySigned> thirdPartySigned, std::optional<std::string> reason);
171 
172 
173 
174 
175 
176  JoinRoomJob withData(JsonWrap j) &&;
177  JoinRoomJob withData(JsonWrap j) const &;
178  };
180  }
181  namespace nlohmann
182  {
183  using namespace Kazv;
184  using namespace Kazv::Api;
185 
186  }
187 
188  namespace Kazv::Api
189  {
190 
191 } // namespace Kazv::Api
Definition: joining.hpp:32
bool success() const
Definition: joining.cpp:78
JobResponse(Response r)
Definition: joining.cpp:75
std::string roomId() const
The joined room ID.
Definition: joining.cpp:89
Start the requesting user participating in a particular room.
Definition: joining.hpp:26
static BaseJob::Query buildQuery()
Definition: joining.cpp:13
static constexpr auto needsAuth()
Definition: joining.hpp:47
static BaseJob::Body buildBody(std::string roomId, std::optional< ThirdPartySigned > thirdPartySigned, std::optional< std::string > reason)
Definition: joining.cpp:21
JoinRoomByIdJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::optional< ThirdPartySigned > thirdPartySigned=std::nullopt, std::optional< std::string > reason=std::nullopt)
Start the requesting user participating in a particular room.
Definition: joining.cpp:41
JoinRoomByIdJob withData(JsonWrap j) &&
Definition: joining.cpp:61
Definition: joining.hpp:119
Start the requesting user participating in a particular room.
Definition: joining.hpp:113
static constexpr auto needsAuth()
Definition: joining.hpp:134
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