/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "filter.h" #include using namespace Quotient; DefineFilterJob::DefineFilterJob(const QString& userId, const Filter& filter) : BaseJob(HttpVerb::Post, QStringLiteral("DefineFilterJob"), QStringLiteral("/_matrix/client/r0") % "/user/" % userId % "/filter") { setRequestData(Data(toJson(filter))); addExpectedKey("filter_id"); } QUrl GetFilterJob::makeRequestUrl(QUrl baseUrl, const QString& userId, const QString& filterId) { return BaseJob::makeRequestUrl(std::move(baseUrl), QStringLiteral("/_matrix/client/r0") % "/user/" % userId % "/filter/" % filterId); } GetFilterJob::GetFilterJob(const QString& userId, const QString& filterId) : BaseJob(HttpVerb::Get, QStringLiteral("GetFilterJob"), QStringLiteral("/_matrix/client/r0") % "/user/" % userId % "/filter/" % filterId) {} td>Nicolas Peugnet
aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/room_state.cpp
blob: f6d2e6ec1e6debcca0b0e6c7b9af02d36e358e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */

#include "room_state.h"

using namespace Quotient;

SetRoomStateWithKeyJob::SetRoomStateWithKeyJob(const QString& roomId,
                                               const QString& eventType,
                                               const QString& stateKey,
                                               const QJsonObject& body)
    : BaseJob(HttpVerb::Put, QStringLiteral("SetRoomStateWithKeyJob"),
              makePath("/_matrix/client/r0", "/rooms/", roomId, "/state/",
                       eventType, "/", stateKey))
{
    setRequestData(RequestData(toJson(body)));
    addExpectedKey("event_id");
}