2024-05-25 19:12:30 +02:00
|
|
|
|
namespace SharedProject.Models;
|
2022-09-15 11:47:46 +02:00
|
|
|
|
|
|
|
|
|
public class Title
|
|
|
|
|
{
|
2024-05-01 17:13:47 +02:00
|
|
|
|
public uint TitleId { get; set; }
|
2024-03-09 00:42:56 +01:00
|
|
|
|
|
2022-09-15 11:47:46 +02:00
|
|
|
|
public string TitleName { get; init; } = string.Empty;
|
2024-03-09 00:42:56 +01:00
|
|
|
|
|
2023-11-13 00:12:54 +01:00
|
|
|
|
public uint TitleRarity { get; init; }
|
2022-09-15 11:47:46 +02: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();
|
|
|
|
|
}
|
|
|
|
|
}
|