| 1 | /****************************************************************************** |
|---|---|
| 2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
| 3 | */ |
| 4 | |
| 5 | #include "room_upgrades.h" |
| 6 | |
| 7 | using namespace Quotient; |
| 8 | |
| 9 | UpgradeRoomJob::UpgradeRoomJob(const QString& roomId, const QString& newVersion) |
| 10 | : BaseJob(HttpVerb::Post, QStringLiteral("UpgradeRoomJob"), |
| 11 | makePath(parts: "/_matrix/client/v3", parts: "/rooms/", parts: roomId, parts: "/upgrade")) |
| 12 | { |
| 13 | QJsonObject _dataJson; |
| 14 | addParam<>(container&: _dataJson, QStringLiteral("new_version"), value: newVersion); |
| 15 | setRequestData({ _dataJson }); |
| 16 | addExpectedKey(key: "replacement_room"); |
| 17 | } |
| 18 |