wabbajack/Wabbajack.DTOs/ModListValidation/ValidatedModList.cs
2021-10-23 10:51:17 -06:00

19 lines
582 B
C#

using System;
using System.Linq;
using Wabbajack.DTOs.ServerResponses;
using Wabbajack.Hashing.xxHash64;
namespace Wabbajack.DTOs.ModListValidation;
public class ValidatedModList
{
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; }
public long Failures => Archives.Count(a => a.Status == ArchiveStatus.InValid);
}