Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: generated/googleapis/lib/civicinfo/v2.dart

Issue 2159673002: Api-roll 39: 2016-07-18 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « generated/googleapis/lib/books/v1.dart ('k') | generated/googleapis/lib/cloudbuild/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.civicinfo.v2; 3 library googleapis.civicinfo.v2;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
11 11
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 13 ApiRequestError, DetailedApiRequestError;
14 14
15 const core.String USER_AGENT = 'dart-api-client civicinfo/v2'; 15 const core.String USER_AGENT = 'dart-api-client civicinfo/v2';
16 16
17 /** An API for accessing civic information. */ 17 /**
18 * Provides polling places, early vote locations, contest data, election
19 * officials, and government representatives for U.S. residential addresses.
20 */
18 class CivicinfoApi { 21 class CivicinfoApi {
19 22
20 final commons.ApiRequester _requester; 23 final commons.ApiRequester _requester;
21 24
22 DivisionsResourceApi get divisions => new DivisionsResourceApi(_requester); 25 DivisionsResourceApi get divisions => new DivisionsResourceApi(_requester);
23 ElectionsResourceApi get elections => new ElectionsResourceApi(_requester); 26 ElectionsResourceApi get elections => new ElectionsResourceApi(_requester);
24 RepresentativesResourceApi get representatives => new RepresentativesResourceA pi(_requester); 27 RepresentativesResourceApi get representatives => new RepresentativesResourceA pi(_requester);
25 28
26 CivicinfoApi(http.Client client, {core.String rootUrl: "https://www.googleapis .com/", core.String servicePath: "civicinfo/v2/"}) : 29 CivicinfoApi(http.Client client, {core.String rootUrl: "https://www.googleapis .com/", core.String servicePath: "civicinfo/v2/"}) :
27 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 30 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT);
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 /** 381 /**
379 * Information about an election administrative body (e.g. County Board of 382 * Information about an election administrative body (e.g. County Board of
380 * Elections). 383 * Elections).
381 */ 384 */
382 class AdministrativeBody { 385 class AdministrativeBody {
383 /** 386 /**
384 * A URL provided by this administrative body for information on absentee 387 * A URL provided by this administrative body for information on absentee
385 * voting. 388 * voting.
386 */ 389 */
387 core.String absenteeVotingInfoUrl; 390 core.String absenteeVotingInfoUrl;
391 core.List<core.String> addressLines;
388 /** 392 /**
389 * A URL provided by this administrative body to give contest information to 393 * A URL provided by this administrative body to give contest information to
390 * the voter. 394 * the voter.
391 */ 395 */
392 core.String ballotInfoUrl; 396 core.String ballotInfoUrl;
393 /** The mailing address of this administrative body. */ 397 /** The mailing address of this administrative body. */
394 SimpleAddressType correspondenceAddress; 398 SimpleAddressType correspondenceAddress;
395 /** 399 /**
396 * A URL provided by this administrative body for looking up general election 400 * A URL provided by this administrative body for looking up general election
397 * information. 401 * information.
(...skipping 28 matching lines...) Expand all
426 * A URL provided by this administrative body for looking up where to vote. 430 * A URL provided by this administrative body for looking up where to vote.
427 */ 431 */
428 core.String votingLocationFinderUrl; 432 core.String votingLocationFinderUrl;
429 433
430 AdministrativeBody(); 434 AdministrativeBody();
431 435
432 AdministrativeBody.fromJson(core.Map _json) { 436 AdministrativeBody.fromJson(core.Map _json) {
433 if (_json.containsKey("absenteeVotingInfoUrl")) { 437 if (_json.containsKey("absenteeVotingInfoUrl")) {
434 absenteeVotingInfoUrl = _json["absenteeVotingInfoUrl"]; 438 absenteeVotingInfoUrl = _json["absenteeVotingInfoUrl"];
435 } 439 }
440 if (_json.containsKey("addressLines")) {
441 addressLines = _json["addressLines"];
442 }
436 if (_json.containsKey("ballotInfoUrl")) { 443 if (_json.containsKey("ballotInfoUrl")) {
437 ballotInfoUrl = _json["ballotInfoUrl"]; 444 ballotInfoUrl = _json["ballotInfoUrl"];
438 } 445 }
439 if (_json.containsKey("correspondenceAddress")) { 446 if (_json.containsKey("correspondenceAddress")) {
440 correspondenceAddress = new SimpleAddressType.fromJson(_json["corresponden ceAddress"]); 447 correspondenceAddress = new SimpleAddressType.fromJson(_json["corresponden ceAddress"]);
441 } 448 }
442 if (_json.containsKey("electionInfoUrl")) { 449 if (_json.containsKey("electionInfoUrl")) {
443 electionInfoUrl = _json["electionInfoUrl"]; 450 electionInfoUrl = _json["electionInfoUrl"];
444 } 451 }
445 if (_json.containsKey("electionOfficials")) { 452 if (_json.containsKey("electionOfficials")) {
(...skipping 23 matching lines...) Expand all
469 if (_json.containsKey("votingLocationFinderUrl")) { 476 if (_json.containsKey("votingLocationFinderUrl")) {
470 votingLocationFinderUrl = _json["votingLocationFinderUrl"]; 477 votingLocationFinderUrl = _json["votingLocationFinderUrl"];
471 } 478 }
472 } 479 }
473 480
474 core.Map toJson() { 481 core.Map toJson() {
475 var _json = new core.Map(); 482 var _json = new core.Map();
476 if (absenteeVotingInfoUrl != null) { 483 if (absenteeVotingInfoUrl != null) {
477 _json["absenteeVotingInfoUrl"] = absenteeVotingInfoUrl; 484 _json["absenteeVotingInfoUrl"] = absenteeVotingInfoUrl;
478 } 485 }
486 if (addressLines != null) {
487 _json["addressLines"] = addressLines;
488 }
479 if (ballotInfoUrl != null) { 489 if (ballotInfoUrl != null) {
480 _json["ballotInfoUrl"] = ballotInfoUrl; 490 _json["ballotInfoUrl"] = ballotInfoUrl;
481 } 491 }
482 if (correspondenceAddress != null) { 492 if (correspondenceAddress != null) {
483 _json["correspondenceAddress"] = (correspondenceAddress).toJson(); 493 _json["correspondenceAddress"] = (correspondenceAddress).toJson();
484 } 494 }
485 if (electionInfoUrl != null) { 495 if (electionInfoUrl != null) {
486 _json["electionInfoUrl"] = electionInfoUrl; 496 _json["electionInfoUrl"] = electionInfoUrl;
487 } 497 }
488 if (electionOfficials != null) { 498 if (electionOfficials != null) {
(...skipping 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1805 } 1815 }
1806 if (precinctId != null) { 1816 if (precinctId != null) {
1807 _json["precinctId"] = precinctId; 1817 _json["precinctId"] = precinctId;
1808 } 1818 }
1809 if (state != null) { 1819 if (state != null) {
1810 _json["state"] = state.map((value) => (value).toJson()).toList(); 1820 _json["state"] = state.map((value) => (value).toJson()).toList();
1811 } 1821 }
1812 return _json; 1822 return _json;
1813 } 1823 }
1814 } 1824 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/books/v1.dart ('k') | generated/googleapis/lib/cloudbuild/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698