libkazv
third_party_membership.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 
55 class InviteBy3PIDJob : public BaseJob {
56 public:
57 
58 
59 
60 class JobResponse : public Response
61 {
62 
63 public:
65  bool success() const;
66 
67 };
68  static constexpr auto needsAuth() {
69  return true
70  ;
71  }
72 
73 
74 // Construction/destruction
75 
95  explicit InviteBy3PIDJob(std::string serverUrl
96  , std::string _accessToken
97  ,
98  std::string roomId , std::string idServer , std::string idAccessToken , std::string medium , std::string address
99  );
100 
101 
102  static BaseJob::Query buildQuery(
103  );
104 
105  static BaseJob::Body buildBody(std::string roomId, std::string idServer, std::string idAccessToken, std::string medium, std::string address);
106 
107 
108 
109 
110 
112  InviteBy3PIDJob withData(JsonWrap j) const &;
113  };
115  }
116  namespace nlohmann
117  {
118  using namespace Kazv;
119  using namespace Kazv::Api;
120 
121  }
122 
123  namespace Kazv::Api
124  {
125 
126 } // namespace Kazv::Api
Definition: third_party_membership.hpp:61
JobResponse(Response r)
Definition: third_party_membership.cpp:79
bool success() const
Definition: third_party_membership.cpp:82
Invite a user to participate in a particular room.
Definition: third_party_membership.hpp:55
static BaseJob::Body buildBody(std::string roomId, std::string idServer, std::string idAccessToken, std::string medium, std::string address)
Definition: third_party_membership.cpp:21
static constexpr auto needsAuth()
Definition: third_party_membership.hpp:68
InviteBy3PIDJob withData(JsonWrap j) &&
Definition: third_party_membership.cpp:65
static BaseJob::Query buildQuery()
Definition: third_party_membership.cpp:13
InviteBy3PIDJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string idServer, std::string idAccessToken, std::string medium, std::string address)
Invite a user to participate in a particular room.
Definition: third_party_membership.cpp:45
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