Package org.matrix.android.sdk.api.session.pushrules.rest

Types

Link copied to clipboard
@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

Link copied to clipboard
@JsonClass(generateAdapter = true)
data class PushRule(    @Json(name = "actions") val actions: List<Any>,     @Json(name = "default") val default: Boolean? = false,     @Json(name = "enabled") val enabled: Boolean,     @Json(name = "rule_id") val ruleId: String,     @Json(name = "conditions") val conditions: List<PushCondition>? = null,     @Json(name = "pattern") val pattern: String? = null)

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

Link copied to clipboard
data class PushRuleAndKind(val pushRule: PushRule, val kind: RuleSetKey)
Link copied to clipboard
@JsonClass(generateAdapter = true)
data class RuleSet(    @Json(name = "content") val content: List<PushRule>? = null,     @Json(name = "override") val override: List<PushRule>? = null,     @Json(name = "room") val room: List<PushRule>? = null,     @Json(name = "sender") val sender: List<PushRule>? = null,     @Json(name = "underride") val underride: List<PushRule>? = null)

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