wabbajack/Wabbajack.DTOs/ModListValidation/ValidatedModList.cs

21 lines
662 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-10-23 16:51:17 +00:00
namespace Wabbajack.DTOs.ModListValidation;
public class ValidatedModList
{
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-15 04:33:17 +00:00
public Uri SmallImage { get; set; }
public Uri LargeImage { get; set; }
2021-09-27 12:42:46 +00:00
}