about summary refs log tree commit diff
path: root/ModerationClient/Models/SpaceTreeNodes/SpaceNode.cs
blob: b8042ae911cefaf33d1a01d2733961f0de2d5aae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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; } = [];
}