aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/receipts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/receipts.cpp')
-rw-r--r--lib/csapi/receipts.cpp21
1 files changed, 21 insertions, 0 deletions
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 <QtCore/QStringBuilder>
+
+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)));
+}
+