Class PushCondition
- java.lang.Object
-
- io.github.ma1uta.matrix.event.nested.PushCondition
-
public class PushCondition extends Object
Push condition.
-
-
Field Detail
-
kind
private String kind
Required. One of: ["event_match", "contains_display_name", "room_member_count"].
-
key
private String key
Required for event_match conditions. The dot- separated field of the event to match.
-
pattern
private String pattern
Required for event_match conditions. The glob- style pattern to match against. Patterns with no special glob characters should be treated as having asterisks prepended and appended when testing the condition.
-
is
private String is
Required for room_member_count conditions. A decimal integer optionally prefixed by one of, ==, <, >, >= or <=. A prefix of < matches rooms where the member count is strictly less than the given number and so forth. If no prefix is present, this parameter defaults to ==.
-
-
Method Detail
-
getKind
public String getKind()
-
setKind
public void setKind(String kind)
-
getKey
public String getKey()
-
setKey
public void setKey(String key)
-
getPattern
public String getPattern()
-
setPattern
public void setPattern(String pattern)
-
getIs
public String getIs()
-
setIs
public void setIs(String is)
-
-