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