public final class Poll
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Poll.OptionResult |
Modifier and Type | Method and Description |
---|---|
long |
getAccountId() |
static DbIterator<Poll> |
getActivePolls(int from,
int to) |
static DbIterator<Poll> |
getAllPolls(int from,
int to) |
static int |
getCount() |
java.lang.String |
getDescription() |
int |
getFinishHeight() |
long |
getId() |
byte |
getMaxNumberOfOptions() |
byte |
getMaxRangeValue() |
byte |
getMinNumberOfOptions() |
byte |
getMinRangeValue() |
java.lang.String |
getName() |
java.lang.String[] |
getOptions() |
static Poll |
getPoll(long id) |
static DbIterator<Poll> |
getPollsByAccount(long accountId,
boolean includeFinished,
boolean finishedOnly,
int from,
int to) |
static DbIterator<Poll> |
getPollsFinishingAt(int height) |
static DbIterator<Poll> |
getPollsFinishingAtOrBefore(int height,
int from,
int to) |
java.util.List<Poll.OptionResult> |
getResults() |
java.util.List<Poll.OptionResult> |
getResults(VoteWeighting voteWeighting) |
int |
getTimestamp() |
DbIterator<Vote> |
getVotes() |
VoteWeighting |
getVoteWeighting() |
boolean |
isFinished() |
static DbIterator<Poll> |
searchPolls(java.lang.String query,
boolean includeFinished,
int from,
int to) |
public static Poll getPoll(long id)
public static DbIterator<Poll> getPollsFinishingAtOrBefore(int height, int from, int to)
public static DbIterator<Poll> getAllPolls(int from, int to)
public static DbIterator<Poll> getActivePolls(int from, int to)
public static DbIterator<Poll> getPollsByAccount(long accountId, boolean includeFinished, boolean finishedOnly, int from, int to)
public static DbIterator<Poll> getPollsFinishingAt(int height)
public static DbIterator<Poll> searchPolls(java.lang.String query, boolean includeFinished, int from, int to)
public static int getCount()
public java.util.List<Poll.OptionResult> getResults(VoteWeighting voteWeighting)
public java.util.List<Poll.OptionResult> getResults()
public DbIterator<Vote> getVotes()
public java.lang.String getName()
public java.lang.String getDescription()
public java.lang.String[] getOptions()
public byte getMinNumberOfOptions()
public byte getMaxNumberOfOptions()
public byte getMinRangeValue()
public byte getMaxRangeValue()
public int getTimestamp()
public boolean isFinished()
public final long getId()
public final long getAccountId()
public final int getFinishHeight()
public final VoteWeighting getVoteWeighting()