Show / Hide Table of Contents

Class RepresentativesResource.RepresentativeInfoByDivisionRequest

Looks up representative information for a single geographic division.

Inheritance
object
ClientServiceRequest
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>
RepresentativesResource.RepresentativeInfoByDivisionRequest
Implements
IClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>
IClientServiceRequest
Inherited Members
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.Xgafv
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.AccessToken
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.Alt
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.Callback
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.Fields
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.Key
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.OauthToken
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.PrettyPrint
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.QuotaUser
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.UploadType
CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.UploadProtocol
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.Execute()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ExecuteAsStream()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ExecuteAsync()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ExecuteAsync(CancellationToken)
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ExecuteAsStreamAsync()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ExecuteAsStreamAsync(CancellationToken)
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.CreateRequest(bool?)
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.GenerateRequestUri()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.GetBody()
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.GetDefaultETagAction(string)
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ETagAction
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ModifyRequest
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ValidateParameters
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.ApiVersion
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.RequestParameters
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.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 RepresentativesResource.RepresentativeInfoByDivisionRequest : CivicInfoBaseServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>, IClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>, IClientServiceRequest

Constructors

RepresentativeInfoByDivisionRequest(IClientService, string)

Constructs a new RepresentativeInfoByDivision request.

Declaration
public RepresentativeInfoByDivisionRequest(IClientService service, string ocdId)
Parameters
Type Name Description
IClientService service
string ocdId

Properties

HttpMethod

Gets the HTTP method.

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

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.RepresentativeInfoByDivisionRequest.LevelsEnum? Levels { get; set; }
Property Value
Type Description
RepresentativesResource.RepresentativeInfoByDivisionRequest.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.RepresentativeInfoByDivisionRequest.LevelsEnum> LevelsList { get; set; }
Property Value
Type Description
Repeatable<RepresentativesResource.RepresentativeInfoByDivisionRequest.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
ClientServiceRequest<CivicinfoApiprotosV2RepresentativeInfoData>.MethodName

OcdId

The Open Civic Data division identifier of the division to look up.

Declaration
[RequestParameter("ocdId", RequestParameterType.Path)]
public virtual string OcdId { get; }
Property Value
Type Description
string

Recursive

If true, information about all divisions contained in the division requested will be included as well. For example, if querying ocd-division/country:us/district:dc, this would also return all DC's wards and ANCs.

Declaration
[RequestParameter("recursive", RequestParameterType.Query)]
public virtual bool? Recursive { 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<CivicinfoApiprotosV2RepresentativeInfoData>.RestPath

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.RepresentativeInfoByDivisionRequest.RolesEnum? Roles { get; set; }
Property Value
Type Description
RepresentativesResource.RepresentativeInfoByDivisionRequest.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.RepresentativeInfoByDivisionRequest.RolesEnum> RolesList { get; set; }
Property Value
Type Description
Repeatable<RepresentativesResource.RepresentativeInfoByDivisionRequest.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 RepresentativeInfoByDivision parameter list.

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

Implements

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