libkazv
inviting.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 
29 class InviteUserJob : public BaseJob {
30 public:
31 
32 
33 
34 class JobResponse : public Response
35 {
36 
37 public:
39  bool success() const;
40 
41 };
42  static constexpr auto needsAuth() {
43  return true
44  ;
45  }
46 
47 
48 // Construction/destruction
49 
62  explicit InviteUserJob(std::string serverUrl
63  , std::string _accessToken
64  ,
65  std::string roomId , std::string userId , std::optional<std::string> reason = std::nullopt
66  );
67 
68 
70  );
71 
72  static BaseJob::Body buildBody(std::string roomId, std::string userId, std::optional<std::string> reason);
73 
74 
75 
76 
77 
79  InviteUserJob withData(JsonWrap j) const &;
80  };
82  }
83  namespace nlohmann
84  {
85  using namespace Kazv;
86  using namespace Kazv::Api;
87 
88  }
89 
90  namespace Kazv::Api
91  {
92 
93 } // namespace Kazv::Api
Definition: inviting.hpp:35
JobResponse(Response r)
Definition: inviting.cpp:75
bool success() const
Definition: inviting.cpp:78
Invite a user to participate in a particular room.
Definition: inviting.hpp:29
static constexpr auto needsAuth()
Definition: inviting.hpp:42
InviteUserJob withData(JsonWrap j) &&
Definition: inviting.cpp:61
InviteUserJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string userId, std::optional< std::string > reason=std::nullopt)
Invite a user to participate in a particular room.
Definition: inviting.cpp:41
static BaseJob::Query buildQuery()
Definition: inviting.cpp:13
static BaseJob::Body buildBody(std::string roomId, std::string userId, std::optional< std::string > reason)
Definition: inviting.cpp:21
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