aboutsummaryrefslogtreecommitdiff
path: root/lib/events/directchatevent.h
blob: 2018d3d6cb7a0a9e99b6c2d92aa6b1c004695d69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPDX-FileCopyrightText: 2018 Kitsune Ral <kitsune-ral@users.sf.net>
// SPDX-License-Identifier: LGPL-2.1-or-later

#pragma once

#include "event.h"

namespace Quotient {
class QUOTIENT_API DirectChatEvent : public Event {
public:
    DEFINE_EVENT_TYPEID("m.direct", DirectChatEvent)

    explicit DirectChatEvent(const QJsonObject& obj) : Event(typeId(), obj) {}

    QMultiHash<QString, QString> usersToDirectChats() const;
};
REGISTER_EVENT_TYPE(DirectChatEvent)
} // namespace Quotient