NadekoBot/NadekoBot.Core/Services/Database/Models/PollVote.cs

21 lines
463 B
C#
Raw Normal View History

2017-10-27 16:39:56 +00:00
namespace NadekoBot.Core.Services.Database.Models
{
2017-10-27 16:39:56 +00:00
public class PollVote : DbEntity
{
2017-10-27 16:39:56 +00:00
public ulong UserId { get; set; }
public int VoteIndex { get; set; }
public override int GetHashCode()
{
return UserId.GetHashCode();
}
public override bool Equals(object obj)
{
return obj is PollVote p
? p.UserId == UserId
: false;
}
}
}