Push Rule
@JsonClass(generateAdapter = true )
Content copied to clipboard
Ref: https://matrix.org/docs/spec/client_server/latest#get-matrix-client-r0-pushrules
Constructors
Link copied to clipboard
fun PushRule( @Json(name = "actions" ) actions: List<Any>, @Json(name = "default" ) default: Boolean? = false, @Json(name = "enabled" ) enabled: Boolean, @Json(name = "rule_id" ) ruleId: String, @Json(name = "conditions" ) conditions: List<PushCondition>? = null, @Json(name = "pattern" ) pattern: String? = null)
Content copied to clipboard
Functions
Link copied to clipboard
Get the highlight status. As spec mentions assume false if no tweak present.
Link copied to clipboard
Link copied to clipboard
Remove the notification sound.
Link copied to clipboard
Set the highlight status.
Link copied to clipboard
Add the default notification sound.
Set the notification sound.
Link copied to clipboard
Return true if the rule should highlight the event.
Link copied to clipboard
Return true if the rule should not highlight the event.