2017-10-27 16:39:56 +00:00
|
|
|
|
namespace NadekoBot.Core.Services.Database.Models
|
2017-10-26 09:31:44 +00:00
|
|
|
|
{
|
2017-10-27 16:39:56 +00:00
|
|
|
|
public class PollVote : DbEntity
|
2017-10-26 09:31:44 +00:00
|
|
|
|
{
|
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;
|
|
|
|
|
}
|
2017-10-26 09:31:44 +00:00
|
|
|
|
}
|
|
|
|
|
}
|