aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/kicking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/generated/kicking.cpp')
-rw-r--r--jobs/generated/kicking.cpp13
1 files changed, 2 insertions, 11 deletions
diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp
index 726f6fb0..4f9d6580 100644
--- a/jobs/generated/kicking.cpp
+++ b/jobs/generated/kicking.cpp
@@ -16,23 +16,14 @@ 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"
+KickJob::KickJob(QString roomId, QString user_id, QString reason)
+ : BaseJob(HttpVerb::Post, "KickJob"
, basePath % "/rooms/" % roomId % "/kick"
, Query { }
, Data {
{ "user_id", toJson(user_id) },
-
{ "reason", toJson(reason) }
}
-
)
{ }