aboutsummaryrefslogtreecommitdiff
path: root/lib/events/roomtombstoneevent.h
blob: 8d50aba000af7368c8ada482d1dddfd6da102eed (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
/******************************************************************************
 * SPDX-FileCopyrightText: 2019 QMatrixClient project
 *
 * SPDX-License-Identifier: LGPL-2.1-or-later
 */

#pragma once

#include "stateevent.h"

namespace Quotient {
class RoomTombstoneEvent : public StateEventBase {
public:
    DEFINE_EVENT_TYPEID("m.room.tombstone", RoomTombstoneEvent)

    explicit RoomTombstoneEvent() : StateEventBase(typeId(), matrixTypeId()) {}
    explicit RoomTombstoneEvent(const QJsonObject& obj)
        : StateEventBase(typeId(), obj)
    {}

    QString serverMessage() const;
    QString successorRoomId() const;
};
REGISTER_EVENT_TYPE(RoomTombstoneEvent)
} // namespace Quotient