aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-27 20:27:39 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-02-27 20:27:39 +0900
commita95618af600c8c72c15ece48682ee6260de27aff (patch)
tree7b66ae78233abddbfed2975966c05633605cf5c7
parente9e407ba2aca7e3dc0cea5040738953f1961e09c (diff)
downloadlibquotient-a95618af600c8c72c15ece48682ee6260de27aff.tar.gz
libquotient-a95618af600c8c72c15ece48682ee6260de27aff.zip
jobs/generated: SendToDeviceJob
-rw-r--r--jobs/generated/to_device.cpp23
-rw-r--r--jobs/generated/to_device.h21
2 files changed, 44 insertions, 0 deletions
diff --git a/jobs/generated/to_device.cpp b/jobs/generated/to_device.cpp
new file mode 100644
index 00000000..cfb860c7
--- /dev/null
+++ b/jobs/generated/to_device.cpp
@@ -0,0 +1,23 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#include "to_device.h"
+
+#include "converters.h"
+
+#include <QtCore/QStringBuilder>
+
+using namespace QMatrixClient;
+
+static const auto basePath = QStringLiteral("/_matrix/client/r0");
+
+SendToDeviceJob::SendToDeviceJob(const QString& eventType, const QString& txnId, const QJsonObject& messages)
+ : BaseJob(HttpVerb::Put, "SendToDeviceJob",
+ basePath % "/sendToDevice/" % eventType % "/" % txnId)
+{
+ QJsonObject _data;
+ _data.insert("messages", toJson(messages));
+ setRequestData(_data);
+}
+
diff --git a/jobs/generated/to_device.h b/jobs/generated/to_device.h
new file mode 100644
index 00000000..0de8fb0a
--- /dev/null
+++ b/jobs/generated/to_device.h
@@ -0,0 +1,21 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+#include "../basejob.h"
+
+#include <QtCore/QJsonObject>
+
+
+namespace QMatrixClient
+{
+ // Operations
+
+ class SendToDeviceJob : public BaseJob
+ {
+ public:
+ explicit SendToDeviceJob(const QString& eventType, const QString& txnId, const QJsonObject& messages = {});
+ };
+} // namespace QMatrixClient