mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
20 lines
471 B
C#
20 lines
471 B
C#
#nullable disable
|
|
namespace NadekoBot.Db.Models;
|
|
|
|
public class SlowmodeIgnoredUser : DbEntity
|
|
{
|
|
public ulong UserId { get; set; }
|
|
|
|
// override object.Equals
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (obj is null || GetType() != obj.GetType())
|
|
return false;
|
|
|
|
return ((SlowmodeIgnoredUser)obj).UserId == UserId;
|
|
}
|
|
|
|
// override object.GetHashCode
|
|
public override int GetHashCode()
|
|
=> UserId.GetHashCode();
|
|
} |