From b71f291d1979355c5efd7f53988d1d1acf294b09 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 4 May 2018 18:07:28 +0900 Subject: SendToDeviceJob: use a map-of-maps for messages instead of an opaque QJsonObject --- lib/jobs/generated/to_device.cpp | 2 +- lib/jobs/generated/to_device.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/jobs') 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>& 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 +#include 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>& messages = {}); }; } // namespace QMatrixClient -- cgit v1.2.3