libkazv
room_state.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 
32 class SetRoomStateWithKeyJob : public BaseJob {
33 public:
34 
35 
36 
37 class JobResponse : public Response
38 {
39 
40 public:
42  bool success() const;
43 
44  // Result properties
45 
46 
47 
48 
50 std::string eventId() const;
51 
52 };
53  static constexpr auto needsAuth() {
54  return true
55  ;
56  }
57 
58 
59 // Construction/destruction
60 
92  explicit SetRoomStateWithKeyJob(std::string serverUrl
93  , std::string _accessToken
94  ,
95  std::string roomId , std::string eventType , std::string stateKey , JsonWrap body = {}
96  );
97 
98 
100  );
101 
102  static BaseJob::Body buildBody(std::string roomId, std::string eventType, std::string stateKey, JsonWrap body);
103 
104 
105 
106 
107 
110  };
112  }
113  namespace nlohmann
114  {
115  using namespace Kazv;
116  using namespace Kazv::Api;
117 
118  }
119 
120  namespace Kazv::Api
121  {
122 
123 } // namespace Kazv::Api
nlohmann
Definition: location.hpp:26
Kazv::Api::SetRoomStateWithKeyJob::buildBody
static BaseJob::Body buildBody(std::string roomId, std::string eventType, std::string stateKey, JsonWrap body)
Definition: room_state.cpp:23
Kazv::Api::SetRoomStateWithKeyJob::needsAuth
static constexpr auto needsAuth()
Definition: room_state.hpp:57
Kazv
Definition: location.hpp:10
Kazv::Api::SetRoomStateWithKeyJob::JobResponse::JobResponse
JobResponse(Response r)
Definition: room_state.cpp:70
Kazv::Api::SetRoomStateWithKeyJob::withData
SetRoomStateWithKeyJob withData(JsonWrap j) &&
Definition: room_state.cpp:56
Kazv::Api::SetRoomStateWithKeyJob::JobResponse
Definition: room_state.hpp:41
Kazv::BaseJob::Query
Definition: basejob.hpp:90
Kazv::Api::SetRoomStateWithKeyJob::JobResponse::eventId
std::string eventId() const
A unique identifier for the event.
Definition: room_state.cpp:84
Kazv::Api::SetRoomStateWithKeyJob
Send a state event to the given room.
Definition: room_state.hpp:34
Kazv::Api
Definition: location.hpp:10
Kazv::Api::SetRoomStateWithKeyJob::JobResponse::success
bool success() const
Definition: room_state.cpp:73
Kazv::Api::SetRoomStateWithKeyJob::SetRoomStateWithKeyJob
SetRoomStateWithKeyJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string eventType, std::string stateKey, JsonWrap body={})
Send a state event to the given room.
Definition: room_state.cpp:36
basejob.hpp
Kazv::JsonWrap
Definition: jsonwrap.hpp:22
Kazv::Api::SetRoomStateWithKeyJob::buildQuery
static BaseJob::Query buildQuery()
Definition: room_state.cpp:15
Kazv::BaseJob::Body
::Kazv::Body Body
Definition: basejob.hpp:100
Kazv::Response
Definition: basejob.hpp:50