/******************************************************************************
* 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 _data;
addParam<>(_data, QStringLiteral("new_version"), newVersion);
setRequestData(std::move(_data));
addExpectedKey("replacement_room");
}
'logo' rowspan='2'>
blob: 3342ef80f8bfaff7156555e7163ef3fe2fdb752f (
plain)