Add serialization on matrix events
This commit is contained in:
parent
c6c024ccbf
commit
e5ccb73a20
27 changed files with 285 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue