aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/to_device.cpp
blob: cfb860c769b5d779a949e82b2fe7f3ae616fc992 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/******************************************************************************
 * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
 */

#include "to_device.h"

#include "converters.h"

#include <QtCore/QStringBuilder>

using namespace QMatrixClient;

static const auto basePath = QStringLiteral("/_matrix/client/r0");

SendToDeviceJob::SendToDeviceJob(const QString& eventType, const QString& txnId, const QJsonObject& messages)
    : BaseJob(HttpVerb::Put, "SendToDeviceJob",
        basePath % "/sendToDevice/" % eventType % "/" % txnId)
{
    QJsonObject _data;
    _data.insert("messages", toJson(messages));
    setRequestData(_data);
}