Class PushRule
- java.lang.Object
-
- io.github.ma1uta.matrix.event.nested.PushRule
-
public class PushRule extends Object
Push rule.
-
-
Field Summary
Fields Modifier and Type Field Description private List<Object>
actions
Required.private List<PushCondition>
conditions
The conditions that must hold true for an event in order for a rule to be applied to an event.private Boolean
defaultRule
Required.private Boolean
enabled
Required.private String
pattern
The glob-style pattern to match against.private String
ruleId
Required.
-
Constructor Summary
Constructors Constructor Description PushRule()
-
Method Summary
Modifier and Type Method Description List<Object>
getActions()
List<PushCondition>
getConditions()
Boolean
getDefaultRule()
Boolean
getEnabled()
String
getPattern()
String
getRuleId()
void
setActions(List<Object> actions)
void
setConditions(List<PushCondition> conditions)
void
setDefaultRule(Boolean defaultRule)
void
setEnabled(Boolean enabled)
void
setPattern(String pattern)
void
setRuleId(String ruleId)
-
-
-
Field Detail
-
defaultRule
private Boolean defaultRule
Required. Whether this is a default rule, or has been set explicitly.
-
enabled
private Boolean enabled
Required. Whether the push rule is enabled or not.
-
ruleId
private String ruleId
Required. The ID of this rule.
-
conditions
private List<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.
-
pattern
private String pattern
The glob-style pattern to match against. Only applicable to content rules.
-
-
Method Detail
-
getDefaultRule
public Boolean getDefaultRule()
-
setDefaultRule
public void setDefaultRule(Boolean defaultRule)
-
getEnabled
public Boolean getEnabled()
-
setEnabled
public void setEnabled(Boolean enabled)
-
getRuleId
public String getRuleId()
-
setRuleId
public void setRuleId(String ruleId)
-
getConditions
public List<PushCondition> getConditions()
-
setConditions
public void setConditions(List<PushCondition> conditions)
-
getPattern
public String getPattern()
-
setPattern
public void setPattern(String pattern)
-
-