diff options
author | Rory& <root@rory.gay> | 2024-05-30 19:07:09 +0000 |
---|---|---|
committer | Rory& <root@rory.gay> | 2024-05-30 19:07:09 +0000 |
commit | cf90f02e1f9c9f7d037976cace2b9c49119c741c (patch) | |
tree | 3925bd8d689c3f330c217b0f867ba8a241d893e7 /ConsoleApp1/Program.cs | |
parent | Rename legacy event types (diff) | |
download | LibMatrix-cf90f02e1f9c9f7d037976cace2b9c49119c741c.tar.xz |
Start implementing new event system
Diffstat (limited to 'ConsoleApp1/Program.cs')
-rw-r--r-- | ConsoleApp1/Program.cs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ConsoleApp1/Program.cs b/ConsoleApp1/Program.cs new file mode 100644 index 0000000..7831ce8 --- /dev/null +++ b/ConsoleApp1/Program.cs @@ -0,0 +1,25 @@ +// See https://aka.ms/new-console-template for more information + +using LibMatrix.EventTypes; +using LibMatrix.EventTypes.Events; + +Console.WriteLine("Hello, World!"); + +MatrixEventCollection collection = new(); +collection.Add(new MatrixEvent<RoomMembershipEventContent>() { + Content = new RoomMembershipEventContent() { + Membership = "yes" + } +}); + +List<MatrixEvent<MatrixEventContent>> collection2 = new(); +collection2.Add(new MatrixEvent<RoomMembershipEventContent>() { + Content = new RoomMembershipEventContent() { + Membership = "yes" + } +}); + +List<MatrixEventContent> collection3 = new(); +collection3.Add(new RoomMembershipEventContent() { + Membership = "yes" +}); \ No newline at end of file |