aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomkeyevent.h
blob: b8cd2eae9bad056499e09c8df7beaf420479e01e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once

#include "event.h"

namespace Quotient {
class RoomKeyEvent : public Event
{
public:
    DEFINE_EVENT_TYPEID("m.room_key", RoomKeyEvent)

    explicit RoomKeyEvent(const QJsonObject& obj);

    QString algorithm() const { return content<QString>("algorithm"_ls); }
    QString roomId() const { return content<QString>(RoomIdKeyL); }
    QString sessionId() const { return content<QString>("session_id"_ls); }
    QString sessionKey() const { return content<QString>("session_key"_ls); }
};
REGISTER_EVENT_TYPE(RoomKeyEvent)
} // namespace Quotient