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

21 lines
595 B
C#
Raw Normal View History

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
{
public ulong GuildId { get; set; }
2017-10-27 16:39:56 +00:00
public ulong ChannelId { get; set; }
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-27 16:39:56 +00:00
public class PollAnswer : DbEntity, IIndexed
{
public int Index { get; set; }
public string Text { get; set; }
}
}