/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "create_room.h" using namespace Quotient; CreateRoomJob::CreateRoomJob(const QString& visibility, const QString& roomAliasName, const QString& name, const QString& topic, const QStringList& invite, const QVector& invite3pid, const QString& roomVersion, const QJsonObject& creationContent, const QVector& initialState, const QString& preset, Omittable isDirect, const QJsonObject& powerLevelContentOverride) : BaseJob(HttpVerb::Post, QStringLiteral("CreateRoomJob"), makePath("/_matrix/client/v3", "/createRoom")) { QJsonObject _dataJson; addParam(_dataJson, QStringLiteral("visibility"), visibility); addParam(_dataJson, QStringLiteral("room_alias_name"), roomAliasName); addParam(_dataJson, QStringLiteral("name"), name); addParam(_dataJson, QStringLiteral("topic"), topic); addParam(_dataJson, QStringLiteral("invite"), invite); addParam(_dataJson, QStringLiteral("invite_3pid"), invite3pid); addParam(_dataJson, QStringLiteral("room_version"), roomVersion); addParam(_dataJson, QStringLiteral("creation_content"), creationContent); addParam(_dataJson, QStringLiteral("initial_state"), initialState); addParam(_dataJson, QStringLiteral("preset"), preset); addParam(_dataJson, QStringLiteral("is_direct"), isDirect); addParam(_dataJson, QStringLiteral("power_level_content_override"), powerLevelContentOverride); setRequestData({ _dataJson }); addExpectedKey("room_id"); }