Class RepresentativesResource.RepresentativeInfoByAddressRequest
Looks up political geography and representative information for a single address.
Inheritance
Inherited Members
Namespace: Google.Apis.CivicInfo.v2
Assembly: Google.Apis.CivicInfo.v2.dll
Syntax
public class RepresentativesResource.RepresentativeInfoByAddressRequest : CivicInfoBaseServiceRequest<RepresentativeInfoResponse>, IClientServiceRequest<RepresentativeInfoResponse>, IClientServiceRequest
Constructors
RepresentativeInfoByAddressRequest(IClientService)
Constructs a new RepresentativeInfoByAddress request.
Declaration
public RepresentativeInfoByAddressRequest(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Address
The address to look up. May only be specified if the field ocdId is not given in the URL
Declaration
[RequestParameter("address", RequestParameterType.Query)]
public virtual string Address { get; set; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
IncludeOffices
Whether to return information about offices and officials. If false, only the top-level district information will be returned.
Declaration
[RequestParameter("includeOffices", RequestParameterType.Query)]
public virtual bool? IncludeOffices { get; set; }
Property Value
Type | Description |
---|---|
bool? |
Levels
A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.
Declaration
[RequestParameter("levels", RequestParameterType.Query)]
public virtual RepresentativesResource.RepresentativeInfoByAddressRequest.LevelsEnum? Levels { get; set; }
Property Value
Type | Description |
---|---|
RepresentativesResource.RepresentativeInfoByAddressRequest.LevelsEnum? |
Remarks
Use this property to set a single value for the parameter, or LevelsList to set multiple values. Do not set both properties.
LevelsList
A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.
Declaration
[RequestParameter("levels", RequestParameterType.Query)]
public virtual Repeatable<RepresentativesResource.RepresentativeInfoByAddressRequest.LevelsEnum> LevelsList { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<RepresentativesResource.RepresentativeInfoByAddressRequest.LevelsEnum> |
Remarks
Use this property to set one or more values for the parameter. Do not set both this property and Levels.
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Roles
A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.
Declaration
[RequestParameter("roles", RequestParameterType.Query)]
public virtual RepresentativesResource.RepresentativeInfoByAddressRequest.RolesEnum? Roles { get; set; }
Property Value
Type | Description |
---|---|
RepresentativesResource.RepresentativeInfoByAddressRequest.RolesEnum? |
Remarks
Use this property to set a single value for the parameter, or RolesList to set multiple values. Do not set both properties.
RolesList
A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.
Declaration
[RequestParameter("roles", RequestParameterType.Query)]
public virtual Repeatable<RepresentativesResource.RepresentativeInfoByAddressRequest.RolesEnum> RolesList { get; set; }
Property Value
Type | Description |
---|---|
Repeatable<RepresentativesResource.RepresentativeInfoByAddressRequest.RolesEnum> |
Remarks
Use this property to set one or more values for the parameter. Do not set both this property and Roles.
Methods
InitParameters()
Initializes RepresentativeInfoByAddress parameter list.
Declaration
protected override void InitParameters()