1 | /****************************************************************************** |
2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
3 | */ |
4 | |
5 | #include "third_party_membership.h" |
6 | |
7 | using namespace Quotient; |
8 | |
9 | InviteBy3PIDJob::InviteBy3PIDJob(const QString& roomId, const QString& idServer, |
10 | const QString& idAccessToken, |
11 | const QString& medium, const QString& address) |
12 | : BaseJob(HttpVerb::Post, QStringLiteral("InviteBy3PIDJob" ), |
13 | makePath(parts: "/_matrix/client/v3" , parts: "/rooms/" , parts: roomId, parts: "/invite" )) |
14 | { |
15 | QJsonObject _dataJson; |
16 | addParam<>(container&: _dataJson, QStringLiteral("id_server" ), value: idServer); |
17 | addParam<>(container&: _dataJson, QStringLiteral("id_access_token" ), value: idAccessToken); |
18 | addParam<>(container&: _dataJson, QStringLiteral("medium" ), value: medium); |
19 | addParam<>(container&: _dataJson, QStringLiteral("address" ), value: address); |
20 | setRequestData({ _dataJson }); |
21 | } |
22 | |