Refringe
a320d24ee4
- Updates the Model/Input classes to match the new export JSON structure - Updates references to model structure - Updates SevenZipSharp package - Adds a few null checks
26 lines
674 B
C#
26 lines
674 B
C#
using LootDumpProcessor.Model.Input;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace LootDumpProcessor.Model.Processing;
|
|
|
|
public class BasicInfo
|
|
{
|
|
public required string Map { get; set; }
|
|
public required string FileHash { get; set; }
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
public RootData? Data { get; set; }
|
|
public DateTime Date { get; set; }
|
|
public required string FileName { get; set; }
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
if (obj is BasicInfo info)
|
|
return FileHash == info.FileHash;
|
|
return false;
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
return FileHash.GetHashCode();
|
|
}
|
|
} |