blob: e4bcfd715d05855b58867cff1bdd13333fa32751 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#pragma once
#include "event.h"
namespace Quotient {
class RoomKeyEvent : public Event
{
public:
DEFINE_EVENT_TYPEID("m.room_key", RoomKeyEvent)
RoomKeyEvent(const QJsonObject& obj);
const QString algorithm() const { return _algorithm; }
const QString roomId() const { return _roomId; }
const QString sessionId() const { return _sessionId; }
const QString sessionKey() const { return _sessionKey; }
private:
QString _algorithm;
QString _roomId;
QString _sessionId;
QString _sessionKey;
};
REGISTER_EVENT_TYPE(RoomKeyEvent)
} // namespace Quotient
|