aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/kicking.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-09 20:14:08 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-09-09 20:14:08 +0900
commit1c86ff91b5db9bd6757e8149df462d4247fef90c (patch)
tree066f531087003a188d0b47ae890a2689a58d017d /jobs/generated/kicking.cpp
parent788e4f0af51d415053061f303b290a01633bb6c8 (diff)
downloadlibquotient-1c86ff91b5db9bd6757e8149df462d4247fef90c.tar.gz
libquotient-1c86ff91b5db9bd6757e8149df462d4247fef90c.zip
First files made by api-generator
Actual usage will some with the next commit.
Diffstat (limited to 'jobs/generated/kicking.cpp')
-rw-r--r--jobs/generated/kicking.cpp41
1 files changed, 41 insertions, 0 deletions
diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp
new file mode 100644
index 00000000..726f6fb0
--- /dev/null
+++ b/jobs/generated/kicking.cpp
@@ -0,0 +1,41 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+
+#include "kicking.h"
+
+
+#include "../converters.h"
+
+#include <QtCore/QStringBuilder>
+
+using namespace QMatrixClient;
+
+
+
+static const auto basePath = QStringLiteral("/_matrix/client/r0");
+
+
+KickJob::KickJob(const ConnectionData* connection,
+ QString roomId
+ ,
+ QString user_id
+ ,
+ QString reason
+ )
+ : BaseJob(connection, HttpVerb::Post, "KickJob"
+ , basePath % "/rooms/" % roomId % "/kick"
+ , Query { }
+ , Data {
+ { "user_id", toJson(user_id) },
+
+ { "reason", toJson(reason) }
+ }
+
+ )
+{ }
+
+
+
+