aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/kicking.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-30 03:36:29 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2017-11-30 03:36:29 +0900
commitbcdede472add732c49c95564034c8cfa1c38c725 (patch)
treef8a67ed14c6439633ec4ddc7f2bb16e235ce97fd /jobs/generated/kicking.cpp
parent357625eb55e2f4569bb487ffe14a9236188e25f3 (diff)
downloadlibquotient-bcdede472add732c49c95564034c8cfa1c38c725.tar.gz
libquotient-bcdede472add732c49c95564034c8cfa1c38c725.zip
Generated jobs: Apply naming convention to parameters
It's now camelCase everywhere, even if The Spec uses snake_case (it is not consistent in that respect).
Diffstat (limited to 'jobs/generated/kicking.cpp')
-rw-r--r--jobs/generated/kicking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/jobs/generated/kicking.cpp b/jobs/generated/kicking.cpp
index 28d51d05..a0719aa2 100644
--- a/jobs/generated/kicking.cpp
+++ b/jobs/generated/kicking.cpp
@@ -12,14 +12,14 @@ using namespace QMatrixClient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
-KickJob::KickJob(QString roomId, QString user_id, QString reason)
+KickJob::KickJob(QString roomId, QString userId, QString reason)
: BaseJob(HttpVerb::Post, "KickJob",
basePath % "/rooms/" % roomId % "/kick",
Query { }
)
{
Data _data;
- _data.insert("user_id", toJson(user_id));
+ _data.insert("user_id", toJson(userId));
if (!reason.isEmpty())
_data.insert("reason", toJson(reason));
setRequestData(_data);