コード例 #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 virtual void SetPercentage(PercentageBars.Bars bar)
 {
     this.PercentageBar = bar;
     dBHandler.AddToQueue(this, true);
 }
コード例 #3
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;
 }
コード例 #4
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;
 }