1
0
mirror of synced 2024-11-28 08:30:56 +01:00
TaikoLocalServer/TaikoWebUI/Shared/Models/Title.cs

25 lines
481 B
C#
Raw Normal View History

2022-09-15 11:47:46 +02:00
namespace TaikoWebUI.Shared.Models;
public class Title
{
public int 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
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();
}
}