1 | /****************************************************************************** |
2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
3 | */ |
4 | |
5 | #include "inviting.h" |
6 | |
7 | using namespace Quotient; |
8 | |
9 | InviteUserJob::InviteUserJob(const QString& roomId, const QString& userId, |
10 | const QString& reason) |
11 | : BaseJob(HttpVerb::Post, QStringLiteral("InviteUserJob" ), |
12 | makePath(parts: "/_matrix/client/v3" , parts: "/rooms/" , parts: roomId, parts: "/invite" )) |
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 | |