diff options
author | Josip Delic <delijati@googlemail.com> | 2018-08-29 21:56:21 +0200 |
---|---|---|
committer | Josip Delic <delijati@googlemail.com> | 2018-08-29 21:56:21 +0200 |
commit | 6bb64db38f4a5f47d275a663861fd216f1bcf612 (patch) | |
tree | cf92c21991282852e2ae549cd950984a7ae64fc6 /lib/csapi/definitions/push_rule.h | |
parent | 8d07a6bec2689a81c3c3db64e5457143bd671223 (diff) | |
parent | d9ff200ff62fb7f5b6b51082dc3979d5454a1bec (diff) | |
download | libquotient-6bb64db38f4a5f47d275a663861fd216f1bcf612.tar.gz libquotient-6bb64db38f4a5f47d275a663861fd216f1bcf612.zip |
Merge branch 'master' of https://github.com/QMatrixClient/libqmatrixclient
Diffstat (limited to 'lib/csapi/definitions/push_rule.h')
-rw-r--r-- | lib/csapi/definitions/push_rule.h | 27 |
1 files changed, 2 insertions, 25 deletions
diff --git a/lib/csapi/definitions/push_rule.h b/lib/csapi/definitions/push_rule.h index 6959e9d1..c6542aa6 100644 --- a/lib/csapi/definitions/push_rule.h +++ b/lib/csapi/definitions/push_rule.h @@ -7,38 +7,15 @@ #include "converters.h" #include "csapi/definitions/push_condition.h" +#include "converters.h" #include <QtCore/QVector> #include <QtCore/QVariant> -#include "converters.h" +#include <QtCore/QJsonObject> namespace QMatrixClient { // Data structures - /// Specifies an entry to the 'tweaks' dictionary sent in - /// the notification request to the Push Gateway. - /// Tweak parameters, if any, are provided as additional - /// key-value pairs in this structure. - struct SetTweakAction - { - /// The tweak type. Two predefined types are `sound` - /// and `highlight`; client applications and Push Gateways - /// may agree on additional tweak types. - QString setTweak; - /// Specifies an entry to the 'tweaks' dictionary sent in - /// the notification request to the Push Gateway. - /// Tweak parameters, if any, are provided as additional - /// key-value pairs in this structure. - QVariantHash additionalProperties; - }; - - QJsonObject toJson(const SetTweakAction& pod); - - template <> struct FromJson<SetTweakAction> - { - SetTweakAction operator()(const QJsonValue& jv); - }; - struct PushRule { /// The actions to perform when this rule is matched. |