implemented polls in the discord bot

This commit is contained in:
Sarah Faey 2023-01-14 16:44:18 +01:00
parent 1d999e89bf
commit 715b14ecc5
13 changed files with 277 additions and 6 deletions

View file

@ -0,0 +1,19 @@
namespace SharedClasses.SharedModels
{
public class ApiPoll
{
public int PollId { get; set; }
public string Question { get; set; } = string.Empty;
public Dictionary<int, string> Options { get; set; } = new Dictionary<int, string>();
public bool AllowCustomAnswer {get; set;} = false;
public List<ulong> UserIds {get; set;} = new List<ulong>();
}
public class ApiPollAnswer
{
public int PollId { get; set; }
public int OptionId {get; set;}
public string Answer {get; set;} = string.Empty;
public ulong UserId {get; set;}
}
}