Poll

Embodies the notion of a channel poll.

Constructors

this
this(JSONSchema schema)

Constructor.

Members

Functions

asSchema
auto asSchema()

Returns a JSONSchema of this poll.

Structs

JSONSchema
struct JSONSchema

JSON schema for serialising and deserialising a poll.

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.