wabbajack/Wabbajack.DTOs/ModListValidation/ValidatedModList.cs

20 lines
632 B
C#
Raw Normal View History

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