aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomkeyevent.cpp
blob: 1fb2e9f59219dc59d7da8e8d1a967b3efcf6b8bf (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "roomkeyevent.h"

using namespace Quotient;

RoomKeyEvent::RoomKeyEvent(const QJsonObject &obj) : Event(typeId(), obj)
{
    _algorithm = contentJson()["algorithm"_ls].toString();
    _roomId = contentJson()["room_id"_ls].toString();
    _sessionId = contentJson()["session_id"_ls].toString();
    _sessionKey = contentJson()["session_key"_ls].toString();
}