diff options
Diffstat (limited to 'lib/csapi/room_upgrades.cpp')
-rw-r--r-- | lib/csapi/room_upgrades.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/csapi/room_upgrades.cpp b/lib/csapi/room_upgrades.cpp new file mode 100644 index 00000000..b03fb6e8 --- /dev/null +++ b/lib/csapi/room_upgrades.cpp @@ -0,0 +1,17 @@ +/****************************************************************************** + * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN + */ + +#include "room_upgrades.h" + +using namespace Quotient; + +UpgradeRoomJob::UpgradeRoomJob(const QString& roomId, const QString& newVersion) + : BaseJob(HttpVerb::Post, QStringLiteral("UpgradeRoomJob"), + makePath("/_matrix/client/v3", "/rooms/", roomId, "/upgrade")) +{ + QJsonObject _dataJson; + addParam<>(_dataJson, QStringLiteral("new_version"), newVersion); + setRequestData({ _dataJson }); + addExpectedKey("replacement_room"); +} |