// SPDX-FileCopyrightText: 2017 Marius Gripsgard // SPDX-FileCopyrightText: 2018 Josip Delic // SPDX-License-Identifier: LGPL-2.1-or-later #pragma once #include "roomevent.h" namespace Quotient { class QUOTIENT_API CallAnswerEvent : public EventTemplate { public: QUO_EVENT(CallAnswerEvent, "m.call.answer") using EventTemplate::EventTemplate; explicit CallAnswerEvent(const QString& callId, const QString& sdp); QString sdp() const { return contentPart("answer"_ls).value("sdp"_ls).toString(); } }; } // namespace Quotient