Class PushContext
Facts about the room and the user that push rule conditions need, besides the event itself.
Implements
Inherited Members
Namespace: Uniform.Matrix.Protocol.Server
Assembly: Uniform.Matrix.Protocol.Server.dll
Syntax
public sealed record PushContext : IEquatable<PushContext>
Properties
| Edit this page View SourceDisplayName
The user's display name in the room, for contains_display_name; null when none.
Declaration
public string? DisplayName { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
MemberCount
Joined members of the room, for room_member_count.
Declaration
public long MemberCount { get; init; }
Property Value
| Type | Description |
|---|---|
| long |
SenderMayNotify
Whether the event's sender may notify the whole room for a key such as room, for sender_notification_permission.
Declaration
public Func<string, bool> SenderMayNotify { get; init; }
Property Value
| Type | Description |
|---|---|
| Func<string, bool> |
UserId
The user the rules belong to.
Declaration
public required string UserId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |