aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/generated/notifications.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-01 20:04:51 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-01 20:59:50 +0900
commit38934c2310b426be640988dc10f48de88a3d92bc (patch)
treef69dbe30e73e4572cefd7804a6dfc2226e21738c /lib/jobs/generated/notifications.h
parentea363441269c9100c4bcc8076d4b3d125333a649 (diff)
downloadlibquotient-38934c2310b426be640988dc10f48de88a3d92bc.tar.gz
libquotient-38934c2310b426be640988dc10f48de88a3d92bc.zip
jobs/generated: use std::move in baseURL; type updates from the API files
The type updates are a matter of pending PR to matrix-doc yet.
Diffstat (limited to 'lib/jobs/generated/notifications.h')
-rw-r--r--lib/jobs/generated/notifications.h25
1 files changed, 4 insertions, 21 deletions
diff --git a/lib/jobs/generated/notifications.h b/lib/jobs/generated/notifications.h
index 9249a1b7..72318f69 100644
--- a/lib/jobs/generated/notifications.h
+++ b/lib/jobs/generated/notifications.h
@@ -6,6 +6,8 @@
#include "../basejob.h"
+#include <vector>
+#include "events/event.h"
#include <QtCore/QJsonObject>
#include <QtCore/QVector>
@@ -20,26 +22,7 @@ namespace QMatrixClient
public:
// Inner data structures
- struct Unsigned
- {
- qint64 age;
- QJsonObject prevContent;
- QString transactionId;
- QJsonObject redactedBecause;
-
- };
-
- struct Event
- {
- QString eventId;
- QJsonObject content;
- qint64 originServerTimestamp;
- QString sender;
- QString stateKey;
- QString type;
- Unsigned unsignedData;
-
- };
+ using Event = EventPtr;
struct Notification
{
@@ -65,7 +48,7 @@ namespace QMatrixClient
~GetNotificationsJob() override;
const QString& nextToken() const;
- const QVector<Notification>& notifications() const;
+ const std::vector<Notification>& notifications() const;
protected:
Status parseJson(const QJsonDocument& data) override;