mirror of
https://github.com/sp-tarkov/loot-dump-processor.git
synced 2025-02-13 07:30:44 -05:00
The changes include: - Replaced Newtonsoft.Json with System.Text.Json for serialization - Removed redundant JsonProperty attributes and simplified model classes - Converted static fields to constants where appropriate - Improved code formatting and readability - Simplified method bodies and expressions - Removed unused imports and cleaned up namespaces
23 lines
564 B
C#
23 lines
564 B
C#
using LootDumpProcessor.Model.Input;
|
|
|
|
|
|
namespace LootDumpProcessor.Model.Processing;
|
|
|
|
public class BasicInfo
|
|
{
|
|
public required string Map { get; set; }
|
|
public required string FileHash { get; set; }
|
|
|
|
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() => FileHash.GetHashCode();
|
|
} |