blob: b03fb6e831ed2efcdb387237e936ef7db9c3c142 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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");
}
|