Class VoterInfoResponse
The result of a voter info lookup query.
Implements
Inherited Members
Namespace: Google.Apis.CivicInfo.v2.Data
Assembly: Google.Apis.CivicInfo.v2.dll
Syntax
public class VoterInfoResponse : IDirectResponseSchema
Properties
Contests
Contests that will appear on the voter's ballot.
Declaration
[JsonProperty("contests")]
public virtual IList<Contest> Contests { get; set; }
Property Value
Type | Description |
---|---|
IList<Contest> |
DropOffLocations
Locations where a voter is eligible to drop off a completed ballot. The voter must have received and completed a ballot prior to arriving at the location. The location may not have ballots available on the premises. These locations could be open on or before election day as indicated in the pollingHours field.
Declaration
[JsonProperty("dropOffLocations")]
public virtual IList<PollingLocation> DropOffLocations { get; set; }
Property Value
Type | Description |
---|---|
IList<PollingLocation> |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
EarlyVoteSites
Locations where the voter is eligible to vote early, prior to election day.
Declaration
[JsonProperty("earlyVoteSites")]
public virtual IList<PollingLocation> EarlyVoteSites { get; set; }
Property Value
Type | Description |
---|---|
IList<PollingLocation> |
Election
The election that was queried.
Declaration
[JsonProperty("election")]
public virtual Election Election { get; set; }
Property Value
Type | Description |
---|---|
Election |
Kind
Identifies what kind of resource this is. Value: the fixed string "civicinfo#voterInfoResponse".
Declaration
[JsonProperty("kind")]
public virtual string Kind { get; set; }
Property Value
Type | Description |
---|---|
string |
MailOnly
Specifies whether voters in the precinct vote only by mailing their ballots (with the possible option of dropping off their ballots as well).
Declaration
[JsonProperty("mailOnly")]
public virtual bool? MailOnly { get; set; }
Property Value
Type | Description |
---|---|
bool? |
NormalizedInput
The normalized version of the requested address
Declaration
[JsonProperty("normalizedInput")]
public virtual SimpleAddressType NormalizedInput { get; set; }
Property Value
Type | Description |
---|---|
SimpleAddressType |
OtherElections
When there are multiple elections for a voter address, the otherElections field is populated in the API response and there are two possibilities: 1. If the earliest election is not the intended election, specify the election ID of the desired election in a second API request using the electionId field. 2. If these elections occur on the same day, the API doesn?t return any polling location, contest, or election official information to ensure that an additional query is made. For user-facing applications, we recommend displaying these elections to the user to disambiguate. A second API request using the electionId field should be made for the election that is relevant to the user.
Declaration
[JsonProperty("otherElections")]
public virtual IList<Election> OtherElections { get; set; }
Property Value
Type | Description |
---|---|
IList<Election> |
PollingLocations
Locations where the voter is eligible to vote on election day.
Declaration
[JsonProperty("pollingLocations")]
public virtual IList<PollingLocation> PollingLocations { get; set; }
Property Value
Type | Description |
---|---|
IList<PollingLocation> |
PrecinctId
Declaration
[JsonProperty("precinctId")]
public virtual string PrecinctId { get; set; }
Property Value
Type | Description |
---|---|
string |
Precincts
The precincts that match this voter's address. Will only be returned for project IDs which have been allowlisted as "partner projects".
Declaration
[JsonProperty("precincts")]
public virtual IList<Precinct> Precincts { get; set; }
Property Value
Type | Description |
---|---|
IList<Precinct> |
State
Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array.
Declaration
[JsonProperty("state")]
public virtual IList<AdministrationRegion> State { get; set; }
Property Value
Type | Description |
---|---|
IList<AdministrationRegion> |