struct
#include <include/mtx/pushrules.hpp>
PushRule A pushrule defining the notification behaviour for a message.
Public variables
- bool default_
- Required. Whether this is a default rule, or has been set explicitly.
- bool enabled
- Required. Whether the push rule is enabled or not.
-
std::vector<actions::
Action> actions - Required. The actions to perform when this rule is matched.
- std::string rule_id
- Required. The ID of this rule.
- std::string pattern
- The glob-style pattern to match against. Only applicable to content rules.
- std::vector<PushCondition> conditions
- The conditions that must hold true for an event in order for a rule to be applied to an event. A rule with no conditions always matches. Only applicable to underride and override rules.