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) { }
public virtual void SetPercentage(PercentageBars.Bars bar) { this.PercentageBar = bar; dBHandler.AddToQueue(this, true); }
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 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; }