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