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