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