File: room_upgrades.cpp

package info (click to toggle)
libquotient 0.9.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,596 kB
  • sloc: xml: 39,103; cpp: 25,274; sh: 97; makefile: 9
file content (15 lines) | stat: -rw-r--r-- 487 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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, u"UpgradeRoomJob"_s,
              makePath("/_matrix/client/v3", "/rooms/", roomId, "/upgrade"))
{
    QJsonObject _dataJson;
    addParam(_dataJson, "new_version"_L1, newVersion);
    setRequestData({ _dataJson });
    addExpectedKey(u"replacement_room"_s);
}