libkazv
kicking.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 
22 class KickJob : public BaseJob {
23 public:
24 
25 
26 
27 class JobResponse : public Response
28 {
29 
30 public:
32  bool success() const;
33 
34 };
35  static constexpr auto needsAuth() {
36  return true
37  ;
38  }
39 
40 
41 // Construction/destruction
42 
55  explicit KickJob(std::string serverUrl
56  , std::string _accessToken
57  ,
58  std::string roomId , std::string userId , std::optional<std::string> reason = std::nullopt
59  );
60 
61 
63  );
64 
65  static BaseJob::Body buildBody(std::string roomId, std::string userId, std::optional<std::string> reason);
66 
67 
68 
69 
70 
72  KickJob withData(JsonWrap j) const &;
73  };
75  }
76  namespace nlohmann
77  {
78  using namespace Kazv;
79  using namespace Kazv::Api;
80 
81  }
82 
83  namespace Kazv::Api
84  {
85 
86 } // namespace Kazv::Api
Definition: kicking.hpp:28
bool success() const
Definition: kicking.cpp:78
JobResponse(Response r)
Definition: kicking.cpp:75
Kick a user from the room.
Definition: kicking.hpp:22
static BaseJob::Query buildQuery()
Definition: kicking.cpp:13
static constexpr auto needsAuth()
Definition: kicking.hpp:35
KickJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string userId, std::optional< std::string > reason=std::nullopt)
Kick a user from the room.
Definition: kicking.cpp:41
static BaseJob::Body buildBody(std::string roomId, std::string userId, std::optional< std::string > reason)
Definition: kicking.cpp:21
KickJob withData(JsonWrap j) &&
Definition: kicking.cpp:61
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