aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/room_send.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-07 19:46:40 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-06-07 19:46:40 +0200
commit32729d9a7519cd2c4cddb0174b8329c6fd4a4a83 (patch)
tree9a966d7dc0bf628f610d5de1ad64c8d29b6b26f8 /lib/csapi/room_send.h
parenta0430b1fb722a77ad7cbd28f181727d46d92b3a2 (diff)
downloadlibquotient-32729d9a7519cd2c4cddb0174b8329c6fd4a4a83.tar.gz
libquotient-32729d9a7519cd2c4cddb0174b8329c6fd4a4a83.zip
Update generated files according to gtad/* changes
Diffstat (limited to 'lib/csapi/room_send.h')
-rw-r--r--lib/csapi/room_send.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/lib/csapi/room_send.h b/lib/csapi/room_send.h
index 96b111ff..b1905e53 100644
--- a/lib/csapi/room_send.h
+++ b/lib/csapi/room_send.h
@@ -6,12 +6,8 @@
#include "jobs/basejob.h"
-#include <QtCore/QJsonObject>
-
namespace Quotient {
-// Operations
-
/*! \brief Send a message event to the given room.
*
* This endpoint is used to send a message event to a room. Message events
@@ -26,14 +22,18 @@ class SendMessageJob : public BaseJob {
public:
/*! \brief Send a message event to the given room.
*
+ *
* \param roomId
* The room to send the event to.
+ *
* \param eventType
* The type of event to send.
+ *
* \param txnId
* The transaction ID for this event. Clients should generate an
* ID unique across requests with the same access token; it will be
* used by the server to ensure idempotency of requests.
+ *
* \param body
* This endpoint is used to send a message event to a room. Message events
* allow access to historical events and pagination, making them suited
@@ -46,19 +46,10 @@ public:
explicit SendMessageJob(const QString& roomId, const QString& eventType,
const QString& txnId, const QJsonObject& body = {});
- ~SendMessageJob() override;
-
// Result properties
/// A unique identifier for the event.
- const QString& eventId() const;
-
-protected:
- Status parseJson(const QJsonDocument& data) override;
-
-private:
- class Private;
- QScopedPointer<Private> d;
+ QString eventId() const { return loadFromJson<QString>("event_id"_ls); }
};
} // namespace Quotient