2017-10-26 09:31:44 +00:00
|
|
|
|
using NadekoBot.Common.Collections;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace NadekoBot.Core.Services.Database.Models
|
|
|
|
|
{
|
2017-10-27 16:39:56 +00:00
|
|
|
|
public class Poll : DbEntity
|
2017-10-26 09:31:44 +00:00
|
|
|
|
{
|
|
|
|
|
public ulong GuildId { get; set; }
|
2017-10-27 16:39:56 +00:00
|
|
|
|
public ulong ChannelId { get; set; }
|
2017-10-26 09:31:44 +00:00
|
|
|
|
public string Question { get; set; }
|
|
|
|
|
public IndexedCollection<PollAnswer> Answers { get; set; }
|
2017-10-27 16:39:56 +00:00
|
|
|
|
public HashSet<PollVote> Votes { get; set; } = new HashSet<PollVote>();
|
2017-10-26 09:31:44 +00:00
|
|
|
|
}
|
|
|
|
|
|
2017-10-27 16:39:56 +00:00
|
|
|
|
public class PollAnswer : DbEntity, IIndexed
|
2017-10-26 09:31:44 +00:00
|
|
|
|
{
|
|
|
|
|
public int Index { get; set; }
|
|
|
|
|
public string Text { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|