From e5ccb73a20f559983960db2daa08d6086c90b8ec Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Thu, 27 Jul 2017 13:49:44 +0300 Subject: Add serialization on matrix events --- include/events/TopicEventContent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/events/TopicEventContent.h') diff --git a/include/events/TopicEventContent.h b/include/events/TopicEventContent.h index 460d019e..ff2fe3bb 100644 --- a/include/events/TopicEventContent.h +++ b/include/events/TopicEventContent.h @@ -29,10 +29,11 @@ namespace events * A topic is a short message detailing what is currently being discussed in the room. */ -class TopicEventContent : public Deserializable +class TopicEventContent : public Deserializable, public Serializable { public: void deserialize(const QJsonValue &data) override; + QJsonObject serialize() const override; inline QString topic() const; -- cgit 1.5.1