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
Definition: leaving.hpp:105
Stop the requesting user remembering about a particular room.
Definition: leaving.hpp:99
static constexpr auto needsAuth()
Definition: leaving.hpp:112
Definition: leaving.hpp:32
bool success() const
Definition: leaving.cpp:76
JobResponse(Response r)
Definition: leaving.cpp:73
Stop the requesting user participating in a particular room.
Definition: leaving.hpp:26
static constexpr auto needsAuth()
Definition: leaving.hpp:39
static BaseJob::Query buildQuery()
Definition: leaving.cpp:13
static BaseJob::Body buildBody(std::string roomId, std::optional< std::string > reason)
Definition: leaving.cpp:21
LeaveRoomJob withData(JsonWrap j) &&
Definition: leaving.cpp:59
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:39
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