Lieb-Website/Lieb/Models/Poll/Poll.cs
2023-01-14 14:03:15 +01:00

19 lines
558 B
C#

namespace Lieb.Models.Poll
{
public enum AnswerType
{
Buttons = 1,
Dropdown = 2
}
public class Poll
{
public int PollId { get; set; }
public string Question { get; set; }
public ICollection<PollOption> Options { get; set; } = new List<PollOption>();
public ICollection<PollAnswer> Answers { get; set; } = new List<PollAnswer>();
public AnswerType AnswerType {get; set;}
public bool AllowCustomAnswer {get; set;} = false;
public int? RaidId { get; set; }
}
}