using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; using ArcaneLibs; using Avalonia.Controls; using LibMatrix; using ModerationClient.Services; namespace ModerationClient.Models.SpaceTreeNodes; public class RoomNode : NotifyPropertyChanged { private string? _name; public string RoomID { get; set; } public string? Name { get => _name; set => SetField(ref _name, value); } public ObservableCollection Timeline { get; } = new(); public ObservableCollection State { get; } = new(); public List RenderedTimeline => Timeline.Select(EventRenderer.RenderEvent).ToList(); public long? LastActivity => Timeline.LastOrDefault()?.OriginServerTs; }