aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/push_rule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/definitions/push_rule.cpp')
-rw-r--r--lib/csapi/definitions/push_rule.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/csapi/definitions/push_rule.cpp b/lib/csapi/definitions/push_rule.cpp
index abbb04b5..bfa8a7ef 100644
--- a/lib/csapi/definitions/push_rule.cpp
+++ b/lib/csapi/definitions/push_rule.cpp
@@ -4,10 +4,11 @@
#include "push_rule.h"
+
using namespace QMatrixClient;
-void JsonObjectConverter<PushRule>::dumpTo(
- QJsonObject& jo, const PushRule& pod)
+
+void JsonObjectConverter<PushRule>::dumpTo(QJsonObject& jo, const PushRule& pod)
{
addParam<>(jo, QStringLiteral("actions"), pod.actions);
addParam<>(jo, QStringLiteral("default"), pod.isDefault);
@@ -15,10 +16,10 @@ void JsonObjectConverter<PushRule>::dumpTo(
addParam<>(jo, QStringLiteral("rule_id"), pod.ruleId);
addParam<IfNotEmpty>(jo, QStringLiteral("conditions"), pod.conditions);
addParam<IfNotEmpty>(jo, QStringLiteral("pattern"), pod.pattern);
-}
-void JsonObjectConverter<PushRule>::fillFrom(
- const QJsonObject& jo, PushRule& result)
+}
+
+void JsonObjectConverter<PushRule>::fillFrom(const QJsonObject& jo, PushRule& result)
{
fromJson(jo.value("actions"_ls), result.actions);
fromJson(jo.value("default"_ls), result.isDefault);
@@ -26,5 +27,8 @@ void JsonObjectConverter<PushRule>::fillFrom(
fromJson(jo.value("rule_id"_ls), result.ruleId);
fromJson(jo.value("conditions"_ls), result.conditions);
fromJson(jo.value("pattern"_ls), result.pattern);
+
}
+
+