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-09-27 12:42:46 +00:00
|
|
|
namespace Wabbajack.DTOs.ModListValidation
|
2021-09-14 03:22:07 +00:00
|
|
|
{
|
|
|
|
public class ValidatedModList
|
|
|
|
{
|
|
|
|
public string MachineURL { get; set; } = "";
|
2021-09-27 12:42:46 +00:00
|
|
|
|
|
|
|
public string Name { get; set; }
|
2021-09-14 03:22:07 +00:00
|
|
|
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
|
|
|
|
|
|
|
public long Failures => Archives.Count(a => a.Status == ArchiveStatus.InValid);
|
2021-09-14 03:22:07 +00:00
|
|
|
}
|
2021-09-27 12:42:46 +00:00
|
|
|
}
|