using AI.Utils; using Avalonia.Platform.Storage; namespace AI.Models { public class PendingFileModel { public required IStorageFile StorageFile { get; set; } public string Name => StorageFile?.Name ?? string.Empty; public long Size { get; set; } // 单位: 字节 public string FormattedSize { get { return FileUnit.FormatFileSize(Size); } } } }