libkazv
Loading...
Searching...
No Matches
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
10namespace Kazv::Api {
11
26class LeaveRoomJob : public BaseJob {
27public:
28
29
30
31class JobResponse : public Response
32{
33
34public:
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
74 };
76 }
77 namespace nlohmann
78 {
79 using namespace Kazv;
80 using namespace Kazv::Api;
81
82 }
83
84 namespace Kazv::Api
85 {
86
99class ForgetRoomJob : public BaseJob {
100public:
101
102
103
104class JobResponse : public Response
105{
106
107public:
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
133 );
134
135 static BaseJob::Body buildBody(std::string roomId);
136
137
138
139
140
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
bool success() const
Definition leaving.cpp:144
Stop the requesting user remembering about a particular room.
Definition leaving.hpp:99
static BaseJob::Query buildQuery()
Definition leaving.cpp:87
ForgetRoomJob withData(JsonWrap j) &&
Definition leaving.cpp:127
static BaseJob::Body buildBody(std::string roomId)
Definition leaving.cpp:95
static constexpr auto needsAuth()
Definition leaving.hpp:112
Definition leaving.hpp:32
bool success() const
Definition leaving.cpp:76
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
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