| 1 | /****************************************************************************** |
| 2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
| 3 | */ |
| 4 | |
| 5 | #include "kicking.h" |
| 6 | |
| 7 | using namespace Quotient; |
| 8 | |
| 9 | KickJob::KickJob(const QString& roomId, const QString& userId, |
| 10 | const QString& reason) |
| 11 | : BaseJob(HttpVerb::Post, QStringLiteral("KickJob" ), |
| 12 | makePath(parts: "/_matrix/client/v3" , parts: "/rooms/" , parts: roomId, parts: "/kick" )) |
| 13 | { |
| 14 | QJsonObject _dataJson; |
| 15 | addParam<>(container&: _dataJson, QStringLiteral("user_id" ), value: userId); |
| 16 | addParam<IfNotEmpty>(container&: _dataJson, QStringLiteral("reason" ), value: reason); |
| 17 | setRequestData({ _dataJson }); |
| 18 | } |
| 19 | |