Show / Hide Table of Contents

Class ElectionsResource.VoterInfoQueryRequest

Looks up information relevant to a voter based on the voter's registered address.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>
ElectionsResource.VoterInfoQueryRequest
Implements
IClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>
IClientServiceRequest
Inherited Members
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.Xgafv
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.AccessToken
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.Alt
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.Callback
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.Fields
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.Key
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.OauthToken
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.PrettyPrint
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.QuotaUser
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.UploadType
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.UploadProtocol
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.Execute()
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ExecuteAsStream()
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ExecuteAsync()
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ExecuteAsync(CancellationToken)
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ExecuteAsStreamAsync()
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.CreateRequest(bool?)
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.GenerateRequestUri()
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.GetBody()
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.GetDefaultETagAction(string)
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ETagAction
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ModifyRequest
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ValidateParameters
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.ApiVersion
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.RequestParameters
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.Service
ClientServiceRequest._unsuccessfulResponseHandlers
ClientServiceRequest._exceptionHandlers
ClientServiceRequest._executeInterceptors
ClientServiceRequest.AddUnsuccessfulResponseHandler(IHttpUnsuccessfulResponseHandler)
ClientServiceRequest.AddExceptionHandler(IHttpExceptionHandler)
ClientServiceRequest.AddExecuteInterceptor(IHttpExecuteInterceptor)
ClientServiceRequest.Credential
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.CivicInfo.v2
Assembly: Google.Apis.CivicInfo.v2.dll
Syntax
public class ElectionsResource.VoterInfoQueryRequest : CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>, IClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>, IClientServiceRequest

Constructors

VoterInfoQueryRequest(IClientService)

Constructs a new VoterInfoQuery request.

Declaration
public VoterInfoQueryRequest(IClientService service)
Parameters
Type Name Description
IClientService service

Properties

Address

The registered address of the voter to look up.

Declaration
[RequestParameter("address", RequestParameterType.Query)]
public virtual string Address { get; set; }
Property Value
Type Description
string

ElectionId

The unique ID of the election to look up. A list of election IDs can be obtained at https://www.googleapis.com/civicinfo/{version}/elections. If no election ID is specified in the query and there is more than one election with data for the given voter, the additional elections are provided in the otherElections response field.

Declaration
[RequestParameter("electionId", RequestParameterType.Query)]
public virtual long? ElectionId { get; set; }
Property Value
Type Description
long?

HttpMethod

Gets the HTTP method.

Declaration
public override string HttpMethod { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.HttpMethod

MethodName

Gets the method name.

Declaration
public override string MethodName { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.MethodName

OfficialOnly

If set to true, only data from official state sources will be returned.

Declaration
[RequestParameter("officialOnly", RequestParameterType.Query)]
public virtual bool? OfficialOnly { get; set; }
Property Value
Type Description
bool?

ProductionDataOnly

Whether to include data that has not been vetted yet. Should only be made available to internal IPs or trusted partners. This is a non-discoverable parameter in the One Platform API config.

Declaration
[RequestParameter("productionDataOnly", RequestParameterType.Query)]
public virtual bool? ProductionDataOnly { get; set; }
Property Value
Type Description
bool?

RestPath

Gets the REST path.

Declaration
public override string RestPath { get; }
Property Value
Type Description
string
Overrides
ClientServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.RestPath

ReturnAllAvailableData

If set to true, the query will return the success code and include any partial information when it is unable to determine a matching address or unable to determine the election for electionId=0 queries.

Declaration
[RequestParameter("returnAllAvailableData", RequestParameterType.Query)]
public virtual bool? ReturnAllAvailableData { get; set; }
Property Value
Type Description
bool?

Methods

InitParameters()

Initializes VoterInfoQuery parameter list.

Declaration
protected override void InitParameters()
Overrides
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2VoterInfoResponse>.InitParameters()

Implements

IClientServiceRequest<TResponse>
IClientServiceRequest
In this article
Back to top Generated by DocFX