blob: 8328d38a184793f3c455aa0ef494502446cb9a92 (
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
26
27
28
29
30
31
32
|
/******************************************************************************
* SPDX-FileCopyrightText: 2019 QMatrixClient project
*
* SPDX-License-Identifier: LGPL-2.1-or-later
*/
#pragma once
#include "stateevent.h"
namespace Quotient {
class RoomCreateEvent : public StateEventBase {
public:
DEFINE_EVENT_TYPEID("m.room.create", RoomCreateEvent)
explicit RoomCreateEvent() : StateEventBase(typeId(), matrixTypeId()) {}
explicit RoomCreateEvent(const QJsonObject& obj)
: StateEventBase(typeId(), obj)
{}
struct Predecessor {
QString roomId;
QString eventId;
};
bool isFederated() const;
QString version() const;
Predecessor predecessor() const;
bool isUpgrade() const;
};
REGISTER_EVENT_TYPE(RoomCreateEvent)
} // namespace Quotient
|