Skip to content

Reference

tilttek/fan-awards

Every public type of the package, with its role.

TypeRole
FanAwardsCreates editions, takes nominees and ballots, advances and counts phases, reads results, erases voters
EditionAn edition: key, name, categories, semifinal or not, phase and since when
CategoryA category and its rules: nominations, semifinalists, finalists, final method, "no award"
NomineeA nominee: key, title, reference; NO_AWARD, the reserved key of "no award"
PhaseDraft, Nomination, Semifinal, Final, Counted, Announced, and how they follow
PhaseCountThe count of one phase: its nominees, the phil/poll result, the nominees it advanced
ResultsA category's winners, "no award", and the count of each phase
RefusalWhy an act is refused
Contract\AwardStoreWhere editions, nominees, ballots and counts are kept
Contract\NomineeEligibilityWhether a nominee may stand in a category
Contract\VoterEligibilityWhether a member may vote in an edition
Eligibility\AnyNomineeEvery nominee eligible
Eligibility\AnyVoterEvery member a voter
Store\InMemoryAwardStoreThe store in memory
Exception\FanAwardsExceptionEvery exception of the library
Exception\AwardRefusedAn act refused, with its Refusal and the eligibility's reason
Exception\UnknownAwardNo edition under a key, or no category under a key
Exception\InvalidAwardA value out of bounds, or a ballot that breaks its phase's rules