libkazv
Loading...
Searching...
No Matches
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
10namespace Kazv::Api {
11
33public:
34
35
36
37class JobResponse : public Response
38{
39
40public:
42 bool success() const;
43
44 // Result properties
45
46
47
48
50std::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
std::string eventId() const
A unique identifier for the event.
Definition room_state.cpp:82
bool success() const
Definition room_state.cpp:71
Send a state event to the given room.
Definition room_state.hpp:32
static BaseJob::Query buildQuery()
Definition room_state.cpp:13
static BaseJob::Body buildBody(std::string roomId, std::string eventType, std::string stateKey, JsonWrap body)
Definition room_state.cpp:21
static constexpr auto needsAuth()
Definition room_state.hpp:53
SetRoomStateWithKeyJob withData(JsonWrap j) &&
Definition room_state.cpp:54
Definition basejob.hpp:94
Definition basejob.hpp:68
::Kazv::Body Body
Definition basejob.hpp:103
Definition jsonwrap.hpp:23
Definition location.hpp:10
Definition location.hpp:10
Definition location.hpp:27
Definition basejob.hpp:49