Class PushUpdateRequest
- java.lang.Object
-
- io.github.ma1uta.matrix.client.model.push.PushUpdateRequest
-
public class PushUpdateRequest extends Object
JSON body request for push update api.
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>
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 String
pattern
Only applicable to content rules.
-
Constructor Summary
Constructors Constructor Description PushUpdateRequest()
-
Method Summary
Modifier and Type Method Description List<String>
getActions()
List<PushCondition>
getConditions()
String
getPattern()
void
setActions(List<String> actions)
void
setConditions(List<PushCondition> conditions)
void
setPattern(String pattern)
-
-
-
Field Detail
-
actions
private List<String> actions
Required. The action(s) to perform when the conditions for this rule are met. One of: ["notify", "dont_notify", "coalesce", "set_tweak"].
-
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
Only applicable to content rules. The glob- style pattern to match against.
-
-
Method Detail
-
getConditions
public List<PushCondition> getConditions()
-
setConditions
public void setConditions(List<PushCondition> conditions)
-
getPattern
public String getPattern()
-
setPattern
public void setPattern(String pattern)
-
-