/****************************************************************************** * SPDX-FileCopyrightText: 2016 Felix Rohrbach * * SPDX-License-Identifier: LGPL-2.1-or-later */ #pragma once #include "event.h" #include #include namespace Quotient { struct Receipt { QString userId; QDateTime timestamp; }; struct ReceiptsForEvent { QString evtId; QVector receipts; }; using EventsWithReceipts = QVector; class ReceiptEvent : public Event { public: DEFINE_EVENT_TYPEID("m.receipt", ReceiptEvent) explicit ReceiptEvent(const QJsonObject& obj) : Event(typeId(), obj) {} EventsWithReceipts eventsWithReceipts() const; }; REGISTER_EVENT_TYPE(ReceiptEvent) } // namespace Quotient