blob: c96731180ec07773a9f5c2fa6aa11dc9dc33f720 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/******************************************************************************
* THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
*/
#include "typing.h"
using namespace Quotient;
SetTypingJob::SetTypingJob(const QString& userId, const QString& roomId,
bool typing, Omittable<int> timeout)
: BaseJob(HttpVerb::Put, QStringLiteral("SetTypingJob"),
makePath("/_matrix/client/r0", "/rooms/", roomId, "/typing/",
userId))
{
QJsonObject _data;
addParam<>(_data, QStringLiteral("typing"), typing);
addParam<IfNotEmpty>(_data, QStringLiteral("timeout"), timeout);
setRequestData(std::move(_data));
}
|