2024-04-16 18:29:40 +00:00
|
|
|
using LootDumpProcessor.Model.Input;
|
2023-08-12 19:08:38 +01:00
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace LootDumpProcessor.Model.Processing;
|
|
|
|
|
|
|
|
public class BasicInfo
|
|
|
|
{
|
|
|
|
public string Map { get; set; }
|
|
|
|
public string FileHash { get; set; }
|
|
|
|
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
|
|
|
|
public RootData Data { get; set; }
|
|
|
|
public DateTime Date { get; set; }
|
|
|
|
public 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();
|
|
|
|
}
|
|
|
|
}
|