- api_method :cast_quickvote, :expects => [:int, :int, [[:int]]], :returns => [:string]
- api_method :get_quickvote_results, :expects => [:string], :returns => [VoteResultStruct]
- api_method :get_quickvote_candidate_map, :expects => [:string], :returns => [CandidateMap]
+ ## Casts a quickvote.
+ ## Expects a quickvote name, a voter ID, and a list of candidate ID's respectively.
+ ## Returns a string containing any potential errors that occurred in the process.
+ api_method :cast_quickvote, :expects => [:string, :int, [[:int]]], :returns => [:string]
+ ## Return the results of a QuickVote.
+ ## Takes in the name of a quickvote, and returns a structure as described by
+ ## QuickVoteResultStruct
+ api_method :get_quickvote_results, :expects => [:string], :returns => [QuickVoteResultStruct]
+ ## Returns information regarding all the candidates in a QuickVote
+ ## Takes in a QuickVote name, and returns the list of names and ID's of candidates
+ ## This can be useful for presenting the user with a list of readable names, while
+ ## the software sends results to us in the numeric ID's we require. The two lists are in
+ ## respective order.
+ api_method :get_quickvote_candidate_map, :expects => [:string], :returns => [QuickVoteCandidateMap]
+ ## Converts QuickVote candidate ID's to names
+ ## Takes in a QuickVote name and a list of candidate ID's, and returns the names of
+ ## each candidate. Useful for doing just a few lookups; it's more efficient to use
+ ## get_quickvote_candidate_map for presenting info about an entire election.