Show / Hide Table of Contents

Class CivicinfoApiprotosV2VoterInfoResponse

The result of a voter info lookup query.

Inheritance
object
CivicinfoApiprotosV2VoterInfoResponse
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CivicInfo.v2.Data
Assembly: Google.Apis.CivicInfo.v2.dll
Syntax
public class CivicinfoApiprotosV2VoterInfoResponse : IDirectResponseSchema

Properties

Contests

Contests that will appear on the voter's ballot.

Declaration
[JsonProperty("contests")]
public virtual IList<CivicinfoSchemaV2Contest> Contests { get; set; }
Property Value
Type Description
IList<CivicinfoSchemaV2Contest>

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<CivicinfoSchemaV2PollingLocation> DropOffLocations { get; set; }
Property Value
Type Description
IList<CivicinfoSchemaV2PollingLocation>

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<CivicinfoSchemaV2PollingLocation> EarlyVoteSites { get; set; }
Property Value
Type Description
IList<CivicinfoSchemaV2PollingLocation>

Election

The election that was queried.

Declaration
[JsonProperty("election")]
public virtual CivicinfoSchemaV2Election Election { get; set; }
Property Value
Type Description
CivicinfoSchemaV2Election

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 CivicinfoSchemaV2SimpleAddressType NormalizedInput { get; set; }
Property Value
Type Description
CivicinfoSchemaV2SimpleAddressType

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<CivicinfoSchemaV2Election> OtherElections { get; set; }
Property Value
Type Description
IList<CivicinfoSchemaV2Election>

PollingLocations

Locations where the voter is eligible to vote on election day.

Declaration
[JsonProperty("pollingLocations")]
public virtual IList<CivicinfoSchemaV2PollingLocation> PollingLocations { get; set; }
Property Value
Type Description
IList<CivicinfoSchemaV2PollingLocation>

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<CivicinfoSchemaV2Precinct> Precincts { get; set; }
Property Value
Type Description
IList<CivicinfoSchemaV2Precinct>

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<CivicinfoSchemaV2AdministrationRegion> State { get; set; }
Property Value
Type Description
IList<CivicinfoSchemaV2AdministrationRegion>

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX