1
0
mirror of synced 2025-01-10 04:01:46 +01:00

25 lines
478 B
C#
Raw Normal View History

namespace SharedProject.Models;
2022-09-15 17:47:46 +08:00
public class Title
{
public uint TitleId { get; set; }
2024-03-08 18:42:56 -05:00
2022-09-15 17:47:46 +08:00
public string TitleName { get; init; } = string.Empty;
2024-03-08 18:42:56 -05:00
public uint TitleRarity { get; init; }
2022-09-15 17:47:46 +08:00
public override bool Equals(object? obj)
{
if (obj is Title title)
{
return title.TitleName.Equals(TitleName);
}
return false;
}
public override int GetHashCode()
{
return TitleName.GetHashCode();
}
}