libkazv
leaving.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 
26 class LeaveRoomJob : public BaseJob {
27 public:
28 
29 
30 
31 class JobResponse : public Response
32 {
33 
34 public:
36  bool success() const;
37 
38 };
39  static constexpr auto needsAuth() {
40  return true
41  ;
42  }
43 
44 
45 // Construction/destruction
46 
56  explicit LeaveRoomJob(std::string serverUrl
57  , std::string _accessToken
58  ,
59  std::string roomId , std::optional<std::string> reason = std::nullopt
60  );
61 
62 
64  );
65 
66  static BaseJob::Body buildBody(std::string roomId, std::optional<std::string> reason);
67 
68 
69 
70 
71 
73  LeaveRoomJob withData(JsonWrap j) const &;
74  };
76  }
77  namespace nlohmann
78  {
79  using namespace Kazv;
80  using namespace Kazv::Api;
81 
82  }
83 
84  namespace Kazv::Api
85  {
86 
99 class ForgetRoomJob : public BaseJob {
100 public:
101 
102 
103 
104 class JobResponse : public Response
105 {
106 
107 public:
109  bool success() const;
110 
111 };
112  static constexpr auto needsAuth() {
113  return true
114  ;
115  }
116 
117 
118 // Construction/destruction
119 
125  explicit ForgetRoomJob(std::string serverUrl
126  , std::string _accessToken
127  ,
128  std::string roomId
129  );
130 
131 
132  static BaseJob::Query buildQuery(
133  );
134 
135  static BaseJob::Body buildBody(std::string roomId);
136 
137 
138 
139 
140 
141  ForgetRoomJob withData(JsonWrap j) &&;
142  ForgetRoomJob withData(JsonWrap j) const &;
143  };
145  }
146  namespace nlohmann
147  {
148  using namespace Kazv;
149  using namespace Kazv::Api;
150 
151  }
152 
153  namespace Kazv::Api
154  {
155 
156 } // namespace Kazv::Api
Kazv::Api::LeaveRoomJob
Stop the requesting user participating in a particular room.
Definition: leaving.hpp:28
Kazv::Api::ForgetRoomJob
Stop the requesting user remembering about a particular room.
Definition: leaving.hpp:99
nlohmann
Definition: location.hpp:26
Kazv
Definition: location.hpp:10
Kazv::Api::LeaveRoomJob::buildBody
static BaseJob::Body buildBody(std::string roomId, std::optional< std::string > reason)
Definition: leaving.cpp:23
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api::LeaveRoomJob::withData
LeaveRoomJob withData(JsonWrap j) &&
Definition: leaving.cpp:61
Kazv::Api
Definition: location.hpp:10
Kazv::Api::LeaveRoomJob::LeaveRoomJob
LeaveRoomJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::optional< std::string > reason=std::nullopt)
Stop the requesting user participating in a particular room.
Definition: leaving.cpp:41
Kazv::Api::LeaveRoomJob::JobResponse
Definition: leaving.hpp:35
basejob.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::Api::LeaveRoomJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: leaving.cpp:75
Kazv::BaseJob
Definition: basejob.hpp:76
Kazv::Api::ForgetRoomJob::JobResponse
Definition: leaving.hpp:104
Kazv::Api::LeaveRoomJob::JobResponse::success
bool success() const
Definition: leaving.cpp:78
Kazv::Api::LeaveRoomJob::needsAuth
static constexpr auto needsAuth()
Definition: leaving.hpp:43
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Api::LeaveRoomJob::buildQuery
static BaseJob::Query buildQuery()
Definition: leaving.cpp:15
Kazv::Api::ForgetRoomJob::needsAuth
static constexpr auto needsAuth()
Definition: leaving.hpp:112
Kazv::Response
Definition: basejob.hpp:50