toggle menu
trixnity-core
4.3.0
common
switch theme
search in API
trixnity-core
/
net.folivo.trixnity.core.model.push
/
PushRule
Push
Rule
sealed
interface
PushRule
See also
matrix spec
Inheritors
Override
Content
Room
Sender
Underride
Members
Types
Content
Link copied to clipboard
@
Serializable
data
class
Content
(
val
ruleId
:
String
,
val
default
:
Boolean
=
false
,
val
enabled
:
Boolean
=
false
,
val
actions
:
Set
<
PushAction
>
=
setOf()
,
val
pattern
:
String
)
:
PushRule
Override
Link copied to clipboard
@
Serializable
data
class
Override
(
val
ruleId
:
String
,
val
default
:
Boolean
=
false
,
val
enabled
:
Boolean
=
false
,
val
actions
:
Set
<
PushAction
>
=
setOf()
,
val
conditions
:
Set
<
PushCondition
>
?
=
null
)
:
PushRule
Room
Link copied to clipboard
@
Serializable
data
class
Room
(
val
roomId
:
RoomId
,
val
default
:
Boolean
=
false
,
val
enabled
:
Boolean
=
false
,
val
actions
:
Set
<
PushAction
>
=
setOf()
)
:
PushRule
Sender
Link copied to clipboard
@
Serializable
data
class
Sender
(
val
userId
:
UserId
,
val
default
:
Boolean
=
false
,
val
enabled
:
Boolean
=
false
,
val
actions
:
Set
<
PushAction
>
=
setOf()
)
:
PushRule
Underride
Link copied to clipboard
@
Serializable
data
class
Underride
(
val
ruleId
:
String
,
val
default
:
Boolean
=
false
,
val
enabled
:
Boolean
=
false
,
val
actions
:
Set
<
PushAction
>
=
setOf()
,
val
conditions
:
Set
<
PushCondition
>
?
=
null
)
:
PushRule
Properties
actions
Link copied to clipboard
abstract
val
actions
:
Set
<
PushAction
>
default
Link copied to clipboard
abstract
val
default
:
Boolean
enabled
Link copied to clipboard
abstract
val
enabled
:
Boolean
kind
Link copied to clipboard
abstract
val
kind
:
PushRuleKind
rule
Id
Link copied to clipboard
abstract
val
ruleId
:
String