about summary refs log tree commit diff
path: root/ModerationClient/Models/SpaceTreeNodes/SpaceNode.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ModerationClient/Models/SpaceTreeNodes/SpaceNode.cs')
-rw-r--r--ModerationClient/Models/SpaceTreeNodes/SpaceNode.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/ModerationClient/Models/SpaceTreeNodes/SpaceNode.cs b/ModerationClient/Models/SpaceTreeNodes/SpaceNode.cs
new file mode 100644
index 0000000..b8042ae
--- /dev/null
+++ b/ModerationClient/Models/SpaceTreeNodes/SpaceNode.cs
@@ -0,0 +1,15 @@
+using System.Collections.ObjectModel;
+
+namespace ModerationClient.Models.SpaceTreeNodes;
+
+public class SpaceNode : RoomNode {
+    private bool _isExpanded = false;
+
+    public SpaceNode(bool includeSelf = true) {
+        if(includeSelf)
+            ChildRooms = [this];
+    }
+
+    public ObservableCollection<SpaceNode> ChildSpaces { get; set; } = [];
+    public ObservableCollection<RoomNode> ChildRooms { get; set; } = [];
+}
\ No newline at end of file