1 class QuickVoteStruct < ActionWebService::Struct
3 member :description, :string
4 member :candidate_ids, [:int]
5 member :candidate_names, [:string]
8 class QuickVoterInfo < ActionWebService::Struct
10 member :voter_session_id, :string
11 member :voter_ipaddress, :string
12 member :vote_time, :int
16 class QuickVoteResultStruct < ActionWebService::Struct
17 member :plurality_winners, [:int]
18 member :approval_winners, [:int]
19 member :condorcet_winners, [:int]
20 member :ssd_winners, [:int]
21 member :borda_winners, [:int]
23 class QuickVoteCandidateMap < ActionWebService::Struct
24 member :candidate_ids, [:int]
25 member :candidate_names, [:string]
27 class SelectricityAPI < ActionWebService::API::Base
28 api_method :cast_quickvote, :expects => [:string, :int, [[:int]]], :returns => [:string]
29 api_method :get_quickvote_results, :expects => [:string], :returns => [QuickVoteResultStruct]
30 api_method :get_quickvote_candidate_map, :expects => [:string], :returns => [QuickVoteCandidateMap]
31 api_method :quickvote_candidate_ids_to_names, :expects => [:string,[:int]], :returns => [[:string]]
32 api_method :get_quickvote_votes, :expects => [:string], :returns => [ [QuickVoterInfo] ]
33 api_method :list_quickvotes, :expects => [], :returns => [[QuickVoteStruct]]
34 api_method :get_quickvote, :expects => [:string], :returns => [QuickVoteStruct]
35 api_method :create_quickvote, :expects => [QuickVoteStruct], :returns => [:string]