blob: e3791b08027c65ac04ca8ff58fb600afbcca64ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include "room_upgrades.h"
#include <QtCore/QStringBuilder>
using namespace Quotient;
UpgradeRoomJob::UpgradeRoomJob(const QString& roomId, const QString& newVersion)
: BaseJob(HttpVerb::Post, QStringLiteral("UpgradeRoomJob"),
QStringLiteral("/_matrix/client/r0") % "/rooms/" % roomId
% "/upgrade")
{
QJsonObject _data;
addParam<>(_data, QStringLiteral("new_version"), newVersion);
setRequestData(std::move(_data));
addExpectedKey("replacement_room");
}
|