PushCondition

@JsonClass(generateAdapter = true)
data class PushCondition(    @Json(name = "kind") val kind: String,     @Json(name = "key") val key: String? = null,     @Json(name = "pattern") val pattern: String? = null,     @Json(name = "is") val iz: String? = null)

Ref: https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-pushrules

Constructors

Link copied to clipboard
fun PushCondition(    @Json(name = "kind") kind: String,     @Json(name = "key") key: String? = null,     @Json(name = "pattern") pattern: String? = null,     @Json(name = "is") iz: String? = null)

Functions

Link copied to clipboard
fun asExecutableCondition(): Condition?

Properties

Link copied to clipboard
val iz: String? = null

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 ==.

Link copied to clipboard
val key: String? = null

Required for event_match conditions. The dot- separated field of the event to match.

Link copied to clipboard
val kind: String

Required. The kind of condition to apply.

Link copied to clipboard
val pattern: String? = null

Required for event_match conditions.