1/******************************************************************************
2 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
3 */
4
5#include "room_state.h"
6
7using namespace Quotient;
8
9SetRoomStateWithKeyJob::SetRoomStateWithKeyJob(const QString& roomId,
10 const QString& eventType,
11 const QString& stateKey,
12 const QJsonObject& body)
13 : BaseJob(HttpVerb::Put, QStringLiteral("SetRoomStateWithKeyJob"),
14 makePath(parts: "/_matrix/client/v3", parts: "/rooms/", parts: roomId, parts: "/state/",
15 parts: eventType, parts: "/", parts: stateKey))
16{
17 setRequestData({ toJson(pod: body) });
18 addExpectedKey(key: "event_id");
19}
20