1
0
mirror of synced 2024-12-02 18:17:20 +01:00
TaikoLocalServer/TaikoWebUI/Shared/Models/Title.cs

23 lines
441 B
C#
Raw Normal View History

2023-09-09 14:58:20 +02:00
namespace TaikoWebUI.Shared.Models;
public class Title
{
public int TitleId { get; set; }
public string TitleName { get; init; } = string.Empty;
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();
}
}