elliebot/src/EllieBot/Modules/Games/Acrophobia/AcrophobiaUser.cs
2024-06-18 23:51:06 +12:00

22 lines
No EOL
547 B
C#

#nullable disable
namespace EllieBot.Modules.Games.Common.Acrophobia;
public class AcrophobiaUser
{
public string UserName { get; }
public ulong UserId { get; }
public string Input { get; }
public AcrophobiaUser(ulong userId, string userName, string input)
{
UserName = userName;
UserId = userId;
Input = input;
}
public override int GetHashCode()
=> UserId.GetHashCode();
public override bool Equals(object obj)
=> obj is AcrophobiaUser x ? x.UserId == UserId : false;
}