aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/room_send.cpp
blob: 63986c56e94a6f274c9f9dac5ffa25fdf6255fa4 (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_send.h"

#include <QtCore/QStringBuilder>

using namespace Quotient;

SendMessageJob::SendMessageJob(const QString& roomId, const QString& eventType,
                               const QString& txnId, const QJsonObject& body)
    : BaseJob(HttpVerb::Put, QStringLiteral("SendMessageJob"),
              QStringLiteral("/_matrix/client/r0") % "/rooms/" % roomId
                  % "/send/" % eventType % "/" % txnId)
{
    setRequestData(Data(toJson(body)));
    addExpectedKey("event_id");
}