libkazv
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 
10 namespace Kazv::Api {
11 
16 class UpgradeRoomJob : public BaseJob {
17 public:
18 
19 
20 
21 class JobResponse : public Response
22 {
23 
24 public:
26  bool success() const;
27 
28  // Result properties
29 
30 
31 
32 
34 std::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 
70  UpgradeRoomJob withData(JsonWrap j) const &;
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
JobResponse(Response r)
Definition: room_upgrades.cpp:73
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
UpgradeRoomJob(std::string serverUrl, std::string _accessToken, std::string roomId, std::string newVersion)
Upgrades a room to a new room version.
Definition: room_upgrades.cpp:39
static constexpr auto needsAuth()
Definition: room_upgrades.hpp:37
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