libkazv
Loading...
Searching...
No Matches
room_upgrades.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
16class UpgradeRoomJob : public BaseJob {
17public:
18
19
20
21class JobResponse : public Response
22{
23
24public:
26 bool success() const;
27
28 // Result properties
29
30
31
32
34std::string replacementRoom() const;
35
36};
37 static constexpr auto needsAuth() {
38 return true
39 ;
40 }
41
42
43// Construction/destruction
44
53 explicit UpgradeRoomJob(std::string serverUrl
54 , std::string _accessToken
55 ,
56 std::string roomId , std::string newVersion
57 );
58
59
61 );
62
63 static BaseJob::Body buildBody(std::string roomId, std::string newVersion);
64
65
66
67
68
71 };
73 }
74 namespace nlohmann
75 {
76 using namespace Kazv;
77 using namespace Kazv::Api;
78
79 }
80
81 namespace Kazv::Api
82 {
83
84} // namespace Kazv::Api
Definition room_upgrades.hpp:22
std::string replacementRoom() const
The ID of the new room.
Definition room_upgrades.cpp:87
bool success() const
Definition room_upgrades.cpp:76
Upgrades a room to a new room version.
Definition room_upgrades.hpp:16
static BaseJob::Query buildQuery()
Definition room_upgrades.cpp:13
UpgradeRoomJob withData(JsonWrap j) &&
Definition room_upgrades.cpp:59
static BaseJob::Body buildBody(std::string roomId, std::string newVersion)
Definition room_upgrades.cpp:21
static constexpr auto needsAuth()
Definition room_upgrades.hpp:37
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