From 49022915fde72b83d9f18944c268110b01fa3469 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Fri, 4 May 2018 23:04:04 +0900 Subject: New home for the generated code - lib/csapi --- lib/csapi/receipts.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/csapi/receipts.cpp (limited to 'lib/csapi/receipts.cpp') diff --git a/lib/csapi/receipts.cpp b/lib/csapi/receipts.cpp new file mode 100644 index 00000000..945e8673 --- /dev/null +++ b/lib/csapi/receipts.cpp @@ -0,0 +1,21 @@ +/****************************************************************************** + * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN + */ + +#include "receipts.h" + +#include "converters.h" + +#include + +using namespace QMatrixClient; + +static const auto basePath = QStringLiteral("/_matrix/client/r0"); + +PostReceiptJob::PostReceiptJob(const QString& roomId, const QString& receiptType, const QString& eventId, const QJsonObject& receipt) + : BaseJob(HttpVerb::Post, "PostReceiptJob", + basePath % "/rooms/" % roomId % "/receipt/" % receiptType % "/" % eventId) +{ + setRequestData(Data(toJson(receipt))); +} + -- cgit v1.2.3