aboutsummaryrefslogtreecommitdiff
path: root/jobs/generated/banning.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/generated/banning.cpp')
-rw-r--r--jobs/generated/banning.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/jobs/generated/banning.cpp b/jobs/generated/banning.cpp
index ebb4c96c..67b0e8a1 100644
--- a/jobs/generated/banning.cpp
+++ b/jobs/generated/banning.cpp
@@ -12,27 +12,27 @@ using namespace QMatrixClient;
static const auto basePath = QStringLiteral("/_matrix/client/r0");
-BanJob::BanJob(QString roomId, QString user_id, QString reason)
+BanJob::BanJob(QString roomId, QString userId, QString reason)
: BaseJob(HttpVerb::Post, "BanJob",
basePath % "/rooms/" % roomId % "/ban",
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);
}
-UnbanJob::UnbanJob(QString roomId, QString user_id)
+UnbanJob::UnbanJob(QString roomId, QString userId)
: BaseJob(HttpVerb::Post, "UnbanJob",
basePath % "/rooms/" % roomId % "/unban",
Query { }
)
{
Data _data;
- _data.insert("user_id", toJson(user_id));
+ _data.insert("user_id", toJson(userId));
setRequestData(_data);
}