implemented polls in the discord bot
This commit is contained in:
parent
1d999e89bf
commit
715b14ecc5
13 changed files with 277 additions and 6 deletions
19
SharedClasses/SharedModels/ApiPoll.cs
Normal file
19
SharedClasses/SharedModels/ApiPoll.cs
Normal 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;}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue