aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/definitions/push_rule.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-03 19:50:54 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-06-03 19:50:54 +0900
commitddf10847d496dd65b00bc2026412958acd09790d (patch)
treef7a90ff1177897095f705fec2d108cba2cc8a962 /lib/csapi/definitions/push_rule.h
parent826b8fb5afc80dd6adcc7ecee22997365a59f9d0 (diff)
downloadlibquotient-ddf10847d496dd65b00bc2026412958acd09790d.tar.gz
libquotient-ddf10847d496dd65b00bc2026412958acd09790d.zip
csapi: jobs to setup push-rules
Diffstat (limited to 'lib/csapi/definitions/push_rule.h')
-rw-r--r--lib/csapi/definitions/push_rule.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/lib/csapi/definitions/push_rule.h b/lib/csapi/definitions/push_rule.h
new file mode 100644
index 00000000..853210d0
--- /dev/null
+++ b/lib/csapi/definitions/push_rule.h
@@ -0,0 +1,37 @@
+/******************************************************************************
+ * THIS FILE IS GENERATED - ANY EDITS WILL BE OVERWRITTEN
+ */
+
+#pragma once
+
+
+#include "lib/csapi/definitions/push_condition.h"
+#include "converters.h"
+#include <QtCore/QVector>
+#include <QtCore/QVariant>
+#include <QtCore/QJsonObject>
+
+#include "converters.h"
+
+namespace QMatrixClient
+{
+ // Data structures
+
+ struct PushRule
+ {
+ QVector<QVariant> actions;
+ bool isDefault;
+ bool enabled;
+ QString ruleId;
+ QVector<PushCondition> conditions;
+ QString pattern;
+ };
+
+ QJsonObject toJson(const PushRule& pod);
+
+ template <> struct FromJson<PushRule>
+ {
+ PushRule operator()(const QJsonValue& jv);
+ };
+
+} // namespace QMatrixClient