diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/jobs/generated/to_device.cpp | 2 | ||||
-rw-r--r-- | lib/jobs/generated/to_device.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/jobs/generated/to_device.cpp b/lib/jobs/generated/to_device.cpp index cfb860c7..e893fa44 100644 --- a/lib/jobs/generated/to_device.cpp +++ b/lib/jobs/generated/to_device.cpp @@ -12,7 +12,7 @@ using namespace QMatrixClient; static const auto basePath = QStringLiteral("/_matrix/client/r0"); -SendToDeviceJob::SendToDeviceJob(const QString& eventType, const QString& txnId, const QJsonObject& messages) +SendToDeviceJob::SendToDeviceJob(const QString& eventType, const QString& txnId, const QHash<QString, QHash<QString, QJsonObject>>& messages) : BaseJob(HttpVerb::Put, "SendToDeviceJob", basePath % "/sendToDevice/" % eventType % "/" % txnId) { diff --git a/lib/jobs/generated/to_device.h b/lib/jobs/generated/to_device.h index 0de8fb0a..f5910e44 100644 --- a/lib/jobs/generated/to_device.h +++ b/lib/jobs/generated/to_device.h @@ -7,6 +7,7 @@ #include "../basejob.h" #include <QtCore/QJsonObject> +#include <QtCore/QHash> namespace QMatrixClient @@ -16,6 +17,6 @@ namespace QMatrixClient class SendToDeviceJob : public BaseJob { public: - explicit SendToDeviceJob(const QString& eventType, const QString& txnId, const QJsonObject& messages = {}); + explicit SendToDeviceJob(const QString& eventType, const QString& txnId, const QHash<QString, QHash<QString, QJsonObject>>& messages = {}); }; } // namespace QMatrixClient |