Class ClientEvent
Room event as returned by sync, messages and state endpoints, see room event format.
Inherited Members
Namespace: Uniform.Matrix.Protocol.Core
Assembly: Uniform.Matrix.Protocol.Core.dll
Syntax
public sealed record ClientEvent : MatrixEvent, IEquatable<MatrixEvent>, IEquatable<ClientEvent>
Properties
| Edit this page View SourceEventId
Globally unique event ID.
Declaration
public required string EventId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
IsState
Whether this is a state event.
Declaration
[JsonIgnore]
public bool IsState { get; }
Property Value
| Type | Description |
|---|---|
| bool |
OriginServerTs
Server timestamp in milliseconds since Unix epoch.
Declaration
public required long OriginServerTs { get; init; }
Property Value
| Type | Description |
|---|---|
| long |
Redacts
Redacted event ID of RoomRedaction in room versions before 11.
Declaration
public string? Redacts { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
RoomId
Room of the event; omitted inside sync responses.
Declaration
public string? RoomId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Sender
User ID of the sender.
Declaration
public required string Sender { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
StateKey
State key; non-null exactly for state events.
Declaration
public string? StateKey { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Timestamp
OriginServerTs as a timestamp.
Declaration
[JsonIgnore]
public DateTimeOffset Timestamp { get; }
Property Value
| Type | Description |
|---|---|
| DateTimeOffset |
Unsigned
Extra data added by the server.
Declaration
public UnsignedData? Unsigned { get; init; }
Property Value
| Type | Description |
|---|---|
| UnsignedData |