aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/room_upgrades.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/room_upgrades.h')
-rw-r--r--lib/csapi/room_upgrades.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/csapi/room_upgrades.h b/lib/csapi/room_upgrades.h
new file mode 100644
index 00000000..0432f667
--- /dev/null
+++ b/lib/csapi/room_upgrades.h
@@ -0,0 +1,36 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+#include "jobs/basejob.h"
+
+namespace Quotient {
+
+/*! \brief Upgrades a room to a new room version.
+ *
+ * Upgrades the given room to a particular room version.
+ */
+class QUOTIENT_API UpgradeRoomJob : public BaseJob {
+public:
+ /*! \brief Upgrades a room to a new room version.
+ *
+ * \param roomId
+ * The ID of the room to upgrade.
+ *
+ * \param newVersion
+ * The new version for the room.
+ */
+ explicit UpgradeRoomJob(const QString& roomId, const QString& newVersion);
+
+ // Result properties
+
+ /// The ID of the new room.
+ QString replacementRoom() const
+ {
+ return loadFromJson<QString>("replacement_room"_ls);
+ }
+};
+
+} // namespace Quotient