diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-11-01 17:51:47 +0300 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2017-11-01 17:51:47 +0300 |
commit | 64c0b7e045d9e8d58d91f252219a5579d4ba9441 (patch) | |
tree | f57916b5589824e788b70cd26c6ee11ca136e472 /events | |
parent | c4e1e0906558608326210eb333b0beb73636de60 (diff) | |
download | libquotient-64c0b7e045d9e8d58d91f252219a5579d4ba9441.tar.gz libquotient-64c0b7e045d9e8d58d91f252219a5579d4ba9441.zip |
Add TypeId to more events
Diffstat (limited to 'events')
-rw-r--r-- | events/roommemberevent.h | 2 | ||||
-rw-r--r-- | events/typingevent.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/events/roommemberevent.h b/events/roommemberevent.h index 9ebb75ee..358af257 100644 --- a/events/roommemberevent.h +++ b/events/roommemberevent.h @@ -28,6 +28,8 @@ namespace QMatrixClient { Q_GADGET public: + static constexpr const char* TypeId = "m.room.member"; + enum MembershipType : int {Invite = 0, Join, Knock, Leave, Ban}; explicit RoomMemberEvent(const QJsonObject& obj); diff --git a/events/typingevent.h b/events/typingevent.h index b12d224e..8c9551a4 100644 --- a/events/typingevent.h +++ b/events/typingevent.h @@ -27,6 +27,8 @@ namespace QMatrixClient class TypingEvent: public Event { public: + static constexpr const char* const TypeId = "m.typing"; + TypingEvent(const QJsonObject& obj); QStringList users() const { return _users; } |