52 explicit BanJob(std::string serverUrl
53 , std::string _accessToken
55 std::string roomId , std::string userId , std::optional<std::string> reason = std::nullopt
100 bool success()
const;
123 explicit UnbanJob(std::string serverUrl
124 , std::string _accessToken
126 std::string roomId , std::string userId , std::optional<std::string> reason = std::nullopt
133 static BaseJob::Body buildBody(std::string roomId, std::string userId, std::optional<std::string> reason);
146 using namespace Kazv;
Definition: banning.hpp:26
bool success() const
Definition: banning.cpp:78
JobResponse(Response r)
Definition: banning.cpp:75
Ban a user in the room.
Definition: banning.hpp:20
BanJob withData(JsonWrap j) &&
Definition: banning.cpp:61
static constexpr auto needsAuth()
Definition: banning.hpp:33
static BaseJob::Query buildQuery()
Definition: banning.cpp:13
BanJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string userId, std::optional< std::string > reason=std::nullopt)
Ban a user in the room.
Definition: banning.cpp:41
static BaseJob::Body buildBody(std::string roomId, std::string userId, std::optional< std::string > reason)
Definition: banning.cpp:21
Definition: banning.hpp:96
Unban a user from the room.
Definition: banning.hpp:90
static constexpr auto needsAuth()
Definition: banning.hpp:103
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