1 | /****************************************************************************** |
2 | * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN |
3 | */ |
4 | |
5 | #include "read_markers.h" |
6 | |
7 | using namespace Quotient; |
8 | |
9 | SetReadMarkerJob::SetReadMarkerJob(const QString& roomId, |
10 | const QString& mFullyRead, |
11 | const QString& mRead, |
12 | const QString& mReadPrivate) |
13 | : BaseJob(HttpVerb::Post, QStringLiteral("SetReadMarkerJob" ), |
14 | makePath(parts: "/_matrix/client/v3" , parts: "/rooms/" , parts: roomId, parts: "/read_markers" )) |
15 | { |
16 | QJsonObject _dataJson; |
17 | addParam<IfNotEmpty>(container&: _dataJson, QStringLiteral("m.fully_read" ), value: mFullyRead); |
18 | addParam<IfNotEmpty>(container&: _dataJson, QStringLiteral("m.read" ), value: mRead); |
19 | addParam<IfNotEmpty>(container&: _dataJson, QStringLiteral("m.read.private" ), |
20 | value: mReadPrivate); |
21 | setRequestData({ _dataJson }); |
22 | } |
23 | |