diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2022-05-08 19:08:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-08 19:08:57 +0200 |
commit | 3458fdf7b416fe64b82ec9b99553c7b2aa299e4c (patch) | |
tree | b3b1bce3ebf0631597aa6d8451e62d198a42c2be /lib/events/callcandidatesevent.h | |
parent | 272cb01b05529971ea38e09bf75d8d8f194a9dd8 (diff) | |
parent | c42d268db0b40cdba06381fc64a6966a72c90709 (diff) | |
download | libquotient-3458fdf7b416fe64b82ec9b99553c7b2aa299e4c.tar.gz libquotient-3458fdf7b416fe64b82ec9b99553c7b2aa299e4c.zip |
Merge #548: Streamline usage of event types, part 1
Diffstat (limited to 'lib/events/callcandidatesevent.h')
-rw-r--r-- | lib/events/callcandidatesevent.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/lib/events/callcandidatesevent.h b/lib/events/callcandidatesevent.h index 74c38f2c..e949f722 100644 --- a/lib/events/callcandidatesevent.h +++ b/lib/events/callcandidatesevent.h @@ -23,20 +23,9 @@ public: { { QStringLiteral("candidates"), candidates } }) {} - QJsonArray candidates() const - { - return contentPart<QJsonArray>("candidates"_ls); - } - - QString callId() const - { - return contentPart<QString>("call_id"); - } - - int version() const - { - return contentPart<int>("version"); - } + QUO_CONTENT_GETTER(QJsonArray, candidates) + QUO_CONTENT_GETTER(QString, callId) + QUO_CONTENT_GETTER(int, version) }; REGISTER_EVENT_TYPE(CallCandidatesEvent) |