Package nxt

Class Poll


  • public final class Poll
    extends java.lang.Object
    • Method Detail

      • getPoll

        public static Poll getPoll​(long id)
      • getPollsFinishingAtOrBefore

        public static DbIterator<Poll> getPollsFinishingAtOrBefore​(int height,
                                                                   int from,
                                                                   int to)
      • getAllPolls

        public static DbIterator<Poll> getAllPolls​(int from,
                                                   int to)
      • getActivePolls

        public static DbIterator<Poll> getActivePolls​(int from,
                                                      int to)
      • getPollsByAccount

        public static DbIterator<Poll> getPollsByAccount​(long accountId,
                                                         boolean includeFinished,
                                                         boolean finishedOnly,
                                                         int from,
                                                         int to)
      • getPollsFinishingAt

        public static DbIterator<Poll> getPollsFinishingAt​(int height)
      • searchPolls

        public static DbIterator<Poll> searchPolls​(java.lang.String query,
                                                   boolean includeFinished,
                                                   int from,
                                                   int to)
      • getCount

        public static int getCount()
      • getName

        public java.lang.String getName()
      • getDescription

        public java.lang.String getDescription()
      • getOptions

        public java.lang.String[] getOptions()
      • getMinNumberOfOptions

        public byte getMinNumberOfOptions()
      • getMaxNumberOfOptions

        public byte getMaxNumberOfOptions()
      • getMinRangeValue

        public byte getMinRangeValue()
      • getMaxRangeValue

        public byte getMaxRangeValue()
      • getTimestamp

        public int getTimestamp()
      • isFinished

        public boolean isFinished()
      • getId

        public final long getId()
      • getAccountId

        public final long getAccountId()
      • getFinishHeight

        public final int getFinishHeight()
      • getVoteWeighting

        public final VoteWeighting getVoteWeighting()