// See https://aka.ms/new-console-template for more information using System.Text.Json; using ArcaneLibs.Extensions; using LibMatrix.EventTypes; using LibMatrix.EventTypes.Abstractions; using LibMatrix.EventTypes.Spec; Console.WriteLine("Hello, World!"); MatrixEventCollection Members = [ new MatrixEvent() { Content = new() { Membership = "join" } } ]; string eventJson = File.ReadAllText("test-event.json"); MatrixEvent evt2 = JsonSerializer.Deserialize>(eventJson); JsonSerializer.Deserialize>(eventJson); evt2.ToJson(); evt2.Content.Membership = "meow"; MatrixEventCollection collection = new(); collection.Add(new MatrixEvent() { Content = new RoomMembershipEventContent() { Membership = "yes" } }); MatrixEventCollection collection4 = new(); collection4.Add(new MatrixEvent() { Content = new RoomMembershipEventContent() { Membership = "yes" } }); List> collection2 = new(); collection2.Add(new MatrixEvent() { Content = new RoomMembershipEventContent() { Membership = "yes" } }); List collection3 = new(); collection3.Add(new RoomMembershipEventContent() { Membership = "yes" });