using System.Text.Json.Serialization; namespace ChaoXingAutoClass.Core.Models; public sealed record VideoState(string Key, string Title, double CurrentTime, double Duration, bool Paused, bool Ended, string FrameKey, int Index, bool ServerCompleted = false) { public bool Finished => Ended || ServerCompleted; }