RuleSet

@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

Constructors

Link copied to clipboard
fun RuleSet(    @Json(name = "content") content: List<PushRule>? = null,     @Json(name = "override") override: List<PushRule>? = null,     @Json(name = "room") room: List<PushRule>? = null,     @Json(name = "sender") sender: List<PushRule>? = null,     @Json(name = "underride") underride: List<PushRule>? = null)

Functions

Link copied to clipboard
fun findDefaultRule(ruleId: String): PushRuleAndKind?

Find a rule from its ruleID.

Link copied to clipboard
fun getAllRules(): List<PushRule>

Properties

Link copied to clipboard
val content: List<PushRule>? = null
Link copied to clipboard
val override: List<PushRule>? = null
Link copied to clipboard
val room: List<PushRule>? = null
Link copied to clipboard
val sender: List<PushRule>? = null
Link copied to clipboard
val underride: List<PushRule>? = null