| OLD | NEW |
| 1 library googleapis.qpxExpress.v1; | 1 library googleapis.qpxExpress.v1; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| 11 import '../common/common.dart' as common; | 11 import '../common/common.dart' as common; |
| 12 | 12 |
| 13 export '../common/common.dart' show ApiRequestError; | 13 export '../common/common.dart' show ApiRequestError; |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 14 export '../common/common.dart' show DetailedApiRequestError; |
| 15 | 15 |
| 16 /** | 16 /** |
| 17 * Lets you find the least expensive flights between an origin and a | 17 * Lets you find the least expensive flights between an origin and a |
| 18 * destination. | 18 * destination. |
| 19 */ | 19 */ |
| 20 class QpxExpressApi { | 20 class QpxExpressApi { |
| 21 | 21 |
| 22 final common_internal.ApiRequester _requester; | 22 final common_internal.ApiRequester _requester; |
| 23 | 23 |
| 24 TripsResourceApi get trips => new TripsResourceApi(_requester); | 24 TripsResourceApi get trips => new TripsResourceApi(_requester); |
| 25 | 25 |
| 26 QpxExpressApi(http.Client client) : | 26 QpxExpressApi(http.Client client, {core.String rootUrl: "https://www.googleapi
s.com/", core.String servicePath: "qpxExpress/v1/trips/"}) : |
| 27 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "qpxExpress/v1/trips/"); | 27 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
| 28 } | 28 } |
| 29 | 29 |
| 30 | 30 |
| 31 /** Not documented yet. */ | 31 /** Not documented yet. */ |
| 32 class TripsResourceApi { | 32 class TripsResourceApi { |
| 33 final common_internal.ApiRequester _requester; | 33 final common_internal.ApiRequester _requester; |
| 34 | 34 |
| 35 TripsResourceApi(common_internal.ApiRequester client) : | 35 TripsResourceApi(common_internal.ApiRequester client) : |
| 36 _requester = client; | 36 _requester = client; |
| 37 | 37 |
| (...skipping 1856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1894 _json["kind"] = kind; | 1894 _json["kind"] = kind; |
| 1895 } | 1895 } |
| 1896 if (trips != null) { | 1896 if (trips != null) { |
| 1897 _json["trips"] = (trips).toJson(); | 1897 _json["trips"] = (trips).toJson(); |
| 1898 } | 1898 } |
| 1899 return _json; | 1899 return _json; |
| 1900 } | 1900 } |
| 1901 } | 1901 } |
| 1902 | 1902 |
| 1903 | 1903 |
| OLD | NEW |