Class ElectionsResource.VoterInfoQueryRequest
Looks up information relevant to a voter based on the voter's registered address.
Inheritance
Inherited Members
Namespace: Google.Apis.CivicInfo.v2
Assembly: Google.Apis.CivicInfo.v2.dll
Syntax
public class ElectionsResource.VoterInfoQueryRequest : CivicInfoBaseServiceRequest<VoterInfoResponse>, IClientServiceRequest<VoterInfoResponse>, 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
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
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
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()