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