SetPushRule

@Serializable
data class SetPushRule(val scope: String, val kind: PushRuleKind, val ruleId: String, val beforeRuleId: String? = null, val afterRuleId: String? = null, val asUserId: UserId? = null) : MatrixEndpoint<SetPushRule.Request, Unit>

See also

Constructors

Link copied to clipboard
fun SetPushRule(scope: String, kind: PushRuleKind, ruleId: String, beforeRuleId: String? = null, afterRuleId: String? = null, asUserId: UserId? = null)

Types

Link copied to clipboard
@Serializable
data class Request(val actions: Set<PushAction>, val conditions: Set<PushCondition> = setOf(), val pattern: String? = null)

Functions

Link copied to clipboard
open fun requestSerializerBuilder(mappings: EventContentSerializerMappings, json: Json): KSerializer<SetPushRule.Request>?
Link copied to clipboard
open fun responseSerializerBuilder(mappings: EventContentSerializerMappings, json: Json): KSerializer<Unit>?

Properties

Link copied to clipboard
val afterRuleId: String? = null
Link copied to clipboard
val asUserId: UserId? = null
Link copied to clipboard
val beforeRuleId: String? = null
Link copied to clipboard
val kind: PushRuleKind
Link copied to clipboard
open val requestContentType: ContentType?
Link copied to clipboard
open val responseContentType: ContentType?
Link copied to clipboard
Link copied to clipboard