Пример #1
0
 public PVote(int chatId, int pollId, string pollText, string pollDescription, EAnony anony, bool closed, PercentageBars.Bars percentageBar, bool appendable, bool sorted, bool archived, Dictionary <string, List <User> > pollVotes, List <MessageID> messageIds, DBHandler dBHandler, Strings.Langs lang) : base(chatId, pollId, pollText, pollDescription, anony, closed, percentageBar, appendable, sorted, archived, dBHandler, pollVotes, messageIds, lang, EPolls.vote)
 {
 }
Пример #2
0
 public PollContainer(DBHandler dBHandler, Strings strings)
 {
     this.dBHandler = dBHandler;
     this.strings   = strings;
     this.pollDB    = dBHandler.GetPolls();
 }
Пример #3
0
 public PVote(int chatId, int pollId, string pollText, EAnony anony, DBHandler dBHandler, Strings.Langs lang) : base(chatId, pollId, pollText, null, anony, false, PercentageBars.Bars.none, false, false, false, dBHandler, new Dictionary <string, List <User> >(), new List <MessageID>(), lang, EPolls.vote)
 {
 }
Пример #4
0
 public Board(int chatId, int pollId, string pollText, EAnony anony, DBHandler dBHandler, Strings.Langs lang) : this(chatId, pollId, pollText, null, anony, false, false, dBHandler, new Dictionary <int, BoardVote>(), new List <MessageID>(), lang)
 {
     this.pollType = EPolls.board;
 }
Пример #5
0
 public Board(int chatId, int pollId, string pollText, string pollDescription, EAnony anony, bool closed, bool archived, DBHandler dBHandler, Dictionary <int, BoardVote> pollVotes, List <MessageID> messageIds, Strings.Langs lang) : base(chatId, pollId, pollText, pollDescription, anony, closed, PercentageBars.Bars.none, false, false, archived, dBHandler, null, messageIds, lang, EPolls.board)
 {
     this.pollType  = EPolls.board;
     this.pollVotes = pollVotes;
 }
Пример #6
0
 public Doodle(int chatId, int pollId, string pollText, EAnony anony, DBHandler dBHandler, Strings.langs lang) : this(chatId, pollId, pollText, null, anony, false, PercentageBars.Bars.none, false, false, false, new Dictionary <string, List <User> >(), new List <MessageID>(), new List <User>(), dBHandler, lang)
 {
 }
Пример #7
0
 protected Poll(int chatId, int pollId, string pollText, string pollDescription, EAnony anony, bool closed, PercentageBars.Bars percentageBar, bool appendable, bool sorted, bool archived, DBHandler dBHandler, Dictionary <string, List <User> > pollVotes, List <MessageID> messageIds, Strings.Langs lang, EPolls pollType = EPolls.vote)
 {
     this.chatId          = chatId;
     this.pollId          = pollId;
     this.pollText        = pollText;
     this.pollDescription = pollDescription;
     this.anony           = anony;
     this.pollVotes       = pollVotes;
     this.messageIds      = messageIds;
     this.closed          = closed;
     this.archived        = archived;
     this.dBHandler       = dBHandler;
     this.pollType        = pollType;
     this.lang            = lang;
     this.PercentageBar   = percentageBar;
     this.Appendable      = appendable;
     this.Sorted          = sorted;
 }
 public PointerContainer(DBHandler dBHandler)
 {
     this.dBHandler = dBHandler;
 }
Пример #9
0
 public LimitedDoodle(int chatId, int pollId, string pollText, string pollDescription, EAnony anony, bool closed, PercentageBars.Bars percentageBar, bool appendable, bool sorted, bool archived, Dictionary <string, List <User> > pollVotes, List <MessageID> messageIds, List <User> people, int maxVotes, DBHandler dBHandler, Strings.Langs lang) : base(chatId, pollId, pollText, pollDescription, anony, closed, percentageBar, appendable, sorted, archived, pollVotes, messageIds, people, dBHandler, lang)
 {
     this.pollType = EPolls.limitedDoodle;
     this.MaxVotes = maxVotes;
 }
Пример #10
0
 public LimitedDoodle(int chatId, int pollId, string pollText, EAnony anony, DBHandler dBHandler, Strings.Langs lang) : base(chatId, pollId, pollText, anony, dBHandler, lang)
 {
     this.pollType = EPolls.limitedDoodle;
 }