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