Class SyncFilter
Namespace: Uniform.Matrix.Server.Sync
Assembly: Uniform.Matrix.Server.dll
public sealed record SyncFilter : IEquatable<SyncFilter>
Fields
|
Edit this page
View Source
Filter of clients that set none.
Declaration
public static readonly SyncFilter Default
Field Value
Properties
|
Edit this page
View Source
Whether initial syncs include rooms the user has left.
Declaration
public bool IncludeLeave { get; init; }
Property Value
|
Edit this page
View Source
Whether state holds only the members needed for the timeline.
Declaration
public bool LazyLoadMembers { get; init; }
Property Value
|
Edit this page
View Source
Declaration
public IReadOnlySet<string> NotRooms { get; init; }
Property Value
|
Edit this page
View Source
Rooms to include; all when null.
Declaration
public IReadOnlySet<string>? Rooms { get; init; }
Property Value
|
Edit this page
View Source
Timeline events per room; 10 by default.
Declaration
public int TimelineLimit { get; init; }
Property Value
|
Edit this page
View Source
Event types the timeline leaves out.
Declaration
public IReadOnlySet<string> TimelineNotTypes { get; init; }
Property Value
|
Edit this page
View Source
Event types the timeline keeps; all when null.
Declaration
public IReadOnlySet<string>? TimelineTypes { get; init; }
Property Value
Methods
|
Edit this page
View Source
Return whether the filter includes roomId.
Declaration
public bool IncludesRoom(string roomId)
Parameters
| Type |
Name |
Description |
| string |
roomId |
|
Returns
|
Edit this page
View Source
Return whether the timeline keeps events of type; a trailing * matches prefixes.
Declaration
public bool IncludesType(string type)
Parameters
| Type |
Name |
Description |
| string |
type |
|
Returns
|
Edit this page
View Source
Parse(JsonObject?)
Read a filter's JSON; missing parts keep their defaults.
Declaration
public static SyncFilter Parse(JsonObject? json)
Parameters
Returns
Implements