OLD | NEW |
1 library googleapis.books.v1; | 1 library googleapis.books.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_1; | 11 import '../common/common.dart' as common_1; |
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 /** Lets you search for books and manage your Google Books library. */ | 16 /** Lets you search for books and manage your Google Books library. */ |
17 class BooksApi { | 17 class BooksApi { |
18 /** Manage your books */ | 18 /** Manage your books */ |
19 static const BooksScope = "https://www.googleapis.com/auth/books"; | 19 static const BooksScope = "https://www.googleapis.com/auth/books"; |
20 | 20 |
21 | 21 |
22 final common_internal.ApiRequester _requester; | 22 final common_internal.ApiRequester _requester; |
23 | 23 |
24 BookshelvesResourceApi get bookshelves => new BookshelvesResourceApi(_requeste
r); | 24 BookshelvesResourceApi get bookshelves => new BookshelvesResourceApi(_requeste
r); |
25 CloudloadingResourceApi get cloudloading => new CloudloadingResourceApi(_reque
ster); | 25 CloudloadingResourceApi get cloudloading => new CloudloadingResourceApi(_reque
ster); |
26 DictionaryResourceApi get dictionary => new DictionaryResourceApi(_requester); | 26 DictionaryResourceApi get dictionary => new DictionaryResourceApi(_requester); |
27 LayersResourceApi get layers => new LayersResourceApi(_requester); | 27 LayersResourceApi get layers => new LayersResourceApi(_requester); |
28 MyconfigResourceApi get myconfig => new MyconfigResourceApi(_requester); | 28 MyconfigResourceApi get myconfig => new MyconfigResourceApi(_requester); |
29 MylibraryResourceApi get mylibrary => new MylibraryResourceApi(_requester); | 29 MylibraryResourceApi get mylibrary => new MylibraryResourceApi(_requester); |
| 30 OnboardingResourceApi get onboarding => new OnboardingResourceApi(_requester); |
30 PromoofferResourceApi get promooffer => new PromoofferResourceApi(_requester); | 31 PromoofferResourceApi get promooffer => new PromoofferResourceApi(_requester); |
31 VolumesResourceApi get volumes => new VolumesResourceApi(_requester); | 32 VolumesResourceApi get volumes => new VolumesResourceApi(_requester); |
32 | 33 |
33 BooksApi(http.Client client) : | 34 BooksApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "books/v1/"}) : |
34 _requester = new common_internal.ApiRequester(client, "https://www.googlea
pis.com/", "books/v1/"); | 35 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); |
35 } | 36 } |
36 | 37 |
37 | 38 |
38 /** Not documented yet. */ | 39 /** Not documented yet. */ |
39 class BookshelvesResourceApi { | 40 class BookshelvesResourceApi { |
40 final common_internal.ApiRequester _requester; | 41 final common_internal.ApiRequester _requester; |
41 | 42 |
42 BookshelvesVolumesResourceApi get volumes => new BookshelvesVolumesResourceApi
(_requester); | 43 BookshelvesVolumesResourceApi get volumes => new BookshelvesVolumesResourceApi
(_requester); |
43 | 44 |
44 BookshelvesResourceApi(common_internal.ApiRequester client) : | 45 BookshelvesResourceApi(common_internal.ApiRequester client) : |
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
943 | 944 |
944 | 945 |
945 /** Not documented yet. */ | 946 /** Not documented yet. */ |
946 class MyconfigResourceApi { | 947 class MyconfigResourceApi { |
947 final common_internal.ApiRequester _requester; | 948 final common_internal.ApiRequester _requester; |
948 | 949 |
949 MyconfigResourceApi(common_internal.ApiRequester client) : | 950 MyconfigResourceApi(common_internal.ApiRequester client) : |
950 _requester = client; | 951 _requester = client; |
951 | 952 |
952 /** | 953 /** |
| 954 * Gets the current settings for the user. |
| 955 * |
| 956 * Request parameters: |
| 957 * |
| 958 * Completes with a [Usersettings]. |
| 959 * |
| 960 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an |
| 961 * error. |
| 962 * |
| 963 * If the used [http.Client] completes with an error when making a REST call, |
| 964 * this method will complete with the same error. |
| 965 */ |
| 966 async.Future<Usersettings> getUserSettings() { |
| 967 var _url = null; |
| 968 var _queryParams = new core.Map(); |
| 969 var _uploadMedia = null; |
| 970 var _uploadOptions = null; |
| 971 var _downloadOptions = common_1.DownloadOptions.Metadata; |
| 972 var _body = null; |
| 973 |
| 974 |
| 975 |
| 976 _url = 'myconfig/getUserSettings'; |
| 977 |
| 978 var _response = _requester.request(_url, |
| 979 "GET", |
| 980 body: _body, |
| 981 queryParams: _queryParams, |
| 982 uploadOptions: _uploadOptions, |
| 983 uploadMedia: _uploadMedia, |
| 984 downloadOptions: _downloadOptions); |
| 985 return _response.then((data) => new Usersettings.fromJson(data)); |
| 986 } |
| 987 |
| 988 /** |
953 * Release downloaded content access restriction. | 989 * Release downloaded content access restriction. |
954 * | 990 * |
955 * Request parameters: | 991 * Request parameters: |
956 * | 992 * |
957 * [volumeIds] - The volume(s) to release restrictions for. | 993 * [volumeIds] - The volume(s) to release restrictions for. |
958 * | 994 * |
959 * [cpksver] - The device/version ID from which to release the restriction. | 995 * [cpksver] - The device/version ID from which to release the restriction. |
960 * | 996 * |
961 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. | 997 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. |
962 * en_US. | 998 * en_US. |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1150 var _response = _requester.request(_url, | 1186 var _response = _requester.request(_url, |
1151 "POST", | 1187 "POST", |
1152 body: _body, | 1188 body: _body, |
1153 queryParams: _queryParams, | 1189 queryParams: _queryParams, |
1154 uploadOptions: _uploadOptions, | 1190 uploadOptions: _uploadOptions, |
1155 uploadMedia: _uploadMedia, | 1191 uploadMedia: _uploadMedia, |
1156 downloadOptions: _downloadOptions); | 1192 downloadOptions: _downloadOptions); |
1157 return _response.then((data) => new Volumes.fromJson(data)); | 1193 return _response.then((data) => new Volumes.fromJson(data)); |
1158 } | 1194 } |
1159 | 1195 |
| 1196 /** |
| 1197 * Sets the settings for the user. Unspecified sub-objects will retain the |
| 1198 * existing value. |
| 1199 * |
| 1200 * [request] - The metadata request object. |
| 1201 * |
| 1202 * Request parameters: |
| 1203 * |
| 1204 * Completes with a [Usersettings]. |
| 1205 * |
| 1206 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an |
| 1207 * error. |
| 1208 * |
| 1209 * If the used [http.Client] completes with an error when making a REST call, |
| 1210 * this method will complete with the same error. |
| 1211 */ |
| 1212 async.Future<Usersettings> updateUserSettings(Usersettings request) { |
| 1213 var _url = null; |
| 1214 var _queryParams = new core.Map(); |
| 1215 var _uploadMedia = null; |
| 1216 var _uploadOptions = null; |
| 1217 var _downloadOptions = common_1.DownloadOptions.Metadata; |
| 1218 var _body = null; |
| 1219 |
| 1220 if (request != null) { |
| 1221 _body = convert.JSON.encode((request).toJson()); |
| 1222 } |
| 1223 |
| 1224 |
| 1225 _url = 'myconfig/updateUserSettings'; |
| 1226 |
| 1227 var _response = _requester.request(_url, |
| 1228 "POST", |
| 1229 body: _body, |
| 1230 queryParams: _queryParams, |
| 1231 uploadOptions: _uploadOptions, |
| 1232 uploadMedia: _uploadMedia, |
| 1233 downloadOptions: _downloadOptions); |
| 1234 return _response.then((data) => new Usersettings.fromJson(data)); |
| 1235 } |
| 1236 |
1160 } | 1237 } |
1161 | 1238 |
1162 | 1239 |
1163 /** Not documented yet. */ | 1240 /** Not documented yet. */ |
1164 class MylibraryResourceApi { | 1241 class MylibraryResourceApi { |
1165 final common_internal.ApiRequester _requester; | 1242 final common_internal.ApiRequester _requester; |
1166 | 1243 |
1167 MylibraryAnnotationsResourceApi get annotations => new MylibraryAnnotationsRes
ourceApi(_requester); | 1244 MylibraryAnnotationsResourceApi get annotations => new MylibraryAnnotationsRes
ourceApi(_requester); |
1168 MylibraryBookshelvesResourceApi get bookshelves => new MylibraryBookshelvesRes
ourceApi(_requester); | 1245 MylibraryBookshelvesResourceApi get bookshelves => new MylibraryBookshelvesRes
ourceApi(_requester); |
1169 MylibraryReadingpositionsResourceApi get readingpositions => new MylibraryRead
ingpositionsResourceApi(_requester); | 1246 MylibraryReadingpositionsResourceApi get readingpositions => new MylibraryRead
ingpositionsResourceApi(_requester); |
(...skipping 872 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2042 uploadOptions: _uploadOptions, | 2119 uploadOptions: _uploadOptions, |
2043 uploadMedia: _uploadMedia, | 2120 uploadMedia: _uploadMedia, |
2044 downloadOptions: _downloadOptions); | 2121 downloadOptions: _downloadOptions); |
2045 return _response.then((data) => null); | 2122 return _response.then((data) => null); |
2046 } | 2123 } |
2047 | 2124 |
2048 } | 2125 } |
2049 | 2126 |
2050 | 2127 |
2051 /** Not documented yet. */ | 2128 /** Not documented yet. */ |
| 2129 class OnboardingResourceApi { |
| 2130 final common_internal.ApiRequester _requester; |
| 2131 |
| 2132 OnboardingResourceApi(common_internal.ApiRequester client) : |
| 2133 _requester = client; |
| 2134 |
| 2135 /** |
| 2136 * List categories for onboarding experience. |
| 2137 * |
| 2138 * Request parameters: |
| 2139 * |
| 2140 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is en-US |
| 2141 * if unset. |
| 2142 * |
| 2143 * Completes with a [Category]. |
| 2144 * |
| 2145 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an |
| 2146 * error. |
| 2147 * |
| 2148 * If the used [http.Client] completes with an error when making a REST call, |
| 2149 * this method will complete with the same error. |
| 2150 */ |
| 2151 async.Future<Category> listCategories({core.String locale}) { |
| 2152 var _url = null; |
| 2153 var _queryParams = new core.Map(); |
| 2154 var _uploadMedia = null; |
| 2155 var _uploadOptions = null; |
| 2156 var _downloadOptions = common_1.DownloadOptions.Metadata; |
| 2157 var _body = null; |
| 2158 |
| 2159 if (locale != null) { |
| 2160 _queryParams["locale"] = [locale]; |
| 2161 } |
| 2162 |
| 2163 |
| 2164 _url = 'onboarding/listCategories'; |
| 2165 |
| 2166 var _response = _requester.request(_url, |
| 2167 "GET", |
| 2168 body: _body, |
| 2169 queryParams: _queryParams, |
| 2170 uploadOptions: _uploadOptions, |
| 2171 uploadMedia: _uploadMedia, |
| 2172 downloadOptions: _downloadOptions); |
| 2173 return _response.then((data) => new Category.fromJson(data)); |
| 2174 } |
| 2175 |
| 2176 /** |
| 2177 * List available volumes under categories for onboarding experience. |
| 2178 * |
| 2179 * Request parameters: |
| 2180 * |
| 2181 * [categoryId] - List of category ids requested. |
| 2182 * |
| 2183 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is en-US |
| 2184 * if unset. |
| 2185 * |
| 2186 * [pageSize] - Number of maximum results per page to be included in the |
| 2187 * response. |
| 2188 * |
| 2189 * [pageToken] - The value of the nextToken from the previous page. |
| 2190 * |
| 2191 * Completes with a [Volume2]. |
| 2192 * |
| 2193 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an |
| 2194 * error. |
| 2195 * |
| 2196 * If the used [http.Client] completes with an error when making a REST call, |
| 2197 * this method will complete with the same error. |
| 2198 */ |
| 2199 async.Future<Volume2> listCategoryVolumes({core.List<core.String> categoryId,
core.String locale, core.int pageSize, core.String pageToken}) { |
| 2200 var _url = null; |
| 2201 var _queryParams = new core.Map(); |
| 2202 var _uploadMedia = null; |
| 2203 var _uploadOptions = null; |
| 2204 var _downloadOptions = common_1.DownloadOptions.Metadata; |
| 2205 var _body = null; |
| 2206 |
| 2207 if (categoryId != null) { |
| 2208 _queryParams["categoryId"] = categoryId; |
| 2209 } |
| 2210 if (locale != null) { |
| 2211 _queryParams["locale"] = [locale]; |
| 2212 } |
| 2213 if (pageSize != null) { |
| 2214 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2215 } |
| 2216 if (pageToken != null) { |
| 2217 _queryParams["pageToken"] = [pageToken]; |
| 2218 } |
| 2219 |
| 2220 |
| 2221 _url = 'onboarding/listCategoryVolumes'; |
| 2222 |
| 2223 var _response = _requester.request(_url, |
| 2224 "GET", |
| 2225 body: _body, |
| 2226 queryParams: _queryParams, |
| 2227 uploadOptions: _uploadOptions, |
| 2228 uploadMedia: _uploadMedia, |
| 2229 downloadOptions: _downloadOptions); |
| 2230 return _response.then((data) => new Volume2.fromJson(data)); |
| 2231 } |
| 2232 |
| 2233 } |
| 2234 |
| 2235 |
| 2236 /** Not documented yet. */ |
2052 class PromoofferResourceApi { | 2237 class PromoofferResourceApi { |
2053 final common_internal.ApiRequester _requester; | 2238 final common_internal.ApiRequester _requester; |
2054 | 2239 |
2055 PromoofferResourceApi(common_internal.ApiRequester client) : | 2240 PromoofferResourceApi(common_internal.ApiRequester client) : |
2056 _requester = client; | 2241 _requester = client; |
2057 | 2242 |
2058 /** | 2243 /** |
2059 * Not documented yet. | 2244 * Not documented yet. |
2060 * | 2245 * |
2061 * Request parameters: | 2246 * Request parameters: |
(...skipping 1678 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3740 } | 3925 } |
3741 if (kind != null) { | 3926 if (kind != null) { |
3742 _json["kind"] = kind; | 3927 _json["kind"] = kind; |
3743 } | 3928 } |
3744 return _json; | 3929 return _json; |
3745 } | 3930 } |
3746 } | 3931 } |
3747 | 3932 |
3748 | 3933 |
3749 /** Not documented yet. */ | 3934 /** Not documented yet. */ |
| 3935 class CategoryItems { |
| 3936 /** Not documented yet. */ |
| 3937 core.String badgeUrl; |
| 3938 |
| 3939 /** Not documented yet. */ |
| 3940 core.String categoryId; |
| 3941 |
| 3942 /** Not documented yet. */ |
| 3943 core.String name; |
| 3944 |
| 3945 |
| 3946 CategoryItems(); |
| 3947 |
| 3948 CategoryItems.fromJson(core.Map _json) { |
| 3949 if (_json.containsKey("badgeUrl")) { |
| 3950 badgeUrl = _json["badgeUrl"]; |
| 3951 } |
| 3952 if (_json.containsKey("categoryId")) { |
| 3953 categoryId = _json["categoryId"]; |
| 3954 } |
| 3955 if (_json.containsKey("name")) { |
| 3956 name = _json["name"]; |
| 3957 } |
| 3958 } |
| 3959 |
| 3960 core.Map toJson() { |
| 3961 var _json = new core.Map(); |
| 3962 if (badgeUrl != null) { |
| 3963 _json["badgeUrl"] = badgeUrl; |
| 3964 } |
| 3965 if (categoryId != null) { |
| 3966 _json["categoryId"] = categoryId; |
| 3967 } |
| 3968 if (name != null) { |
| 3969 _json["name"] = name; |
| 3970 } |
| 3971 return _json; |
| 3972 } |
| 3973 } |
| 3974 |
| 3975 |
| 3976 /** Not documented yet. */ |
| 3977 class Category { |
| 3978 /** A list of onboarding categories. */ |
| 3979 core.List<CategoryItems> items; |
| 3980 |
| 3981 /** Resource type. */ |
| 3982 core.String kind; |
| 3983 |
| 3984 |
| 3985 Category(); |
| 3986 |
| 3987 Category.fromJson(core.Map _json) { |
| 3988 if (_json.containsKey("items")) { |
| 3989 items = _json["items"].map((value) => new CategoryItems.fromJson(value)).t
oList(); |
| 3990 } |
| 3991 if (_json.containsKey("kind")) { |
| 3992 kind = _json["kind"]; |
| 3993 } |
| 3994 } |
| 3995 |
| 3996 core.Map toJson() { |
| 3997 var _json = new core.Map(); |
| 3998 if (items != null) { |
| 3999 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 4000 } |
| 4001 if (kind != null) { |
| 4002 _json["kind"] = kind; |
| 4003 } |
| 4004 return _json; |
| 4005 } |
| 4006 } |
| 4007 |
| 4008 |
| 4009 /** Not documented yet. */ |
3750 class ConcurrentAccessRestriction { | 4010 class ConcurrentAccessRestriction { |
3751 /** Whether access is granted for this (user, device, volume). */ | 4011 /** Whether access is granted for this (user, device, volume). */ |
3752 core.bool deviceAllowed; | 4012 core.bool deviceAllowed; |
3753 | 4013 |
3754 /** Resource type. */ | 4014 /** Resource type. */ |
3755 core.String kind; | 4015 core.String kind; |
3756 | 4016 |
3757 /** The maximum number of concurrent access licenses for this volume. */ | 4017 /** The maximum number of concurrent access licenses for this volume. */ |
3758 core.int maxConcurrentDevices; | 4018 core.int maxConcurrentDevices; |
3759 | 4019 |
(...skipping 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5773 _json["type"] = type; | 6033 _json["type"] = type; |
5774 } | 6034 } |
5775 if (volumeId != null) { | 6035 if (volumeId != null) { |
5776 _json["volumeId"] = volumeId; | 6036 _json["volumeId"] = volumeId; |
5777 } | 6037 } |
5778 return _json; | 6038 return _json; |
5779 } | 6039 } |
5780 } | 6040 } |
5781 | 6041 |
5782 | 6042 |
| 6043 /** User settings in sub-objects, each for different purposes. */ |
| 6044 class UsersettingsNotesExport { |
| 6045 /** Not documented yet. */ |
| 6046 core.String folderName; |
| 6047 |
| 6048 /** Not documented yet. */ |
| 6049 core.bool isEnabled; |
| 6050 |
| 6051 |
| 6052 UsersettingsNotesExport(); |
| 6053 |
| 6054 UsersettingsNotesExport.fromJson(core.Map _json) { |
| 6055 if (_json.containsKey("folderName")) { |
| 6056 folderName = _json["folderName"]; |
| 6057 } |
| 6058 if (_json.containsKey("isEnabled")) { |
| 6059 isEnabled = _json["isEnabled"]; |
| 6060 } |
| 6061 } |
| 6062 |
| 6063 core.Map toJson() { |
| 6064 var _json = new core.Map(); |
| 6065 if (folderName != null) { |
| 6066 _json["folderName"] = folderName; |
| 6067 } |
| 6068 if (isEnabled != null) { |
| 6069 _json["isEnabled"] = isEnabled; |
| 6070 } |
| 6071 return _json; |
| 6072 } |
| 6073 } |
| 6074 |
| 6075 |
| 6076 /** Not documented yet. */ |
| 6077 class Usersettings { |
| 6078 /** Resource type. */ |
| 6079 core.String kind; |
| 6080 |
| 6081 /** User settings in sub-objects, each for different purposes. */ |
| 6082 UsersettingsNotesExport notesExport; |
| 6083 |
| 6084 |
| 6085 Usersettings(); |
| 6086 |
| 6087 Usersettings.fromJson(core.Map _json) { |
| 6088 if (_json.containsKey("kind")) { |
| 6089 kind = _json["kind"]; |
| 6090 } |
| 6091 if (_json.containsKey("notesExport")) { |
| 6092 notesExport = new UsersettingsNotesExport.fromJson(_json["notesExport"]); |
| 6093 } |
| 6094 } |
| 6095 |
| 6096 core.Map toJson() { |
| 6097 var _json = new core.Map(); |
| 6098 if (kind != null) { |
| 6099 _json["kind"] = kind; |
| 6100 } |
| 6101 if (notesExport != null) { |
| 6102 _json["notesExport"] = (notesExport).toJson(); |
| 6103 } |
| 6104 return _json; |
| 6105 } |
| 6106 } |
| 6107 |
| 6108 |
5783 /** Information about epub content. (In LITE projection.) */ | 6109 /** Information about epub content. (In LITE projection.) */ |
5784 class VolumeAccessInfoEpub { | 6110 class VolumeAccessInfoEpub { |
5785 /** URL to retrieve ACS token for epub download. (In LITE projection.) */ | 6111 /** URL to retrieve ACS token for epub download. (In LITE projection.) */ |
5786 core.String acsTokenLink; | 6112 core.String acsTokenLink; |
5787 | 6113 |
5788 /** URL to download epub. (In LITE projection.) */ | 6114 /** URL to download epub. (In LITE projection.) */ |
5789 core.String downloadLink; | 6115 core.String downloadLink; |
5790 | 6116 |
5791 /** | 6117 /** |
5792 * Is a flowing text epub available either as public domain or for purchase. | 6118 * Is a flowing text epub available either as public domain or for purchase. |
(...skipping 1455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7248 _json["userInfo"] = (userInfo).toJson(); | 7574 _json["userInfo"] = (userInfo).toJson(); |
7249 } | 7575 } |
7250 if (volumeInfo != null) { | 7576 if (volumeInfo != null) { |
7251 _json["volumeInfo"] = (volumeInfo).toJson(); | 7577 _json["volumeInfo"] = (volumeInfo).toJson(); |
7252 } | 7578 } |
7253 return _json; | 7579 return _json; |
7254 } | 7580 } |
7255 } | 7581 } |
7256 | 7582 |
7257 | 7583 |
| 7584 /** Not documented yet. */ |
| 7585 class Volume2 { |
| 7586 /** A list of volumes. */ |
| 7587 core.List<Volume> items; |
| 7588 |
| 7589 /** Resource type. */ |
| 7590 core.String kind; |
| 7591 |
| 7592 /** Not documented yet. */ |
| 7593 core.String nextPageToken; |
| 7594 |
| 7595 |
| 7596 Volume2(); |
| 7597 |
| 7598 Volume2.fromJson(core.Map _json) { |
| 7599 if (_json.containsKey("items")) { |
| 7600 items = _json["items"].map((value) => new Volume.fromJson(value)).toList()
; |
| 7601 } |
| 7602 if (_json.containsKey("kind")) { |
| 7603 kind = _json["kind"]; |
| 7604 } |
| 7605 if (_json.containsKey("nextPageToken")) { |
| 7606 nextPageToken = _json["nextPageToken"]; |
| 7607 } |
| 7608 } |
| 7609 |
| 7610 core.Map toJson() { |
| 7611 var _json = new core.Map(); |
| 7612 if (items != null) { |
| 7613 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 7614 } |
| 7615 if (kind != null) { |
| 7616 _json["kind"] = kind; |
| 7617 } |
| 7618 if (nextPageToken != null) { |
| 7619 _json["nextPageToken"] = nextPageToken; |
| 7620 } |
| 7621 return _json; |
| 7622 } |
| 7623 } |
| 7624 |
| 7625 |
7258 /** The content ranges to identify the selected text. */ | 7626 /** The content ranges to identify the selected text. */ |
7259 class VolumeannotationContentRanges { | 7627 class VolumeannotationContentRanges { |
7260 /** Range in CFI format for this annotation for version above. */ | 7628 /** Range in CFI format for this annotation for version above. */ |
7261 BooksAnnotationsRange cfiRange; | 7629 BooksAnnotationsRange cfiRange; |
7262 | 7630 |
7263 /** Content version applicable to ranges below. */ | 7631 /** Content version applicable to ranges below. */ |
7264 core.String contentVersion; | 7632 core.String contentVersion; |
7265 | 7633 |
7266 /** Range in GB image format for this annotation for version above. */ | 7634 /** Range in GB image format for this annotation for version above. */ |
7267 BooksAnnotationsRange gbImageRange; | 7635 BooksAnnotationsRange gbImageRange; |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7556 _json["kind"] = kind; | 7924 _json["kind"] = kind; |
7557 } | 7925 } |
7558 if (totalItems != null) { | 7926 if (totalItems != null) { |
7559 _json["totalItems"] = totalItems; | 7927 _json["totalItems"] = totalItems; |
7560 } | 7928 } |
7561 return _json; | 7929 return _json; |
7562 } | 7930 } |
7563 } | 7931 } |
7564 | 7932 |
7565 | 7933 |
OLD | NEW |