| OLD | NEW |
| 1 library googleapis.appstate.v1; | 1 library googleapis.appstate.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 /** The Google App State API. */ | 16 /** The Google App State API. */ |
| 17 class AppstateApi { | 17 class AppstateApi { |
| 18 /** View and manage your data for this application */ | 18 /** View and manage your data for this application */ |
| 19 static const AppstateScope = "https://www.googleapis.com/auth/appstate"; | 19 static const AppstateScope = "https://www.googleapis.com/auth/appstate"; |
| 20 | 20 |
| 21 | 21 |
| 22 final common_internal.ApiRequester _requester; | 22 final common_internal.ApiRequester _requester; |
| 23 | 23 |
| 24 StatesResourceApi get states => new StatesResourceApi(_requester); | 24 StatesResourceApi get states => new StatesResourceApi(_requester); |
| 25 | 25 |
| 26 AppstateApi(http.Client client) : | 26 AppstateApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "appstate/v1/"}) : |
| 27 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "appstate/v1/"); | 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 StatesResourceApi { | 32 class StatesResourceApi { |
| 33 final common_internal.ApiRequester _requester; | 33 final common_internal.ApiRequester _requester; |
| 34 | 34 |
| 35 StatesResourceApi(common_internal.ApiRequester client) : | 35 StatesResourceApi(common_internal.ApiRequester client) : |
| 36 _requester = client; | 36 _requester = client; |
| 37 | 37 |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 _json["kind"] = kind; | 445 _json["kind"] = kind; |
| 446 } | 446 } |
| 447 if (stateKey != null) { | 447 if (stateKey != null) { |
| 448 _json["stateKey"] = stateKey; | 448 _json["stateKey"] = stateKey; |
| 449 } | 449 } |
| 450 return _json; | 450 return _json; |
| 451 } | 451 } |
| 452 } | 452 } |
| 453 | 453 |
| 454 | 454 |
| OLD | NEW |