Poll

Embodies the notion of a channel poll.

Members

Functions

toJSON
auto toJSON()

Serialises this Poll into a JSONValue.

Static functions

fromJSON
auto fromJSON(JSONValue json)

Deserialises a Poll from a JSONValue.

Variables

end
SysTime end;

Timestamp of when the poll is to end.

origChoiceNames
string[string] origChoiceNames;

Map of the original names of the choices keyed by what they were simplified to.

sortedChoices
string[] sortedChoices;

Choices, sorted in alphabetical order.

start
SysTime start;

Timestamp of when the poll was created.

uniqueID
uint uniqueID;

Unique identifier to help fibers know if the poll they belong to is stale or has been replaced.

voteCounts
uint[string] voteCounts;

Current vote tallies.

votes
RehashingAA!(string[string]) votes;

Individual votes, keyed by nicknames of the people who placed them.