| OLD | NEW |
| 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.qpxExpress.v1; | 3 library googleapis.qpxExpress.v1; |
| 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 qpxExpress/v1'; | 15 const core.String USER_AGENT = 'dart-api-client qpxExpress/v1'; |
| 16 | 16 |
| 17 /** | 17 /** Finds the least expensive flights between an origin and a destination. */ |
| 18 * Lets you find the least expensive flights between an origin and a | |
| 19 * destination. | |
| 20 */ | |
| 21 class QpxExpressApi { | 18 class QpxExpressApi { |
| 22 | 19 |
| 23 final commons.ApiRequester _requester; | 20 final commons.ApiRequester _requester; |
| 24 | 21 |
| 25 TripsResourceApi get trips => new TripsResourceApi(_requester); | 22 TripsResourceApi get trips => new TripsResourceApi(_requester); |
| 26 | 23 |
| 27 QpxExpressApi(http.Client client, {core.String rootUrl: "https://www.googleapi
s.com/", core.String servicePath: "qpxExpress/v1/trips/"}) : | 24 QpxExpressApi(http.Client client, {core.String rootUrl: "https://www.googleapi
s.com/", core.String servicePath: "qpxExpress/v1/trips/"}) : |
| 28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 25 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 29 } | 26 } |
| 30 | 27 |
| (...skipping 1700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1731 var _json = new core.Map(); | 1728 var _json = new core.Map(); |
| 1732 if (kind != null) { | 1729 if (kind != null) { |
| 1733 _json["kind"] = kind; | 1730 _json["kind"] = kind; |
| 1734 } | 1731 } |
| 1735 if (trips != null) { | 1732 if (trips != null) { |
| 1736 _json["trips"] = (trips).toJson(); | 1733 _json["trips"] = (trips).toJson(); |
| 1737 } | 1734 } |
| 1738 return _json; | 1735 return _json; |
| 1739 } | 1736 } |
| 1740 } | 1737 } |
| OLD | NEW |