aboutsummaryrefslogtreecommitdiff
path: root/lib/events/keyverificationevent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/events/keyverificationevent.cpp')
-rw-r--r--lib/events/keyverificationevent.cpp32
1 files changed, 31 insertions, 1 deletions
diff --git a/lib/events/keyverificationevent.cpp b/lib/events/keyverificationevent.cpp
index 4803955d..e7f5b019 100644
--- a/lib/events/keyverificationevent.cpp
+++ b/lib/events/keyverificationevent.cpp
@@ -106,7 +106,7 @@ QStringList KeyVerificationAcceptEvent::shortAuthenticationString() const
return contentPart<QStringList>("short_authentification_string"_ls);
}
-QString KeyVerificationAcceptEvent::commitement() const
+QString KeyVerificationAcceptEvent::commitment() const
{
return contentPart<QString>("commitment"_ls);
}
@@ -162,3 +162,33 @@ QHash<QString, QString> KeyVerificationMacEvent::mac() const
{
return contentPart<QHash<QString, QString>>("mac"_ls);
}
+
+KeyVerificationDoneEvent::KeyVerificationDoneEvent(const QJsonObject &obj)
+ : Event(typeId(), obj)
+{
+}
+
+QString KeyVerificationDoneEvent::transactionId() const
+{
+ return contentPart<QString>("transaction_id"_ls);
+}
+
+
+KeyVerificationReadyEvent::KeyVerificationReadyEvent(const QJsonObject &obj)
+ : Event(typeId(), obj)
+{}
+
+QString KeyVerificationReadyEvent::fromDevice() const
+{
+ return contentPart<QString>("from_device"_ls);
+}
+
+QString KeyVerificationReadyEvent::transactionId() const
+{
+ return contentPart<QString>("transaction_id"_ls);
+}
+
+QStringList KeyVerificationReadyEvent::methods() const
+{
+ return contentPart<QStringList>("methods"_ls);
+}