diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 18:07:28 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-04 18:07:28 +0900 |
commit | b71f291d1979355c5efd7f53988d1d1acf294b09 (patch) | |
tree | f4ea3ce48631b997e7393d48d6b1ce1339894ef8 | |
parent | 4289e72fdbe14b92d14fc18b9aa23cd0e2ae7eba (diff) | |
download | libquotient-b71f291d1979355c5efd7f53988d1d1acf294b09.tar.gz libquotient-b71f291d1979355c5efd7f53988d1d1acf294b09.zip |
SendToDeviceJob: use a map-of-maps for messages instead of an opaque QJsonObject
-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 |