#pragma once #include "event.h" namespace Quotient { class RoomKeyEvent : public Event { public: DEFINE_EVENT_TYPEID("m.room_key", RoomKeyEvent) RoomKeyEvent(const QJsonObject& obj); QString algorithm() const { return content("algorithm"_ls); } QString roomId() const { return content("room_id"_ls); } QString sessionId() const { return content("session_id"_ls); } QString sessionKey() const { return content("session_key"_ls); } }; REGISTER_EVENT_TYPE(RoomKeyEvent) } // namespace Quotient