/****************************************************************************** * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN */ #include "to_device.h" #include "converters.h" #include using namespace QMatrixClient; static const auto basePath = QStringLiteral("/_matrix/client/r0"); SendToDeviceJob::SendToDeviceJob(const QString& eventType, const QString& txnId, const QHash>& messages) : BaseJob(HttpVerb::Put, "SendToDeviceJob", basePath % "/sendToDevice/" % eventType % "/" % txnId) { QJsonObject _data; _data.insert("messages", toJson(messages)); setRequestData(_data); }