| 1 | /****************************************************************************** |
| 2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
| 3 | */ |
| 4 | |
| 5 | #include "to_device.h" |
| 6 | |
| 7 | using namespace Quotient; |
| 8 | |
| 9 | SendToDeviceJob::SendToDeviceJob( |
| 10 | const QString& eventType, const QString& txnId, |
| 11 | const QHash<QString, QHash<QString, QJsonObject>>& messages) |
| 12 | : BaseJob(HttpVerb::Put, QStringLiteral("SendToDeviceJob" ), |
| 13 | makePath(parts: "/_matrix/client/v3" , parts: "/sendToDevice/" , parts: eventType, parts: "/" , |
| 14 | parts: txnId)) |
| 15 | { |
| 16 | QJsonObject _dataJson; |
| 17 | addParam<>(container&: _dataJson, QStringLiteral("messages" ), value: messages); |
| 18 | setRequestData({ _dataJson }); |
| 19 | } |
| 20 | |