/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "knocking.h" #include using namespace Quotient; auto queryToKnockRoom(const QStringList& serverName) { BaseJob::Query _q; addParam(_q, QStringLiteral("server_name"), serverName); return _q; } KnockRoomJob::KnockRoomJob(const QString& roomIdOrAlias, const QStringList& serverName, const QString& reason) : BaseJob(HttpVerb::Post, QStringLiteral("KnockRoomJob"), QStringLiteral("/_matrix/client/r0") % "/knock/" % roomIdOrAlias, queryToKnockRoom(serverName)) { QJsonObject _data; addParam(_data, QStringLiteral("reason"), reason); setRequestData(std::move(_data)); addExpectedKey("room_id"); }