PatchCompareResult.cs 624 B

12345678910111213141516171819
  1. namespace AutoPatcherAdmin
  2. {
  3. public sealed class PListFile
  4. {
  5. public string Path { get; set; } = string.Empty;
  6. public int Length { get; set; }
  7. }
  8. public sealed class PatchCompareResult
  9. {
  10. public List<PListFile> Added { get; } = new();
  11. public List<PListFile> Changed { get; } = new();
  12. public List<PListFile> Unchanged { get; } = new();
  13. public List<PListFile> Deleted { get; } = new();
  14. public int UploadCount => Added.Count + Changed.Count;
  15. public long UploadBytes => Added.Sum(x => (long)x.Length) + Changed.Sum(x => (long)x.Length);
  16. }
  17. }