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.fitness.v1; | 3 library googleapis.fitness.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; |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
946 if (dataSourceId != null) { | 946 if (dataSourceId != null) { |
947 _json["dataSourceId"] = dataSourceId; | 947 _json["dataSourceId"] = dataSourceId; |
948 } | 948 } |
949 if (dataTypeName != null) { | 949 if (dataTypeName != null) { |
950 _json["dataTypeName"] = dataTypeName; | 950 _json["dataTypeName"] = dataTypeName; |
951 } | 951 } |
952 return _json; | 952 return _json; |
953 } | 953 } |
954 } | 954 } |
955 | 955 |
| 956 /** Next id: 10 */ |
956 class AggregateRequest { | 957 class AggregateRequest { |
957 /** | 958 /** |
958 * The specification of data to be aggregated. At least one aggregateBy spec | 959 * The specification of data to be aggregated. At least one aggregateBy spec |
959 * must be provided. All data that is specified will be aggregated using the | 960 * must be provided. All data that is specified will be aggregated using the |
960 * same bucketing criteria. There will be one dataset in the response for | 961 * same bucketing criteria. There will be one dataset in the response for |
961 * every aggregateBy spec. | 962 * every aggregateBy spec. |
962 */ | 963 */ |
963 core.List<AggregateBy> aggregateBy; | 964 core.List<AggregateBy> aggregateBy; |
964 /** | 965 /** |
965 * Specifies that data be aggregated each activity segment recored for a user. | 966 * Specifies that data be aggregated each activity segment recored for a user. |
(...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1808 } | 1809 } |
1809 } | 1810 } |
1810 | 1811 |
1811 class ListSessionsResponse { | 1812 class ListSessionsResponse { |
1812 /** | 1813 /** |
1813 * If includeDeleted is set to true in the request, this list will contain | 1814 * If includeDeleted is set to true in the request, this list will contain |
1814 * sessions deleted with original end times that are within the startTime and | 1815 * sessions deleted with original end times that are within the startTime and |
1815 * endTime frame. | 1816 * endTime frame. |
1816 */ | 1817 */ |
1817 core.List<Session> deletedSession; | 1818 core.List<Session> deletedSession; |
| 1819 /** Flag to indicate server has more data to transfer */ |
| 1820 core.bool hasMoreData; |
1818 /** | 1821 /** |
1819 * The continuation token, which is used to page through large result sets. | 1822 * The continuation token, which is used to page through large result sets. |
1820 * Provide this value in a subsequent request to return the next page of | 1823 * Provide this value in a subsequent request to return the next page of |
1821 * results. | 1824 * results. |
1822 */ | 1825 */ |
1823 core.String nextPageToken; | 1826 core.String nextPageToken; |
1824 /** | 1827 /** |
1825 * Sessions with an end time that is between startTime and endTime of the | 1828 * Sessions with an end time that is between startTime and endTime of the |
1826 * request. | 1829 * request. |
1827 */ | 1830 */ |
1828 core.List<Session> session; | 1831 core.List<Session> session; |
1829 | 1832 |
1830 ListSessionsResponse(); | 1833 ListSessionsResponse(); |
1831 | 1834 |
1832 ListSessionsResponse.fromJson(core.Map _json) { | 1835 ListSessionsResponse.fromJson(core.Map _json) { |
1833 if (_json.containsKey("deletedSession")) { | 1836 if (_json.containsKey("deletedSession")) { |
1834 deletedSession = _json["deletedSession"].map((value) => new Session.fromJs
on(value)).toList(); | 1837 deletedSession = _json["deletedSession"].map((value) => new Session.fromJs
on(value)).toList(); |
1835 } | 1838 } |
| 1839 if (_json.containsKey("hasMoreData")) { |
| 1840 hasMoreData = _json["hasMoreData"]; |
| 1841 } |
1836 if (_json.containsKey("nextPageToken")) { | 1842 if (_json.containsKey("nextPageToken")) { |
1837 nextPageToken = _json["nextPageToken"]; | 1843 nextPageToken = _json["nextPageToken"]; |
1838 } | 1844 } |
1839 if (_json.containsKey("session")) { | 1845 if (_json.containsKey("session")) { |
1840 session = _json["session"].map((value) => new Session.fromJson(value)).toL
ist(); | 1846 session = _json["session"].map((value) => new Session.fromJson(value)).toL
ist(); |
1841 } | 1847 } |
1842 } | 1848 } |
1843 | 1849 |
1844 core.Map toJson() { | 1850 core.Map toJson() { |
1845 var _json = new core.Map(); | 1851 var _json = new core.Map(); |
1846 if (deletedSession != null) { | 1852 if (deletedSession != null) { |
1847 _json["deletedSession"] = deletedSession.map((value) => (value).toJson()).
toList(); | 1853 _json["deletedSession"] = deletedSession.map((value) => (value).toJson()).
toList(); |
1848 } | 1854 } |
| 1855 if (hasMoreData != null) { |
| 1856 _json["hasMoreData"] = hasMoreData; |
| 1857 } |
1849 if (nextPageToken != null) { | 1858 if (nextPageToken != null) { |
1850 _json["nextPageToken"] = nextPageToken; | 1859 _json["nextPageToken"] = nextPageToken; |
1851 } | 1860 } |
1852 if (session != null) { | 1861 if (session != null) { |
1853 _json["session"] = session.map((value) => (value).toJson()).toList(); | 1862 _json["session"] = session.map((value) => (value).toJson()).toList(); |
1854 } | 1863 } |
1855 return _json; | 1864 return _json; |
1856 } | 1865 } |
1857 } | 1866 } |
1858 | 1867 |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2059 var _json = new core.Map(); | 2068 var _json = new core.Map(); |
2060 if (key != null) { | 2069 if (key != null) { |
2061 _json["key"] = key; | 2070 _json["key"] = key; |
2062 } | 2071 } |
2063 if (value != null) { | 2072 if (value != null) { |
2064 _json["value"] = (value).toJson(); | 2073 _json["value"] = (value).toJson(); |
2065 } | 2074 } |
2066 return _json; | 2075 return _json; |
2067 } | 2076 } |
2068 } | 2077 } |
OLD | NEW |