blob: c5ad14df0295a8d577d10d608d1490ab99e82a06 (
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
|
// SPDX-FileCopyrightText: 2017 Marius Gripsgard <marius@ubports.com>
// SPDX-FileCopyrightText: 2018 Josip Delic <delijati@googlemail.com>
// SPDX-License-Identifier: LGPL-2.1-or-later
#pragma once
#include "roomevent.h"
namespace Quotient {
class QUOTIENT_API CallAnswerEvent
: public EventTemplate<CallAnswerEvent, CallEventBase> {
public:
QUO_EVENT(CallAnswerEvent, "m.call.answer")
using EventTemplate::EventTemplate;
explicit CallAnswerEvent(const QString& callId, const QString& sdp);
QString sdp() const
{
return contentPart<QJsonObject>("answer"_ls).value("sdp"_ls).toString();
}
};
} // namespace Quotient
|