2021-09-14 03:22:07 +00:00
|
|
|
using System;
|
2021-09-27 12:42:46 +00:00
|
|
|
using System.Linq;
|
|
|
|
using Wabbajack.DTOs.ServerResponses;
|
|
|
|
using Wabbajack.Hashing.xxHash64;
|
2021-09-14 03:22:07 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
namespace Wabbajack.DTOs.ModListValidation;
|
|
|
|
|
|
|
|
public class ValidatedModList
|
2021-09-14 03:22:07 +00:00
|
|
|
{
|
2021-10-23 16:51:17 +00:00
|
|
|
public string MachineURL { get; set; } = "";
|
|
|
|
|
|
|
|
public string Name { get; set; }
|
|
|
|
public Version? Version { get; set; }
|
|
|
|
public Hash ModListHash { get; set; } = default;
|
|
|
|
public ValidatedArchive[] Archives { get; set; } = Array.Empty<ValidatedArchive>();
|
|
|
|
public ListStatus Status { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
|
2021-10-23 16:51:17 +00:00
|
|
|
public long Failures => Archives.Count(a => a.Status == ArchiveStatus.InValid);
|
2022-05-14 21:21:32 +00:00
|
|
|
public Uri Image { get; set; }
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|