end
class VoteInfo < ActionWebService::Struct
member :voter_id, :int
+ member :voter_session_id, :string
member :voter_ipaddress, :string
member :vote_time, :int
member :vote, [:int]
member :condorcet_winners, [:int]
member :ssd_winners, [:int]
member :borda_winners, [:int]
- member :errors, [:string]
end
class CandidateMap < ActionWebService::Struct
member :candidate_ids, [:int]
member :candidate_names, [:string]
- member :errors, [:string]
end
class SelectricityAPI < ActionWebService::API::Base
api_method :cast_quickvote, :expects => [:string, :int, [[:int]]], :returns => [:string]