OLD | NEW |
1 library googleapis.fitness.v1; | 1 library googleapis.fitness.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; |
(...skipping 20 matching lines...) Expand all Loading... |
31 static const FitnessLocationReadScope = "https://www.googleapis.com/auth/fitne
ss.location.read"; | 31 static const FitnessLocationReadScope = "https://www.googleapis.com/auth/fitne
ss.location.read"; |
32 | 32 |
33 /** View and store your location data in Google Fit */ | 33 /** View and store your location data in Google Fit */ |
34 static const FitnessLocationWriteScope = "https://www.googleapis.com/auth/fitn
ess.location.write"; | 34 static const FitnessLocationWriteScope = "https://www.googleapis.com/auth/fitn
ess.location.write"; |
35 | 35 |
36 | 36 |
37 final common_internal.ApiRequester _requester; | 37 final common_internal.ApiRequester _requester; |
38 | 38 |
39 UsersResourceApi get users => new UsersResourceApi(_requester); | 39 UsersResourceApi get users => new UsersResourceApi(_requester); |
40 | 40 |
41 FitnessApi(http.Client client) : | 41 FitnessApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "fitness/v1/users/"}) : |
42 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "fitness/v1/users/"); | 42 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
43 } | 43 } |
44 | 44 |
45 | 45 |
46 /** Not documented yet. */ | 46 /** Not documented yet. */ |
47 class UsersResourceApi { | 47 class UsersResourceApi { |
48 final common_internal.ApiRequester _requester; | 48 final common_internal.ApiRequester _requester; |
49 | 49 |
50 UsersDataSourcesResourceApi get dataSources => new UsersDataSourcesResourceApi
(_requester); | 50 UsersDataSourcesResourceApi get dataSources => new UsersDataSourcesResourceApi
(_requester); |
51 UsersSessionsResourceApi get sessions => new UsersSessionsResourceApi(_request
er); | 51 UsersSessionsResourceApi get sessions => new UsersSessionsResourceApi(_request
er); |
52 | 52 |
(...skipping 1483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1536 _json["fpVal"] = fpVal; | 1536 _json["fpVal"] = fpVal; |
1537 } | 1537 } |
1538 if (intVal != null) { | 1538 if (intVal != null) { |
1539 _json["intVal"] = intVal; | 1539 _json["intVal"] = intVal; |
1540 } | 1540 } |
1541 return _json; | 1541 return _json; |
1542 } | 1542 } |
1543 } | 1543 } |
1544 | 1544 |
1545 | 1545 |
OLD | NEW |