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/PowerLevelsEventContent.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/events/PowerLevelsEventContent.h') diff --git a/include/events/PowerLevelsEventContent.h b/include/events/PowerLevelsEventContent.h index e5762812..7def9800 100644 --- a/include/events/PowerLevelsEventContent.h +++ b/include/events/PowerLevelsEventContent.h @@ -36,10 +36,11 @@ enum class PowerLevels { * Defines the power levels (privileges) of users in the room. */ -class PowerLevelsEventContent : public Deserializable +class PowerLevelsEventContent : public Deserializable, public Serializable { public: void deserialize(const QJsonValue &data) override; + QJsonObject serialize() const override; inline int banLevel() const; inline int inviteLevel() const; -- cgit 1.5.1