diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-03 19:50:54 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-03 19:50:54 +0900 |
commit | ddf10847d496dd65b00bc2026412958acd09790d (patch) | |
tree | f7a90ff1177897095f705fec2d108cba2cc8a962 /lib/csapi/definitions/push_rule.h | |
parent | 826b8fb5afc80dd6adcc7ecee22997365a59f9d0 (diff) | |
download | libquotient-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.h | 37 |
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 |