File: read_markers.cpp

package info (click to toggle)
libquotient 0.9.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,588 kB
  • sloc: xml: 39,103; cpp: 25,226; sh: 97; makefile: 10
file content (17 lines) | stat: -rw-r--r-- 676 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN

#include "read_markers.h"

using namespace Quotient;

SetReadMarkerJob::SetReadMarkerJob(const QString& roomId, const QString& fullyRead,
                                   const QString& read, const QString& readPrivate)
    : BaseJob(HttpVerb::Post, u"SetReadMarkerJob"_s,
              makePath("/_matrix/client/v3", "/rooms/", roomId, "/read_markers"))
{
    QJsonObject _dataJson;
    addParam<IfNotEmpty>(_dataJson, "m.fully_read"_L1, fullyRead);
    addParam<IfNotEmpty>(_dataJson, "m.read"_L1, read);
    addParam<IfNotEmpty>(_dataJson, "m.read.private"_L1, readPrivate);
    setRequestData({ _dataJson });
}