diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-11-30 03:36:29 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-11-30 03:36:29 +0900 |
commit | bcdede472add732c49c95564034c8cfa1c38c725 (patch) | |
tree | f8a67ed14c6439633ec4ddc7f2bb16e235ce97fd /jobs/generated/kicking.cpp | |
parent | 357625eb55e2f4569bb487ffe14a9236188e25f3 (diff) | |
download | libquotient-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.cpp | 4 |
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); |