about summary refs log tree commit diff
path: root/LibMatrix/Responses/SyncResponse.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-07-23 09:03:42 +0200
committerRory& <root@rory.gay>2025-07-23 09:05:01 +0200
commit150c6b03003ca97192b65a274c5234b04e32b2ac (patch)
treeabb91eaa22327de13f32e72c6d7e881338779ef4 /LibMatrix/Responses/SyncResponse.cs
parentMake server ACLs expose matching regexes (need to be checked and tested, still) (diff)
downloadLibMatrix-150c6b03003ca97192b65a274c5234b04e32b2ac.tar.xz
Add debugger displays to summarise SummaryDataStructure and EventList, hide ClassNeverInstantiated warning for EventContent implementations
Diffstat (limited to 'LibMatrix/Responses/SyncResponse.cs')
-rw-r--r--LibMatrix/Responses/SyncResponse.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/LibMatrix/Responses/SyncResponse.cs b/LibMatrix/Responses/SyncResponse.cs

index d79e820..657d7e0 100644 --- a/LibMatrix/Responses/SyncResponse.cs +++ b/LibMatrix/Responses/SyncResponse.cs
@@ -1,3 +1,4 @@ +using System.Diagnostics; using System.Text.Json.Serialization; using LibMatrix.EventTypes.Spec.State.RoomInfo; @@ -138,6 +139,7 @@ public class SyncResponse { public int HighlightCount { get; set; } } + [DebuggerDisplay("{JoinedMemberCount} joined, {InvitedMemberCount} invited, Heroes: {string.Join(\", \", Heroes ?? [])}")] public class SummaryDataStructure { [JsonPropertyName("m.heroes")] public List<string>? Heroes { get; set; }