blob: ba965de9783a8d2aaa9e0366db2b2758738561d7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
/******************************************************************************
* SPDX-FileCopyrightText: 2017 Kitsune Ral <kitsune-ral@users.sf.net>
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#pragma once
#include "basejob.h"
#include <QtCore/QJsonObject>
using namespace Quotient;
class PostReadMarkersJob : public BaseJob {
public:
explicit PostReadMarkersJob(const QString& roomId,
const QString& readUpToEventId)
: BaseJob(
HttpVerb::Post, "PostReadMarkersJob",
QStringLiteral("_matrix/client/r0/rooms/%1/read_markers").arg(roomId))
{
setRequestData(
QJsonObject { { QStringLiteral("m.fully_read"), readUpToEventId } });
}
};
|