OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
1 library googleapis.books.v1; | 3 library googleapis.books.v1; |
2 | 4 |
3 import "dart:core" as core; | 5 import 'dart:core' as core; |
4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
5 import "dart:async" as async; | 7 import 'dart:async' as async; |
6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
7 | 9 |
8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
10 import '../src/common_internal.dart' as common_internal; | |
11 import '../common/common.dart' as common_1; | |
12 | 13 |
13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client books/v1'; |
15 | 18 |
16 /** Lets you search for books and manage your Google Books library. */ | 19 /** Lets you search for books and manage your Google Books library. */ |
17 class BooksApi { | 20 class BooksApi { |
18 /** Manage your books */ | 21 /** Manage your books */ |
19 static const BooksScope = "https://www.googleapis.com/auth/books"; | 22 static const BooksScope = "https://www.googleapis.com/auth/books"; |
20 | 23 |
21 | 24 |
22 final common_internal.ApiRequester _requester; | 25 final commons.ApiRequester _requester; |
23 | 26 |
24 BookshelvesResourceApi get bookshelves => new BookshelvesResourceApi(_requeste
r); | 27 BookshelvesResourceApi get bookshelves => new BookshelvesResourceApi(_requeste
r); |
25 CloudloadingResourceApi get cloudloading => new CloudloadingResourceApi(_reque
ster); | 28 CloudloadingResourceApi get cloudloading => new CloudloadingResourceApi(_reque
ster); |
26 DictionaryResourceApi get dictionary => new DictionaryResourceApi(_requester); | 29 DictionaryResourceApi get dictionary => new DictionaryResourceApi(_requester); |
27 LayersResourceApi get layers => new LayersResourceApi(_requester); | 30 LayersResourceApi get layers => new LayersResourceApi(_requester); |
28 MyconfigResourceApi get myconfig => new MyconfigResourceApi(_requester); | 31 MyconfigResourceApi get myconfig => new MyconfigResourceApi(_requester); |
29 MylibraryResourceApi get mylibrary => new MylibraryResourceApi(_requester); | 32 MylibraryResourceApi get mylibrary => new MylibraryResourceApi(_requester); |
30 OnboardingResourceApi get onboarding => new OnboardingResourceApi(_requester); | 33 OnboardingResourceApi get onboarding => new OnboardingResourceApi(_requester); |
31 PromoofferResourceApi get promooffer => new PromoofferResourceApi(_requester); | 34 PromoofferResourceApi get promooffer => new PromoofferResourceApi(_requester); |
32 VolumesResourceApi get volumes => new VolumesResourceApi(_requester); | 35 VolumesResourceApi get volumes => new VolumesResourceApi(_requester); |
33 | 36 |
34 BooksApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "books/v1/"}) : | 37 BooksApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "books/v1/"}) : |
35 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 38 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
36 } | 39 } |
37 | 40 |
38 | 41 |
39 /** Not documented yet. */ | |
40 class BookshelvesResourceApi { | 42 class BookshelvesResourceApi { |
41 final common_internal.ApiRequester _requester; | 43 final commons.ApiRequester _requester; |
42 | 44 |
43 BookshelvesVolumesResourceApi get volumes => new BookshelvesVolumesResourceApi
(_requester); | 45 BookshelvesVolumesResourceApi get volumes => new BookshelvesVolumesResourceApi
(_requester); |
44 | 46 |
45 BookshelvesResourceApi(common_internal.ApiRequester client) : | 47 BookshelvesResourceApi(commons.ApiRequester client) : |
46 _requester = client; | 48 _requester = client; |
47 | 49 |
48 /** | 50 /** |
49 * Retrieves metadata for a specific bookshelf for the specified user. | 51 * Retrieves metadata for a specific bookshelf for the specified user. |
50 * | 52 * |
51 * Request parameters: | 53 * Request parameters: |
52 * | 54 * |
53 * [userId] - ID of user for whom to retrieve bookshelves. | 55 * [userId] - ID of user for whom to retrieve bookshelves. |
54 * | 56 * |
55 * [shelf] - ID of bookshelf to retrieve. | 57 * [shelf] - ID of bookshelf to retrieve. |
56 * | 58 * |
57 * [source] - String to identify the originator of this request. | 59 * [source] - String to identify the originator of this request. |
58 * | 60 * |
59 * Completes with a [Bookshelf]. | 61 * Completes with a [Bookshelf]. |
60 * | 62 * |
61 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 63 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
62 * error. | 64 * error. |
63 * | 65 * |
64 * If the used [http.Client] completes with an error when making a REST call, | 66 * If the used [http.Client] completes with an error when making a REST call, |
65 * this method will complete with the same error. | 67 * this method will complete with the same error. |
66 */ | 68 */ |
67 async.Future<Bookshelf> get(core.String userId, core.String shelf, {core.Strin
g source}) { | 69 async.Future<Bookshelf> get(core.String userId, core.String shelf, {core.Strin
g source}) { |
68 var _url = null; | 70 var _url = null; |
69 var _queryParams = new core.Map(); | 71 var _queryParams = new core.Map(); |
70 var _uploadMedia = null; | 72 var _uploadMedia = null; |
71 var _uploadOptions = null; | 73 var _uploadOptions = null; |
72 var _downloadOptions = common_1.DownloadOptions.Metadata; | 74 var _downloadOptions = commons.DownloadOptions.Metadata; |
73 var _body = null; | 75 var _body = null; |
74 | 76 |
75 if (userId == null) { | 77 if (userId == null) { |
76 throw new core.ArgumentError("Parameter userId is required."); | 78 throw new core.ArgumentError("Parameter userId is required."); |
77 } | 79 } |
78 if (shelf == null) { | 80 if (shelf == null) { |
79 throw new core.ArgumentError("Parameter shelf is required."); | 81 throw new core.ArgumentError("Parameter shelf is required."); |
80 } | 82 } |
81 if (source != null) { | 83 if (source != null) { |
82 _queryParams["source"] = [source]; | 84 _queryParams["source"] = [source]; |
83 } | 85 } |
84 | 86 |
85 | 87 |
86 _url = 'users/' + common_internal.Escaper.ecapeVariable('$userId') + '/books
helves/' + common_internal.Escaper.ecapeVariable('$shelf'); | 88 _url = 'users/' + commons.Escaper.ecapeVariable('$userId') + '/bookshelves/'
+ commons.Escaper.ecapeVariable('$shelf'); |
87 | 89 |
88 var _response = _requester.request(_url, | 90 var _response = _requester.request(_url, |
89 "GET", | 91 "GET", |
90 body: _body, | 92 body: _body, |
91 queryParams: _queryParams, | 93 queryParams: _queryParams, |
92 uploadOptions: _uploadOptions, | 94 uploadOptions: _uploadOptions, |
93 uploadMedia: _uploadMedia, | 95 uploadMedia: _uploadMedia, |
94 downloadOptions: _downloadOptions); | 96 downloadOptions: _downloadOptions); |
95 return _response.then((data) => new Bookshelf.fromJson(data)); | 97 return _response.then((data) => new Bookshelf.fromJson(data)); |
96 } | 98 } |
97 | 99 |
98 /** | 100 /** |
99 * Retrieves a list of public bookshelves for the specified user. | 101 * Retrieves a list of public bookshelves for the specified user. |
100 * | 102 * |
101 * Request parameters: | 103 * Request parameters: |
102 * | 104 * |
103 * [userId] - ID of user for whom to retrieve bookshelves. | 105 * [userId] - ID of user for whom to retrieve bookshelves. |
104 * | 106 * |
105 * [source] - String to identify the originator of this request. | 107 * [source] - String to identify the originator of this request. |
106 * | 108 * |
107 * Completes with a [Bookshelves]. | 109 * Completes with a [Bookshelves]. |
108 * | 110 * |
109 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 111 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
110 * error. | 112 * error. |
111 * | 113 * |
112 * If the used [http.Client] completes with an error when making a REST call, | 114 * If the used [http.Client] completes with an error when making a REST call, |
113 * this method will complete with the same error. | 115 * this method will complete with the same error. |
114 */ | 116 */ |
115 async.Future<Bookshelves> list(core.String userId, {core.String source}) { | 117 async.Future<Bookshelves> list(core.String userId, {core.String source}) { |
116 var _url = null; | 118 var _url = null; |
117 var _queryParams = new core.Map(); | 119 var _queryParams = new core.Map(); |
118 var _uploadMedia = null; | 120 var _uploadMedia = null; |
119 var _uploadOptions = null; | 121 var _uploadOptions = null; |
120 var _downloadOptions = common_1.DownloadOptions.Metadata; | 122 var _downloadOptions = commons.DownloadOptions.Metadata; |
121 var _body = null; | 123 var _body = null; |
122 | 124 |
123 if (userId == null) { | 125 if (userId == null) { |
124 throw new core.ArgumentError("Parameter userId is required."); | 126 throw new core.ArgumentError("Parameter userId is required."); |
125 } | 127 } |
126 if (source != null) { | 128 if (source != null) { |
127 _queryParams["source"] = [source]; | 129 _queryParams["source"] = [source]; |
128 } | 130 } |
129 | 131 |
130 | 132 |
131 _url = 'users/' + common_internal.Escaper.ecapeVariable('$userId') + '/books
helves'; | 133 _url = 'users/' + commons.Escaper.ecapeVariable('$userId') + '/bookshelves'; |
132 | 134 |
133 var _response = _requester.request(_url, | 135 var _response = _requester.request(_url, |
134 "GET", | 136 "GET", |
135 body: _body, | 137 body: _body, |
136 queryParams: _queryParams, | 138 queryParams: _queryParams, |
137 uploadOptions: _uploadOptions, | 139 uploadOptions: _uploadOptions, |
138 uploadMedia: _uploadMedia, | 140 uploadMedia: _uploadMedia, |
139 downloadOptions: _downloadOptions); | 141 downloadOptions: _downloadOptions); |
140 return _response.then((data) => new Bookshelves.fromJson(data)); | 142 return _response.then((data) => new Bookshelves.fromJson(data)); |
141 } | 143 } |
142 | 144 |
143 } | 145 } |
144 | 146 |
145 | 147 |
146 /** Not documented yet. */ | |
147 class BookshelvesVolumesResourceApi { | 148 class BookshelvesVolumesResourceApi { |
148 final common_internal.ApiRequester _requester; | 149 final commons.ApiRequester _requester; |
149 | 150 |
150 BookshelvesVolumesResourceApi(common_internal.ApiRequester client) : | 151 BookshelvesVolumesResourceApi(commons.ApiRequester client) : |
151 _requester = client; | 152 _requester = client; |
152 | 153 |
153 /** | 154 /** |
154 * Retrieves volumes in a specific bookshelf for the specified user. | 155 * Retrieves volumes in a specific bookshelf for the specified user. |
155 * | 156 * |
156 * Request parameters: | 157 * Request parameters: |
157 * | 158 * |
158 * [userId] - ID of user for whom to retrieve bookshelf volumes. | 159 * [userId] - ID of user for whom to retrieve bookshelf volumes. |
159 * | 160 * |
160 * [shelf] - ID of bookshelf to retrieve volumes. | 161 * [shelf] - ID of bookshelf to retrieve volumes. |
161 * | 162 * |
162 * [maxResults] - Maximum number of results to return | 163 * [maxResults] - Maximum number of results to return |
163 * | 164 * |
164 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. | 165 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. |
165 * | 166 * |
166 * [source] - String to identify the originator of this request. | 167 * [source] - String to identify the originator of this request. |
167 * | 168 * |
168 * [startIndex] - Index of the first element to return (starts at 0) | 169 * [startIndex] - Index of the first element to return (starts at 0) |
169 * | 170 * |
170 * Completes with a [Volumes]. | 171 * Completes with a [Volumes]. |
171 * | 172 * |
172 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 173 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
173 * error. | 174 * error. |
174 * | 175 * |
175 * If the used [http.Client] completes with an error when making a REST call, | 176 * If the used [http.Client] completes with an error when making a REST call, |
176 * this method will complete with the same error. | 177 * this method will complete with the same error. |
177 */ | 178 */ |
178 async.Future<Volumes> list(core.String userId, core.String shelf, {core.int ma
xResults, core.bool showPreorders, core.String source, core.int startIndex}) { | 179 async.Future<Volumes> list(core.String userId, core.String shelf, {core.int ma
xResults, core.bool showPreorders, core.String source, core.int startIndex}) { |
179 var _url = null; | 180 var _url = null; |
180 var _queryParams = new core.Map(); | 181 var _queryParams = new core.Map(); |
181 var _uploadMedia = null; | 182 var _uploadMedia = null; |
182 var _uploadOptions = null; | 183 var _uploadOptions = null; |
183 var _downloadOptions = common_1.DownloadOptions.Metadata; | 184 var _downloadOptions = commons.DownloadOptions.Metadata; |
184 var _body = null; | 185 var _body = null; |
185 | 186 |
186 if (userId == null) { | 187 if (userId == null) { |
187 throw new core.ArgumentError("Parameter userId is required."); | 188 throw new core.ArgumentError("Parameter userId is required."); |
188 } | 189 } |
189 if (shelf == null) { | 190 if (shelf == null) { |
190 throw new core.ArgumentError("Parameter shelf is required."); | 191 throw new core.ArgumentError("Parameter shelf is required."); |
191 } | 192 } |
192 if (maxResults != null) { | 193 if (maxResults != null) { |
193 _queryParams["maxResults"] = ["${maxResults}"]; | 194 _queryParams["maxResults"] = ["${maxResults}"]; |
194 } | 195 } |
195 if (showPreorders != null) { | 196 if (showPreorders != null) { |
196 _queryParams["showPreorders"] = ["${showPreorders}"]; | 197 _queryParams["showPreorders"] = ["${showPreorders}"]; |
197 } | 198 } |
198 if (source != null) { | 199 if (source != null) { |
199 _queryParams["source"] = [source]; | 200 _queryParams["source"] = [source]; |
200 } | 201 } |
201 if (startIndex != null) { | 202 if (startIndex != null) { |
202 _queryParams["startIndex"] = ["${startIndex}"]; | 203 _queryParams["startIndex"] = ["${startIndex}"]; |
203 } | 204 } |
204 | 205 |
205 | 206 |
206 _url = 'users/' + common_internal.Escaper.ecapeVariable('$userId') + '/books
helves/' + common_internal.Escaper.ecapeVariable('$shelf') + '/volumes'; | 207 _url = 'users/' + commons.Escaper.ecapeVariable('$userId') + '/bookshelves/'
+ commons.Escaper.ecapeVariable('$shelf') + '/volumes'; |
207 | 208 |
208 var _response = _requester.request(_url, | 209 var _response = _requester.request(_url, |
209 "GET", | 210 "GET", |
210 body: _body, | 211 body: _body, |
211 queryParams: _queryParams, | 212 queryParams: _queryParams, |
212 uploadOptions: _uploadOptions, | 213 uploadOptions: _uploadOptions, |
213 uploadMedia: _uploadMedia, | 214 uploadMedia: _uploadMedia, |
214 downloadOptions: _downloadOptions); | 215 downloadOptions: _downloadOptions); |
215 return _response.then((data) => new Volumes.fromJson(data)); | 216 return _response.then((data) => new Volumes.fromJson(data)); |
216 } | 217 } |
217 | 218 |
218 } | 219 } |
219 | 220 |
220 | 221 |
221 /** Not documented yet. */ | |
222 class CloudloadingResourceApi { | 222 class CloudloadingResourceApi { |
223 final common_internal.ApiRequester _requester; | 223 final commons.ApiRequester _requester; |
224 | 224 |
225 CloudloadingResourceApi(common_internal.ApiRequester client) : | 225 CloudloadingResourceApi(commons.ApiRequester client) : |
226 _requester = client; | 226 _requester = client; |
227 | 227 |
228 /** | 228 /** |
229 * Not documented yet. | |
230 * | |
231 * Request parameters: | 229 * Request parameters: |
232 * | 230 * |
233 * [driveDocumentId] - A drive document id. The upload_client_token must not | 231 * [driveDocumentId] - A drive document id. The upload_client_token must not |
234 * be set. | 232 * be set. |
235 * | 233 * |
236 * [mimeType] - The document MIME type. It can be set only if the | 234 * [mimeType] - The document MIME type. It can be set only if the |
237 * drive_document_id is set. | 235 * drive_document_id is set. |
238 * | 236 * |
239 * [name] - The document name. It can be set only if the drive_document_id is | 237 * [name] - The document name. It can be set only if the drive_document_id is |
240 * set. | 238 * set. |
241 * | 239 * |
242 * [uploadClientToken] - null | 240 * [uploadClientToken] - null |
243 * | 241 * |
244 * Completes with a [BooksCloudloadingResource]. | 242 * Completes with a [BooksCloudloadingResource]. |
245 * | 243 * |
246 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 244 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
247 * error. | 245 * error. |
248 * | 246 * |
249 * If the used [http.Client] completes with an error when making a REST call, | 247 * If the used [http.Client] completes with an error when making a REST call, |
250 * this method will complete with the same error. | 248 * this method will complete with the same error. |
251 */ | 249 */ |
252 async.Future<BooksCloudloadingResource> addBook({core.String driveDocumentId,
core.String mimeType, core.String name, core.String uploadClientToken}) { | 250 async.Future<BooksCloudloadingResource> addBook({core.String driveDocumentId,
core.String mimeType, core.String name, core.String uploadClientToken}) { |
253 var _url = null; | 251 var _url = null; |
254 var _queryParams = new core.Map(); | 252 var _queryParams = new core.Map(); |
255 var _uploadMedia = null; | 253 var _uploadMedia = null; |
256 var _uploadOptions = null; | 254 var _uploadOptions = null; |
257 var _downloadOptions = common_1.DownloadOptions.Metadata; | 255 var _downloadOptions = commons.DownloadOptions.Metadata; |
258 var _body = null; | 256 var _body = null; |
259 | 257 |
260 if (driveDocumentId != null) { | 258 if (driveDocumentId != null) { |
261 _queryParams["drive_document_id"] = [driveDocumentId]; | 259 _queryParams["drive_document_id"] = [driveDocumentId]; |
262 } | 260 } |
263 if (mimeType != null) { | 261 if (mimeType != null) { |
264 _queryParams["mime_type"] = [mimeType]; | 262 _queryParams["mime_type"] = [mimeType]; |
265 } | 263 } |
266 if (name != null) { | 264 if (name != null) { |
267 _queryParams["name"] = [name]; | 265 _queryParams["name"] = [name]; |
(...skipping 15 matching lines...) Expand all Loading... |
283 return _response.then((data) => new BooksCloudloadingResource.fromJson(data)
); | 281 return _response.then((data) => new BooksCloudloadingResource.fromJson(data)
); |
284 } | 282 } |
285 | 283 |
286 /** | 284 /** |
287 * Remove the book and its contents | 285 * Remove the book and its contents |
288 * | 286 * |
289 * Request parameters: | 287 * Request parameters: |
290 * | 288 * |
291 * [volumeId] - The id of the book to be removed. | 289 * [volumeId] - The id of the book to be removed. |
292 * | 290 * |
293 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 291 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
294 * error. | 292 * error. |
295 * | 293 * |
296 * If the used [http.Client] completes with an error when making a REST call, | 294 * If the used [http.Client] completes with an error when making a REST call, |
297 * this method will complete with the same error. | 295 * this method will complete with the same error. |
298 */ | 296 */ |
299 async.Future deleteBook(core.String volumeId) { | 297 async.Future deleteBook(core.String volumeId) { |
300 var _url = null; | 298 var _url = null; |
301 var _queryParams = new core.Map(); | 299 var _queryParams = new core.Map(); |
302 var _uploadMedia = null; | 300 var _uploadMedia = null; |
303 var _uploadOptions = null; | 301 var _uploadOptions = null; |
304 var _downloadOptions = common_1.DownloadOptions.Metadata; | 302 var _downloadOptions = commons.DownloadOptions.Metadata; |
305 var _body = null; | 303 var _body = null; |
306 | 304 |
307 if (volumeId == null) { | 305 if (volumeId == null) { |
308 throw new core.ArgumentError("Parameter volumeId is required."); | 306 throw new core.ArgumentError("Parameter volumeId is required."); |
309 } | 307 } |
310 _queryParams["volumeId"] = [volumeId]; | 308 _queryParams["volumeId"] = [volumeId]; |
311 | 309 |
312 _downloadOptions = null; | 310 _downloadOptions = null; |
313 | 311 |
314 _url = 'cloudloading/deleteBook'; | 312 _url = 'cloudloading/deleteBook'; |
315 | 313 |
316 var _response = _requester.request(_url, | 314 var _response = _requester.request(_url, |
317 "POST", | 315 "POST", |
318 body: _body, | 316 body: _body, |
319 queryParams: _queryParams, | 317 queryParams: _queryParams, |
320 uploadOptions: _uploadOptions, | 318 uploadOptions: _uploadOptions, |
321 uploadMedia: _uploadMedia, | 319 uploadMedia: _uploadMedia, |
322 downloadOptions: _downloadOptions); | 320 downloadOptions: _downloadOptions); |
323 return _response.then((data) => null); | 321 return _response.then((data) => null); |
324 } | 322 } |
325 | 323 |
326 /** | 324 /** |
327 * Not documented yet. | |
328 * | |
329 * [request] - The metadata request object. | 325 * [request] - The metadata request object. |
330 * | 326 * |
331 * Request parameters: | 327 * Request parameters: |
332 * | 328 * |
333 * Completes with a [BooksCloudloadingResource]. | 329 * Completes with a [BooksCloudloadingResource]. |
334 * | 330 * |
335 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
336 * error. | 332 * error. |
337 * | 333 * |
338 * If the used [http.Client] completes with an error when making a REST call, | 334 * If the used [http.Client] completes with an error when making a REST call, |
339 * this method will complete with the same error. | 335 * this method will complete with the same error. |
340 */ | 336 */ |
341 async.Future<BooksCloudloadingResource> updateBook(BooksCloudloadingResource r
equest) { | 337 async.Future<BooksCloudloadingResource> updateBook(BooksCloudloadingResource r
equest) { |
342 var _url = null; | 338 var _url = null; |
343 var _queryParams = new core.Map(); | 339 var _queryParams = new core.Map(); |
344 var _uploadMedia = null; | 340 var _uploadMedia = null; |
345 var _uploadOptions = null; | 341 var _uploadOptions = null; |
346 var _downloadOptions = common_1.DownloadOptions.Metadata; | 342 var _downloadOptions = commons.DownloadOptions.Metadata; |
347 var _body = null; | 343 var _body = null; |
348 | 344 |
349 if (request != null) { | 345 if (request != null) { |
350 _body = convert.JSON.encode((request).toJson()); | 346 _body = convert.JSON.encode((request).toJson()); |
351 } | 347 } |
352 | 348 |
353 | 349 |
354 _url = 'cloudloading/updateBook'; | 350 _url = 'cloudloading/updateBook'; |
355 | 351 |
356 var _response = _requester.request(_url, | 352 var _response = _requester.request(_url, |
357 "POST", | 353 "POST", |
358 body: _body, | 354 body: _body, |
359 queryParams: _queryParams, | 355 queryParams: _queryParams, |
360 uploadOptions: _uploadOptions, | 356 uploadOptions: _uploadOptions, |
361 uploadMedia: _uploadMedia, | 357 uploadMedia: _uploadMedia, |
362 downloadOptions: _downloadOptions); | 358 downloadOptions: _downloadOptions); |
363 return _response.then((data) => new BooksCloudloadingResource.fromJson(data)
); | 359 return _response.then((data) => new BooksCloudloadingResource.fromJson(data)
); |
364 } | 360 } |
365 | 361 |
366 } | 362 } |
367 | 363 |
368 | 364 |
369 /** Not documented yet. */ | |
370 class DictionaryResourceApi { | 365 class DictionaryResourceApi { |
371 final common_internal.ApiRequester _requester; | 366 final commons.ApiRequester _requester; |
372 | 367 |
373 DictionaryResourceApi(common_internal.ApiRequester client) : | 368 DictionaryResourceApi(commons.ApiRequester client) : |
374 _requester = client; | 369 _requester = client; |
375 | 370 |
376 /** | 371 /** |
377 * Returns a list of offline dictionary meatadata available | 372 * Returns a list of offline dictionary meatadata available |
378 * | 373 * |
379 * Request parameters: | 374 * Request parameters: |
380 * | 375 * |
381 * [cpksver] - The device/version ID from which to request the data. | 376 * [cpksver] - The device/version ID from which to request the data. |
382 * | 377 * |
383 * Completes with a [Metadata]. | 378 * Completes with a [Metadata]. |
384 * | 379 * |
385 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 380 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
386 * error. | 381 * error. |
387 * | 382 * |
388 * If the used [http.Client] completes with an error when making a REST call, | 383 * If the used [http.Client] completes with an error when making a REST call, |
389 * this method will complete with the same error. | 384 * this method will complete with the same error. |
390 */ | 385 */ |
391 async.Future<Metadata> listOfflineMetadata(core.String cpksver) { | 386 async.Future<Metadata> listOfflineMetadata(core.String cpksver) { |
392 var _url = null; | 387 var _url = null; |
393 var _queryParams = new core.Map(); | 388 var _queryParams = new core.Map(); |
394 var _uploadMedia = null; | 389 var _uploadMedia = null; |
395 var _uploadOptions = null; | 390 var _uploadOptions = null; |
396 var _downloadOptions = common_1.DownloadOptions.Metadata; | 391 var _downloadOptions = commons.DownloadOptions.Metadata; |
397 var _body = null; | 392 var _body = null; |
398 | 393 |
399 if (cpksver == null) { | 394 if (cpksver == null) { |
400 throw new core.ArgumentError("Parameter cpksver is required."); | 395 throw new core.ArgumentError("Parameter cpksver is required."); |
401 } | 396 } |
402 _queryParams["cpksver"] = [cpksver]; | 397 _queryParams["cpksver"] = [cpksver]; |
403 | 398 |
404 | 399 |
405 _url = 'dictionary/listOfflineMetadata'; | 400 _url = 'dictionary/listOfflineMetadata'; |
406 | 401 |
407 var _response = _requester.request(_url, | 402 var _response = _requester.request(_url, |
408 "GET", | 403 "GET", |
409 body: _body, | 404 body: _body, |
410 queryParams: _queryParams, | 405 queryParams: _queryParams, |
411 uploadOptions: _uploadOptions, | 406 uploadOptions: _uploadOptions, |
412 uploadMedia: _uploadMedia, | 407 uploadMedia: _uploadMedia, |
413 downloadOptions: _downloadOptions); | 408 downloadOptions: _downloadOptions); |
414 return _response.then((data) => new Metadata.fromJson(data)); | 409 return _response.then((data) => new Metadata.fromJson(data)); |
415 } | 410 } |
416 | 411 |
417 } | 412 } |
418 | 413 |
419 | 414 |
420 /** Not documented yet. */ | |
421 class LayersResourceApi { | 415 class LayersResourceApi { |
422 final common_internal.ApiRequester _requester; | 416 final commons.ApiRequester _requester; |
423 | 417 |
424 LayersAnnotationDataResourceApi get annotationData => new LayersAnnotationData
ResourceApi(_requester); | 418 LayersAnnotationDataResourceApi get annotationData => new LayersAnnotationData
ResourceApi(_requester); |
425 LayersVolumeAnnotationsResourceApi get volumeAnnotations => new LayersVolumeAn
notationsResourceApi(_requester); | 419 LayersVolumeAnnotationsResourceApi get volumeAnnotations => new LayersVolumeAn
notationsResourceApi(_requester); |
426 | 420 |
427 LayersResourceApi(common_internal.ApiRequester client) : | 421 LayersResourceApi(commons.ApiRequester client) : |
428 _requester = client; | 422 _requester = client; |
429 | 423 |
430 /** | 424 /** |
431 * Gets the layer summary for a volume. | 425 * Gets the layer summary for a volume. |
432 * | 426 * |
433 * Request parameters: | 427 * Request parameters: |
434 * | 428 * |
435 * [volumeId] - The volume to retrieve layers for. | 429 * [volumeId] - The volume to retrieve layers for. |
436 * | 430 * |
437 * [summaryId] - The ID for the layer to get the summary for. | 431 * [summaryId] - The ID for the layer to get the summary for. |
438 * | 432 * |
439 * [contentVersion] - The content version for the requested volume. | 433 * [contentVersion] - The content version for the requested volume. |
440 * | 434 * |
441 * [source] - String to identify the originator of this request. | 435 * [source] - String to identify the originator of this request. |
442 * | 436 * |
443 * Completes with a [Layersummary]. | 437 * Completes with a [Layersummary]. |
444 * | 438 * |
445 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 439 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
446 * error. | 440 * error. |
447 * | 441 * |
448 * If the used [http.Client] completes with an error when making a REST call, | 442 * If the used [http.Client] completes with an error when making a REST call, |
449 * this method will complete with the same error. | 443 * this method will complete with the same error. |
450 */ | 444 */ |
451 async.Future<Layersummary> get(core.String volumeId, core.String summaryId, {c
ore.String contentVersion, core.String source}) { | 445 async.Future<Layersummary> get(core.String volumeId, core.String summaryId, {c
ore.String contentVersion, core.String source}) { |
452 var _url = null; | 446 var _url = null; |
453 var _queryParams = new core.Map(); | 447 var _queryParams = new core.Map(); |
454 var _uploadMedia = null; | 448 var _uploadMedia = null; |
455 var _uploadOptions = null; | 449 var _uploadOptions = null; |
456 var _downloadOptions = common_1.DownloadOptions.Metadata; | 450 var _downloadOptions = commons.DownloadOptions.Metadata; |
457 var _body = null; | 451 var _body = null; |
458 | 452 |
459 if (volumeId == null) { | 453 if (volumeId == null) { |
460 throw new core.ArgumentError("Parameter volumeId is required."); | 454 throw new core.ArgumentError("Parameter volumeId is required."); |
461 } | 455 } |
462 if (summaryId == null) { | 456 if (summaryId == null) { |
463 throw new core.ArgumentError("Parameter summaryId is required."); | 457 throw new core.ArgumentError("Parameter summaryId is required."); |
464 } | 458 } |
465 if (contentVersion != null) { | 459 if (contentVersion != null) { |
466 _queryParams["contentVersion"] = [contentVersion]; | 460 _queryParams["contentVersion"] = [contentVersion]; |
467 } | 461 } |
468 if (source != null) { | 462 if (source != null) { |
469 _queryParams["source"] = [source]; | 463 _queryParams["source"] = [source]; |
470 } | 464 } |
471 | 465 |
472 | 466 |
473 _url = 'volumes/' + common_internal.Escaper.ecapeVariable('$volumeId') + '/l
ayersummary/' + common_internal.Escaper.ecapeVariable('$summaryId'); | 467 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layersumm
ary/' + commons.Escaper.ecapeVariable('$summaryId'); |
474 | 468 |
475 var _response = _requester.request(_url, | 469 var _response = _requester.request(_url, |
476 "GET", | 470 "GET", |
477 body: _body, | 471 body: _body, |
478 queryParams: _queryParams, | 472 queryParams: _queryParams, |
479 uploadOptions: _uploadOptions, | 473 uploadOptions: _uploadOptions, |
480 uploadMedia: _uploadMedia, | 474 uploadMedia: _uploadMedia, |
481 downloadOptions: _downloadOptions); | 475 downloadOptions: _downloadOptions); |
482 return _response.then((data) => new Layersummary.fromJson(data)); | 476 return _response.then((data) => new Layersummary.fromJson(data)); |
483 } | 477 } |
484 | 478 |
485 /** | 479 /** |
486 * List the layer summaries for a volume. | 480 * List the layer summaries for a volume. |
487 * | 481 * |
488 * Request parameters: | 482 * Request parameters: |
489 * | 483 * |
490 * [volumeId] - The volume to retrieve layers for. | 484 * [volumeId] - The volume to retrieve layers for. |
491 * | 485 * |
492 * [contentVersion] - The content version for the requested volume. | 486 * [contentVersion] - The content version for the requested volume. |
493 * | 487 * |
494 * [maxResults] - Maximum number of results to return | 488 * [maxResults] - Maximum number of results to return |
495 * Value must be between "0" and "200". | 489 * Value must be between "0" and "200". |
496 * | 490 * |
497 * [pageToken] - The value of the nextToken from the previous page. | 491 * [pageToken] - The value of the nextToken from the previous page. |
498 * | 492 * |
499 * [source] - String to identify the originator of this request. | 493 * [source] - String to identify the originator of this request. |
500 * | 494 * |
501 * Completes with a [Layersummaries]. | 495 * Completes with a [Layersummaries]. |
502 * | 496 * |
503 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 497 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
504 * error. | 498 * error. |
505 * | 499 * |
506 * If the used [http.Client] completes with an error when making a REST call, | 500 * If the used [http.Client] completes with an error when making a REST call, |
507 * this method will complete with the same error. | 501 * this method will complete with the same error. |
508 */ | 502 */ |
509 async.Future<Layersummaries> list(core.String volumeId, {core.String contentVe
rsion, core.int maxResults, core.String pageToken, core.String source}) { | 503 async.Future<Layersummaries> list(core.String volumeId, {core.String contentVe
rsion, core.int maxResults, core.String pageToken, core.String source}) { |
510 var _url = null; | 504 var _url = null; |
511 var _queryParams = new core.Map(); | 505 var _queryParams = new core.Map(); |
512 var _uploadMedia = null; | 506 var _uploadMedia = null; |
513 var _uploadOptions = null; | 507 var _uploadOptions = null; |
514 var _downloadOptions = common_1.DownloadOptions.Metadata; | 508 var _downloadOptions = commons.DownloadOptions.Metadata; |
515 var _body = null; | 509 var _body = null; |
516 | 510 |
517 if (volumeId == null) { | 511 if (volumeId == null) { |
518 throw new core.ArgumentError("Parameter volumeId is required."); | 512 throw new core.ArgumentError("Parameter volumeId is required."); |
519 } | 513 } |
520 if (contentVersion != null) { | 514 if (contentVersion != null) { |
521 _queryParams["contentVersion"] = [contentVersion]; | 515 _queryParams["contentVersion"] = [contentVersion]; |
522 } | 516 } |
523 if (maxResults != null) { | 517 if (maxResults != null) { |
524 _queryParams["maxResults"] = ["${maxResults}"]; | 518 _queryParams["maxResults"] = ["${maxResults}"]; |
525 } | 519 } |
526 if (pageToken != null) { | 520 if (pageToken != null) { |
527 _queryParams["pageToken"] = [pageToken]; | 521 _queryParams["pageToken"] = [pageToken]; |
528 } | 522 } |
529 if (source != null) { | 523 if (source != null) { |
530 _queryParams["source"] = [source]; | 524 _queryParams["source"] = [source]; |
531 } | 525 } |
532 | 526 |
533 | 527 |
534 _url = 'volumes/' + common_internal.Escaper.ecapeVariable('$volumeId') + '/l
ayersummary'; | 528 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layersumm
ary'; |
535 | 529 |
536 var _response = _requester.request(_url, | 530 var _response = _requester.request(_url, |
537 "GET", | 531 "GET", |
538 body: _body, | 532 body: _body, |
539 queryParams: _queryParams, | 533 queryParams: _queryParams, |
540 uploadOptions: _uploadOptions, | 534 uploadOptions: _uploadOptions, |
541 uploadMedia: _uploadMedia, | 535 uploadMedia: _uploadMedia, |
542 downloadOptions: _downloadOptions); | 536 downloadOptions: _downloadOptions); |
543 return _response.then((data) => new Layersummaries.fromJson(data)); | 537 return _response.then((data) => new Layersummaries.fromJson(data)); |
544 } | 538 } |
545 | 539 |
546 } | 540 } |
547 | 541 |
548 | 542 |
549 /** Not documented yet. */ | |
550 class LayersAnnotationDataResourceApi { | 543 class LayersAnnotationDataResourceApi { |
551 final common_internal.ApiRequester _requester; | 544 final commons.ApiRequester _requester; |
552 | 545 |
553 LayersAnnotationDataResourceApi(common_internal.ApiRequester client) : | 546 LayersAnnotationDataResourceApi(commons.ApiRequester client) : |
554 _requester = client; | 547 _requester = client; |
555 | 548 |
556 /** | 549 /** |
557 * Gets the annotation data. | 550 * Gets the annotation data. |
558 * | 551 * |
559 * Request parameters: | 552 * Request parameters: |
560 * | 553 * |
561 * [volumeId] - The volume to retrieve annotations for. | 554 * [volumeId] - The volume to retrieve annotations for. |
562 * | 555 * |
563 * [layerId] - The ID for the layer to get the annotations. | 556 * [layerId] - The ID for the layer to get the annotations. |
(...skipping 14 matching lines...) Expand all Loading... |
578 * | 571 * |
579 * [scale] - The requested scale for the image. | 572 * [scale] - The requested scale for the image. |
580 * | 573 * |
581 * [source] - String to identify the originator of this request. | 574 * [source] - String to identify the originator of this request. |
582 * | 575 * |
583 * [w] - The requested pixel width for any images. If width is provided height | 576 * [w] - The requested pixel width for any images. If width is provided height |
584 * must also be provided. | 577 * must also be provided. |
585 * | 578 * |
586 * Completes with a [Annotationdata]. | 579 * Completes with a [Annotationdata]. |
587 * | 580 * |
588 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 581 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
589 * error. | 582 * error. |
590 * | 583 * |
591 * If the used [http.Client] completes with an error when making a REST call, | 584 * If the used [http.Client] completes with an error when making a REST call, |
592 * this method will complete with the same error. | 585 * this method will complete with the same error. |
593 */ | 586 */ |
594 async.Future<Annotationdata> get(core.String volumeId, core.String layerId, co
re.String annotationDataId, core.String contentVersion, {core.bool allowWebDefin
itions, core.int h, core.String locale, core.int scale, core.String source, core
.int w}) { | 587 async.Future<Annotationdata> get(core.String volumeId, core.String layerId, co
re.String annotationDataId, core.String contentVersion, {core.bool allowWebDefin
itions, core.int h, core.String locale, core.int scale, core.String source, core
.int w}) { |
595 var _url = null; | 588 var _url = null; |
596 var _queryParams = new core.Map(); | 589 var _queryParams = new core.Map(); |
597 var _uploadMedia = null; | 590 var _uploadMedia = null; |
598 var _uploadOptions = null; | 591 var _uploadOptions = null; |
599 var _downloadOptions = common_1.DownloadOptions.Metadata; | 592 var _downloadOptions = commons.DownloadOptions.Metadata; |
600 var _body = null; | 593 var _body = null; |
601 | 594 |
602 if (volumeId == null) { | 595 if (volumeId == null) { |
603 throw new core.ArgumentError("Parameter volumeId is required."); | 596 throw new core.ArgumentError("Parameter volumeId is required."); |
604 } | 597 } |
605 if (layerId == null) { | 598 if (layerId == null) { |
606 throw new core.ArgumentError("Parameter layerId is required."); | 599 throw new core.ArgumentError("Parameter layerId is required."); |
607 } | 600 } |
608 if (annotationDataId == null) { | 601 if (annotationDataId == null) { |
609 throw new core.ArgumentError("Parameter annotationDataId is required."); | 602 throw new core.ArgumentError("Parameter annotationDataId is required."); |
(...skipping 15 matching lines...) Expand all Loading... |
625 _queryParams["scale"] = ["${scale}"]; | 618 _queryParams["scale"] = ["${scale}"]; |
626 } | 619 } |
627 if (source != null) { | 620 if (source != null) { |
628 _queryParams["source"] = [source]; | 621 _queryParams["source"] = [source]; |
629 } | 622 } |
630 if (w != null) { | 623 if (w != null) { |
631 _queryParams["w"] = ["${w}"]; | 624 _queryParams["w"] = ["${w}"]; |
632 } | 625 } |
633 | 626 |
634 | 627 |
635 _url = 'volumes/' + common_internal.Escaper.ecapeVariable('$volumeId') + '/l
ayers/' + common_internal.Escaper.ecapeVariable('$layerId') + '/data/' + common_
internal.Escaper.ecapeVariable('$annotationDataId'); | 628 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layers/'
+ commons.Escaper.ecapeVariable('$layerId') + '/data/' + commons.Escaper.ecapeVa
riable('$annotationDataId'); |
636 | 629 |
637 var _response = _requester.request(_url, | 630 var _response = _requester.request(_url, |
638 "GET", | 631 "GET", |
639 body: _body, | 632 body: _body, |
640 queryParams: _queryParams, | 633 queryParams: _queryParams, |
641 uploadOptions: _uploadOptions, | 634 uploadOptions: _uploadOptions, |
642 uploadMedia: _uploadMedia, | 635 uploadMedia: _uploadMedia, |
643 downloadOptions: _downloadOptions); | 636 downloadOptions: _downloadOptions); |
644 return _response.then((data) => new Annotationdata.fromJson(data)); | 637 return _response.then((data) => new Annotationdata.fromJson(data)); |
645 } | 638 } |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
677 * this timestamp (exclusive). | 670 * this timestamp (exclusive). |
678 * | 671 * |
679 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this | 672 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this |
680 * timestamp (inclusive). | 673 * timestamp (inclusive). |
681 * | 674 * |
682 * [w] - The requested pixel width for any images. If width is provided height | 675 * [w] - The requested pixel width for any images. If width is provided height |
683 * must also be provided. | 676 * must also be provided. |
684 * | 677 * |
685 * Completes with a [Annotationsdata]. | 678 * Completes with a [Annotationsdata]. |
686 * | 679 * |
687 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 680 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
688 * error. | 681 * error. |
689 * | 682 * |
690 * If the used [http.Client] completes with an error when making a REST call, | 683 * If the used [http.Client] completes with an error when making a REST call, |
691 * this method will complete with the same error. | 684 * this method will complete with the same error. |
692 */ | 685 */ |
693 async.Future<Annotationsdata> list(core.String volumeId, core.String layerId,
core.String contentVersion, {core.List<core.String> annotationDataId, core.int h
, core.String locale, core.int maxResults, core.String pageToken, core.int scale
, core.String source, core.String updatedMax, core.String updatedMin, core.int w
}) { | 686 async.Future<Annotationsdata> list(core.String volumeId, core.String layerId,
core.String contentVersion, {core.List<core.String> annotationDataId, core.int h
, core.String locale, core.int maxResults, core.String pageToken, core.int scale
, core.String source, core.String updatedMax, core.String updatedMin, core.int w
}) { |
694 var _url = null; | 687 var _url = null; |
695 var _queryParams = new core.Map(); | 688 var _queryParams = new core.Map(); |
696 var _uploadMedia = null; | 689 var _uploadMedia = null; |
697 var _uploadOptions = null; | 690 var _uploadOptions = null; |
698 var _downloadOptions = common_1.DownloadOptions.Metadata; | 691 var _downloadOptions = commons.DownloadOptions.Metadata; |
699 var _body = null; | 692 var _body = null; |
700 | 693 |
701 if (volumeId == null) { | 694 if (volumeId == null) { |
702 throw new core.ArgumentError("Parameter volumeId is required."); | 695 throw new core.ArgumentError("Parameter volumeId is required."); |
703 } | 696 } |
704 if (layerId == null) { | 697 if (layerId == null) { |
705 throw new core.ArgumentError("Parameter layerId is required."); | 698 throw new core.ArgumentError("Parameter layerId is required."); |
706 } | 699 } |
707 if (contentVersion == null) { | 700 if (contentVersion == null) { |
708 throw new core.ArgumentError("Parameter contentVersion is required."); | 701 throw new core.ArgumentError("Parameter contentVersion is required."); |
(...skipping 24 matching lines...) Expand all Loading... |
733 _queryParams["updatedMax"] = [updatedMax]; | 726 _queryParams["updatedMax"] = [updatedMax]; |
734 } | 727 } |
735 if (updatedMin != null) { | 728 if (updatedMin != null) { |
736 _queryParams["updatedMin"] = [updatedMin]; | 729 _queryParams["updatedMin"] = [updatedMin]; |
737 } | 730 } |
738 if (w != null) { | 731 if (w != null) { |
739 _queryParams["w"] = ["${w}"]; | 732 _queryParams["w"] = ["${w}"]; |
740 } | 733 } |
741 | 734 |
742 | 735 |
743 _url = 'volumes/' + common_internal.Escaper.ecapeVariable('$volumeId') + '/l
ayers/' + common_internal.Escaper.ecapeVariable('$layerId') + '/data'; | 736 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layers/'
+ commons.Escaper.ecapeVariable('$layerId') + '/data'; |
744 | 737 |
745 var _response = _requester.request(_url, | 738 var _response = _requester.request(_url, |
746 "GET", | 739 "GET", |
747 body: _body, | 740 body: _body, |
748 queryParams: _queryParams, | 741 queryParams: _queryParams, |
749 uploadOptions: _uploadOptions, | 742 uploadOptions: _uploadOptions, |
750 uploadMedia: _uploadMedia, | 743 uploadMedia: _uploadMedia, |
751 downloadOptions: _downloadOptions); | 744 downloadOptions: _downloadOptions); |
752 return _response.then((data) => new Annotationsdata.fromJson(data)); | 745 return _response.then((data) => new Annotationsdata.fromJson(data)); |
753 } | 746 } |
754 | 747 |
755 } | 748 } |
756 | 749 |
757 | 750 |
758 /** Not documented yet. */ | |
759 class LayersVolumeAnnotationsResourceApi { | 751 class LayersVolumeAnnotationsResourceApi { |
760 final common_internal.ApiRequester _requester; | 752 final commons.ApiRequester _requester; |
761 | 753 |
762 LayersVolumeAnnotationsResourceApi(common_internal.ApiRequester client) : | 754 LayersVolumeAnnotationsResourceApi(commons.ApiRequester client) : |
763 _requester = client; | 755 _requester = client; |
764 | 756 |
765 /** | 757 /** |
766 * Gets the volume annotation. | 758 * Gets the volume annotation. |
767 * | 759 * |
768 * Request parameters: | 760 * Request parameters: |
769 * | 761 * |
770 * [volumeId] - The volume to retrieve annotations for. | 762 * [volumeId] - The volume to retrieve annotations for. |
771 * | 763 * |
772 * [layerId] - The ID for the layer to get the annotations. | 764 * [layerId] - The ID for the layer to get the annotations. |
773 * | 765 * |
774 * [annotationId] - The ID of the volume annotation to retrieve. | 766 * [annotationId] - The ID of the volume annotation to retrieve. |
775 * | 767 * |
776 * [locale] - The locale information for the data. ISO-639-1 language and | 768 * [locale] - The locale information for the data. ISO-639-1 language and |
777 * ISO-3166-1 country code. Ex: 'en_US'. | 769 * ISO-3166-1 country code. Ex: 'en_US'. |
778 * | 770 * |
779 * [source] - String to identify the originator of this request. | 771 * [source] - String to identify the originator of this request. |
780 * | 772 * |
781 * Completes with a [Volumeannotation]. | 773 * Completes with a [Volumeannotation]. |
782 * | 774 * |
783 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 775 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
784 * error. | 776 * error. |
785 * | 777 * |
786 * If the used [http.Client] completes with an error when making a REST call, | 778 * If the used [http.Client] completes with an error when making a REST call, |
787 * this method will complete with the same error. | 779 * this method will complete with the same error. |
788 */ | 780 */ |
789 async.Future<Volumeannotation> get(core.String volumeId, core.String layerId,
core.String annotationId, {core.String locale, core.String source}) { | 781 async.Future<Volumeannotation> get(core.String volumeId, core.String layerId,
core.String annotationId, {core.String locale, core.String source}) { |
790 var _url = null; | 782 var _url = null; |
791 var _queryParams = new core.Map(); | 783 var _queryParams = new core.Map(); |
792 var _uploadMedia = null; | 784 var _uploadMedia = null; |
793 var _uploadOptions = null; | 785 var _uploadOptions = null; |
794 var _downloadOptions = common_1.DownloadOptions.Metadata; | 786 var _downloadOptions = commons.DownloadOptions.Metadata; |
795 var _body = null; | 787 var _body = null; |
796 | 788 |
797 if (volumeId == null) { | 789 if (volumeId == null) { |
798 throw new core.ArgumentError("Parameter volumeId is required."); | 790 throw new core.ArgumentError("Parameter volumeId is required."); |
799 } | 791 } |
800 if (layerId == null) { | 792 if (layerId == null) { |
801 throw new core.ArgumentError("Parameter layerId is required."); | 793 throw new core.ArgumentError("Parameter layerId is required."); |
802 } | 794 } |
803 if (annotationId == null) { | 795 if (annotationId == null) { |
804 throw new core.ArgumentError("Parameter annotationId is required."); | 796 throw new core.ArgumentError("Parameter annotationId is required."); |
805 } | 797 } |
806 if (locale != null) { | 798 if (locale != null) { |
807 _queryParams["locale"] = [locale]; | 799 _queryParams["locale"] = [locale]; |
808 } | 800 } |
809 if (source != null) { | 801 if (source != null) { |
810 _queryParams["source"] = [source]; | 802 _queryParams["source"] = [source]; |
811 } | 803 } |
812 | 804 |
813 | 805 |
814 _url = 'volumes/' + common_internal.Escaper.ecapeVariable('$volumeId') + '/l
ayers/' + common_internal.Escaper.ecapeVariable('$layerId') + '/annotations/' +
common_internal.Escaper.ecapeVariable('$annotationId'); | 806 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layers/'
+ commons.Escaper.ecapeVariable('$layerId') + '/annotations/' + commons.Escaper.
ecapeVariable('$annotationId'); |
815 | 807 |
816 var _response = _requester.request(_url, | 808 var _response = _requester.request(_url, |
817 "GET", | 809 "GET", |
818 body: _body, | 810 body: _body, |
819 queryParams: _queryParams, | 811 queryParams: _queryParams, |
820 uploadOptions: _uploadOptions, | 812 uploadOptions: _uploadOptions, |
821 uploadMedia: _uploadMedia, | 813 uploadMedia: _uploadMedia, |
822 downloadOptions: _downloadOptions); | 814 downloadOptions: _downloadOptions); |
823 return _response.then((data) => new Volumeannotation.fromJson(data)); | 815 return _response.then((data) => new Volumeannotation.fromJson(data)); |
824 } | 816 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 * this timestamp (exclusive). | 851 * this timestamp (exclusive). |
860 * | 852 * |
861 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this | 853 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this |
862 * timestamp (inclusive). | 854 * timestamp (inclusive). |
863 * | 855 * |
864 * [volumeAnnotationsVersion] - The version of the volume annotations that you | 856 * [volumeAnnotationsVersion] - The version of the volume annotations that you |
865 * are requesting. | 857 * are requesting. |
866 * | 858 * |
867 * Completes with a [Volumeannotations]. | 859 * Completes with a [Volumeannotations]. |
868 * | 860 * |
869 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 861 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
870 * error. | 862 * error. |
871 * | 863 * |
872 * If the used [http.Client] completes with an error when making a REST call, | 864 * If the used [http.Client] completes with an error when making a REST call, |
873 * this method will complete with the same error. | 865 * this method will complete with the same error. |
874 */ | 866 */ |
875 async.Future<Volumeannotations> list(core.String volumeId, core.String layerId
, core.String contentVersion, {core.String endOffset, core.String endPosition, c
ore.String locale, core.int maxResults, core.String pageToken, core.bool showDel
eted, core.String source, core.String startOffset, core.String startPosition, co
re.String updatedMax, core.String updatedMin, core.String volumeAnnotationsVersi
on}) { | 867 async.Future<Volumeannotations> list(core.String volumeId, core.String layerId
, core.String contentVersion, {core.String endOffset, core.String endPosition, c
ore.String locale, core.int maxResults, core.String pageToken, core.bool showDel
eted, core.String source, core.String startOffset, core.String startPosition, co
re.String updatedMax, core.String updatedMin, core.String volumeAnnotationsVersi
on}) { |
876 var _url = null; | 868 var _url = null; |
877 var _queryParams = new core.Map(); | 869 var _queryParams = new core.Map(); |
878 var _uploadMedia = null; | 870 var _uploadMedia = null; |
879 var _uploadOptions = null; | 871 var _uploadOptions = null; |
880 var _downloadOptions = common_1.DownloadOptions.Metadata; | 872 var _downloadOptions = commons.DownloadOptions.Metadata; |
881 var _body = null; | 873 var _body = null; |
882 | 874 |
883 if (volumeId == null) { | 875 if (volumeId == null) { |
884 throw new core.ArgumentError("Parameter volumeId is required."); | 876 throw new core.ArgumentError("Parameter volumeId is required."); |
885 } | 877 } |
886 if (layerId == null) { | 878 if (layerId == null) { |
887 throw new core.ArgumentError("Parameter layerId is required."); | 879 throw new core.ArgumentError("Parameter layerId is required."); |
888 } | 880 } |
889 if (contentVersion == null) { | 881 if (contentVersion == null) { |
890 throw new core.ArgumentError("Parameter contentVersion is required."); | 882 throw new core.ArgumentError("Parameter contentVersion is required."); |
(...skipping 30 matching lines...) Expand all Loading... |
921 _queryParams["updatedMax"] = [updatedMax]; | 913 _queryParams["updatedMax"] = [updatedMax]; |
922 } | 914 } |
923 if (updatedMin != null) { | 915 if (updatedMin != null) { |
924 _queryParams["updatedMin"] = [updatedMin]; | 916 _queryParams["updatedMin"] = [updatedMin]; |
925 } | 917 } |
926 if (volumeAnnotationsVersion != null) { | 918 if (volumeAnnotationsVersion != null) { |
927 _queryParams["volumeAnnotationsVersion"] = [volumeAnnotationsVersion]; | 919 _queryParams["volumeAnnotationsVersion"] = [volumeAnnotationsVersion]; |
928 } | 920 } |
929 | 921 |
930 | 922 |
931 _url = 'volumes/' + common_internal.Escaper.ecapeVariable('$volumeId') + '/l
ayers/' + common_internal.Escaper.ecapeVariable('$layerId'); | 923 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layers/'
+ commons.Escaper.ecapeVariable('$layerId'); |
932 | 924 |
933 var _response = _requester.request(_url, | 925 var _response = _requester.request(_url, |
934 "GET", | 926 "GET", |
935 body: _body, | 927 body: _body, |
936 queryParams: _queryParams, | 928 queryParams: _queryParams, |
937 uploadOptions: _uploadOptions, | 929 uploadOptions: _uploadOptions, |
938 uploadMedia: _uploadMedia, | 930 uploadMedia: _uploadMedia, |
939 downloadOptions: _downloadOptions); | 931 downloadOptions: _downloadOptions); |
940 return _response.then((data) => new Volumeannotations.fromJson(data)); | 932 return _response.then((data) => new Volumeannotations.fromJson(data)); |
941 } | 933 } |
942 | 934 |
943 } | 935 } |
944 | 936 |
945 | 937 |
946 /** Not documented yet. */ | |
947 class MyconfigResourceApi { | 938 class MyconfigResourceApi { |
948 final common_internal.ApiRequester _requester; | 939 final commons.ApiRequester _requester; |
949 | 940 |
950 MyconfigResourceApi(common_internal.ApiRequester client) : | 941 MyconfigResourceApi(commons.ApiRequester client) : |
951 _requester = client; | 942 _requester = client; |
952 | 943 |
953 /** | 944 /** |
954 * Gets the current settings for the user. | 945 * Gets the current settings for the user. |
955 * | 946 * |
956 * Request parameters: | 947 * Request parameters: |
957 * | 948 * |
958 * Completes with a [Usersettings]. | 949 * Completes with a [Usersettings]. |
959 * | 950 * |
960 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 951 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
961 * error. | 952 * error. |
962 * | 953 * |
963 * If the used [http.Client] completes with an error when making a REST call, | 954 * If the used [http.Client] completes with an error when making a REST call, |
964 * this method will complete with the same error. | 955 * this method will complete with the same error. |
965 */ | 956 */ |
966 async.Future<Usersettings> getUserSettings() { | 957 async.Future<Usersettings> getUserSettings() { |
967 var _url = null; | 958 var _url = null; |
968 var _queryParams = new core.Map(); | 959 var _queryParams = new core.Map(); |
969 var _uploadMedia = null; | 960 var _uploadMedia = null; |
970 var _uploadOptions = null; | 961 var _uploadOptions = null; |
971 var _downloadOptions = common_1.DownloadOptions.Metadata; | 962 var _downloadOptions = commons.DownloadOptions.Metadata; |
972 var _body = null; | 963 var _body = null; |
973 | 964 |
974 | 965 |
975 | 966 |
976 _url = 'myconfig/getUserSettings'; | 967 _url = 'myconfig/getUserSettings'; |
977 | 968 |
978 var _response = _requester.request(_url, | 969 var _response = _requester.request(_url, |
979 "GET", | 970 "GET", |
980 body: _body, | 971 body: _body, |
981 queryParams: _queryParams, | 972 queryParams: _queryParams, |
(...skipping 12 matching lines...) Expand all Loading... |
994 * | 985 * |
995 * [cpksver] - The device/version ID from which to release the restriction. | 986 * [cpksver] - The device/version ID from which to release the restriction. |
996 * | 987 * |
997 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. | 988 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. |
998 * en_US. | 989 * en_US. |
999 * | 990 * |
1000 * [source] - String to identify the originator of this request. | 991 * [source] - String to identify the originator of this request. |
1001 * | 992 * |
1002 * Completes with a [DownloadAccesses]. | 993 * Completes with a [DownloadAccesses]. |
1003 * | 994 * |
1004 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 995 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1005 * error. | 996 * error. |
1006 * | 997 * |
1007 * If the used [http.Client] completes with an error when making a REST call, | 998 * If the used [http.Client] completes with an error when making a REST call, |
1008 * this method will complete with the same error. | 999 * this method will complete with the same error. |
1009 */ | 1000 */ |
1010 async.Future<DownloadAccesses> releaseDownloadAccess(core.List<core.String> vo
lumeIds, core.String cpksver, {core.String locale, core.String source}) { | 1001 async.Future<DownloadAccesses> releaseDownloadAccess(core.List<core.String> vo
lumeIds, core.String cpksver, {core.String locale, core.String source}) { |
1011 var _url = null; | 1002 var _url = null; |
1012 var _queryParams = new core.Map(); | 1003 var _queryParams = new core.Map(); |
1013 var _uploadMedia = null; | 1004 var _uploadMedia = null; |
1014 var _uploadOptions = null; | 1005 var _uploadOptions = null; |
1015 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1006 var _downloadOptions = commons.DownloadOptions.Metadata; |
1016 var _body = null; | 1007 var _body = null; |
1017 | 1008 |
1018 if (volumeIds == null || volumeIds.isEmpty) { | 1009 if (volumeIds == null || volumeIds.isEmpty) { |
1019 throw new core.ArgumentError("Parameter volumeIds is required."); | 1010 throw new core.ArgumentError("Parameter volumeIds is required."); |
1020 } | 1011 } |
1021 _queryParams["volumeIds"] = volumeIds; | 1012 _queryParams["volumeIds"] = volumeIds; |
1022 if (cpksver == null) { | 1013 if (cpksver == null) { |
1023 throw new core.ArgumentError("Parameter cpksver is required."); | 1014 throw new core.ArgumentError("Parameter cpksver is required."); |
1024 } | 1015 } |
1025 _queryParams["cpksver"] = [cpksver]; | 1016 _queryParams["cpksver"] = [cpksver]; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1061 * Possible string values are: | 1052 * Possible string values are: |
1062 * - "BOTH" : Both concurrent and download licenses. | 1053 * - "BOTH" : Both concurrent and download licenses. |
1063 * - "CONCURRENT" : Concurrent access license. | 1054 * - "CONCURRENT" : Concurrent access license. |
1064 * - "DOWNLOAD" : Offline download access license. | 1055 * - "DOWNLOAD" : Offline download access license. |
1065 * | 1056 * |
1066 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. | 1057 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. |
1067 * en_US. | 1058 * en_US. |
1068 * | 1059 * |
1069 * Completes with a [RequestAccess]. | 1060 * Completes with a [RequestAccess]. |
1070 * | 1061 * |
1071 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1062 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1072 * error. | 1063 * error. |
1073 * | 1064 * |
1074 * If the used [http.Client] completes with an error when making a REST call, | 1065 * If the used [http.Client] completes with an error when making a REST call, |
1075 * this method will complete with the same error. | 1066 * this method will complete with the same error. |
1076 */ | 1067 */ |
1077 async.Future<RequestAccess> requestAccess(core.String source, core.String volu
meId, core.String nonce, core.String cpksver, {core.String licenseTypes, core.St
ring locale}) { | 1068 async.Future<RequestAccess> requestAccess(core.String source, core.String volu
meId, core.String nonce, core.String cpksver, {core.String licenseTypes, core.St
ring locale}) { |
1078 var _url = null; | 1069 var _url = null; |
1079 var _queryParams = new core.Map(); | 1070 var _queryParams = new core.Map(); |
1080 var _uploadMedia = null; | 1071 var _uploadMedia = null; |
1081 var _uploadOptions = null; | 1072 var _uploadOptions = null; |
1082 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1073 var _downloadOptions = commons.DownloadOptions.Metadata; |
1083 var _body = null; | 1074 var _body = null; |
1084 | 1075 |
1085 if (source == null) { | 1076 if (source == null) { |
1086 throw new core.ArgumentError("Parameter source is required."); | 1077 throw new core.ArgumentError("Parameter source is required."); |
1087 } | 1078 } |
1088 _queryParams["source"] = [source]; | 1079 _queryParams["source"] = [source]; |
1089 if (volumeId == null) { | 1080 if (volumeId == null) { |
1090 throw new core.ArgumentError("Parameter volumeId is required."); | 1081 throw new core.ArgumentError("Parameter volumeId is required."); |
1091 } | 1082 } |
1092 _queryParams["volumeId"] = [volumeId]; | 1083 _queryParams["volumeId"] = [volumeId]; |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1134 * | 1125 * |
1135 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. | 1126 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. |
1136 * en_US. | 1127 * en_US. |
1137 * | 1128 * |
1138 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. | 1129 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. |
1139 * | 1130 * |
1140 * [volumeIds] - The volume(s) to request download restrictions for. | 1131 * [volumeIds] - The volume(s) to request download restrictions for. |
1141 * | 1132 * |
1142 * Completes with a [Volumes]. | 1133 * Completes with a [Volumes]. |
1143 * | 1134 * |
1144 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1145 * error. | 1136 * error. |
1146 * | 1137 * |
1147 * If the used [http.Client] completes with an error when making a REST call, | 1138 * If the used [http.Client] completes with an error when making a REST call, |
1148 * this method will complete with the same error. | 1139 * this method will complete with the same error. |
1149 */ | 1140 */ |
1150 async.Future<Volumes> syncVolumeLicenses(core.String source, core.String nonce
, core.String cpksver, {core.List<core.String> features, core.String locale, cor
e.bool showPreorders, core.List<core.String> volumeIds}) { | 1141 async.Future<Volumes> syncVolumeLicenses(core.String source, core.String nonce
, core.String cpksver, {core.List<core.String> features, core.String locale, cor
e.bool showPreorders, core.List<core.String> volumeIds}) { |
1151 var _url = null; | 1142 var _url = null; |
1152 var _queryParams = new core.Map(); | 1143 var _queryParams = new core.Map(); |
1153 var _uploadMedia = null; | 1144 var _uploadMedia = null; |
1154 var _uploadOptions = null; | 1145 var _uploadOptions = null; |
1155 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1146 var _downloadOptions = commons.DownloadOptions.Metadata; |
1156 var _body = null; | 1147 var _body = null; |
1157 | 1148 |
1158 if (source == null) { | 1149 if (source == null) { |
1159 throw new core.ArgumentError("Parameter source is required."); | 1150 throw new core.ArgumentError("Parameter source is required."); |
1160 } | 1151 } |
1161 _queryParams["source"] = [source]; | 1152 _queryParams["source"] = [source]; |
1162 if (nonce == null) { | 1153 if (nonce == null) { |
1163 throw new core.ArgumentError("Parameter nonce is required."); | 1154 throw new core.ArgumentError("Parameter nonce is required."); |
1164 } | 1155 } |
1165 _queryParams["nonce"] = [nonce]; | 1156 _queryParams["nonce"] = [nonce]; |
(...skipping 30 matching lines...) Expand all Loading... |
1196 /** | 1187 /** |
1197 * Sets the settings for the user. Unspecified sub-objects will retain the | 1188 * Sets the settings for the user. Unspecified sub-objects will retain the |
1198 * existing value. | 1189 * existing value. |
1199 * | 1190 * |
1200 * [request] - The metadata request object. | 1191 * [request] - The metadata request object. |
1201 * | 1192 * |
1202 * Request parameters: | 1193 * Request parameters: |
1203 * | 1194 * |
1204 * Completes with a [Usersettings]. | 1195 * Completes with a [Usersettings]. |
1205 * | 1196 * |
1206 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1207 * error. | 1198 * error. |
1208 * | 1199 * |
1209 * If the used [http.Client] completes with an error when making a REST call, | 1200 * If the used [http.Client] completes with an error when making a REST call, |
1210 * this method will complete with the same error. | 1201 * this method will complete with the same error. |
1211 */ | 1202 */ |
1212 async.Future<Usersettings> updateUserSettings(Usersettings request) { | 1203 async.Future<Usersettings> updateUserSettings(Usersettings request) { |
1213 var _url = null; | 1204 var _url = null; |
1214 var _queryParams = new core.Map(); | 1205 var _queryParams = new core.Map(); |
1215 var _uploadMedia = null; | 1206 var _uploadMedia = null; |
1216 var _uploadOptions = null; | 1207 var _uploadOptions = null; |
1217 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1208 var _downloadOptions = commons.DownloadOptions.Metadata; |
1218 var _body = null; | 1209 var _body = null; |
1219 | 1210 |
1220 if (request != null) { | 1211 if (request != null) { |
1221 _body = convert.JSON.encode((request).toJson()); | 1212 _body = convert.JSON.encode((request).toJson()); |
1222 } | 1213 } |
1223 | 1214 |
1224 | 1215 |
1225 _url = 'myconfig/updateUserSettings'; | 1216 _url = 'myconfig/updateUserSettings'; |
1226 | 1217 |
1227 var _response = _requester.request(_url, | 1218 var _response = _requester.request(_url, |
1228 "POST", | 1219 "POST", |
1229 body: _body, | 1220 body: _body, |
1230 queryParams: _queryParams, | 1221 queryParams: _queryParams, |
1231 uploadOptions: _uploadOptions, | 1222 uploadOptions: _uploadOptions, |
1232 uploadMedia: _uploadMedia, | 1223 uploadMedia: _uploadMedia, |
1233 downloadOptions: _downloadOptions); | 1224 downloadOptions: _downloadOptions); |
1234 return _response.then((data) => new Usersettings.fromJson(data)); | 1225 return _response.then((data) => new Usersettings.fromJson(data)); |
1235 } | 1226 } |
1236 | 1227 |
1237 } | 1228 } |
1238 | 1229 |
1239 | 1230 |
1240 /** Not documented yet. */ | |
1241 class MylibraryResourceApi { | 1231 class MylibraryResourceApi { |
1242 final common_internal.ApiRequester _requester; | 1232 final commons.ApiRequester _requester; |
1243 | 1233 |
1244 MylibraryAnnotationsResourceApi get annotations => new MylibraryAnnotationsRes
ourceApi(_requester); | 1234 MylibraryAnnotationsResourceApi get annotations => new MylibraryAnnotationsRes
ourceApi(_requester); |
1245 MylibraryBookshelvesResourceApi get bookshelves => new MylibraryBookshelvesRes
ourceApi(_requester); | 1235 MylibraryBookshelvesResourceApi get bookshelves => new MylibraryBookshelvesRes
ourceApi(_requester); |
1246 MylibraryReadingpositionsResourceApi get readingpositions => new MylibraryRead
ingpositionsResourceApi(_requester); | 1236 MylibraryReadingpositionsResourceApi get readingpositions => new MylibraryRead
ingpositionsResourceApi(_requester); |
1247 | 1237 |
1248 MylibraryResourceApi(common_internal.ApiRequester client) : | 1238 MylibraryResourceApi(commons.ApiRequester client) : |
1249 _requester = client; | 1239 _requester = client; |
1250 } | 1240 } |
1251 | 1241 |
1252 | 1242 |
1253 /** Not documented yet. */ | |
1254 class MylibraryAnnotationsResourceApi { | 1243 class MylibraryAnnotationsResourceApi { |
1255 final common_internal.ApiRequester _requester; | 1244 final commons.ApiRequester _requester; |
1256 | 1245 |
1257 MylibraryAnnotationsResourceApi(common_internal.ApiRequester client) : | 1246 MylibraryAnnotationsResourceApi(commons.ApiRequester client) : |
1258 _requester = client; | 1247 _requester = client; |
1259 | 1248 |
1260 /** | 1249 /** |
1261 * Deletes an annotation. | 1250 * Deletes an annotation. |
1262 * | 1251 * |
1263 * Request parameters: | 1252 * Request parameters: |
1264 * | 1253 * |
1265 * [annotationId] - The ID for the annotation to delete. | 1254 * [annotationId] - The ID for the annotation to delete. |
1266 * | 1255 * |
1267 * [source] - String to identify the originator of this request. | 1256 * [source] - String to identify the originator of this request. |
1268 * | 1257 * |
1269 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1258 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1270 * error. | 1259 * error. |
1271 * | 1260 * |
1272 * If the used [http.Client] completes with an error when making a REST call, | 1261 * If the used [http.Client] completes with an error when making a REST call, |
1273 * this method will complete with the same error. | 1262 * this method will complete with the same error. |
1274 */ | 1263 */ |
1275 async.Future delete(core.String annotationId, {core.String source}) { | 1264 async.Future delete(core.String annotationId, {core.String source}) { |
1276 var _url = null; | 1265 var _url = null; |
1277 var _queryParams = new core.Map(); | 1266 var _queryParams = new core.Map(); |
1278 var _uploadMedia = null; | 1267 var _uploadMedia = null; |
1279 var _uploadOptions = null; | 1268 var _uploadOptions = null; |
1280 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1269 var _downloadOptions = commons.DownloadOptions.Metadata; |
1281 var _body = null; | 1270 var _body = null; |
1282 | 1271 |
1283 if (annotationId == null) { | 1272 if (annotationId == null) { |
1284 throw new core.ArgumentError("Parameter annotationId is required."); | 1273 throw new core.ArgumentError("Parameter annotationId is required."); |
1285 } | 1274 } |
1286 if (source != null) { | 1275 if (source != null) { |
1287 _queryParams["source"] = [source]; | 1276 _queryParams["source"] = [source]; |
1288 } | 1277 } |
1289 | 1278 |
1290 _downloadOptions = null; | 1279 _downloadOptions = null; |
1291 | 1280 |
1292 _url = 'mylibrary/annotations/' + common_internal.Escaper.ecapeVariable('$an
notationId'); | 1281 _url = 'mylibrary/annotations/' + commons.Escaper.ecapeVariable('$annotation
Id'); |
1293 | 1282 |
1294 var _response = _requester.request(_url, | 1283 var _response = _requester.request(_url, |
1295 "DELETE", | 1284 "DELETE", |
1296 body: _body, | 1285 body: _body, |
1297 queryParams: _queryParams, | 1286 queryParams: _queryParams, |
1298 uploadOptions: _uploadOptions, | 1287 uploadOptions: _uploadOptions, |
1299 uploadMedia: _uploadMedia, | 1288 uploadMedia: _uploadMedia, |
1300 downloadOptions: _downloadOptions); | 1289 downloadOptions: _downloadOptions); |
1301 return _response.then((data) => null); | 1290 return _response.then((data) => null); |
1302 } | 1291 } |
1303 | 1292 |
1304 /** | 1293 /** |
1305 * Gets an annotation by its ID. | |
1306 * | |
1307 * Request parameters: | |
1308 * | |
1309 * [annotationId] - The ID for the annotation to retrieve. | |
1310 * | |
1311 * [source] - String to identify the originator of this request. | |
1312 * | |
1313 * Completes with a [Annotation]. | |
1314 * | |
1315 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | |
1316 * error. | |
1317 * | |
1318 * If the used [http.Client] completes with an error when making a REST call, | |
1319 * this method will complete with the same error. | |
1320 */ | |
1321 async.Future<Annotation> get(core.String annotationId, {core.String source}) { | |
1322 var _url = null; | |
1323 var _queryParams = new core.Map(); | |
1324 var _uploadMedia = null; | |
1325 var _uploadOptions = null; | |
1326 var _downloadOptions = common_1.DownloadOptions.Metadata; | |
1327 var _body = null; | |
1328 | |
1329 if (annotationId == null) { | |
1330 throw new core.ArgumentError("Parameter annotationId is required."); | |
1331 } | |
1332 if (source != null) { | |
1333 _queryParams["source"] = [source]; | |
1334 } | |
1335 | |
1336 | |
1337 _url = 'mylibrary/annotations/' + common_internal.Escaper.ecapeVariable('$an
notationId'); | |
1338 | |
1339 var _response = _requester.request(_url, | |
1340 "GET", | |
1341 body: _body, | |
1342 queryParams: _queryParams, | |
1343 uploadOptions: _uploadOptions, | |
1344 uploadMedia: _uploadMedia, | |
1345 downloadOptions: _downloadOptions); | |
1346 return _response.then((data) => new Annotation.fromJson(data)); | |
1347 } | |
1348 | |
1349 /** | |
1350 * Inserts a new annotation. | 1294 * Inserts a new annotation. |
1351 * | 1295 * |
1352 * [request] - The metadata request object. | 1296 * [request] - The metadata request object. |
1353 * | 1297 * |
1354 * Request parameters: | 1298 * Request parameters: |
1355 * | 1299 * |
1356 * [country] - ISO-3166-1 code to override the IP-based location. | 1300 * [country] - ISO-3166-1 code to override the IP-based location. |
1357 * | 1301 * |
1358 * [showOnlySummaryInResponse] - Requests that only the summary of the | 1302 * [showOnlySummaryInResponse] - Requests that only the summary of the |
1359 * specified layer be provided in the response. | 1303 * specified layer be provided in the response. |
1360 * | 1304 * |
1361 * [source] - String to identify the originator of this request. | 1305 * [source] - String to identify the originator of this request. |
1362 * | 1306 * |
1363 * Completes with a [Annotation]. | 1307 * Completes with a [Annotation]. |
1364 * | 1308 * |
1365 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1309 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1366 * error. | 1310 * error. |
1367 * | 1311 * |
1368 * If the used [http.Client] completes with an error when making a REST call, | 1312 * If the used [http.Client] completes with an error when making a REST call, |
1369 * this method will complete with the same error. | 1313 * this method will complete with the same error. |
1370 */ | 1314 */ |
1371 async.Future<Annotation> insert(Annotation request, {core.String country, core
.bool showOnlySummaryInResponse, core.String source}) { | 1315 async.Future<Annotation> insert(Annotation request, {core.String country, core
.bool showOnlySummaryInResponse, core.String source}) { |
1372 var _url = null; | 1316 var _url = null; |
1373 var _queryParams = new core.Map(); | 1317 var _queryParams = new core.Map(); |
1374 var _uploadMedia = null; | 1318 var _uploadMedia = null; |
1375 var _uploadOptions = null; | 1319 var _uploadOptions = null; |
1376 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1320 var _downloadOptions = commons.DownloadOptions.Metadata; |
1377 var _body = null; | 1321 var _body = null; |
1378 | 1322 |
1379 if (request != null) { | 1323 if (request != null) { |
1380 _body = convert.JSON.encode((request).toJson()); | 1324 _body = convert.JSON.encode((request).toJson()); |
1381 } | 1325 } |
1382 if (country != null) { | 1326 if (country != null) { |
1383 _queryParams["country"] = [country]; | 1327 _queryParams["country"] = [country]; |
1384 } | 1328 } |
1385 if (showOnlySummaryInResponse != null) { | 1329 if (showOnlySummaryInResponse != null) { |
1386 _queryParams["showOnlySummaryInResponse"] = ["${showOnlySummaryInResponse}
"]; | 1330 _queryParams["showOnlySummaryInResponse"] = ["${showOnlySummaryInResponse}
"]; |
(...skipping 22 matching lines...) Expand all Loading... |
1409 * | 1353 * |
1410 * [contentVersion] - The content version for the requested volume. | 1354 * [contentVersion] - The content version for the requested volume. |
1411 * | 1355 * |
1412 * [layerId] - The layer ID to limit annotation by. | 1356 * [layerId] - The layer ID to limit annotation by. |
1413 * | 1357 * |
1414 * [layerIds] - The layer ID(s) to limit annotation by. | 1358 * [layerIds] - The layer ID(s) to limit annotation by. |
1415 * | 1359 * |
1416 * [maxResults] - Maximum number of results to return | 1360 * [maxResults] - Maximum number of results to return |
1417 * Value must be between "0" and "40". | 1361 * Value must be between "0" and "40". |
1418 * | 1362 * |
1419 * [pageIds] - The page ID(s) for the volume that is being queried. | |
1420 * | |
1421 * [pageToken] - The value of the nextToken from the previous page. | 1363 * [pageToken] - The value of the nextToken from the previous page. |
1422 * | 1364 * |
1423 * [showDeleted] - Set to true to return deleted annotations. updatedMin must | 1365 * [showDeleted] - Set to true to return deleted annotations. updatedMin must |
1424 * be in the request to use this. Defaults to false. | 1366 * be in the request to use this. Defaults to false. |
1425 * | 1367 * |
1426 * [source] - String to identify the originator of this request. | 1368 * [source] - String to identify the originator of this request. |
1427 * | 1369 * |
1428 * [updatedMax] - RFC 3339 timestamp to restrict to items updated prior to | 1370 * [updatedMax] - RFC 3339 timestamp to restrict to items updated prior to |
1429 * this timestamp (exclusive). | 1371 * this timestamp (exclusive). |
1430 * | 1372 * |
1431 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this | 1373 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this |
1432 * timestamp (inclusive). | 1374 * timestamp (inclusive). |
1433 * | 1375 * |
1434 * [volumeId] - The volume to restrict annotations to. | 1376 * [volumeId] - The volume to restrict annotations to. |
1435 * | 1377 * |
1436 * Completes with a [Annotations]. | 1378 * Completes with a [Annotations]. |
1437 * | 1379 * |
1438 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1380 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1439 * error. | 1381 * error. |
1440 * | 1382 * |
1441 * If the used [http.Client] completes with an error when making a REST call, | 1383 * If the used [http.Client] completes with an error when making a REST call, |
1442 * this method will complete with the same error. | 1384 * this method will complete with the same error. |
1443 */ | 1385 */ |
1444 async.Future<Annotations> list({core.String contentVersion, core.String layerI
d, core.List<core.String> layerIds, core.int maxResults, core.List<core.String>
pageIds, core.String pageToken, core.bool showDeleted, core.String source, core.
String updatedMax, core.String updatedMin, core.String volumeId}) { | 1386 async.Future<Annotations> list({core.String contentVersion, core.String layerI
d, core.List<core.String> layerIds, core.int maxResults, core.String pageToken,
core.bool showDeleted, core.String source, core.String updatedMax, core.String u
pdatedMin, core.String volumeId}) { |
1445 var _url = null; | 1387 var _url = null; |
1446 var _queryParams = new core.Map(); | 1388 var _queryParams = new core.Map(); |
1447 var _uploadMedia = null; | 1389 var _uploadMedia = null; |
1448 var _uploadOptions = null; | 1390 var _uploadOptions = null; |
1449 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1391 var _downloadOptions = commons.DownloadOptions.Metadata; |
1450 var _body = null; | 1392 var _body = null; |
1451 | 1393 |
1452 if (contentVersion != null) { | 1394 if (contentVersion != null) { |
1453 _queryParams["contentVersion"] = [contentVersion]; | 1395 _queryParams["contentVersion"] = [contentVersion]; |
1454 } | 1396 } |
1455 if (layerId != null) { | 1397 if (layerId != null) { |
1456 _queryParams["layerId"] = [layerId]; | 1398 _queryParams["layerId"] = [layerId]; |
1457 } | 1399 } |
1458 if (layerIds != null) { | 1400 if (layerIds != null) { |
1459 _queryParams["layerIds"] = layerIds; | 1401 _queryParams["layerIds"] = layerIds; |
1460 } | 1402 } |
1461 if (maxResults != null) { | 1403 if (maxResults != null) { |
1462 _queryParams["maxResults"] = ["${maxResults}"]; | 1404 _queryParams["maxResults"] = ["${maxResults}"]; |
1463 } | 1405 } |
1464 if (pageIds != null) { | |
1465 _queryParams["pageIds"] = pageIds; | |
1466 } | |
1467 if (pageToken != null) { | 1406 if (pageToken != null) { |
1468 _queryParams["pageToken"] = [pageToken]; | 1407 _queryParams["pageToken"] = [pageToken]; |
1469 } | 1408 } |
1470 if (showDeleted != null) { | 1409 if (showDeleted != null) { |
1471 _queryParams["showDeleted"] = ["${showDeleted}"]; | 1410 _queryParams["showDeleted"] = ["${showDeleted}"]; |
1472 } | 1411 } |
1473 if (source != null) { | 1412 if (source != null) { |
1474 _queryParams["source"] = [source]; | 1413 _queryParams["source"] = [source]; |
1475 } | 1414 } |
1476 if (updatedMax != null) { | 1415 if (updatedMax != null) { |
(...skipping 23 matching lines...) Expand all Loading... |
1500 * Gets the summary of specified layers. | 1439 * Gets the summary of specified layers. |
1501 * | 1440 * |
1502 * Request parameters: | 1441 * Request parameters: |
1503 * | 1442 * |
1504 * [layerIds] - Array of layer IDs to get the summary for. | 1443 * [layerIds] - Array of layer IDs to get the summary for. |
1505 * | 1444 * |
1506 * [volumeId] - Volume id to get the summary for. | 1445 * [volumeId] - Volume id to get the summary for. |
1507 * | 1446 * |
1508 * Completes with a [AnnotationsSummary]. | 1447 * Completes with a [AnnotationsSummary]. |
1509 * | 1448 * |
1510 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1449 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1511 * error. | 1450 * error. |
1512 * | 1451 * |
1513 * If the used [http.Client] completes with an error when making a REST call, | 1452 * If the used [http.Client] completes with an error when making a REST call, |
1514 * this method will complete with the same error. | 1453 * this method will complete with the same error. |
1515 */ | 1454 */ |
1516 async.Future<AnnotationsSummary> summary(core.List<core.String> layerIds, core
.String volumeId) { | 1455 async.Future<AnnotationsSummary> summary(core.List<core.String> layerIds, core
.String volumeId) { |
1517 var _url = null; | 1456 var _url = null; |
1518 var _queryParams = new core.Map(); | 1457 var _queryParams = new core.Map(); |
1519 var _uploadMedia = null; | 1458 var _uploadMedia = null; |
1520 var _uploadOptions = null; | 1459 var _uploadOptions = null; |
1521 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1460 var _downloadOptions = commons.DownloadOptions.Metadata; |
1522 var _body = null; | 1461 var _body = null; |
1523 | 1462 |
1524 if (layerIds == null || layerIds.isEmpty) { | 1463 if (layerIds == null || layerIds.isEmpty) { |
1525 throw new core.ArgumentError("Parameter layerIds is required."); | 1464 throw new core.ArgumentError("Parameter layerIds is required."); |
1526 } | 1465 } |
1527 _queryParams["layerIds"] = layerIds; | 1466 _queryParams["layerIds"] = layerIds; |
1528 if (volumeId == null) { | 1467 if (volumeId == null) { |
1529 throw new core.ArgumentError("Parameter volumeId is required."); | 1468 throw new core.ArgumentError("Parameter volumeId is required."); |
1530 } | 1469 } |
1531 _queryParams["volumeId"] = [volumeId]; | 1470 _queryParams["volumeId"] = [volumeId]; |
(...skipping 17 matching lines...) Expand all Loading... |
1549 * [request] - The metadata request object. | 1488 * [request] - The metadata request object. |
1550 * | 1489 * |
1551 * Request parameters: | 1490 * Request parameters: |
1552 * | 1491 * |
1553 * [annotationId] - The ID for the annotation to update. | 1492 * [annotationId] - The ID for the annotation to update. |
1554 * | 1493 * |
1555 * [source] - String to identify the originator of this request. | 1494 * [source] - String to identify the originator of this request. |
1556 * | 1495 * |
1557 * Completes with a [Annotation]. | 1496 * Completes with a [Annotation]. |
1558 * | 1497 * |
1559 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1498 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1560 * error. | 1499 * error. |
1561 * | 1500 * |
1562 * If the used [http.Client] completes with an error when making a REST call, | 1501 * If the used [http.Client] completes with an error when making a REST call, |
1563 * this method will complete with the same error. | 1502 * this method will complete with the same error. |
1564 */ | 1503 */ |
1565 async.Future<Annotation> update(Annotation request, core.String annotationId,
{core.String source}) { | 1504 async.Future<Annotation> update(Annotation request, core.String annotationId,
{core.String source}) { |
1566 var _url = null; | 1505 var _url = null; |
1567 var _queryParams = new core.Map(); | 1506 var _queryParams = new core.Map(); |
1568 var _uploadMedia = null; | 1507 var _uploadMedia = null; |
1569 var _uploadOptions = null; | 1508 var _uploadOptions = null; |
1570 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1509 var _downloadOptions = commons.DownloadOptions.Metadata; |
1571 var _body = null; | 1510 var _body = null; |
1572 | 1511 |
1573 if (request != null) { | 1512 if (request != null) { |
1574 _body = convert.JSON.encode((request).toJson()); | 1513 _body = convert.JSON.encode((request).toJson()); |
1575 } | 1514 } |
1576 if (annotationId == null) { | 1515 if (annotationId == null) { |
1577 throw new core.ArgumentError("Parameter annotationId is required."); | 1516 throw new core.ArgumentError("Parameter annotationId is required."); |
1578 } | 1517 } |
1579 if (source != null) { | 1518 if (source != null) { |
1580 _queryParams["source"] = [source]; | 1519 _queryParams["source"] = [source]; |
1581 } | 1520 } |
1582 | 1521 |
1583 | 1522 |
1584 _url = 'mylibrary/annotations/' + common_internal.Escaper.ecapeVariable('$an
notationId'); | 1523 _url = 'mylibrary/annotations/' + commons.Escaper.ecapeVariable('$annotation
Id'); |
1585 | 1524 |
1586 var _response = _requester.request(_url, | 1525 var _response = _requester.request(_url, |
1587 "PUT", | 1526 "PUT", |
1588 body: _body, | 1527 body: _body, |
1589 queryParams: _queryParams, | 1528 queryParams: _queryParams, |
1590 uploadOptions: _uploadOptions, | 1529 uploadOptions: _uploadOptions, |
1591 uploadMedia: _uploadMedia, | 1530 uploadMedia: _uploadMedia, |
1592 downloadOptions: _downloadOptions); | 1531 downloadOptions: _downloadOptions); |
1593 return _response.then((data) => new Annotation.fromJson(data)); | 1532 return _response.then((data) => new Annotation.fromJson(data)); |
1594 } | 1533 } |
1595 | 1534 |
1596 } | 1535 } |
1597 | 1536 |
1598 | 1537 |
1599 /** Not documented yet. */ | |
1600 class MylibraryBookshelvesResourceApi { | 1538 class MylibraryBookshelvesResourceApi { |
1601 final common_internal.ApiRequester _requester; | 1539 final commons.ApiRequester _requester; |
1602 | 1540 |
1603 MylibraryBookshelvesVolumesResourceApi get volumes => new MylibraryBookshelves
VolumesResourceApi(_requester); | 1541 MylibraryBookshelvesVolumesResourceApi get volumes => new MylibraryBookshelves
VolumesResourceApi(_requester); |
1604 | 1542 |
1605 MylibraryBookshelvesResourceApi(common_internal.ApiRequester client) : | 1543 MylibraryBookshelvesResourceApi(commons.ApiRequester client) : |
1606 _requester = client; | 1544 _requester = client; |
1607 | 1545 |
1608 /** | 1546 /** |
1609 * Adds a volume to a bookshelf. | 1547 * Adds a volume to a bookshelf. |
1610 * | 1548 * |
1611 * Request parameters: | 1549 * Request parameters: |
1612 * | 1550 * |
1613 * [shelf] - ID of bookshelf to which to add a volume. | 1551 * [shelf] - ID of bookshelf to which to add a volume. |
1614 * | 1552 * |
1615 * [volumeId] - ID of volume to add. | 1553 * [volumeId] - ID of volume to add. |
1616 * | 1554 * |
1617 * [reason] - The reason for which the book is added to the library. | 1555 * [reason] - The reason for which the book is added to the library. |
1618 * Possible string values are: | 1556 * Possible string values are: |
1619 * - "IOS_PREX" : Volumes added from the PREX flow on iOS. | 1557 * - "IOS_PREX" : Volumes added from the PREX flow on iOS. |
1620 * - "IOS_SEARCH" : Volumes added from the Search flow on iOS. | 1558 * - "IOS_SEARCH" : Volumes added from the Search flow on iOS. |
1621 * - "ONBOARDING" : Volumes added from the Onboarding flow. | 1559 * - "ONBOARDING" : Volumes added from the Onboarding flow. |
1622 * | 1560 * |
1623 * [source] - String to identify the originator of this request. | 1561 * [source] - String to identify the originator of this request. |
1624 * | 1562 * |
1625 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1563 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1626 * error. | 1564 * error. |
1627 * | 1565 * |
1628 * If the used [http.Client] completes with an error when making a REST call, | 1566 * If the used [http.Client] completes with an error when making a REST call, |
1629 * this method will complete with the same error. | 1567 * this method will complete with the same error. |
1630 */ | 1568 */ |
1631 async.Future addVolume(core.String shelf, core.String volumeId, {core.String r
eason, core.String source}) { | 1569 async.Future addVolume(core.String shelf, core.String volumeId, {core.String r
eason, core.String source}) { |
1632 var _url = null; | 1570 var _url = null; |
1633 var _queryParams = new core.Map(); | 1571 var _queryParams = new core.Map(); |
1634 var _uploadMedia = null; | 1572 var _uploadMedia = null; |
1635 var _uploadOptions = null; | 1573 var _uploadOptions = null; |
1636 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1574 var _downloadOptions = commons.DownloadOptions.Metadata; |
1637 var _body = null; | 1575 var _body = null; |
1638 | 1576 |
1639 if (shelf == null) { | 1577 if (shelf == null) { |
1640 throw new core.ArgumentError("Parameter shelf is required."); | 1578 throw new core.ArgumentError("Parameter shelf is required."); |
1641 } | 1579 } |
1642 if (volumeId == null) { | 1580 if (volumeId == null) { |
1643 throw new core.ArgumentError("Parameter volumeId is required."); | 1581 throw new core.ArgumentError("Parameter volumeId is required."); |
1644 } | 1582 } |
1645 _queryParams["volumeId"] = [volumeId]; | 1583 _queryParams["volumeId"] = [volumeId]; |
1646 if (reason != null) { | 1584 if (reason != null) { |
1647 _queryParams["reason"] = [reason]; | 1585 _queryParams["reason"] = [reason]; |
1648 } | 1586 } |
1649 if (source != null) { | 1587 if (source != null) { |
1650 _queryParams["source"] = [source]; | 1588 _queryParams["source"] = [source]; |
1651 } | 1589 } |
1652 | 1590 |
1653 _downloadOptions = null; | 1591 _downloadOptions = null; |
1654 | 1592 |
1655 _url = 'mylibrary/bookshelves/' + common_internal.Escaper.ecapeVariable('$sh
elf') + '/addVolume'; | 1593 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/addVolume'; |
1656 | 1594 |
1657 var _response = _requester.request(_url, | 1595 var _response = _requester.request(_url, |
1658 "POST", | 1596 "POST", |
1659 body: _body, | 1597 body: _body, |
1660 queryParams: _queryParams, | 1598 queryParams: _queryParams, |
1661 uploadOptions: _uploadOptions, | 1599 uploadOptions: _uploadOptions, |
1662 uploadMedia: _uploadMedia, | 1600 uploadMedia: _uploadMedia, |
1663 downloadOptions: _downloadOptions); | 1601 downloadOptions: _downloadOptions); |
1664 return _response.then((data) => null); | 1602 return _response.then((data) => null); |
1665 } | 1603 } |
1666 | 1604 |
1667 /** | 1605 /** |
1668 * Clears all volumes from a bookshelf. | 1606 * Clears all volumes from a bookshelf. |
1669 * | 1607 * |
1670 * Request parameters: | 1608 * Request parameters: |
1671 * | 1609 * |
1672 * [shelf] - ID of bookshelf from which to remove a volume. | 1610 * [shelf] - ID of bookshelf from which to remove a volume. |
1673 * | 1611 * |
1674 * [source] - String to identify the originator of this request. | 1612 * [source] - String to identify the originator of this request. |
1675 * | 1613 * |
1676 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1614 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1677 * error. | 1615 * error. |
1678 * | 1616 * |
1679 * If the used [http.Client] completes with an error when making a REST call, | 1617 * If the used [http.Client] completes with an error when making a REST call, |
1680 * this method will complete with the same error. | 1618 * this method will complete with the same error. |
1681 */ | 1619 */ |
1682 async.Future clearVolumes(core.String shelf, {core.String source}) { | 1620 async.Future clearVolumes(core.String shelf, {core.String source}) { |
1683 var _url = null; | 1621 var _url = null; |
1684 var _queryParams = new core.Map(); | 1622 var _queryParams = new core.Map(); |
1685 var _uploadMedia = null; | 1623 var _uploadMedia = null; |
1686 var _uploadOptions = null; | 1624 var _uploadOptions = null; |
1687 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1625 var _downloadOptions = commons.DownloadOptions.Metadata; |
1688 var _body = null; | 1626 var _body = null; |
1689 | 1627 |
1690 if (shelf == null) { | 1628 if (shelf == null) { |
1691 throw new core.ArgumentError("Parameter shelf is required."); | 1629 throw new core.ArgumentError("Parameter shelf is required."); |
1692 } | 1630 } |
1693 if (source != null) { | 1631 if (source != null) { |
1694 _queryParams["source"] = [source]; | 1632 _queryParams["source"] = [source]; |
1695 } | 1633 } |
1696 | 1634 |
1697 _downloadOptions = null; | 1635 _downloadOptions = null; |
1698 | 1636 |
1699 _url = 'mylibrary/bookshelves/' + common_internal.Escaper.ecapeVariable('$sh
elf') + '/clearVolumes'; | 1637 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/clearVolumes'; |
1700 | 1638 |
1701 var _response = _requester.request(_url, | 1639 var _response = _requester.request(_url, |
1702 "POST", | 1640 "POST", |
1703 body: _body, | 1641 body: _body, |
1704 queryParams: _queryParams, | 1642 queryParams: _queryParams, |
1705 uploadOptions: _uploadOptions, | 1643 uploadOptions: _uploadOptions, |
1706 uploadMedia: _uploadMedia, | 1644 uploadMedia: _uploadMedia, |
1707 downloadOptions: _downloadOptions); | 1645 downloadOptions: _downloadOptions); |
1708 return _response.then((data) => null); | 1646 return _response.then((data) => null); |
1709 } | 1647 } |
1710 | 1648 |
1711 /** | 1649 /** |
1712 * Retrieves metadata for a specific bookshelf belonging to the authenticated | 1650 * Retrieves metadata for a specific bookshelf belonging to the authenticated |
1713 * user. | 1651 * user. |
1714 * | 1652 * |
1715 * Request parameters: | 1653 * Request parameters: |
1716 * | 1654 * |
1717 * [shelf] - ID of bookshelf to retrieve. | 1655 * [shelf] - ID of bookshelf to retrieve. |
1718 * | 1656 * |
1719 * [source] - String to identify the originator of this request. | 1657 * [source] - String to identify the originator of this request. |
1720 * | 1658 * |
1721 * Completes with a [Bookshelf]. | 1659 * Completes with a [Bookshelf]. |
1722 * | 1660 * |
1723 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1661 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1724 * error. | 1662 * error. |
1725 * | 1663 * |
1726 * If the used [http.Client] completes with an error when making a REST call, | 1664 * If the used [http.Client] completes with an error when making a REST call, |
1727 * this method will complete with the same error. | 1665 * this method will complete with the same error. |
1728 */ | 1666 */ |
1729 async.Future<Bookshelf> get(core.String shelf, {core.String source}) { | 1667 async.Future<Bookshelf> get(core.String shelf, {core.String source}) { |
1730 var _url = null; | 1668 var _url = null; |
1731 var _queryParams = new core.Map(); | 1669 var _queryParams = new core.Map(); |
1732 var _uploadMedia = null; | 1670 var _uploadMedia = null; |
1733 var _uploadOptions = null; | 1671 var _uploadOptions = null; |
1734 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1672 var _downloadOptions = commons.DownloadOptions.Metadata; |
1735 var _body = null; | 1673 var _body = null; |
1736 | 1674 |
1737 if (shelf == null) { | 1675 if (shelf == null) { |
1738 throw new core.ArgumentError("Parameter shelf is required."); | 1676 throw new core.ArgumentError("Parameter shelf is required."); |
1739 } | 1677 } |
1740 if (source != null) { | 1678 if (source != null) { |
1741 _queryParams["source"] = [source]; | 1679 _queryParams["source"] = [source]; |
1742 } | 1680 } |
1743 | 1681 |
1744 | 1682 |
1745 _url = 'mylibrary/bookshelves/' + common_internal.Escaper.ecapeVariable('$sh
elf'); | 1683 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf'); |
1746 | 1684 |
1747 var _response = _requester.request(_url, | 1685 var _response = _requester.request(_url, |
1748 "GET", | 1686 "GET", |
1749 body: _body, | 1687 body: _body, |
1750 queryParams: _queryParams, | 1688 queryParams: _queryParams, |
1751 uploadOptions: _uploadOptions, | 1689 uploadOptions: _uploadOptions, |
1752 uploadMedia: _uploadMedia, | 1690 uploadMedia: _uploadMedia, |
1753 downloadOptions: _downloadOptions); | 1691 downloadOptions: _downloadOptions); |
1754 return _response.then((data) => new Bookshelf.fromJson(data)); | 1692 return _response.then((data) => new Bookshelf.fromJson(data)); |
1755 } | 1693 } |
1756 | 1694 |
1757 /** | 1695 /** |
1758 * Retrieves a list of bookshelves belonging to the authenticated user. | 1696 * Retrieves a list of bookshelves belonging to the authenticated user. |
1759 * | 1697 * |
1760 * Request parameters: | 1698 * Request parameters: |
1761 * | 1699 * |
1762 * [source] - String to identify the originator of this request. | 1700 * [source] - String to identify the originator of this request. |
1763 * | 1701 * |
1764 * Completes with a [Bookshelves]. | 1702 * Completes with a [Bookshelves]. |
1765 * | 1703 * |
1766 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1704 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1767 * error. | 1705 * error. |
1768 * | 1706 * |
1769 * If the used [http.Client] completes with an error when making a REST call, | 1707 * If the used [http.Client] completes with an error when making a REST call, |
1770 * this method will complete with the same error. | 1708 * this method will complete with the same error. |
1771 */ | 1709 */ |
1772 async.Future<Bookshelves> list({core.String source}) { | 1710 async.Future<Bookshelves> list({core.String source}) { |
1773 var _url = null; | 1711 var _url = null; |
1774 var _queryParams = new core.Map(); | 1712 var _queryParams = new core.Map(); |
1775 var _uploadMedia = null; | 1713 var _uploadMedia = null; |
1776 var _uploadOptions = null; | 1714 var _uploadOptions = null; |
1777 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1715 var _downloadOptions = commons.DownloadOptions.Metadata; |
1778 var _body = null; | 1716 var _body = null; |
1779 | 1717 |
1780 if (source != null) { | 1718 if (source != null) { |
1781 _queryParams["source"] = [source]; | 1719 _queryParams["source"] = [source]; |
1782 } | 1720 } |
1783 | 1721 |
1784 | 1722 |
1785 _url = 'mylibrary/bookshelves'; | 1723 _url = 'mylibrary/bookshelves'; |
1786 | 1724 |
1787 var _response = _requester.request(_url, | 1725 var _response = _requester.request(_url, |
(...skipping 14 matching lines...) Expand all Loading... |
1802 * [shelf] - ID of bookshelf with the volume. | 1740 * [shelf] - ID of bookshelf with the volume. |
1803 * | 1741 * |
1804 * [volumeId] - ID of volume to move. | 1742 * [volumeId] - ID of volume to move. |
1805 * | 1743 * |
1806 * [volumePosition] - Position on shelf to move the item (0 puts the item | 1744 * [volumePosition] - Position on shelf to move the item (0 puts the item |
1807 * before the current first item, 1 puts it between the first and the second | 1745 * before the current first item, 1 puts it between the first and the second |
1808 * and so on.) | 1746 * and so on.) |
1809 * | 1747 * |
1810 * [source] - String to identify the originator of this request. | 1748 * [source] - String to identify the originator of this request. |
1811 * | 1749 * |
1812 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1750 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1813 * error. | 1751 * error. |
1814 * | 1752 * |
1815 * If the used [http.Client] completes with an error when making a REST call, | 1753 * If the used [http.Client] completes with an error when making a REST call, |
1816 * this method will complete with the same error. | 1754 * this method will complete with the same error. |
1817 */ | 1755 */ |
1818 async.Future moveVolume(core.String shelf, core.String volumeId, core.int volu
mePosition, {core.String source}) { | 1756 async.Future moveVolume(core.String shelf, core.String volumeId, core.int volu
mePosition, {core.String source}) { |
1819 var _url = null; | 1757 var _url = null; |
1820 var _queryParams = new core.Map(); | 1758 var _queryParams = new core.Map(); |
1821 var _uploadMedia = null; | 1759 var _uploadMedia = null; |
1822 var _uploadOptions = null; | 1760 var _uploadOptions = null; |
1823 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1761 var _downloadOptions = commons.DownloadOptions.Metadata; |
1824 var _body = null; | 1762 var _body = null; |
1825 | 1763 |
1826 if (shelf == null) { | 1764 if (shelf == null) { |
1827 throw new core.ArgumentError("Parameter shelf is required."); | 1765 throw new core.ArgumentError("Parameter shelf is required."); |
1828 } | 1766 } |
1829 if (volumeId == null) { | 1767 if (volumeId == null) { |
1830 throw new core.ArgumentError("Parameter volumeId is required."); | 1768 throw new core.ArgumentError("Parameter volumeId is required."); |
1831 } | 1769 } |
1832 _queryParams["volumeId"] = [volumeId]; | 1770 _queryParams["volumeId"] = [volumeId]; |
1833 if (volumePosition == null) { | 1771 if (volumePosition == null) { |
1834 throw new core.ArgumentError("Parameter volumePosition is required."); | 1772 throw new core.ArgumentError("Parameter volumePosition is required."); |
1835 } | 1773 } |
1836 _queryParams["volumePosition"] = ["${volumePosition}"]; | 1774 _queryParams["volumePosition"] = ["${volumePosition}"]; |
1837 if (source != null) { | 1775 if (source != null) { |
1838 _queryParams["source"] = [source]; | 1776 _queryParams["source"] = [source]; |
1839 } | 1777 } |
1840 | 1778 |
1841 _downloadOptions = null; | 1779 _downloadOptions = null; |
1842 | 1780 |
1843 _url = 'mylibrary/bookshelves/' + common_internal.Escaper.ecapeVariable('$sh
elf') + '/moveVolume'; | 1781 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/moveVolume'; |
1844 | 1782 |
1845 var _response = _requester.request(_url, | 1783 var _response = _requester.request(_url, |
1846 "POST", | 1784 "POST", |
1847 body: _body, | 1785 body: _body, |
1848 queryParams: _queryParams, | 1786 queryParams: _queryParams, |
1849 uploadOptions: _uploadOptions, | 1787 uploadOptions: _uploadOptions, |
1850 uploadMedia: _uploadMedia, | 1788 uploadMedia: _uploadMedia, |
1851 downloadOptions: _downloadOptions); | 1789 downloadOptions: _downloadOptions); |
1852 return _response.then((data) => null); | 1790 return _response.then((data) => null); |
1853 } | 1791 } |
1854 | 1792 |
1855 /** | 1793 /** |
1856 * Removes a volume from a bookshelf. | 1794 * Removes a volume from a bookshelf. |
1857 * | 1795 * |
1858 * Request parameters: | 1796 * Request parameters: |
1859 * | 1797 * |
1860 * [shelf] - ID of bookshelf from which to remove a volume. | 1798 * [shelf] - ID of bookshelf from which to remove a volume. |
1861 * | 1799 * |
1862 * [volumeId] - ID of volume to remove. | 1800 * [volumeId] - ID of volume to remove. |
1863 * | 1801 * |
1864 * [reason] - The reason for which the book is removed from the library. | 1802 * [reason] - The reason for which the book is removed from the library. |
1865 * Possible string values are: | 1803 * Possible string values are: |
1866 * - "ONBOARDING" : Samples removed from the Onboarding flow. | 1804 * - "ONBOARDING" : Samples removed from the Onboarding flow. |
1867 * | 1805 * |
1868 * [source] - String to identify the originator of this request. | 1806 * [source] - String to identify the originator of this request. |
1869 * | 1807 * |
1870 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1808 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1871 * error. | 1809 * error. |
1872 * | 1810 * |
1873 * If the used [http.Client] completes with an error when making a REST call, | 1811 * If the used [http.Client] completes with an error when making a REST call, |
1874 * this method will complete with the same error. | 1812 * this method will complete with the same error. |
1875 */ | 1813 */ |
1876 async.Future removeVolume(core.String shelf, core.String volumeId, {core.Strin
g reason, core.String source}) { | 1814 async.Future removeVolume(core.String shelf, core.String volumeId, {core.Strin
g reason, core.String source}) { |
1877 var _url = null; | 1815 var _url = null; |
1878 var _queryParams = new core.Map(); | 1816 var _queryParams = new core.Map(); |
1879 var _uploadMedia = null; | 1817 var _uploadMedia = null; |
1880 var _uploadOptions = null; | 1818 var _uploadOptions = null; |
1881 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1819 var _downloadOptions = commons.DownloadOptions.Metadata; |
1882 var _body = null; | 1820 var _body = null; |
1883 | 1821 |
1884 if (shelf == null) { | 1822 if (shelf == null) { |
1885 throw new core.ArgumentError("Parameter shelf is required."); | 1823 throw new core.ArgumentError("Parameter shelf is required."); |
1886 } | 1824 } |
1887 if (volumeId == null) { | 1825 if (volumeId == null) { |
1888 throw new core.ArgumentError("Parameter volumeId is required."); | 1826 throw new core.ArgumentError("Parameter volumeId is required."); |
1889 } | 1827 } |
1890 _queryParams["volumeId"] = [volumeId]; | 1828 _queryParams["volumeId"] = [volumeId]; |
1891 if (reason != null) { | 1829 if (reason != null) { |
1892 _queryParams["reason"] = [reason]; | 1830 _queryParams["reason"] = [reason]; |
1893 } | 1831 } |
1894 if (source != null) { | 1832 if (source != null) { |
1895 _queryParams["source"] = [source]; | 1833 _queryParams["source"] = [source]; |
1896 } | 1834 } |
1897 | 1835 |
1898 _downloadOptions = null; | 1836 _downloadOptions = null; |
1899 | 1837 |
1900 _url = 'mylibrary/bookshelves/' + common_internal.Escaper.ecapeVariable('$sh
elf') + '/removeVolume'; | 1838 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/removeVolume'; |
1901 | 1839 |
1902 var _response = _requester.request(_url, | 1840 var _response = _requester.request(_url, |
1903 "POST", | 1841 "POST", |
1904 body: _body, | 1842 body: _body, |
1905 queryParams: _queryParams, | 1843 queryParams: _queryParams, |
1906 uploadOptions: _uploadOptions, | 1844 uploadOptions: _uploadOptions, |
1907 uploadMedia: _uploadMedia, | 1845 uploadMedia: _uploadMedia, |
1908 downloadOptions: _downloadOptions); | 1846 downloadOptions: _downloadOptions); |
1909 return _response.then((data) => null); | 1847 return _response.then((data) => null); |
1910 } | 1848 } |
1911 | 1849 |
1912 } | 1850 } |
1913 | 1851 |
1914 | 1852 |
1915 /** Not documented yet. */ | |
1916 class MylibraryBookshelvesVolumesResourceApi { | 1853 class MylibraryBookshelvesVolumesResourceApi { |
1917 final common_internal.ApiRequester _requester; | 1854 final commons.ApiRequester _requester; |
1918 | 1855 |
1919 MylibraryBookshelvesVolumesResourceApi(common_internal.ApiRequester client) : | 1856 MylibraryBookshelvesVolumesResourceApi(commons.ApiRequester client) : |
1920 _requester = client; | 1857 _requester = client; |
1921 | 1858 |
1922 /** | 1859 /** |
1923 * Gets volume information for volumes on a bookshelf. | 1860 * Gets volume information for volumes on a bookshelf. |
1924 * | 1861 * |
1925 * Request parameters: | 1862 * Request parameters: |
1926 * | 1863 * |
1927 * [shelf] - The bookshelf ID or name retrieve volumes for. | 1864 * [shelf] - The bookshelf ID or name retrieve volumes for. |
1928 * | 1865 * |
1929 * [country] - ISO-3166-1 code to override the IP-based location. | 1866 * [country] - ISO-3166-1 code to override the IP-based location. |
1930 * | 1867 * |
1931 * [maxResults] - Maximum number of results to return | 1868 * [maxResults] - Maximum number of results to return |
1932 * | 1869 * |
1933 * [projection] - Restrict information returned to a set of selected fields. | 1870 * [projection] - Restrict information returned to a set of selected fields. |
1934 * Possible string values are: | 1871 * Possible string values are: |
1935 * - "full" : Includes all volume data. | 1872 * - "full" : Includes all volume data. |
1936 * - "lite" : Includes a subset of fields in volumeInfo and accessInfo. | 1873 * - "lite" : Includes a subset of fields in volumeInfo and accessInfo. |
1937 * | 1874 * |
1938 * [q] - Full-text search query string in this bookshelf. | 1875 * [q] - Full-text search query string in this bookshelf. |
1939 * | 1876 * |
1940 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. | 1877 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. |
1941 * | 1878 * |
1942 * [source] - String to identify the originator of this request. | 1879 * [source] - String to identify the originator of this request. |
1943 * | 1880 * |
1944 * [startIndex] - Index of the first element to return (starts at 0) | 1881 * [startIndex] - Index of the first element to return (starts at 0) |
1945 * | 1882 * |
1946 * Completes with a [Volumes]. | 1883 * Completes with a [Volumes]. |
1947 * | 1884 * |
1948 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1885 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1949 * error. | 1886 * error. |
1950 * | 1887 * |
1951 * If the used [http.Client] completes with an error when making a REST call, | 1888 * If the used [http.Client] completes with an error when making a REST call, |
1952 * this method will complete with the same error. | 1889 * this method will complete with the same error. |
1953 */ | 1890 */ |
1954 async.Future<Volumes> list(core.String shelf, {core.String country, core.int m
axResults, core.String projection, core.String q, core.bool showPreorders, core.
String source, core.int startIndex}) { | 1891 async.Future<Volumes> list(core.String shelf, {core.String country, core.int m
axResults, core.String projection, core.String q, core.bool showPreorders, core.
String source, core.int startIndex}) { |
1955 var _url = null; | 1892 var _url = null; |
1956 var _queryParams = new core.Map(); | 1893 var _queryParams = new core.Map(); |
1957 var _uploadMedia = null; | 1894 var _uploadMedia = null; |
1958 var _uploadOptions = null; | 1895 var _uploadOptions = null; |
1959 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1896 var _downloadOptions = commons.DownloadOptions.Metadata; |
1960 var _body = null; | 1897 var _body = null; |
1961 | 1898 |
1962 if (shelf == null) { | 1899 if (shelf == null) { |
1963 throw new core.ArgumentError("Parameter shelf is required."); | 1900 throw new core.ArgumentError("Parameter shelf is required."); |
1964 } | 1901 } |
1965 if (country != null) { | 1902 if (country != null) { |
1966 _queryParams["country"] = [country]; | 1903 _queryParams["country"] = [country]; |
1967 } | 1904 } |
1968 if (maxResults != null) { | 1905 if (maxResults != null) { |
1969 _queryParams["maxResults"] = ["${maxResults}"]; | 1906 _queryParams["maxResults"] = ["${maxResults}"]; |
1970 } | 1907 } |
1971 if (projection != null) { | 1908 if (projection != null) { |
1972 _queryParams["projection"] = [projection]; | 1909 _queryParams["projection"] = [projection]; |
1973 } | 1910 } |
1974 if (q != null) { | 1911 if (q != null) { |
1975 _queryParams["q"] = [q]; | 1912 _queryParams["q"] = [q]; |
1976 } | 1913 } |
1977 if (showPreorders != null) { | 1914 if (showPreorders != null) { |
1978 _queryParams["showPreorders"] = ["${showPreorders}"]; | 1915 _queryParams["showPreorders"] = ["${showPreorders}"]; |
1979 } | 1916 } |
1980 if (source != null) { | 1917 if (source != null) { |
1981 _queryParams["source"] = [source]; | 1918 _queryParams["source"] = [source]; |
1982 } | 1919 } |
1983 if (startIndex != null) { | 1920 if (startIndex != null) { |
1984 _queryParams["startIndex"] = ["${startIndex}"]; | 1921 _queryParams["startIndex"] = ["${startIndex}"]; |
1985 } | 1922 } |
1986 | 1923 |
1987 | 1924 |
1988 _url = 'mylibrary/bookshelves/' + common_internal.Escaper.ecapeVariable('$sh
elf') + '/volumes'; | 1925 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/volumes'; |
1989 | 1926 |
1990 var _response = _requester.request(_url, | 1927 var _response = _requester.request(_url, |
1991 "GET", | 1928 "GET", |
1992 body: _body, | 1929 body: _body, |
1993 queryParams: _queryParams, | 1930 queryParams: _queryParams, |
1994 uploadOptions: _uploadOptions, | 1931 uploadOptions: _uploadOptions, |
1995 uploadMedia: _uploadMedia, | 1932 uploadMedia: _uploadMedia, |
1996 downloadOptions: _downloadOptions); | 1933 downloadOptions: _downloadOptions); |
1997 return _response.then((data) => new Volumes.fromJson(data)); | 1934 return _response.then((data) => new Volumes.fromJson(data)); |
1998 } | 1935 } |
1999 | 1936 |
2000 } | 1937 } |
2001 | 1938 |
2002 | 1939 |
2003 /** Not documented yet. */ | |
2004 class MylibraryReadingpositionsResourceApi { | 1940 class MylibraryReadingpositionsResourceApi { |
2005 final common_internal.ApiRequester _requester; | 1941 final commons.ApiRequester _requester; |
2006 | 1942 |
2007 MylibraryReadingpositionsResourceApi(common_internal.ApiRequester client) : | 1943 MylibraryReadingpositionsResourceApi(commons.ApiRequester client) : |
2008 _requester = client; | 1944 _requester = client; |
2009 | 1945 |
2010 /** | 1946 /** |
2011 * Retrieves my reading position information for a volume. | 1947 * Retrieves my reading position information for a volume. |
2012 * | 1948 * |
2013 * Request parameters: | 1949 * Request parameters: |
2014 * | 1950 * |
2015 * [volumeId] - ID of volume for which to retrieve a reading position. | 1951 * [volumeId] - ID of volume for which to retrieve a reading position. |
2016 * | 1952 * |
2017 * [contentVersion] - Volume content version for which this reading position | 1953 * [contentVersion] - Volume content version for which this reading position |
2018 * is requested. | 1954 * is requested. |
2019 * | 1955 * |
2020 * [source] - String to identify the originator of this request. | 1956 * [source] - String to identify the originator of this request. |
2021 * | 1957 * |
2022 * Completes with a [ReadingPosition]. | 1958 * Completes with a [ReadingPosition]. |
2023 * | 1959 * |
2024 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 1960 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2025 * error. | 1961 * error. |
2026 * | 1962 * |
2027 * If the used [http.Client] completes with an error when making a REST call, | 1963 * If the used [http.Client] completes with an error when making a REST call, |
2028 * this method will complete with the same error. | 1964 * this method will complete with the same error. |
2029 */ | 1965 */ |
2030 async.Future<ReadingPosition> get(core.String volumeId, {core.String contentVe
rsion, core.String source}) { | 1966 async.Future<ReadingPosition> get(core.String volumeId, {core.String contentVe
rsion, core.String source}) { |
2031 var _url = null; | 1967 var _url = null; |
2032 var _queryParams = new core.Map(); | 1968 var _queryParams = new core.Map(); |
2033 var _uploadMedia = null; | 1969 var _uploadMedia = null; |
2034 var _uploadOptions = null; | 1970 var _uploadOptions = null; |
2035 var _downloadOptions = common_1.DownloadOptions.Metadata; | 1971 var _downloadOptions = commons.DownloadOptions.Metadata; |
2036 var _body = null; | 1972 var _body = null; |
2037 | 1973 |
2038 if (volumeId == null) { | 1974 if (volumeId == null) { |
2039 throw new core.ArgumentError("Parameter volumeId is required."); | 1975 throw new core.ArgumentError("Parameter volumeId is required."); |
2040 } | 1976 } |
2041 if (contentVersion != null) { | 1977 if (contentVersion != null) { |
2042 _queryParams["contentVersion"] = [contentVersion]; | 1978 _queryParams["contentVersion"] = [contentVersion]; |
2043 } | 1979 } |
2044 if (source != null) { | 1980 if (source != null) { |
2045 _queryParams["source"] = [source]; | 1981 _queryParams["source"] = [source]; |
2046 } | 1982 } |
2047 | 1983 |
2048 | 1984 |
2049 _url = 'mylibrary/readingpositions/' + common_internal.Escaper.ecapeVariable
('$volumeId'); | 1985 _url = 'mylibrary/readingpositions/' + commons.Escaper.ecapeVariable('$volum
eId'); |
2050 | 1986 |
2051 var _response = _requester.request(_url, | 1987 var _response = _requester.request(_url, |
2052 "GET", | 1988 "GET", |
2053 body: _body, | 1989 body: _body, |
2054 queryParams: _queryParams, | 1990 queryParams: _queryParams, |
2055 uploadOptions: _uploadOptions, | 1991 uploadOptions: _uploadOptions, |
2056 uploadMedia: _uploadMedia, | 1992 uploadMedia: _uploadMedia, |
2057 downloadOptions: _downloadOptions); | 1993 downloadOptions: _downloadOptions); |
2058 return _response.then((data) => new ReadingPosition.fromJson(data)); | 1994 return _response.then((data) => new ReadingPosition.fromJson(data)); |
2059 } | 1995 } |
(...skipping 19 matching lines...) Expand all Loading... |
2079 * - "scroll" : User navigated to page. | 2015 * - "scroll" : User navigated to page. |
2080 * - "search" : User chose search results within volume. | 2016 * - "search" : User chose search results within volume. |
2081 * | 2017 * |
2082 * [contentVersion] - Volume content version for which this reading position | 2018 * [contentVersion] - Volume content version for which this reading position |
2083 * applies. | 2019 * applies. |
2084 * | 2020 * |
2085 * [deviceCookie] - Random persistent device cookie optional on set position. | 2021 * [deviceCookie] - Random persistent device cookie optional on set position. |
2086 * | 2022 * |
2087 * [source] - String to identify the originator of this request. | 2023 * [source] - String to identify the originator of this request. |
2088 * | 2024 * |
2089 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2025 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2090 * error. | 2026 * error. |
2091 * | 2027 * |
2092 * If the used [http.Client] completes with an error when making a REST call, | 2028 * If the used [http.Client] completes with an error when making a REST call, |
2093 * this method will complete with the same error. | 2029 * this method will complete with the same error. |
2094 */ | 2030 */ |
2095 async.Future setPosition(core.String volumeId, core.String timestamp, core.Str
ing position, {core.String action, core.String contentVersion, core.String devic
eCookie, core.String source}) { | 2031 async.Future setPosition(core.String volumeId, core.String timestamp, core.Str
ing position, {core.String action, core.String contentVersion, core.String devic
eCookie, core.String source}) { |
2096 var _url = null; | 2032 var _url = null; |
2097 var _queryParams = new core.Map(); | 2033 var _queryParams = new core.Map(); |
2098 var _uploadMedia = null; | 2034 var _uploadMedia = null; |
2099 var _uploadOptions = null; | 2035 var _uploadOptions = null; |
2100 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2036 var _downloadOptions = commons.DownloadOptions.Metadata; |
2101 var _body = null; | 2037 var _body = null; |
2102 | 2038 |
2103 if (volumeId == null) { | 2039 if (volumeId == null) { |
2104 throw new core.ArgumentError("Parameter volumeId is required."); | 2040 throw new core.ArgumentError("Parameter volumeId is required."); |
2105 } | 2041 } |
2106 if (timestamp == null) { | 2042 if (timestamp == null) { |
2107 throw new core.ArgumentError("Parameter timestamp is required."); | 2043 throw new core.ArgumentError("Parameter timestamp is required."); |
2108 } | 2044 } |
2109 _queryParams["timestamp"] = [timestamp]; | 2045 _queryParams["timestamp"] = [timestamp]; |
2110 if (position == null) { | 2046 if (position == null) { |
2111 throw new core.ArgumentError("Parameter position is required."); | 2047 throw new core.ArgumentError("Parameter position is required."); |
2112 } | 2048 } |
2113 _queryParams["position"] = [position]; | 2049 _queryParams["position"] = [position]; |
2114 if (action != null) { | 2050 if (action != null) { |
2115 _queryParams["action"] = [action]; | 2051 _queryParams["action"] = [action]; |
2116 } | 2052 } |
2117 if (contentVersion != null) { | 2053 if (contentVersion != null) { |
2118 _queryParams["contentVersion"] = [contentVersion]; | 2054 _queryParams["contentVersion"] = [contentVersion]; |
2119 } | 2055 } |
2120 if (deviceCookie != null) { | 2056 if (deviceCookie != null) { |
2121 _queryParams["deviceCookie"] = [deviceCookie]; | 2057 _queryParams["deviceCookie"] = [deviceCookie]; |
2122 } | 2058 } |
2123 if (source != null) { | 2059 if (source != null) { |
2124 _queryParams["source"] = [source]; | 2060 _queryParams["source"] = [source]; |
2125 } | 2061 } |
2126 | 2062 |
2127 _downloadOptions = null; | 2063 _downloadOptions = null; |
2128 | 2064 |
2129 _url = 'mylibrary/readingpositions/' + common_internal.Escaper.ecapeVariable
('$volumeId') + '/setPosition'; | 2065 _url = 'mylibrary/readingpositions/' + commons.Escaper.ecapeVariable('$volum
eId') + '/setPosition'; |
2130 | 2066 |
2131 var _response = _requester.request(_url, | 2067 var _response = _requester.request(_url, |
2132 "POST", | 2068 "POST", |
2133 body: _body, | 2069 body: _body, |
2134 queryParams: _queryParams, | 2070 queryParams: _queryParams, |
2135 uploadOptions: _uploadOptions, | 2071 uploadOptions: _uploadOptions, |
2136 uploadMedia: _uploadMedia, | 2072 uploadMedia: _uploadMedia, |
2137 downloadOptions: _downloadOptions); | 2073 downloadOptions: _downloadOptions); |
2138 return _response.then((data) => null); | 2074 return _response.then((data) => null); |
2139 } | 2075 } |
2140 | 2076 |
2141 } | 2077 } |
2142 | 2078 |
2143 | 2079 |
2144 /** Not documented yet. */ | |
2145 class OnboardingResourceApi { | 2080 class OnboardingResourceApi { |
2146 final common_internal.ApiRequester _requester; | 2081 final commons.ApiRequester _requester; |
2147 | 2082 |
2148 OnboardingResourceApi(common_internal.ApiRequester client) : | 2083 OnboardingResourceApi(commons.ApiRequester client) : |
2149 _requester = client; | 2084 _requester = client; |
2150 | 2085 |
2151 /** | 2086 /** |
2152 * List categories for onboarding experience. | 2087 * List categories for onboarding experience. |
2153 * | 2088 * |
2154 * Request parameters: | 2089 * Request parameters: |
2155 * | 2090 * |
2156 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is en-US | 2091 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is en-US |
2157 * if unset. | 2092 * if unset. |
2158 * | 2093 * |
2159 * Completes with a [Category]. | 2094 * Completes with a [Category]. |
2160 * | 2095 * |
2161 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2096 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2162 * error. | 2097 * error. |
2163 * | 2098 * |
2164 * If the used [http.Client] completes with an error when making a REST call, | 2099 * If the used [http.Client] completes with an error when making a REST call, |
2165 * this method will complete with the same error. | 2100 * this method will complete with the same error. |
2166 */ | 2101 */ |
2167 async.Future<Category> listCategories({core.String locale}) { | 2102 async.Future<Category> listCategories({core.String locale}) { |
2168 var _url = null; | 2103 var _url = null; |
2169 var _queryParams = new core.Map(); | 2104 var _queryParams = new core.Map(); |
2170 var _uploadMedia = null; | 2105 var _uploadMedia = null; |
2171 var _uploadOptions = null; | 2106 var _uploadOptions = null; |
2172 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2107 var _downloadOptions = commons.DownloadOptions.Metadata; |
2173 var _body = null; | 2108 var _body = null; |
2174 | 2109 |
2175 if (locale != null) { | 2110 if (locale != null) { |
2176 _queryParams["locale"] = [locale]; | 2111 _queryParams["locale"] = [locale]; |
2177 } | 2112 } |
2178 | 2113 |
2179 | 2114 |
2180 _url = 'onboarding/listCategories'; | 2115 _url = 'onboarding/listCategories'; |
2181 | 2116 |
2182 var _response = _requester.request(_url, | 2117 var _response = _requester.request(_url, |
(...skipping 16 matching lines...) Expand all Loading... |
2199 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is en-US | 2134 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is en-US |
2200 * if unset. | 2135 * if unset. |
2201 * | 2136 * |
2202 * [pageSize] - Number of maximum results per page to be included in the | 2137 * [pageSize] - Number of maximum results per page to be included in the |
2203 * response. | 2138 * response. |
2204 * | 2139 * |
2205 * [pageToken] - The value of the nextToken from the previous page. | 2140 * [pageToken] - The value of the nextToken from the previous page. |
2206 * | 2141 * |
2207 * Completes with a [Volume2]. | 2142 * Completes with a [Volume2]. |
2208 * | 2143 * |
2209 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2144 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2210 * error. | 2145 * error. |
2211 * | 2146 * |
2212 * If the used [http.Client] completes with an error when making a REST call, | 2147 * If the used [http.Client] completes with an error when making a REST call, |
2213 * this method will complete with the same error. | 2148 * this method will complete with the same error. |
2214 */ | 2149 */ |
2215 async.Future<Volume2> listCategoryVolumes({core.List<core.String> categoryId,
core.String locale, core.int pageSize, core.String pageToken}) { | 2150 async.Future<Volume2> listCategoryVolumes({core.List<core.String> categoryId,
core.String locale, core.int pageSize, core.String pageToken}) { |
2216 var _url = null; | 2151 var _url = null; |
2217 var _queryParams = new core.Map(); | 2152 var _queryParams = new core.Map(); |
2218 var _uploadMedia = null; | 2153 var _uploadMedia = null; |
2219 var _uploadOptions = null; | 2154 var _uploadOptions = null; |
2220 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2155 var _downloadOptions = commons.DownloadOptions.Metadata; |
2221 var _body = null; | 2156 var _body = null; |
2222 | 2157 |
2223 if (categoryId != null) { | 2158 if (categoryId != null) { |
2224 _queryParams["categoryId"] = categoryId; | 2159 _queryParams["categoryId"] = categoryId; |
2225 } | 2160 } |
2226 if (locale != null) { | 2161 if (locale != null) { |
2227 _queryParams["locale"] = [locale]; | 2162 _queryParams["locale"] = [locale]; |
2228 } | 2163 } |
2229 if (pageSize != null) { | 2164 if (pageSize != null) { |
2230 _queryParams["pageSize"] = ["${pageSize}"]; | 2165 _queryParams["pageSize"] = ["${pageSize}"]; |
(...skipping 11 matching lines...) Expand all Loading... |
2242 queryParams: _queryParams, | 2177 queryParams: _queryParams, |
2243 uploadOptions: _uploadOptions, | 2178 uploadOptions: _uploadOptions, |
2244 uploadMedia: _uploadMedia, | 2179 uploadMedia: _uploadMedia, |
2245 downloadOptions: _downloadOptions); | 2180 downloadOptions: _downloadOptions); |
2246 return _response.then((data) => new Volume2.fromJson(data)); | 2181 return _response.then((data) => new Volume2.fromJson(data)); |
2247 } | 2182 } |
2248 | 2183 |
2249 } | 2184 } |
2250 | 2185 |
2251 | 2186 |
2252 /** Not documented yet. */ | |
2253 class PromoofferResourceApi { | 2187 class PromoofferResourceApi { |
2254 final common_internal.ApiRequester _requester; | 2188 final commons.ApiRequester _requester; |
2255 | 2189 |
2256 PromoofferResourceApi(common_internal.ApiRequester client) : | 2190 PromoofferResourceApi(commons.ApiRequester client) : |
2257 _requester = client; | 2191 _requester = client; |
2258 | 2192 |
2259 /** | 2193 /** |
2260 * Not documented yet. | |
2261 * | |
2262 * Request parameters: | 2194 * Request parameters: |
2263 * | 2195 * |
2264 * [androidId] - device android_id | 2196 * [androidId] - device android_id |
2265 * | 2197 * |
2266 * [device] - device device | 2198 * [device] - device device |
2267 * | 2199 * |
2268 * [manufacturer] - device manufacturer | 2200 * [manufacturer] - device manufacturer |
2269 * | 2201 * |
2270 * [model] - device model | 2202 * [model] - device model |
2271 * | 2203 * |
2272 * [offerId] - null | 2204 * [offerId] - null |
2273 * | 2205 * |
2274 * [product] - device product | 2206 * [product] - device product |
2275 * | 2207 * |
2276 * [serial] - device serial | 2208 * [serial] - device serial |
2277 * | 2209 * |
2278 * [volumeId] - Volume id to exercise the offer | 2210 * [volumeId] - Volume id to exercise the offer |
2279 * | 2211 * |
2280 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2212 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2281 * error. | 2213 * error. |
2282 * | 2214 * |
2283 * If the used [http.Client] completes with an error when making a REST call, | 2215 * If the used [http.Client] completes with an error when making a REST call, |
2284 * this method will complete with the same error. | 2216 * this method will complete with the same error. |
2285 */ | 2217 */ |
2286 async.Future accept({core.String androidId, core.String device, core.String ma
nufacturer, core.String model, core.String offerId, core.String product, core.St
ring serial, core.String volumeId}) { | 2218 async.Future accept({core.String androidId, core.String device, core.String ma
nufacturer, core.String model, core.String offerId, core.String product, core.St
ring serial, core.String volumeId}) { |
2287 var _url = null; | 2219 var _url = null; |
2288 var _queryParams = new core.Map(); | 2220 var _queryParams = new core.Map(); |
2289 var _uploadMedia = null; | 2221 var _uploadMedia = null; |
2290 var _uploadOptions = null; | 2222 var _uploadOptions = null; |
2291 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2223 var _downloadOptions = commons.DownloadOptions.Metadata; |
2292 var _body = null; | 2224 var _body = null; |
2293 | 2225 |
2294 if (androidId != null) { | 2226 if (androidId != null) { |
2295 _queryParams["androidId"] = [androidId]; | 2227 _queryParams["androidId"] = [androidId]; |
2296 } | 2228 } |
2297 if (device != null) { | 2229 if (device != null) { |
2298 _queryParams["device"] = [device]; | 2230 _queryParams["device"] = [device]; |
2299 } | 2231 } |
2300 if (manufacturer != null) { | 2232 if (manufacturer != null) { |
2301 _queryParams["manufacturer"] = [manufacturer]; | 2233 _queryParams["manufacturer"] = [manufacturer]; |
(...skipping 22 matching lines...) Expand all Loading... |
2324 "POST", | 2256 "POST", |
2325 body: _body, | 2257 body: _body, |
2326 queryParams: _queryParams, | 2258 queryParams: _queryParams, |
2327 uploadOptions: _uploadOptions, | 2259 uploadOptions: _uploadOptions, |
2328 uploadMedia: _uploadMedia, | 2260 uploadMedia: _uploadMedia, |
2329 downloadOptions: _downloadOptions); | 2261 downloadOptions: _downloadOptions); |
2330 return _response.then((data) => null); | 2262 return _response.then((data) => null); |
2331 } | 2263 } |
2332 | 2264 |
2333 /** | 2265 /** |
2334 * Not documented yet. | |
2335 * | |
2336 * Request parameters: | 2266 * Request parameters: |
2337 * | 2267 * |
2338 * [androidId] - device android_id | 2268 * [androidId] - device android_id |
2339 * | 2269 * |
2340 * [device] - device device | 2270 * [device] - device device |
2341 * | 2271 * |
2342 * [manufacturer] - device manufacturer | 2272 * [manufacturer] - device manufacturer |
2343 * | 2273 * |
2344 * [model] - device model | 2274 * [model] - device model |
2345 * | 2275 * |
2346 * [offerId] - Offer to dimiss | 2276 * [offerId] - Offer to dimiss |
2347 * | 2277 * |
2348 * [product] - device product | 2278 * [product] - device product |
2349 * | 2279 * |
2350 * [serial] - device serial | 2280 * [serial] - device serial |
2351 * | 2281 * |
2352 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2282 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2353 * error. | 2283 * error. |
2354 * | 2284 * |
2355 * If the used [http.Client] completes with an error when making a REST call, | 2285 * If the used [http.Client] completes with an error when making a REST call, |
2356 * this method will complete with the same error. | 2286 * this method will complete with the same error. |
2357 */ | 2287 */ |
2358 async.Future dismiss({core.String androidId, core.String device, core.String m
anufacturer, core.String model, core.String offerId, core.String product, core.S
tring serial}) { | 2288 async.Future dismiss({core.String androidId, core.String device, core.String m
anufacturer, core.String model, core.String offerId, core.String product, core.S
tring serial}) { |
2359 var _url = null; | 2289 var _url = null; |
2360 var _queryParams = new core.Map(); | 2290 var _queryParams = new core.Map(); |
2361 var _uploadMedia = null; | 2291 var _uploadMedia = null; |
2362 var _uploadOptions = null; | 2292 var _uploadOptions = null; |
2363 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2293 var _downloadOptions = commons.DownloadOptions.Metadata; |
2364 var _body = null; | 2294 var _body = null; |
2365 | 2295 |
2366 if (androidId != null) { | 2296 if (androidId != null) { |
2367 _queryParams["androidId"] = [androidId]; | 2297 _queryParams["androidId"] = [androidId]; |
2368 } | 2298 } |
2369 if (device != null) { | 2299 if (device != null) { |
2370 _queryParams["device"] = [device]; | 2300 _queryParams["device"] = [device]; |
2371 } | 2301 } |
2372 if (manufacturer != null) { | 2302 if (manufacturer != null) { |
2373 _queryParams["manufacturer"] = [manufacturer]; | 2303 _queryParams["manufacturer"] = [manufacturer]; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2411 * [manufacturer] - device manufacturer | 2341 * [manufacturer] - device manufacturer |
2412 * | 2342 * |
2413 * [model] - device model | 2343 * [model] - device model |
2414 * | 2344 * |
2415 * [product] - device product | 2345 * [product] - device product |
2416 * | 2346 * |
2417 * [serial] - device serial | 2347 * [serial] - device serial |
2418 * | 2348 * |
2419 * Completes with a [Offers]. | 2349 * Completes with a [Offers]. |
2420 * | 2350 * |
2421 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2351 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2422 * error. | 2352 * error. |
2423 * | 2353 * |
2424 * If the used [http.Client] completes with an error when making a REST call, | 2354 * If the used [http.Client] completes with an error when making a REST call, |
2425 * this method will complete with the same error. | 2355 * this method will complete with the same error. |
2426 */ | 2356 */ |
2427 async.Future<Offers> get({core.String androidId, core.String device, core.Stri
ng manufacturer, core.String model, core.String product, core.String serial}) { | 2357 async.Future<Offers> get({core.String androidId, core.String device, core.Stri
ng manufacturer, core.String model, core.String product, core.String serial}) { |
2428 var _url = null; | 2358 var _url = null; |
2429 var _queryParams = new core.Map(); | 2359 var _queryParams = new core.Map(); |
2430 var _uploadMedia = null; | 2360 var _uploadMedia = null; |
2431 var _uploadOptions = null; | 2361 var _uploadOptions = null; |
2432 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2362 var _downloadOptions = commons.DownloadOptions.Metadata; |
2433 var _body = null; | 2363 var _body = null; |
2434 | 2364 |
2435 if (androidId != null) { | 2365 if (androidId != null) { |
2436 _queryParams["androidId"] = [androidId]; | 2366 _queryParams["androidId"] = [androidId]; |
2437 } | 2367 } |
2438 if (device != null) { | 2368 if (device != null) { |
2439 _queryParams["device"] = [device]; | 2369 _queryParams["device"] = [device]; |
2440 } | 2370 } |
2441 if (manufacturer != null) { | 2371 if (manufacturer != null) { |
2442 _queryParams["manufacturer"] = [manufacturer]; | 2372 _queryParams["manufacturer"] = [manufacturer]; |
(...skipping 17 matching lines...) Expand all Loading... |
2460 queryParams: _queryParams, | 2390 queryParams: _queryParams, |
2461 uploadOptions: _uploadOptions, | 2391 uploadOptions: _uploadOptions, |
2462 uploadMedia: _uploadMedia, | 2392 uploadMedia: _uploadMedia, |
2463 downloadOptions: _downloadOptions); | 2393 downloadOptions: _downloadOptions); |
2464 return _response.then((data) => new Offers.fromJson(data)); | 2394 return _response.then((data) => new Offers.fromJson(data)); |
2465 } | 2395 } |
2466 | 2396 |
2467 } | 2397 } |
2468 | 2398 |
2469 | 2399 |
2470 /** Not documented yet. */ | |
2471 class VolumesResourceApi { | 2400 class VolumesResourceApi { |
2472 final common_internal.ApiRequester _requester; | 2401 final commons.ApiRequester _requester; |
2473 | 2402 |
2474 VolumesAssociatedResourceApi get associated => new VolumesAssociatedResourceAp
i(_requester); | 2403 VolumesAssociatedResourceApi get associated => new VolumesAssociatedResourceAp
i(_requester); |
2475 VolumesMybooksResourceApi get mybooks => new VolumesMybooksResourceApi(_reques
ter); | 2404 VolumesMybooksResourceApi get mybooks => new VolumesMybooksResourceApi(_reques
ter); |
2476 VolumesRecommendedResourceApi get recommended => new VolumesRecommendedResourc
eApi(_requester); | 2405 VolumesRecommendedResourceApi get recommended => new VolumesRecommendedResourc
eApi(_requester); |
2477 VolumesUseruploadedResourceApi get useruploaded => new VolumesUseruploadedReso
urceApi(_requester); | 2406 VolumesUseruploadedResourceApi get useruploaded => new VolumesUseruploadedReso
urceApi(_requester); |
2478 | 2407 |
2479 VolumesResourceApi(common_internal.ApiRequester client) : | 2408 VolumesResourceApi(commons.ApiRequester client) : |
2480 _requester = client; | 2409 _requester = client; |
2481 | 2410 |
2482 /** | 2411 /** |
2483 * Gets volume information for a single volume. | 2412 * Gets volume information for a single volume. |
2484 * | 2413 * |
2485 * Request parameters: | 2414 * Request parameters: |
2486 * | 2415 * |
2487 * [volumeId] - ID of volume to retrieve. | 2416 * [volumeId] - ID of volume to retrieve. |
2488 * | 2417 * |
2489 * [country] - ISO-3166-1 code to override the IP-based location. | 2418 * [country] - ISO-3166-1 code to override the IP-based location. |
2490 * | 2419 * |
2491 * [partner] - Brand results for partner ID. | 2420 * [partner] - Brand results for partner ID. |
2492 * | 2421 * |
2493 * [projection] - Restrict information returned to a set of selected fields. | 2422 * [projection] - Restrict information returned to a set of selected fields. |
2494 * Possible string values are: | 2423 * Possible string values are: |
2495 * - "full" : Includes all volume data. | 2424 * - "full" : Includes all volume data. |
2496 * - "lite" : Includes a subset of fields in volumeInfo and accessInfo. | 2425 * - "lite" : Includes a subset of fields in volumeInfo and accessInfo. |
2497 * | 2426 * |
2498 * [source] - String to identify the originator of this request. | 2427 * [source] - String to identify the originator of this request. |
2499 * | 2428 * |
2500 * [userLibraryConsistentRead] - null | 2429 * [userLibraryConsistentRead] - null |
2501 * | 2430 * |
2502 * Completes with a [Volume]. | 2431 * Completes with a [Volume]. |
2503 * | 2432 * |
2504 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2433 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2505 * error. | 2434 * error. |
2506 * | 2435 * |
2507 * If the used [http.Client] completes with an error when making a REST call, | 2436 * If the used [http.Client] completes with an error when making a REST call, |
2508 * this method will complete with the same error. | 2437 * this method will complete with the same error. |
2509 */ | 2438 */ |
2510 async.Future<Volume> get(core.String volumeId, {core.String country, core.Stri
ng partner, core.String projection, core.String source, core.bool userLibraryCon
sistentRead}) { | 2439 async.Future<Volume> get(core.String volumeId, {core.String country, core.Stri
ng partner, core.String projection, core.String source, core.bool userLibraryCon
sistentRead}) { |
2511 var _url = null; | 2440 var _url = null; |
2512 var _queryParams = new core.Map(); | 2441 var _queryParams = new core.Map(); |
2513 var _uploadMedia = null; | 2442 var _uploadMedia = null; |
2514 var _uploadOptions = null; | 2443 var _uploadOptions = null; |
2515 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2444 var _downloadOptions = commons.DownloadOptions.Metadata; |
2516 var _body = null; | 2445 var _body = null; |
2517 | 2446 |
2518 if (volumeId == null) { | 2447 if (volumeId == null) { |
2519 throw new core.ArgumentError("Parameter volumeId is required."); | 2448 throw new core.ArgumentError("Parameter volumeId is required."); |
2520 } | 2449 } |
2521 if (country != null) { | 2450 if (country != null) { |
2522 _queryParams["country"] = [country]; | 2451 _queryParams["country"] = [country]; |
2523 } | 2452 } |
2524 if (partner != null) { | 2453 if (partner != null) { |
2525 _queryParams["partner"] = [partner]; | 2454 _queryParams["partner"] = [partner]; |
2526 } | 2455 } |
2527 if (projection != null) { | 2456 if (projection != null) { |
2528 _queryParams["projection"] = [projection]; | 2457 _queryParams["projection"] = [projection]; |
2529 } | 2458 } |
2530 if (source != null) { | 2459 if (source != null) { |
2531 _queryParams["source"] = [source]; | 2460 _queryParams["source"] = [source]; |
2532 } | 2461 } |
2533 if (userLibraryConsistentRead != null) { | 2462 if (userLibraryConsistentRead != null) { |
2534 _queryParams["user_library_consistent_read"] = ["${userLibraryConsistentRe
ad}"]; | 2463 _queryParams["user_library_consistent_read"] = ["${userLibraryConsistentRe
ad}"]; |
2535 } | 2464 } |
2536 | 2465 |
2537 | 2466 |
2538 _url = 'volumes/' + common_internal.Escaper.ecapeVariable('$volumeId'); | 2467 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId'); |
2539 | 2468 |
2540 var _response = _requester.request(_url, | 2469 var _response = _requester.request(_url, |
2541 "GET", | 2470 "GET", |
2542 body: _body, | 2471 body: _body, |
2543 queryParams: _queryParams, | 2472 queryParams: _queryParams, |
2544 uploadOptions: _uploadOptions, | 2473 uploadOptions: _uploadOptions, |
2545 uploadMedia: _uploadMedia, | 2474 uploadMedia: _uploadMedia, |
2546 downloadOptions: _downloadOptions); | 2475 downloadOptions: _downloadOptions); |
2547 return _response.then((data) => new Volume.fromJson(data)); | 2476 return _response.then((data) => new Volume.fromJson(data)); |
2548 } | 2477 } |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2596 * | 2525 * |
2597 * [showPreorders] - Set to true to show books available for preorder. | 2526 * [showPreorders] - Set to true to show books available for preorder. |
2598 * Defaults to false. | 2527 * Defaults to false. |
2599 * | 2528 * |
2600 * [source] - String to identify the originator of this request. | 2529 * [source] - String to identify the originator of this request. |
2601 * | 2530 * |
2602 * [startIndex] - Index of the first result to return (starts at 0) | 2531 * [startIndex] - Index of the first result to return (starts at 0) |
2603 * | 2532 * |
2604 * Completes with a [Volumes]. | 2533 * Completes with a [Volumes]. |
2605 * | 2534 * |
2606 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2535 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2607 * error. | 2536 * error. |
2608 * | 2537 * |
2609 * If the used [http.Client] completes with an error when making a REST call, | 2538 * If the used [http.Client] completes with an error when making a REST call, |
2610 * this method will complete with the same error. | 2539 * this method will complete with the same error. |
2611 */ | 2540 */ |
2612 async.Future<Volumes> list(core.String q, {core.String download, core.String f
ilter, core.String langRestrict, core.String libraryRestrict, core.int maxResult
s, core.String orderBy, core.String partner, core.String printType, core.String
projection, core.bool showPreorders, core.String source, core.int startIndex}) { | 2541 async.Future<Volumes> list(core.String q, {core.String download, core.String f
ilter, core.String langRestrict, core.String libraryRestrict, core.int maxResult
s, core.String orderBy, core.String partner, core.String printType, core.String
projection, core.bool showPreorders, core.String source, core.int startIndex}) { |
2613 var _url = null; | 2542 var _url = null; |
2614 var _queryParams = new core.Map(); | 2543 var _queryParams = new core.Map(); |
2615 var _uploadMedia = null; | 2544 var _uploadMedia = null; |
2616 var _uploadOptions = null; | 2545 var _uploadOptions = null; |
2617 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2546 var _downloadOptions = commons.DownloadOptions.Metadata; |
2618 var _body = null; | 2547 var _body = null; |
2619 | 2548 |
2620 if (q == null) { | 2549 if (q == null) { |
2621 throw new core.ArgumentError("Parameter q is required."); | 2550 throw new core.ArgumentError("Parameter q is required."); |
2622 } | 2551 } |
2623 _queryParams["q"] = [q]; | 2552 _queryParams["q"] = [q]; |
2624 if (download != null) { | 2553 if (download != null) { |
2625 _queryParams["download"] = [download]; | 2554 _queryParams["download"] = [download]; |
2626 } | 2555 } |
2627 if (filter != null) { | 2556 if (filter != null) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2667 queryParams: _queryParams, | 2596 queryParams: _queryParams, |
2668 uploadOptions: _uploadOptions, | 2597 uploadOptions: _uploadOptions, |
2669 uploadMedia: _uploadMedia, | 2598 uploadMedia: _uploadMedia, |
2670 downloadOptions: _downloadOptions); | 2599 downloadOptions: _downloadOptions); |
2671 return _response.then((data) => new Volumes.fromJson(data)); | 2600 return _response.then((data) => new Volumes.fromJson(data)); |
2672 } | 2601 } |
2673 | 2602 |
2674 } | 2603 } |
2675 | 2604 |
2676 | 2605 |
2677 /** Not documented yet. */ | |
2678 class VolumesAssociatedResourceApi { | 2606 class VolumesAssociatedResourceApi { |
2679 final common_internal.ApiRequester _requester; | 2607 final commons.ApiRequester _requester; |
2680 | 2608 |
2681 VolumesAssociatedResourceApi(common_internal.ApiRequester client) : | 2609 VolumesAssociatedResourceApi(commons.ApiRequester client) : |
2682 _requester = client; | 2610 _requester = client; |
2683 | 2611 |
2684 /** | 2612 /** |
2685 * Return a list of associated books. | 2613 * Return a list of associated books. |
2686 * | 2614 * |
2687 * Request parameters: | 2615 * Request parameters: |
2688 * | 2616 * |
2689 * [volumeId] - ID of the source volume. | 2617 * [volumeId] - ID of the source volume. |
2690 * | 2618 * |
2691 * [association] - Association type. | 2619 * [association] - Association type. |
2692 * Possible string values are: | 2620 * Possible string values are: |
2693 * - "end-of-sample" : Recommendations for display end-of-sample. | 2621 * - "end-of-sample" : Recommendations for display end-of-sample. |
2694 * - "end-of-volume" : Recommendations for display end-of-volume. | 2622 * - "end-of-volume" : Recommendations for display end-of-volume. |
2695 * - "related-for-play" : Related volumes for Play Store. | 2623 * - "related-for-play" : Related volumes for Play Store. |
2696 * | 2624 * |
2697 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 2625 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
2698 * Used for generating recommendations. | 2626 * Used for generating recommendations. |
2699 * | 2627 * |
2700 * [source] - String to identify the originator of this request. | 2628 * [source] - String to identify the originator of this request. |
2701 * | 2629 * |
2702 * Completes with a [Volumes]. | 2630 * Completes with a [Volumes]. |
2703 * | 2631 * |
2704 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2632 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2705 * error. | 2633 * error. |
2706 * | 2634 * |
2707 * If the used [http.Client] completes with an error when making a REST call, | 2635 * If the used [http.Client] completes with an error when making a REST call, |
2708 * this method will complete with the same error. | 2636 * this method will complete with the same error. |
2709 */ | 2637 */ |
2710 async.Future<Volumes> list(core.String volumeId, {core.String association, cor
e.String locale, core.String source}) { | 2638 async.Future<Volumes> list(core.String volumeId, {core.String association, cor
e.String locale, core.String source}) { |
2711 var _url = null; | 2639 var _url = null; |
2712 var _queryParams = new core.Map(); | 2640 var _queryParams = new core.Map(); |
2713 var _uploadMedia = null; | 2641 var _uploadMedia = null; |
2714 var _uploadOptions = null; | 2642 var _uploadOptions = null; |
2715 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2643 var _downloadOptions = commons.DownloadOptions.Metadata; |
2716 var _body = null; | 2644 var _body = null; |
2717 | 2645 |
2718 if (volumeId == null) { | 2646 if (volumeId == null) { |
2719 throw new core.ArgumentError("Parameter volumeId is required."); | 2647 throw new core.ArgumentError("Parameter volumeId is required."); |
2720 } | 2648 } |
2721 if (association != null) { | 2649 if (association != null) { |
2722 _queryParams["association"] = [association]; | 2650 _queryParams["association"] = [association]; |
2723 } | 2651 } |
2724 if (locale != null) { | 2652 if (locale != null) { |
2725 _queryParams["locale"] = [locale]; | 2653 _queryParams["locale"] = [locale]; |
2726 } | 2654 } |
2727 if (source != null) { | 2655 if (source != null) { |
2728 _queryParams["source"] = [source]; | 2656 _queryParams["source"] = [source]; |
2729 } | 2657 } |
2730 | 2658 |
2731 | 2659 |
2732 _url = 'volumes/' + common_internal.Escaper.ecapeVariable('$volumeId') + '/a
ssociated'; | 2660 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/associate
d'; |
2733 | 2661 |
2734 var _response = _requester.request(_url, | 2662 var _response = _requester.request(_url, |
2735 "GET", | 2663 "GET", |
2736 body: _body, | 2664 body: _body, |
2737 queryParams: _queryParams, | 2665 queryParams: _queryParams, |
2738 uploadOptions: _uploadOptions, | 2666 uploadOptions: _uploadOptions, |
2739 uploadMedia: _uploadMedia, | 2667 uploadMedia: _uploadMedia, |
2740 downloadOptions: _downloadOptions); | 2668 downloadOptions: _downloadOptions); |
2741 return _response.then((data) => new Volumes.fromJson(data)); | 2669 return _response.then((data) => new Volumes.fromJson(data)); |
2742 } | 2670 } |
2743 | 2671 |
2744 } | 2672 } |
2745 | 2673 |
2746 | 2674 |
2747 /** Not documented yet. */ | |
2748 class VolumesMybooksResourceApi { | 2675 class VolumesMybooksResourceApi { |
2749 final common_internal.ApiRequester _requester; | 2676 final commons.ApiRequester _requester; |
2750 | 2677 |
2751 VolumesMybooksResourceApi(common_internal.ApiRequester client) : | 2678 VolumesMybooksResourceApi(commons.ApiRequester client) : |
2752 _requester = client; | 2679 _requester = client; |
2753 | 2680 |
2754 /** | 2681 /** |
2755 * Return a list of books in My Library. | 2682 * Return a list of books in My Library. |
2756 * | 2683 * |
2757 * Request parameters: | 2684 * Request parameters: |
2758 * | 2685 * |
2759 * [acquireMethod] - How the book was aquired | 2686 * [acquireMethod] - How the book was aquired |
2760 * | 2687 * |
2761 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used | 2688 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used |
2762 * for generating recommendations. | 2689 * for generating recommendations. |
2763 * | 2690 * |
2764 * [maxResults] - Maximum number of results to return. | 2691 * [maxResults] - Maximum number of results to return. |
2765 * Value must be between "0" and "100". | 2692 * Value must be between "0" and "100". |
2766 * | 2693 * |
2767 * [processingState] - The processing state of the user uploaded volumes to be | 2694 * [processingState] - The processing state of the user uploaded volumes to be |
2768 * returned. Applicable only if the UPLOADED is specified in the | 2695 * returned. Applicable only if the UPLOADED is specified in the |
2769 * acquireMethod. | 2696 * acquireMethod. |
2770 * | 2697 * |
2771 * [source] - String to identify the originator of this request. | 2698 * [source] - String to identify the originator of this request. |
2772 * | 2699 * |
2773 * [startIndex] - Index of the first result to return (starts at 0) | 2700 * [startIndex] - Index of the first result to return (starts at 0) |
2774 * | 2701 * |
2775 * Completes with a [Volumes]. | 2702 * Completes with a [Volumes]. |
2776 * | 2703 * |
2777 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2704 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2778 * error. | 2705 * error. |
2779 * | 2706 * |
2780 * If the used [http.Client] completes with an error when making a REST call, | 2707 * If the used [http.Client] completes with an error when making a REST call, |
2781 * this method will complete with the same error. | 2708 * this method will complete with the same error. |
2782 */ | 2709 */ |
2783 async.Future<Volumes> list({core.List<core.String> acquireMethod, core.String
locale, core.int maxResults, core.List<core.String> processingState, core.String
source, core.int startIndex}) { | 2710 async.Future<Volumes> list({core.List<core.String> acquireMethod, core.String
locale, core.int maxResults, core.List<core.String> processingState, core.String
source, core.int startIndex}) { |
2784 var _url = null; | 2711 var _url = null; |
2785 var _queryParams = new core.Map(); | 2712 var _queryParams = new core.Map(); |
2786 var _uploadMedia = null; | 2713 var _uploadMedia = null; |
2787 var _uploadOptions = null; | 2714 var _uploadOptions = null; |
2788 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2715 var _downloadOptions = commons.DownloadOptions.Metadata; |
2789 var _body = null; | 2716 var _body = null; |
2790 | 2717 |
2791 if (acquireMethod != null) { | 2718 if (acquireMethod != null) { |
2792 _queryParams["acquireMethod"] = acquireMethod; | 2719 _queryParams["acquireMethod"] = acquireMethod; |
2793 } | 2720 } |
2794 if (locale != null) { | 2721 if (locale != null) { |
2795 _queryParams["locale"] = [locale]; | 2722 _queryParams["locale"] = [locale]; |
2796 } | 2723 } |
2797 if (maxResults != null) { | 2724 if (maxResults != null) { |
2798 _queryParams["maxResults"] = ["${maxResults}"]; | 2725 _queryParams["maxResults"] = ["${maxResults}"]; |
(...skipping 17 matching lines...) Expand all Loading... |
2816 queryParams: _queryParams, | 2743 queryParams: _queryParams, |
2817 uploadOptions: _uploadOptions, | 2744 uploadOptions: _uploadOptions, |
2818 uploadMedia: _uploadMedia, | 2745 uploadMedia: _uploadMedia, |
2819 downloadOptions: _downloadOptions); | 2746 downloadOptions: _downloadOptions); |
2820 return _response.then((data) => new Volumes.fromJson(data)); | 2747 return _response.then((data) => new Volumes.fromJson(data)); |
2821 } | 2748 } |
2822 | 2749 |
2823 } | 2750 } |
2824 | 2751 |
2825 | 2752 |
2826 /** Not documented yet. */ | |
2827 class VolumesRecommendedResourceApi { | 2753 class VolumesRecommendedResourceApi { |
2828 final common_internal.ApiRequester _requester; | 2754 final commons.ApiRequester _requester; |
2829 | 2755 |
2830 VolumesRecommendedResourceApi(common_internal.ApiRequester client) : | 2756 VolumesRecommendedResourceApi(commons.ApiRequester client) : |
2831 _requester = client; | 2757 _requester = client; |
2832 | 2758 |
2833 /** | 2759 /** |
2834 * Return a list of recommended books for the current user. | 2760 * Return a list of recommended books for the current user. |
2835 * | 2761 * |
2836 * Request parameters: | 2762 * Request parameters: |
2837 * | 2763 * |
2838 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 2764 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
2839 * Used for generating recommendations. | 2765 * Used for generating recommendations. |
2840 * | 2766 * |
2841 * [source] - String to identify the originator of this request. | 2767 * [source] - String to identify the originator of this request. |
2842 * | 2768 * |
2843 * Completes with a [Volumes]. | 2769 * Completes with a [Volumes]. |
2844 * | 2770 * |
2845 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2771 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2846 * error. | 2772 * error. |
2847 * | 2773 * |
2848 * If the used [http.Client] completes with an error when making a REST call, | 2774 * If the used [http.Client] completes with an error when making a REST call, |
2849 * this method will complete with the same error. | 2775 * this method will complete with the same error. |
2850 */ | 2776 */ |
2851 async.Future<Volumes> list({core.String locale, core.String source}) { | 2777 async.Future<Volumes> list({core.String locale, core.String source}) { |
2852 var _url = null; | 2778 var _url = null; |
2853 var _queryParams = new core.Map(); | 2779 var _queryParams = new core.Map(); |
2854 var _uploadMedia = null; | 2780 var _uploadMedia = null; |
2855 var _uploadOptions = null; | 2781 var _uploadOptions = null; |
2856 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2782 var _downloadOptions = commons.DownloadOptions.Metadata; |
2857 var _body = null; | 2783 var _body = null; |
2858 | 2784 |
2859 if (locale != null) { | 2785 if (locale != null) { |
2860 _queryParams["locale"] = [locale]; | 2786 _queryParams["locale"] = [locale]; |
2861 } | 2787 } |
2862 if (source != null) { | 2788 if (source != null) { |
2863 _queryParams["source"] = [source]; | 2789 _queryParams["source"] = [source]; |
2864 } | 2790 } |
2865 | 2791 |
2866 | 2792 |
(...skipping 21 matching lines...) Expand all Loading... |
2888 * | 2814 * |
2889 * [volumeId] - ID of the source volume. | 2815 * [volumeId] - ID of the source volume. |
2890 * | 2816 * |
2891 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 2817 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
2892 * Used for generating recommendations. | 2818 * Used for generating recommendations. |
2893 * | 2819 * |
2894 * [source] - String to identify the originator of this request. | 2820 * [source] - String to identify the originator of this request. |
2895 * | 2821 * |
2896 * Completes with a [BooksVolumesRecommendedRateResponse]. | 2822 * Completes with a [BooksVolumesRecommendedRateResponse]. |
2897 * | 2823 * |
2898 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2824 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2899 * error. | 2825 * error. |
2900 * | 2826 * |
2901 * If the used [http.Client] completes with an error when making a REST call, | 2827 * If the used [http.Client] completes with an error when making a REST call, |
2902 * this method will complete with the same error. | 2828 * this method will complete with the same error. |
2903 */ | 2829 */ |
2904 async.Future<BooksVolumesRecommendedRateResponse> rate(core.String rating, cor
e.String volumeId, {core.String locale, core.String source}) { | 2830 async.Future<BooksVolumesRecommendedRateResponse> rate(core.String rating, cor
e.String volumeId, {core.String locale, core.String source}) { |
2905 var _url = null; | 2831 var _url = null; |
2906 var _queryParams = new core.Map(); | 2832 var _queryParams = new core.Map(); |
2907 var _uploadMedia = null; | 2833 var _uploadMedia = null; |
2908 var _uploadOptions = null; | 2834 var _uploadOptions = null; |
2909 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2835 var _downloadOptions = commons.DownloadOptions.Metadata; |
2910 var _body = null; | 2836 var _body = null; |
2911 | 2837 |
2912 if (rating == null) { | 2838 if (rating == null) { |
2913 throw new core.ArgumentError("Parameter rating is required."); | 2839 throw new core.ArgumentError("Parameter rating is required."); |
2914 } | 2840 } |
2915 _queryParams["rating"] = [rating]; | 2841 _queryParams["rating"] = [rating]; |
2916 if (volumeId == null) { | 2842 if (volumeId == null) { |
2917 throw new core.ArgumentError("Parameter volumeId is required."); | 2843 throw new core.ArgumentError("Parameter volumeId is required."); |
2918 } | 2844 } |
2919 _queryParams["volumeId"] = [volumeId]; | 2845 _queryParams["volumeId"] = [volumeId]; |
(...skipping 13 matching lines...) Expand all Loading... |
2933 queryParams: _queryParams, | 2859 queryParams: _queryParams, |
2934 uploadOptions: _uploadOptions, | 2860 uploadOptions: _uploadOptions, |
2935 uploadMedia: _uploadMedia, | 2861 uploadMedia: _uploadMedia, |
2936 downloadOptions: _downloadOptions); | 2862 downloadOptions: _downloadOptions); |
2937 return _response.then((data) => new BooksVolumesRecommendedRateResponse.from
Json(data)); | 2863 return _response.then((data) => new BooksVolumesRecommendedRateResponse.from
Json(data)); |
2938 } | 2864 } |
2939 | 2865 |
2940 } | 2866 } |
2941 | 2867 |
2942 | 2868 |
2943 /** Not documented yet. */ | |
2944 class VolumesUseruploadedResourceApi { | 2869 class VolumesUseruploadedResourceApi { |
2945 final common_internal.ApiRequester _requester; | 2870 final commons.ApiRequester _requester; |
2946 | 2871 |
2947 VolumesUseruploadedResourceApi(common_internal.ApiRequester client) : | 2872 VolumesUseruploadedResourceApi(commons.ApiRequester client) : |
2948 _requester = client; | 2873 _requester = client; |
2949 | 2874 |
2950 /** | 2875 /** |
2951 * Return a list of books uploaded by the current user. | 2876 * Return a list of books uploaded by the current user. |
2952 * | 2877 * |
2953 * Request parameters: | 2878 * Request parameters: |
2954 * | 2879 * |
2955 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 2880 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
2956 * Used for generating recommendations. | 2881 * Used for generating recommendations. |
2957 * | 2882 * |
2958 * [maxResults] - Maximum number of results to return. | 2883 * [maxResults] - Maximum number of results to return. |
2959 * Value must be between "0" and "40". | 2884 * Value must be between "0" and "40". |
2960 * | 2885 * |
2961 * [processingState] - The processing state of the user uploaded volumes to be | 2886 * [processingState] - The processing state of the user uploaded volumes to be |
2962 * returned. | 2887 * returned. |
2963 * | 2888 * |
2964 * [source] - String to identify the originator of this request. | 2889 * [source] - String to identify the originator of this request. |
2965 * | 2890 * |
2966 * [startIndex] - Index of the first result to return (starts at 0) | 2891 * [startIndex] - Index of the first result to return (starts at 0) |
2967 * | 2892 * |
2968 * [volumeId] - The ids of the volumes to be returned. If not specified all | 2893 * [volumeId] - The ids of the volumes to be returned. If not specified all |
2969 * that match the processingState are returned. | 2894 * that match the processingState are returned. |
2970 * | 2895 * |
2971 * Completes with a [Volumes]. | 2896 * Completes with a [Volumes]. |
2972 * | 2897 * |
2973 * Completes with a [common_1.ApiRequestError] if the API endpoint returned an | 2898 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2974 * error. | 2899 * error. |
2975 * | 2900 * |
2976 * If the used [http.Client] completes with an error when making a REST call, | 2901 * If the used [http.Client] completes with an error when making a REST call, |
2977 * this method will complete with the same error. | 2902 * this method will complete with the same error. |
2978 */ | 2903 */ |
2979 async.Future<Volumes> list({core.String locale, core.int maxResults, core.List
<core.String> processingState, core.String source, core.int startIndex, core.Lis
t<core.String> volumeId}) { | 2904 async.Future<Volumes> list({core.String locale, core.int maxResults, core.List
<core.String> processingState, core.String source, core.int startIndex, core.Lis
t<core.String> volumeId}) { |
2980 var _url = null; | 2905 var _url = null; |
2981 var _queryParams = new core.Map(); | 2906 var _queryParams = new core.Map(); |
2982 var _uploadMedia = null; | 2907 var _uploadMedia = null; |
2983 var _uploadOptions = null; | 2908 var _uploadOptions = null; |
2984 var _downloadOptions = common_1.DownloadOptions.Metadata; | 2909 var _downloadOptions = commons.DownloadOptions.Metadata; |
2985 var _body = null; | 2910 var _body = null; |
2986 | 2911 |
2987 if (locale != null) { | 2912 if (locale != null) { |
2988 _queryParams["locale"] = [locale]; | 2913 _queryParams["locale"] = [locale]; |
2989 } | 2914 } |
2990 if (maxResults != null) { | 2915 if (maxResults != null) { |
2991 _queryParams["maxResults"] = ["${maxResults}"]; | 2916 _queryParams["maxResults"] = ["${maxResults}"]; |
2992 } | 2917 } |
2993 if (processingState != null) { | 2918 if (processingState != null) { |
2994 _queryParams["processingState"] = processingState; | 2919 _queryParams["processingState"] = processingState; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3133 _json["gbTextRange"] = (gbTextRange).toJson(); | 3058 _json["gbTextRange"] = (gbTextRange).toJson(); |
3134 } | 3059 } |
3135 if (imageCfiRange != null) { | 3060 if (imageCfiRange != null) { |
3136 _json["imageCfiRange"] = (imageCfiRange).toJson(); | 3061 _json["imageCfiRange"] = (imageCfiRange).toJson(); |
3137 } | 3062 } |
3138 return _json; | 3063 return _json; |
3139 } | 3064 } |
3140 } | 3065 } |
3141 | 3066 |
3142 | 3067 |
3143 /** Not documented yet. */ | |
3144 class AnnotationLayerSummary { | 3068 class AnnotationLayerSummary { |
3145 /** | 3069 /** |
3146 * Maximum allowed characters on this layer, especially for the "copy" layer. | 3070 * Maximum allowed characters on this layer, especially for the "copy" layer. |
3147 */ | 3071 */ |
3148 core.int allowedCharacterCount; | 3072 core.int allowedCharacterCount; |
3149 | 3073 |
3150 /** | 3074 /** |
3151 * Type of limitation on this layer. "limited" or "unlimited" for the "copy" | 3075 * Type of limitation on this layer. "limited" or "unlimited" for the "copy" |
3152 * layer. | 3076 * layer. |
3153 */ | 3077 */ |
(...skipping 29 matching lines...) Expand all Loading... |
3183 _json["limitType"] = limitType; | 3107 _json["limitType"] = limitType; |
3184 } | 3108 } |
3185 if (remainingCharacterCount != null) { | 3109 if (remainingCharacterCount != null) { |
3186 _json["remainingCharacterCount"] = remainingCharacterCount; | 3110 _json["remainingCharacterCount"] = remainingCharacterCount; |
3187 } | 3111 } |
3188 return _json; | 3112 return _json; |
3189 } | 3113 } |
3190 } | 3114 } |
3191 | 3115 |
3192 | 3116 |
3193 /** Not documented yet. */ | |
3194 class Annotation { | 3117 class Annotation { |
3195 /** | 3118 /** |
3196 * Anchor text after excerpt. For requests, if the user bookmarked a screen | 3119 * Anchor text after excerpt. For requests, if the user bookmarked a screen |
3197 * that has no flowing text on it, then this field should be empty. | 3120 * that has no flowing text on it, then this field should be empty. |
3198 */ | 3121 */ |
3199 core.String afterSelectedText; | 3122 core.String afterSelectedText; |
3200 | 3123 |
3201 /** | 3124 /** |
3202 * Anchor text before excerpt. For requests, if the user bookmarked a screen | 3125 * Anchor text before excerpt. For requests, if the user bookmarked a screen |
3203 * that has no flowing text on it, then this field should be empty. | 3126 * that has no flowing text on it, then this field should be empty. |
(...skipping 20 matching lines...) Expand all Loading... |
3224 | 3147 |
3225 /** Id of this annotation, in the form of a GUID. */ | 3148 /** Id of this annotation, in the form of a GUID. */ |
3226 core.String id; | 3149 core.String id; |
3227 | 3150 |
3228 /** Resource type. */ | 3151 /** Resource type. */ |
3229 core.String kind; | 3152 core.String kind; |
3230 | 3153 |
3231 /** The layer this annotation is for. */ | 3154 /** The layer this annotation is for. */ |
3232 core.String layerId; | 3155 core.String layerId; |
3233 | 3156 |
3234 /** Not documented yet. */ | |
3235 AnnotationLayerSummary layerSummary; | 3157 AnnotationLayerSummary layerSummary; |
3236 | 3158 |
3237 /** Pages that this annotation spans. */ | 3159 /** Pages that this annotation spans. */ |
3238 core.List<core.String> pageIds; | 3160 core.List<core.String> pageIds; |
3239 | 3161 |
3240 /** Excerpt from the volume. */ | 3162 /** Excerpt from the volume. */ |
3241 core.String selectedText; | 3163 core.String selectedText; |
3242 | 3164 |
3243 /** URL to this resource. */ | 3165 /** URL to this resource. */ |
3244 core.String selfLink; | 3166 core.String selfLink; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3357 _json["updated"] = (updated).toIso8601String(); | 3279 _json["updated"] = (updated).toIso8601String(); |
3358 } | 3280 } |
3359 if (volumeId != null) { | 3281 if (volumeId != null) { |
3360 _json["volumeId"] = volumeId; | 3282 _json["volumeId"] = volumeId; |
3361 } | 3283 } |
3362 return _json; | 3284 return _json; |
3363 } | 3285 } |
3364 } | 3286 } |
3365 | 3287 |
3366 | 3288 |
3367 /** Not documented yet. */ | |
3368 class Annotationdata { | 3289 class Annotationdata { |
3369 /** The type of annotation this data is for. */ | 3290 /** The type of annotation this data is for. */ |
3370 core.String annotationType; | 3291 core.String annotationType; |
3371 | 3292 |
3372 /** | 3293 /** |
3373 * Not documented yet. | 3294 * |
3374 * | 3295 * |
3375 * The values for Object must be JSON objects. It can consist of `num`, | 3296 * The values for Object must be JSON objects. It can consist of `num`, |
3376 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3297 * `String`, `bool` and `null` as well as `Map` and `List` values. |
3377 */ | 3298 */ |
3378 core.Object data; | 3299 core.Object data; |
3379 | 3300 |
3380 /** Base64 encoded data for this annotation data. */ | 3301 /** Base64 encoded data for this annotation data. */ |
3381 core.String encodedData; | 3302 core.String encodedData; |
3382 | 3303 |
3383 core.List<core.int> get encodedDataAsBytes { | 3304 core.List<core.int> get encodedDataAsBytes { |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3469 _json["updated"] = (updated).toIso8601String(); | 3390 _json["updated"] = (updated).toIso8601String(); |
3470 } | 3391 } |
3471 if (volumeId != null) { | 3392 if (volumeId != null) { |
3472 _json["volumeId"] = volumeId; | 3393 _json["volumeId"] = volumeId; |
3473 } | 3394 } |
3474 return _json; | 3395 return _json; |
3475 } | 3396 } |
3476 } | 3397 } |
3477 | 3398 |
3478 | 3399 |
3479 /** Not documented yet. */ | |
3480 class Annotations { | 3400 class Annotations { |
3481 /** A list of annotations. */ | 3401 /** A list of annotations. */ |
3482 core.List<Annotation> items; | 3402 core.List<Annotation> items; |
3483 | 3403 |
3484 /** Resource type. */ | 3404 /** Resource type. */ |
3485 core.String kind; | 3405 core.String kind; |
3486 | 3406 |
3487 /** | 3407 /** |
3488 * Token to pass in for pagination for the next page. This will not be present | 3408 * Token to pass in for pagination for the next page. This will not be present |
3489 * if this request does not have more results. | 3409 * if this request does not have more results. |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3526 _json["nextPageToken"] = nextPageToken; | 3446 _json["nextPageToken"] = nextPageToken; |
3527 } | 3447 } |
3528 if (totalItems != null) { | 3448 if (totalItems != null) { |
3529 _json["totalItems"] = totalItems; | 3449 _json["totalItems"] = totalItems; |
3530 } | 3450 } |
3531 return _json; | 3451 return _json; |
3532 } | 3452 } |
3533 } | 3453 } |
3534 | 3454 |
3535 | 3455 |
3536 /** Not documented yet. */ | |
3537 class AnnotationsSummaryLayers { | 3456 class AnnotationsSummaryLayers { |
3538 /** Not documented yet. */ | |
3539 core.int allowedCharacterCount; | 3457 core.int allowedCharacterCount; |
3540 | 3458 |
3541 /** Not documented yet. */ | |
3542 core.String layerId; | 3459 core.String layerId; |
3543 | 3460 |
3544 /** Not documented yet. */ | |
3545 core.String limitType; | 3461 core.String limitType; |
3546 | 3462 |
3547 /** Not documented yet. */ | |
3548 core.int remainingCharacterCount; | 3463 core.int remainingCharacterCount; |
3549 | 3464 |
3550 /** Not documented yet. */ | |
3551 core.DateTime updated; | 3465 core.DateTime updated; |
3552 | 3466 |
3553 | 3467 |
3554 AnnotationsSummaryLayers(); | 3468 AnnotationsSummaryLayers(); |
3555 | 3469 |
3556 AnnotationsSummaryLayers.fromJson(core.Map _json) { | 3470 AnnotationsSummaryLayers.fromJson(core.Map _json) { |
3557 if (_json.containsKey("allowedCharacterCount")) { | 3471 if (_json.containsKey("allowedCharacterCount")) { |
3558 allowedCharacterCount = _json["allowedCharacterCount"]; | 3472 allowedCharacterCount = _json["allowedCharacterCount"]; |
3559 } | 3473 } |
3560 if (_json.containsKey("layerId")) { | 3474 if (_json.containsKey("layerId")) { |
(...skipping 25 matching lines...) Expand all Loading... |
3586 _json["remainingCharacterCount"] = remainingCharacterCount; | 3500 _json["remainingCharacterCount"] = remainingCharacterCount; |
3587 } | 3501 } |
3588 if (updated != null) { | 3502 if (updated != null) { |
3589 _json["updated"] = (updated).toIso8601String(); | 3503 _json["updated"] = (updated).toIso8601String(); |
3590 } | 3504 } |
3591 return _json; | 3505 return _json; |
3592 } | 3506 } |
3593 } | 3507 } |
3594 | 3508 |
3595 | 3509 |
3596 /** Not documented yet. */ | |
3597 class AnnotationsSummary { | 3510 class AnnotationsSummary { |
3598 /** Not documented yet. */ | |
3599 core.String kind; | 3511 core.String kind; |
3600 | 3512 |
3601 /** Not documented yet. */ | |
3602 core.List<AnnotationsSummaryLayers> layers; | 3513 core.List<AnnotationsSummaryLayers> layers; |
3603 | 3514 |
3604 | 3515 |
3605 AnnotationsSummary(); | 3516 AnnotationsSummary(); |
3606 | 3517 |
3607 AnnotationsSummary.fromJson(core.Map _json) { | 3518 AnnotationsSummary.fromJson(core.Map _json) { |
3608 if (_json.containsKey("kind")) { | 3519 if (_json.containsKey("kind")) { |
3609 kind = _json["kind"]; | 3520 kind = _json["kind"]; |
3610 } | 3521 } |
3611 if (_json.containsKey("layers")) { | 3522 if (_json.containsKey("layers")) { |
3612 layers = _json["layers"].map((value) => new AnnotationsSummaryLayers.fromJ
son(value)).toList(); | 3523 layers = _json["layers"].map((value) => new AnnotationsSummaryLayers.fromJ
son(value)).toList(); |
3613 } | 3524 } |
3614 } | 3525 } |
3615 | 3526 |
3616 core.Map toJson() { | 3527 core.Map toJson() { |
3617 var _json = new core.Map(); | 3528 var _json = new core.Map(); |
3618 if (kind != null) { | 3529 if (kind != null) { |
3619 _json["kind"] = kind; | 3530 _json["kind"] = kind; |
3620 } | 3531 } |
3621 if (layers != null) { | 3532 if (layers != null) { |
3622 _json["layers"] = layers.map((value) => (value).toJson()).toList(); | 3533 _json["layers"] = layers.map((value) => (value).toJson()).toList(); |
3623 } | 3534 } |
3624 return _json; | 3535 return _json; |
3625 } | 3536 } |
3626 } | 3537 } |
3627 | 3538 |
3628 | 3539 |
3629 /** Not documented yet. */ | |
3630 class Annotationsdata { | 3540 class Annotationsdata { |
3631 /** A list of Annotation Data. */ | 3541 /** A list of Annotation Data. */ |
3632 core.List<Annotationdata> items; | 3542 core.List<Annotationdata> items; |
3633 | 3543 |
3634 /** Resource type */ | 3544 /** Resource type */ |
3635 core.String kind; | 3545 core.String kind; |
3636 | 3546 |
3637 /** | 3547 /** |
3638 * Token to pass in for pagination for the next page. This will not be present | 3548 * Token to pass in for pagination for the next page. This will not be present |
3639 * if this request does not have more results. | 3549 * if this request does not have more results. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3673 _json["nextPageToken"] = nextPageToken; | 3583 _json["nextPageToken"] = nextPageToken; |
3674 } | 3584 } |
3675 if (totalItems != null) { | 3585 if (totalItems != null) { |
3676 _json["totalItems"] = totalItems; | 3586 _json["totalItems"] = totalItems; |
3677 } | 3587 } |
3678 return _json; | 3588 return _json; |
3679 } | 3589 } |
3680 } | 3590 } |
3681 | 3591 |
3682 | 3592 |
3683 /** Not documented yet. */ | |
3684 class BooksAnnotationsRange { | 3593 class BooksAnnotationsRange { |
3685 /** The offset from the ending position. */ | 3594 /** The offset from the ending position. */ |
3686 core.String endOffset; | 3595 core.String endOffset; |
3687 | 3596 |
3688 /** The ending position for the range. */ | 3597 /** The ending position for the range. */ |
3689 core.String endPosition; | 3598 core.String endPosition; |
3690 | 3599 |
3691 /** The offset from the starting position. */ | 3600 /** The offset from the starting position. */ |
3692 core.String startOffset; | 3601 core.String startOffset; |
3693 | 3602 |
(...skipping 30 matching lines...) Expand all Loading... |
3724 _json["startOffset"] = startOffset; | 3633 _json["startOffset"] = startOffset; |
3725 } | 3634 } |
3726 if (startPosition != null) { | 3635 if (startPosition != null) { |
3727 _json["startPosition"] = startPosition; | 3636 _json["startPosition"] = startPosition; |
3728 } | 3637 } |
3729 return _json; | 3638 return _json; |
3730 } | 3639 } |
3731 } | 3640 } |
3732 | 3641 |
3733 | 3642 |
3734 /** Not documented yet. */ | |
3735 class BooksCloudloadingResource { | 3643 class BooksCloudloadingResource { |
3736 /** Not documented yet. */ | |
3737 core.String author; | 3644 core.String author; |
3738 | 3645 |
3739 /** Not documented yet. */ | |
3740 core.String processingState; | 3646 core.String processingState; |
3741 | 3647 |
3742 /** Not documented yet. */ | |
3743 core.String title; | 3648 core.String title; |
3744 | 3649 |
3745 /** Not documented yet. */ | |
3746 core.String volumeId; | 3650 core.String volumeId; |
3747 | 3651 |
3748 | 3652 |
3749 BooksCloudloadingResource(); | 3653 BooksCloudloadingResource(); |
3750 | 3654 |
3751 BooksCloudloadingResource.fromJson(core.Map _json) { | 3655 BooksCloudloadingResource.fromJson(core.Map _json) { |
3752 if (_json.containsKey("author")) { | 3656 if (_json.containsKey("author")) { |
3753 author = _json["author"]; | 3657 author = _json["author"]; |
3754 } | 3658 } |
3755 if (_json.containsKey("processingState")) { | 3659 if (_json.containsKey("processingState")) { |
(...skipping 19 matching lines...) Expand all Loading... |
3775 _json["title"] = title; | 3679 _json["title"] = title; |
3776 } | 3680 } |
3777 if (volumeId != null) { | 3681 if (volumeId != null) { |
3778 _json["volumeId"] = volumeId; | 3682 _json["volumeId"] = volumeId; |
3779 } | 3683 } |
3780 return _json; | 3684 return _json; |
3781 } | 3685 } |
3782 } | 3686 } |
3783 | 3687 |
3784 | 3688 |
3785 /** Not documented yet. */ | |
3786 class BooksVolumesRecommendedRateResponse { | 3689 class BooksVolumesRecommendedRateResponse { |
3787 /** Not documented yet. */ | |
3788 core.String consistencyToken; | 3690 core.String consistencyToken; |
3789 | 3691 |
3790 | 3692 |
3791 BooksVolumesRecommendedRateResponse(); | 3693 BooksVolumesRecommendedRateResponse(); |
3792 | 3694 |
3793 BooksVolumesRecommendedRateResponse.fromJson(core.Map _json) { | 3695 BooksVolumesRecommendedRateResponse.fromJson(core.Map _json) { |
3794 if (_json.containsKey("consistency_token")) { | 3696 if (_json.containsKey("consistency_token")) { |
3795 consistencyToken = _json["consistency_token"]; | 3697 consistencyToken = _json["consistency_token"]; |
3796 } | 3698 } |
3797 } | 3699 } |
3798 | 3700 |
3799 core.Map toJson() { | 3701 core.Map toJson() { |
3800 var _json = new core.Map(); | 3702 var _json = new core.Map(); |
3801 if (consistencyToken != null) { | 3703 if (consistencyToken != null) { |
3802 _json["consistency_token"] = consistencyToken; | 3704 _json["consistency_token"] = consistencyToken; |
3803 } | 3705 } |
3804 return _json; | 3706 return _json; |
3805 } | 3707 } |
3806 } | 3708 } |
3807 | 3709 |
3808 | 3710 |
3809 /** Not documented yet. */ | |
3810 class Bookshelf { | 3711 class Bookshelf { |
3811 /** Whether this bookshelf is PUBLIC or PRIVATE. */ | 3712 /** Whether this bookshelf is PUBLIC or PRIVATE. */ |
3812 core.String access; | 3713 core.String access; |
3813 | 3714 |
3814 /** | 3715 /** |
3815 * Created time for this bookshelf (formatted UTC timestamp with millisecond | 3716 * Created time for this bookshelf (formatted UTC timestamp with millisecond |
3816 * resolution). | 3717 * resolution). |
3817 */ | 3718 */ |
3818 core.DateTime created; | 3719 core.DateTime created; |
3819 | 3720 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3913 _json["volumeCount"] = volumeCount; | 3814 _json["volumeCount"] = volumeCount; |
3914 } | 3815 } |
3915 if (volumesLastUpdated != null) { | 3816 if (volumesLastUpdated != null) { |
3916 _json["volumesLastUpdated"] = (volumesLastUpdated).toIso8601String(); | 3817 _json["volumesLastUpdated"] = (volumesLastUpdated).toIso8601String(); |
3917 } | 3818 } |
3918 return _json; | 3819 return _json; |
3919 } | 3820 } |
3920 } | 3821 } |
3921 | 3822 |
3922 | 3823 |
3923 /** Not documented yet. */ | |
3924 class Bookshelves { | 3824 class Bookshelves { |
3925 /** A list of bookshelves. */ | 3825 /** A list of bookshelves. */ |
3926 core.List<Bookshelf> items; | 3826 core.List<Bookshelf> items; |
3927 | 3827 |
3928 /** Resource type. */ | 3828 /** Resource type. */ |
3929 core.String kind; | 3829 core.String kind; |
3930 | 3830 |
3931 | 3831 |
3932 Bookshelves(); | 3832 Bookshelves(); |
3933 | 3833 |
(...skipping 12 matching lines...) Expand all Loading... |
3946 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3846 _json["items"] = items.map((value) => (value).toJson()).toList(); |
3947 } | 3847 } |
3948 if (kind != null) { | 3848 if (kind != null) { |
3949 _json["kind"] = kind; | 3849 _json["kind"] = kind; |
3950 } | 3850 } |
3951 return _json; | 3851 return _json; |
3952 } | 3852 } |
3953 } | 3853 } |
3954 | 3854 |
3955 | 3855 |
3956 /** Not documented yet. */ | |
3957 class CategoryItems { | 3856 class CategoryItems { |
3958 /** Not documented yet. */ | |
3959 core.String badgeUrl; | 3857 core.String badgeUrl; |
3960 | 3858 |
3961 /** Not documented yet. */ | |
3962 core.String categoryId; | 3859 core.String categoryId; |
3963 | 3860 |
3964 /** Not documented yet. */ | |
3965 core.String name; | 3861 core.String name; |
3966 | 3862 |
3967 | 3863 |
3968 CategoryItems(); | 3864 CategoryItems(); |
3969 | 3865 |
3970 CategoryItems.fromJson(core.Map _json) { | 3866 CategoryItems.fromJson(core.Map _json) { |
3971 if (_json.containsKey("badgeUrl")) { | 3867 if (_json.containsKey("badgeUrl")) { |
3972 badgeUrl = _json["badgeUrl"]; | 3868 badgeUrl = _json["badgeUrl"]; |
3973 } | 3869 } |
3974 if (_json.containsKey("categoryId")) { | 3870 if (_json.containsKey("categoryId")) { |
(...skipping 13 matching lines...) Expand all Loading... |
3988 _json["categoryId"] = categoryId; | 3884 _json["categoryId"] = categoryId; |
3989 } | 3885 } |
3990 if (name != null) { | 3886 if (name != null) { |
3991 _json["name"] = name; | 3887 _json["name"] = name; |
3992 } | 3888 } |
3993 return _json; | 3889 return _json; |
3994 } | 3890 } |
3995 } | 3891 } |
3996 | 3892 |
3997 | 3893 |
3998 /** Not documented yet. */ | |
3999 class Category { | 3894 class Category { |
4000 /** A list of onboarding categories. */ | 3895 /** A list of onboarding categories. */ |
4001 core.List<CategoryItems> items; | 3896 core.List<CategoryItems> items; |
4002 | 3897 |
4003 /** Resource type. */ | 3898 /** Resource type. */ |
4004 core.String kind; | 3899 core.String kind; |
4005 | 3900 |
4006 | 3901 |
4007 Category(); | 3902 Category(); |
4008 | 3903 |
(...skipping 12 matching lines...) Expand all Loading... |
4021 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3916 _json["items"] = items.map((value) => (value).toJson()).toList(); |
4022 } | 3917 } |
4023 if (kind != null) { | 3918 if (kind != null) { |
4024 _json["kind"] = kind; | 3919 _json["kind"] = kind; |
4025 } | 3920 } |
4026 return _json; | 3921 return _json; |
4027 } | 3922 } |
4028 } | 3923 } |
4029 | 3924 |
4030 | 3925 |
4031 /** Not documented yet. */ | |
4032 class ConcurrentAccessRestriction { | 3926 class ConcurrentAccessRestriction { |
4033 /** Whether access is granted for this (user, device, volume). */ | 3927 /** Whether access is granted for this (user, device, volume). */ |
4034 core.bool deviceAllowed; | 3928 core.bool deviceAllowed; |
4035 | 3929 |
4036 /** Resource type. */ | 3930 /** Resource type. */ |
4037 core.String kind; | 3931 core.String kind; |
4038 | 3932 |
4039 /** The maximum number of concurrent access licenses for this volume. */ | 3933 /** The maximum number of concurrent access licenses for this volume. */ |
4040 core.int maxConcurrentDevices; | 3934 core.int maxConcurrentDevices; |
4041 | 3935 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4140 _json["timeWindowSeconds"] = timeWindowSeconds; | 4034 _json["timeWindowSeconds"] = timeWindowSeconds; |
4141 } | 4035 } |
4142 if (volumeId != null) { | 4036 if (volumeId != null) { |
4143 _json["volumeId"] = volumeId; | 4037 _json["volumeId"] = volumeId; |
4144 } | 4038 } |
4145 return _json; | 4039 return _json; |
4146 } | 4040 } |
4147 } | 4041 } |
4148 | 4042 |
4149 | 4043 |
4150 /** Not documented yet. */ | |
4151 class DictlayerdataCommon { | 4044 class DictlayerdataCommon { |
4152 /** | 4045 /** |
4153 * The display title and localized canonical name to use when searching for | 4046 * The display title and localized canonical name to use when searching for |
4154 * this entity on Google search. | 4047 * this entity on Google search. |
4155 */ | 4048 */ |
4156 core.String title; | 4049 core.String title; |
4157 | 4050 |
4158 | 4051 |
4159 DictlayerdataCommon(); | 4052 DictlayerdataCommon(); |
4160 | 4053 |
4161 DictlayerdataCommon.fromJson(core.Map _json) { | 4054 DictlayerdataCommon.fromJson(core.Map _json) { |
4162 if (_json.containsKey("title")) { | 4055 if (_json.containsKey("title")) { |
4163 title = _json["title"]; | 4056 title = _json["title"]; |
4164 } | 4057 } |
4165 } | 4058 } |
4166 | 4059 |
4167 core.Map toJson() { | 4060 core.Map toJson() { |
4168 var _json = new core.Map(); | 4061 var _json = new core.Map(); |
4169 if (title != null) { | 4062 if (title != null) { |
4170 _json["title"] = title; | 4063 _json["title"] = title; |
4171 } | 4064 } |
4172 return _json; | 4065 return _json; |
4173 } | 4066 } |
4174 } | 4067 } |
4175 | 4068 |
4176 | 4069 |
4177 /** The source, url and attribution for this dictionary data. */ | 4070 /** The source, url and attribution for this dictionary data. */ |
4178 class DictlayerdataDictSource { | 4071 class DictlayerdataDictSource { |
4179 /** Not documented yet. */ | |
4180 core.String attribution; | 4072 core.String attribution; |
4181 | 4073 |
4182 /** Not documented yet. */ | |
4183 core.String url; | 4074 core.String url; |
4184 | 4075 |
4185 | 4076 |
4186 DictlayerdataDictSource(); | 4077 DictlayerdataDictSource(); |
4187 | 4078 |
4188 DictlayerdataDictSource.fromJson(core.Map _json) { | 4079 DictlayerdataDictSource.fromJson(core.Map _json) { |
4189 if (_json.containsKey("attribution")) { | 4080 if (_json.containsKey("attribution")) { |
4190 attribution = _json["attribution"]; | 4081 attribution = _json["attribution"]; |
4191 } | 4082 } |
4192 if (_json.containsKey("url")) { | 4083 if (_json.containsKey("url")) { |
4193 url = _json["url"]; | 4084 url = _json["url"]; |
4194 } | 4085 } |
4195 } | 4086 } |
4196 | 4087 |
4197 core.Map toJson() { | 4088 core.Map toJson() { |
4198 var _json = new core.Map(); | 4089 var _json = new core.Map(); |
4199 if (attribution != null) { | 4090 if (attribution != null) { |
4200 _json["attribution"] = attribution; | 4091 _json["attribution"] = attribution; |
4201 } | 4092 } |
4202 if (url != null) { | 4093 if (url != null) { |
4203 _json["url"] = url; | 4094 _json["url"] = url; |
4204 } | 4095 } |
4205 return _json; | 4096 return _json; |
4206 } | 4097 } |
4207 } | 4098 } |
4208 | 4099 |
4209 | 4100 |
4210 /** Not documented yet. */ | |
4211 class DictlayerdataDictWordsDerivativesSource { | 4101 class DictlayerdataDictWordsDerivativesSource { |
4212 /** Not documented yet. */ | |
4213 core.String attribution; | 4102 core.String attribution; |
4214 | 4103 |
4215 /** Not documented yet. */ | |
4216 core.String url; | 4104 core.String url; |
4217 | 4105 |
4218 | 4106 |
4219 DictlayerdataDictWordsDerivativesSource(); | 4107 DictlayerdataDictWordsDerivativesSource(); |
4220 | 4108 |
4221 DictlayerdataDictWordsDerivativesSource.fromJson(core.Map _json) { | 4109 DictlayerdataDictWordsDerivativesSource.fromJson(core.Map _json) { |
4222 if (_json.containsKey("attribution")) { | 4110 if (_json.containsKey("attribution")) { |
4223 attribution = _json["attribution"]; | 4111 attribution = _json["attribution"]; |
4224 } | 4112 } |
4225 if (_json.containsKey("url")) { | 4113 if (_json.containsKey("url")) { |
4226 url = _json["url"]; | 4114 url = _json["url"]; |
4227 } | 4115 } |
4228 } | 4116 } |
4229 | 4117 |
4230 core.Map toJson() { | 4118 core.Map toJson() { |
4231 var _json = new core.Map(); | 4119 var _json = new core.Map(); |
4232 if (attribution != null) { | 4120 if (attribution != null) { |
4233 _json["attribution"] = attribution; | 4121 _json["attribution"] = attribution; |
4234 } | 4122 } |
4235 if (url != null) { | 4123 if (url != null) { |
4236 _json["url"] = url; | 4124 _json["url"] = url; |
4237 } | 4125 } |
4238 return _json; | 4126 return _json; |
4239 } | 4127 } |
4240 } | 4128 } |
4241 | 4129 |
4242 | 4130 |
4243 /** Not documented yet. */ | |
4244 class DictlayerdataDictWordsDerivatives { | 4131 class DictlayerdataDictWordsDerivatives { |
4245 /** Not documented yet. */ | |
4246 DictlayerdataDictWordsDerivativesSource source; | 4132 DictlayerdataDictWordsDerivativesSource source; |
4247 | 4133 |
4248 /** Not documented yet. */ | |
4249 core.String text; | 4134 core.String text; |
4250 | 4135 |
4251 | 4136 |
4252 DictlayerdataDictWordsDerivatives(); | 4137 DictlayerdataDictWordsDerivatives(); |
4253 | 4138 |
4254 DictlayerdataDictWordsDerivatives.fromJson(core.Map _json) { | 4139 DictlayerdataDictWordsDerivatives.fromJson(core.Map _json) { |
4255 if (_json.containsKey("source")) { | 4140 if (_json.containsKey("source")) { |
4256 source = new DictlayerdataDictWordsDerivativesSource.fromJson(_json["sourc
e"]); | 4141 source = new DictlayerdataDictWordsDerivativesSource.fromJson(_json["sourc
e"]); |
4257 } | 4142 } |
4258 if (_json.containsKey("text")) { | 4143 if (_json.containsKey("text")) { |
4259 text = _json["text"]; | 4144 text = _json["text"]; |
4260 } | 4145 } |
4261 } | 4146 } |
4262 | 4147 |
4263 core.Map toJson() { | 4148 core.Map toJson() { |
4264 var _json = new core.Map(); | 4149 var _json = new core.Map(); |
4265 if (source != null) { | 4150 if (source != null) { |
4266 _json["source"] = (source).toJson(); | 4151 _json["source"] = (source).toJson(); |
4267 } | 4152 } |
4268 if (text != null) { | 4153 if (text != null) { |
4269 _json["text"] = text; | 4154 _json["text"] = text; |
4270 } | 4155 } |
4271 return _json; | 4156 return _json; |
4272 } | 4157 } |
4273 } | 4158 } |
4274 | 4159 |
4275 | 4160 |
4276 /** Not documented yet. */ | |
4277 class DictlayerdataDictWordsExamplesSource { | 4161 class DictlayerdataDictWordsExamplesSource { |
4278 /** Not documented yet. */ | |
4279 core.String attribution; | 4162 core.String attribution; |
4280 | 4163 |
4281 /** Not documented yet. */ | |
4282 core.String url; | 4164 core.String url; |
4283 | 4165 |
4284 | 4166 |
4285 DictlayerdataDictWordsExamplesSource(); | 4167 DictlayerdataDictWordsExamplesSource(); |
4286 | 4168 |
4287 DictlayerdataDictWordsExamplesSource.fromJson(core.Map _json) { | 4169 DictlayerdataDictWordsExamplesSource.fromJson(core.Map _json) { |
4288 if (_json.containsKey("attribution")) { | 4170 if (_json.containsKey("attribution")) { |
4289 attribution = _json["attribution"]; | 4171 attribution = _json["attribution"]; |
4290 } | 4172 } |
4291 if (_json.containsKey("url")) { | 4173 if (_json.containsKey("url")) { |
4292 url = _json["url"]; | 4174 url = _json["url"]; |
4293 } | 4175 } |
4294 } | 4176 } |
4295 | 4177 |
4296 core.Map toJson() { | 4178 core.Map toJson() { |
4297 var _json = new core.Map(); | 4179 var _json = new core.Map(); |
4298 if (attribution != null) { | 4180 if (attribution != null) { |
4299 _json["attribution"] = attribution; | 4181 _json["attribution"] = attribution; |
4300 } | 4182 } |
4301 if (url != null) { | 4183 if (url != null) { |
4302 _json["url"] = url; | 4184 _json["url"] = url; |
4303 } | 4185 } |
4304 return _json; | 4186 return _json; |
4305 } | 4187 } |
4306 } | 4188 } |
4307 | 4189 |
4308 | 4190 |
4309 /** Not documented yet. */ | |
4310 class DictlayerdataDictWordsExamples { | 4191 class DictlayerdataDictWordsExamples { |
4311 /** Not documented yet. */ | |
4312 DictlayerdataDictWordsExamplesSource source; | 4192 DictlayerdataDictWordsExamplesSource source; |
4313 | 4193 |
4314 /** Not documented yet. */ | |
4315 core.String text; | 4194 core.String text; |
4316 | 4195 |
4317 | 4196 |
4318 DictlayerdataDictWordsExamples(); | 4197 DictlayerdataDictWordsExamples(); |
4319 | 4198 |
4320 DictlayerdataDictWordsExamples.fromJson(core.Map _json) { | 4199 DictlayerdataDictWordsExamples.fromJson(core.Map _json) { |
4321 if (_json.containsKey("source")) { | 4200 if (_json.containsKey("source")) { |
4322 source = new DictlayerdataDictWordsExamplesSource.fromJson(_json["source"]
); | 4201 source = new DictlayerdataDictWordsExamplesSource.fromJson(_json["source"]
); |
4323 } | 4202 } |
4324 if (_json.containsKey("text")) { | 4203 if (_json.containsKey("text")) { |
4325 text = _json["text"]; | 4204 text = _json["text"]; |
4326 } | 4205 } |
4327 } | 4206 } |
4328 | 4207 |
4329 core.Map toJson() { | 4208 core.Map toJson() { |
4330 var _json = new core.Map(); | 4209 var _json = new core.Map(); |
4331 if (source != null) { | 4210 if (source != null) { |
4332 _json["source"] = (source).toJson(); | 4211 _json["source"] = (source).toJson(); |
4333 } | 4212 } |
4334 if (text != null) { | 4213 if (text != null) { |
4335 _json["text"] = text; | 4214 _json["text"] = text; |
4336 } | 4215 } |
4337 return _json; | 4216 return _json; |
4338 } | 4217 } |
4339 } | 4218 } |
4340 | 4219 |
4341 | 4220 |
4342 /** Not documented yet. */ | |
4343 class DictlayerdataDictWordsSensesConjugations { | 4221 class DictlayerdataDictWordsSensesConjugations { |
4344 /** Not documented yet. */ | |
4345 core.String type; | 4222 core.String type; |
4346 | 4223 |
4347 /** Not documented yet. */ | |
4348 core.String value; | 4224 core.String value; |
4349 | 4225 |
4350 | 4226 |
4351 DictlayerdataDictWordsSensesConjugations(); | 4227 DictlayerdataDictWordsSensesConjugations(); |
4352 | 4228 |
4353 DictlayerdataDictWordsSensesConjugations.fromJson(core.Map _json) { | 4229 DictlayerdataDictWordsSensesConjugations.fromJson(core.Map _json) { |
4354 if (_json.containsKey("type")) { | 4230 if (_json.containsKey("type")) { |
4355 type = _json["type"]; | 4231 type = _json["type"]; |
4356 } | 4232 } |
4357 if (_json.containsKey("value")) { | 4233 if (_json.containsKey("value")) { |
4358 value = _json["value"]; | 4234 value = _json["value"]; |
4359 } | 4235 } |
4360 } | 4236 } |
4361 | 4237 |
4362 core.Map toJson() { | 4238 core.Map toJson() { |
4363 var _json = new core.Map(); | 4239 var _json = new core.Map(); |
4364 if (type != null) { | 4240 if (type != null) { |
4365 _json["type"] = type; | 4241 _json["type"] = type; |
4366 } | 4242 } |
4367 if (value != null) { | 4243 if (value != null) { |
4368 _json["value"] = value; | 4244 _json["value"] = value; |
4369 } | 4245 } |
4370 return _json; | 4246 return _json; |
4371 } | 4247 } |
4372 } | 4248 } |
4373 | 4249 |
4374 | 4250 |
4375 /** Not documented yet. */ | |
4376 class DictlayerdataDictWordsSensesDefinitionsExamplesSource { | 4251 class DictlayerdataDictWordsSensesDefinitionsExamplesSource { |
4377 /** Not documented yet. */ | |
4378 core.String attribution; | 4252 core.String attribution; |
4379 | 4253 |
4380 /** Not documented yet. */ | |
4381 core.String url; | 4254 core.String url; |
4382 | 4255 |
4383 | 4256 |
4384 DictlayerdataDictWordsSensesDefinitionsExamplesSource(); | 4257 DictlayerdataDictWordsSensesDefinitionsExamplesSource(); |
4385 | 4258 |
4386 DictlayerdataDictWordsSensesDefinitionsExamplesSource.fromJson(core.Map _json)
{ | 4259 DictlayerdataDictWordsSensesDefinitionsExamplesSource.fromJson(core.Map _json)
{ |
4387 if (_json.containsKey("attribution")) { | 4260 if (_json.containsKey("attribution")) { |
4388 attribution = _json["attribution"]; | 4261 attribution = _json["attribution"]; |
4389 } | 4262 } |
4390 if (_json.containsKey("url")) { | 4263 if (_json.containsKey("url")) { |
4391 url = _json["url"]; | 4264 url = _json["url"]; |
4392 } | 4265 } |
4393 } | 4266 } |
4394 | 4267 |
4395 core.Map toJson() { | 4268 core.Map toJson() { |
4396 var _json = new core.Map(); | 4269 var _json = new core.Map(); |
4397 if (attribution != null) { | 4270 if (attribution != null) { |
4398 _json["attribution"] = attribution; | 4271 _json["attribution"] = attribution; |
4399 } | 4272 } |
4400 if (url != null) { | 4273 if (url != null) { |
4401 _json["url"] = url; | 4274 _json["url"] = url; |
4402 } | 4275 } |
4403 return _json; | 4276 return _json; |
4404 } | 4277 } |
4405 } | 4278 } |
4406 | 4279 |
4407 | 4280 |
4408 /** Not documented yet. */ | |
4409 class DictlayerdataDictWordsSensesDefinitionsExamples { | 4281 class DictlayerdataDictWordsSensesDefinitionsExamples { |
4410 /** Not documented yet. */ | |
4411 DictlayerdataDictWordsSensesDefinitionsExamplesSource source; | 4282 DictlayerdataDictWordsSensesDefinitionsExamplesSource source; |
4412 | 4283 |
4413 /** Not documented yet. */ | |
4414 core.String text; | 4284 core.String text; |
4415 | 4285 |
4416 | 4286 |
4417 DictlayerdataDictWordsSensesDefinitionsExamples(); | 4287 DictlayerdataDictWordsSensesDefinitionsExamples(); |
4418 | 4288 |
4419 DictlayerdataDictWordsSensesDefinitionsExamples.fromJson(core.Map _json) { | 4289 DictlayerdataDictWordsSensesDefinitionsExamples.fromJson(core.Map _json) { |
4420 if (_json.containsKey("source")) { | 4290 if (_json.containsKey("source")) { |
4421 source = new DictlayerdataDictWordsSensesDefinitionsExamplesSource.fromJso
n(_json["source"]); | 4291 source = new DictlayerdataDictWordsSensesDefinitionsExamplesSource.fromJso
n(_json["source"]); |
4422 } | 4292 } |
4423 if (_json.containsKey("text")) { | 4293 if (_json.containsKey("text")) { |
4424 text = _json["text"]; | 4294 text = _json["text"]; |
4425 } | 4295 } |
4426 } | 4296 } |
4427 | 4297 |
4428 core.Map toJson() { | 4298 core.Map toJson() { |
4429 var _json = new core.Map(); | 4299 var _json = new core.Map(); |
4430 if (source != null) { | 4300 if (source != null) { |
4431 _json["source"] = (source).toJson(); | 4301 _json["source"] = (source).toJson(); |
4432 } | 4302 } |
4433 if (text != null) { | 4303 if (text != null) { |
4434 _json["text"] = text; | 4304 _json["text"] = text; |
4435 } | 4305 } |
4436 return _json; | 4306 return _json; |
4437 } | 4307 } |
4438 } | 4308 } |
4439 | 4309 |
4440 | 4310 |
4441 /** Not documented yet. */ | |
4442 class DictlayerdataDictWordsSensesDefinitions { | 4311 class DictlayerdataDictWordsSensesDefinitions { |
4443 /** Not documented yet. */ | |
4444 core.String definition; | 4312 core.String definition; |
4445 | 4313 |
4446 /** Not documented yet. */ | |
4447 core.List<DictlayerdataDictWordsSensesDefinitionsExamples> examples; | 4314 core.List<DictlayerdataDictWordsSensesDefinitionsExamples> examples; |
4448 | 4315 |
4449 | 4316 |
4450 DictlayerdataDictWordsSensesDefinitions(); | 4317 DictlayerdataDictWordsSensesDefinitions(); |
4451 | 4318 |
4452 DictlayerdataDictWordsSensesDefinitions.fromJson(core.Map _json) { | 4319 DictlayerdataDictWordsSensesDefinitions.fromJson(core.Map _json) { |
4453 if (_json.containsKey("definition")) { | 4320 if (_json.containsKey("definition")) { |
4454 definition = _json["definition"]; | 4321 definition = _json["definition"]; |
4455 } | 4322 } |
4456 if (_json.containsKey("examples")) { | 4323 if (_json.containsKey("examples")) { |
4457 examples = _json["examples"].map((value) => new DictlayerdataDictWordsSens
esDefinitionsExamples.fromJson(value)).toList(); | 4324 examples = _json["examples"].map((value) => new DictlayerdataDictWordsSens
esDefinitionsExamples.fromJson(value)).toList(); |
4458 } | 4325 } |
4459 } | 4326 } |
4460 | 4327 |
4461 core.Map toJson() { | 4328 core.Map toJson() { |
4462 var _json = new core.Map(); | 4329 var _json = new core.Map(); |
4463 if (definition != null) { | 4330 if (definition != null) { |
4464 _json["definition"] = definition; | 4331 _json["definition"] = definition; |
4465 } | 4332 } |
4466 if (examples != null) { | 4333 if (examples != null) { |
4467 _json["examples"] = examples.map((value) => (value).toJson()).toList(); | 4334 _json["examples"] = examples.map((value) => (value).toJson()).toList(); |
4468 } | 4335 } |
4469 return _json; | 4336 return _json; |
4470 } | 4337 } |
4471 } | 4338 } |
4472 | 4339 |
4473 | 4340 |
4474 /** Not documented yet. */ | |
4475 class DictlayerdataDictWordsSensesSource { | 4341 class DictlayerdataDictWordsSensesSource { |
4476 /** Not documented yet. */ | |
4477 core.String attribution; | 4342 core.String attribution; |
4478 | 4343 |
4479 /** Not documented yet. */ | |
4480 core.String url; | 4344 core.String url; |
4481 | 4345 |
4482 | 4346 |
4483 DictlayerdataDictWordsSensesSource(); | 4347 DictlayerdataDictWordsSensesSource(); |
4484 | 4348 |
4485 DictlayerdataDictWordsSensesSource.fromJson(core.Map _json) { | 4349 DictlayerdataDictWordsSensesSource.fromJson(core.Map _json) { |
4486 if (_json.containsKey("attribution")) { | 4350 if (_json.containsKey("attribution")) { |
4487 attribution = _json["attribution"]; | 4351 attribution = _json["attribution"]; |
4488 } | 4352 } |
4489 if (_json.containsKey("url")) { | 4353 if (_json.containsKey("url")) { |
4490 url = _json["url"]; | 4354 url = _json["url"]; |
4491 } | 4355 } |
4492 } | 4356 } |
4493 | 4357 |
4494 core.Map toJson() { | 4358 core.Map toJson() { |
4495 var _json = new core.Map(); | 4359 var _json = new core.Map(); |
4496 if (attribution != null) { | 4360 if (attribution != null) { |
4497 _json["attribution"] = attribution; | 4361 _json["attribution"] = attribution; |
4498 } | 4362 } |
4499 if (url != null) { | 4363 if (url != null) { |
4500 _json["url"] = url; | 4364 _json["url"] = url; |
4501 } | 4365 } |
4502 return _json; | 4366 return _json; |
4503 } | 4367 } |
4504 } | 4368 } |
4505 | 4369 |
4506 | 4370 |
4507 /** Not documented yet. */ | |
4508 class DictlayerdataDictWordsSensesSynonymsSource { | 4371 class DictlayerdataDictWordsSensesSynonymsSource { |
4509 /** Not documented yet. */ | |
4510 core.String attribution; | 4372 core.String attribution; |
4511 | 4373 |
4512 /** Not documented yet. */ | |
4513 core.String url; | 4374 core.String url; |
4514 | 4375 |
4515 | 4376 |
4516 DictlayerdataDictWordsSensesSynonymsSource(); | 4377 DictlayerdataDictWordsSensesSynonymsSource(); |
4517 | 4378 |
4518 DictlayerdataDictWordsSensesSynonymsSource.fromJson(core.Map _json) { | 4379 DictlayerdataDictWordsSensesSynonymsSource.fromJson(core.Map _json) { |
4519 if (_json.containsKey("attribution")) { | 4380 if (_json.containsKey("attribution")) { |
4520 attribution = _json["attribution"]; | 4381 attribution = _json["attribution"]; |
4521 } | 4382 } |
4522 if (_json.containsKey("url")) { | 4383 if (_json.containsKey("url")) { |
4523 url = _json["url"]; | 4384 url = _json["url"]; |
4524 } | 4385 } |
4525 } | 4386 } |
4526 | 4387 |
4527 core.Map toJson() { | 4388 core.Map toJson() { |
4528 var _json = new core.Map(); | 4389 var _json = new core.Map(); |
4529 if (attribution != null) { | 4390 if (attribution != null) { |
4530 _json["attribution"] = attribution; | 4391 _json["attribution"] = attribution; |
4531 } | 4392 } |
4532 if (url != null) { | 4393 if (url != null) { |
4533 _json["url"] = url; | 4394 _json["url"] = url; |
4534 } | 4395 } |
4535 return _json; | 4396 return _json; |
4536 } | 4397 } |
4537 } | 4398 } |
4538 | 4399 |
4539 | 4400 |
4540 /** Not documented yet. */ | |
4541 class DictlayerdataDictWordsSensesSynonyms { | 4401 class DictlayerdataDictWordsSensesSynonyms { |
4542 /** Not documented yet. */ | |
4543 DictlayerdataDictWordsSensesSynonymsSource source; | 4402 DictlayerdataDictWordsSensesSynonymsSource source; |
4544 | 4403 |
4545 /** Not documented yet. */ | |
4546 core.String text; | 4404 core.String text; |
4547 | 4405 |
4548 | 4406 |
4549 DictlayerdataDictWordsSensesSynonyms(); | 4407 DictlayerdataDictWordsSensesSynonyms(); |
4550 | 4408 |
4551 DictlayerdataDictWordsSensesSynonyms.fromJson(core.Map _json) { | 4409 DictlayerdataDictWordsSensesSynonyms.fromJson(core.Map _json) { |
4552 if (_json.containsKey("source")) { | 4410 if (_json.containsKey("source")) { |
4553 source = new DictlayerdataDictWordsSensesSynonymsSource.fromJson(_json["so
urce"]); | 4411 source = new DictlayerdataDictWordsSensesSynonymsSource.fromJson(_json["so
urce"]); |
4554 } | 4412 } |
4555 if (_json.containsKey("text")) { | 4413 if (_json.containsKey("text")) { |
4556 text = _json["text"]; | 4414 text = _json["text"]; |
4557 } | 4415 } |
4558 } | 4416 } |
4559 | 4417 |
4560 core.Map toJson() { | 4418 core.Map toJson() { |
4561 var _json = new core.Map(); | 4419 var _json = new core.Map(); |
4562 if (source != null) { | 4420 if (source != null) { |
4563 _json["source"] = (source).toJson(); | 4421 _json["source"] = (source).toJson(); |
4564 } | 4422 } |
4565 if (text != null) { | 4423 if (text != null) { |
4566 _json["text"] = text; | 4424 _json["text"] = text; |
4567 } | 4425 } |
4568 return _json; | 4426 return _json; |
4569 } | 4427 } |
4570 } | 4428 } |
4571 | 4429 |
4572 | 4430 |
4573 /** Not documented yet. */ | |
4574 class DictlayerdataDictWordsSenses { | 4431 class DictlayerdataDictWordsSenses { |
4575 /** Not documented yet. */ | |
4576 core.List<DictlayerdataDictWordsSensesConjugations> conjugations; | 4432 core.List<DictlayerdataDictWordsSensesConjugations> conjugations; |
4577 | 4433 |
4578 /** Not documented yet. */ | |
4579 core.List<DictlayerdataDictWordsSensesDefinitions> definitions; | 4434 core.List<DictlayerdataDictWordsSensesDefinitions> definitions; |
4580 | 4435 |
4581 /** Not documented yet. */ | |
4582 core.String partOfSpeech; | 4436 core.String partOfSpeech; |
4583 | 4437 |
4584 /** Not documented yet. */ | |
4585 core.String pronunciation; | 4438 core.String pronunciation; |
4586 | 4439 |
4587 /** Not documented yet. */ | |
4588 core.String pronunciationUrl; | 4440 core.String pronunciationUrl; |
4589 | 4441 |
4590 /** Not documented yet. */ | |
4591 DictlayerdataDictWordsSensesSource source; | 4442 DictlayerdataDictWordsSensesSource source; |
4592 | 4443 |
4593 /** Not documented yet. */ | |
4594 core.String syllabification; | 4444 core.String syllabification; |
4595 | 4445 |
4596 /** Not documented yet. */ | |
4597 core.List<DictlayerdataDictWordsSensesSynonyms> synonyms; | 4446 core.List<DictlayerdataDictWordsSensesSynonyms> synonyms; |
4598 | 4447 |
4599 | 4448 |
4600 DictlayerdataDictWordsSenses(); | 4449 DictlayerdataDictWordsSenses(); |
4601 | 4450 |
4602 DictlayerdataDictWordsSenses.fromJson(core.Map _json) { | 4451 DictlayerdataDictWordsSenses.fromJson(core.Map _json) { |
4603 if (_json.containsKey("conjugations")) { | 4452 if (_json.containsKey("conjugations")) { |
4604 conjugations = _json["conjugations"].map((value) => new DictlayerdataDictW
ordsSensesConjugations.fromJson(value)).toList(); | 4453 conjugations = _json["conjugations"].map((value) => new DictlayerdataDictW
ordsSensesConjugations.fromJson(value)).toList(); |
4605 } | 4454 } |
4606 if (_json.containsKey("definitions")) { | 4455 if (_json.containsKey("definitions")) { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4655 return _json; | 4504 return _json; |
4656 } | 4505 } |
4657 } | 4506 } |
4658 | 4507 |
4659 | 4508 |
4660 /** | 4509 /** |
4661 * The words with different meanings but not related words, e.g. "go" (game) and | 4510 * The words with different meanings but not related words, e.g. "go" (game) and |
4662 * "go" (verb). | 4511 * "go" (verb). |
4663 */ | 4512 */ |
4664 class DictlayerdataDictWordsSource { | 4513 class DictlayerdataDictWordsSource { |
4665 /** Not documented yet. */ | |
4666 core.String attribution; | 4514 core.String attribution; |
4667 | 4515 |
4668 /** Not documented yet. */ | |
4669 core.String url; | 4516 core.String url; |
4670 | 4517 |
4671 | 4518 |
4672 DictlayerdataDictWordsSource(); | 4519 DictlayerdataDictWordsSource(); |
4673 | 4520 |
4674 DictlayerdataDictWordsSource.fromJson(core.Map _json) { | 4521 DictlayerdataDictWordsSource.fromJson(core.Map _json) { |
4675 if (_json.containsKey("attribution")) { | 4522 if (_json.containsKey("attribution")) { |
4676 attribution = _json["attribution"]; | 4523 attribution = _json["attribution"]; |
4677 } | 4524 } |
4678 if (_json.containsKey("url")) { | 4525 if (_json.containsKey("url")) { |
4679 url = _json["url"]; | 4526 url = _json["url"]; |
4680 } | 4527 } |
4681 } | 4528 } |
4682 | 4529 |
4683 core.Map toJson() { | 4530 core.Map toJson() { |
4684 var _json = new core.Map(); | 4531 var _json = new core.Map(); |
4685 if (attribution != null) { | 4532 if (attribution != null) { |
4686 _json["attribution"] = attribution; | 4533 _json["attribution"] = attribution; |
4687 } | 4534 } |
4688 if (url != null) { | 4535 if (url != null) { |
4689 _json["url"] = url; | 4536 _json["url"] = url; |
4690 } | 4537 } |
4691 return _json; | 4538 return _json; |
4692 } | 4539 } |
4693 } | 4540 } |
4694 | 4541 |
4695 | 4542 |
4696 /** Not documented yet. */ | |
4697 class DictlayerdataDictWords { | 4543 class DictlayerdataDictWords { |
4698 /** Not documented yet. */ | |
4699 core.List<DictlayerdataDictWordsDerivatives> derivatives; | 4544 core.List<DictlayerdataDictWordsDerivatives> derivatives; |
4700 | 4545 |
4701 /** Not documented yet. */ | |
4702 core.List<DictlayerdataDictWordsExamples> examples; | 4546 core.List<DictlayerdataDictWordsExamples> examples; |
4703 | 4547 |
4704 /** Not documented yet. */ | |
4705 core.List<DictlayerdataDictWordsSenses> senses; | 4548 core.List<DictlayerdataDictWordsSenses> senses; |
4706 | 4549 |
4707 /** | 4550 /** |
4708 * The words with different meanings but not related words, e.g. "go" (game) | 4551 * The words with different meanings but not related words, e.g. "go" (game) |
4709 * and "go" (verb). | 4552 * and "go" (verb). |
4710 */ | 4553 */ |
4711 DictlayerdataDictWordsSource source; | 4554 DictlayerdataDictWordsSource source; |
4712 | 4555 |
4713 | 4556 |
4714 DictlayerdataDictWords(); | 4557 DictlayerdataDictWords(); |
(...skipping 25 matching lines...) Expand all Loading... |
4740 _json["senses"] = senses.map((value) => (value).toJson()).toList(); | 4583 _json["senses"] = senses.map((value) => (value).toJson()).toList(); |
4741 } | 4584 } |
4742 if (source != null) { | 4585 if (source != null) { |
4743 _json["source"] = (source).toJson(); | 4586 _json["source"] = (source).toJson(); |
4744 } | 4587 } |
4745 return _json; | 4588 return _json; |
4746 } | 4589 } |
4747 } | 4590 } |
4748 | 4591 |
4749 | 4592 |
4750 /** Not documented yet. */ | |
4751 class DictlayerdataDict { | 4593 class DictlayerdataDict { |
4752 /** The source, url and attribution for this dictionary data. */ | 4594 /** The source, url and attribution for this dictionary data. */ |
4753 DictlayerdataDictSource source; | 4595 DictlayerdataDictSource source; |
4754 | 4596 |
4755 /** Not documented yet. */ | |
4756 core.List<DictlayerdataDictWords> words; | 4597 core.List<DictlayerdataDictWords> words; |
4757 | 4598 |
4758 | 4599 |
4759 DictlayerdataDict(); | 4600 DictlayerdataDict(); |
4760 | 4601 |
4761 DictlayerdataDict.fromJson(core.Map _json) { | 4602 DictlayerdataDict.fromJson(core.Map _json) { |
4762 if (_json.containsKey("source")) { | 4603 if (_json.containsKey("source")) { |
4763 source = new DictlayerdataDictSource.fromJson(_json["source"]); | 4604 source = new DictlayerdataDictSource.fromJson(_json["source"]); |
4764 } | 4605 } |
4765 if (_json.containsKey("words")) { | 4606 if (_json.containsKey("words")) { |
4766 words = _json["words"].map((value) => new DictlayerdataDictWords.fromJson(
value)).toList(); | 4607 words = _json["words"].map((value) => new DictlayerdataDictWords.fromJson(
value)).toList(); |
4767 } | 4608 } |
4768 } | 4609 } |
4769 | 4610 |
4770 core.Map toJson() { | 4611 core.Map toJson() { |
4771 var _json = new core.Map(); | 4612 var _json = new core.Map(); |
4772 if (source != null) { | 4613 if (source != null) { |
4773 _json["source"] = (source).toJson(); | 4614 _json["source"] = (source).toJson(); |
4774 } | 4615 } |
4775 if (words != null) { | 4616 if (words != null) { |
4776 _json["words"] = words.map((value) => (value).toJson()).toList(); | 4617 _json["words"] = words.map((value) => (value).toJson()).toList(); |
4777 } | 4618 } |
4778 return _json; | 4619 return _json; |
4779 } | 4620 } |
4780 } | 4621 } |
4781 | 4622 |
4782 | 4623 |
4783 /** Not documented yet. */ | |
4784 class Dictlayerdata { | 4624 class Dictlayerdata { |
4785 /** Not documented yet. */ | |
4786 DictlayerdataCommon common; | 4625 DictlayerdataCommon common; |
4787 | 4626 |
4788 /** Not documented yet. */ | |
4789 DictlayerdataDict dict; | 4627 DictlayerdataDict dict; |
4790 | 4628 |
4791 /** Not documented yet. */ | |
4792 core.String kind; | 4629 core.String kind; |
4793 | 4630 |
4794 | 4631 |
4795 Dictlayerdata(); | 4632 Dictlayerdata(); |
4796 | 4633 |
4797 Dictlayerdata.fromJson(core.Map _json) { | 4634 Dictlayerdata.fromJson(core.Map _json) { |
4798 if (_json.containsKey("common")) { | 4635 if (_json.containsKey("common")) { |
4799 common = new DictlayerdataCommon.fromJson(_json["common"]); | 4636 common = new DictlayerdataCommon.fromJson(_json["common"]); |
4800 } | 4637 } |
4801 if (_json.containsKey("dict")) { | 4638 if (_json.containsKey("dict")) { |
(...skipping 13 matching lines...) Expand all Loading... |
4815 _json["dict"] = (dict).toJson(); | 4652 _json["dict"] = (dict).toJson(); |
4816 } | 4653 } |
4817 if (kind != null) { | 4654 if (kind != null) { |
4818 _json["kind"] = kind; | 4655 _json["kind"] = kind; |
4819 } | 4656 } |
4820 return _json; | 4657 return _json; |
4821 } | 4658 } |
4822 } | 4659 } |
4823 | 4660 |
4824 | 4661 |
4825 /** Not documented yet. */ | |
4826 class DownloadAccessRestriction { | 4662 class DownloadAccessRestriction { |
4827 /** | 4663 /** |
4828 * If restricted, whether access is granted for this (user, device, volume). | 4664 * If restricted, whether access is granted for this (user, device, volume). |
4829 */ | 4665 */ |
4830 core.bool deviceAllowed; | 4666 core.bool deviceAllowed; |
4831 | 4667 |
4832 /** | 4668 /** |
4833 * If restricted, the number of content download licenses already acquired | 4669 * If restricted, the number of content download licenses already acquired |
4834 * (including the requesting client, if licensed). | 4670 * (including the requesting client, if licensed). |
4835 */ | 4671 */ |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4955 _json["source"] = source; | 4791 _json["source"] = source; |
4956 } | 4792 } |
4957 if (volumeId != null) { | 4793 if (volumeId != null) { |
4958 _json["volumeId"] = volumeId; | 4794 _json["volumeId"] = volumeId; |
4959 } | 4795 } |
4960 return _json; | 4796 return _json; |
4961 } | 4797 } |
4962 } | 4798 } |
4963 | 4799 |
4964 | 4800 |
4965 /** Not documented yet. */ | |
4966 class DownloadAccesses { | 4801 class DownloadAccesses { |
4967 /** A list of download access responses. */ | 4802 /** A list of download access responses. */ |
4968 core.List<DownloadAccessRestriction> downloadAccessList; | 4803 core.List<DownloadAccessRestriction> downloadAccessList; |
4969 | 4804 |
4970 /** Resource type. */ | 4805 /** Resource type. */ |
4971 core.String kind; | 4806 core.String kind; |
4972 | 4807 |
4973 | 4808 |
4974 DownloadAccesses(); | 4809 DownloadAccesses(); |
4975 | 4810 |
(...skipping 12 matching lines...) Expand all Loading... |
4988 _json["downloadAccessList"] = downloadAccessList.map((value) => (value).to
Json()).toList(); | 4823 _json["downloadAccessList"] = downloadAccessList.map((value) => (value).to
Json()).toList(); |
4989 } | 4824 } |
4990 if (kind != null) { | 4825 if (kind != null) { |
4991 _json["kind"] = kind; | 4826 _json["kind"] = kind; |
4992 } | 4827 } |
4993 return _json; | 4828 return _json; |
4994 } | 4829 } |
4995 } | 4830 } |
4996 | 4831 |
4997 | 4832 |
4998 /** Not documented yet. */ | |
4999 class GeolayerdataCommon { | 4833 class GeolayerdataCommon { |
5000 /** The language of the information url and description. */ | 4834 /** The language of the information url and description. */ |
5001 core.String lang; | 4835 core.String lang; |
5002 | 4836 |
5003 /** The URL for the preview image information. */ | 4837 /** The URL for the preview image information. */ |
5004 core.String previewImageUrl; | 4838 core.String previewImageUrl; |
5005 | 4839 |
5006 /** The description for this location. */ | 4840 /** The description for this location. */ |
5007 core.String snippet; | 4841 core.String snippet; |
5008 | 4842 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5051 _json["snippetUrl"] = snippetUrl; | 4885 _json["snippetUrl"] = snippetUrl; |
5052 } | 4886 } |
5053 if (title != null) { | 4887 if (title != null) { |
5054 _json["title"] = title; | 4888 _json["title"] = title; |
5055 } | 4889 } |
5056 return _json; | 4890 return _json; |
5057 } | 4891 } |
5058 } | 4892 } |
5059 | 4893 |
5060 | 4894 |
5061 /** Not documented yet. */ | |
5062 class GeolayerdataGeoBoundary { | 4895 class GeolayerdataGeoBoundary { |
5063 /** Not documented yet. */ | |
5064 core.int latitude; | 4896 core.int latitude; |
5065 | 4897 |
5066 /** Not documented yet. */ | |
5067 core.int longitude; | 4898 core.int longitude; |
5068 | 4899 |
5069 | 4900 |
5070 GeolayerdataGeoBoundary(); | 4901 GeolayerdataGeoBoundary(); |
5071 | 4902 |
5072 GeolayerdataGeoBoundary.fromJson(core.Map _json) { | 4903 GeolayerdataGeoBoundary.fromJson(core.Map _json) { |
5073 if (_json.containsKey("latitude")) { | 4904 if (_json.containsKey("latitude")) { |
5074 latitude = _json["latitude"]; | 4905 latitude = _json["latitude"]; |
5075 } | 4906 } |
5076 if (_json.containsKey("longitude")) { | 4907 if (_json.containsKey("longitude")) { |
5077 longitude = _json["longitude"]; | 4908 longitude = _json["longitude"]; |
5078 } | 4909 } |
5079 } | 4910 } |
5080 | 4911 |
5081 core.Map toJson() { | 4912 core.Map toJson() { |
5082 var _json = new core.Map(); | 4913 var _json = new core.Map(); |
5083 if (latitude != null) { | 4914 if (latitude != null) { |
5084 _json["latitude"] = latitude; | 4915 _json["latitude"] = latitude; |
5085 } | 4916 } |
5086 if (longitude != null) { | 4917 if (longitude != null) { |
5087 _json["longitude"] = longitude; | 4918 _json["longitude"] = longitude; |
5088 } | 4919 } |
5089 return _json; | 4920 return _json; |
5090 } | 4921 } |
5091 } | 4922 } |
5092 | 4923 |
5093 | 4924 |
5094 /** Not documented yet. */ | |
5095 class GeolayerdataGeoViewportHi { | 4925 class GeolayerdataGeoViewportHi { |
5096 /** Not documented yet. */ | |
5097 core.double latitude; | 4926 core.double latitude; |
5098 | 4927 |
5099 /** Not documented yet. */ | |
5100 core.double longitude; | 4928 core.double longitude; |
5101 | 4929 |
5102 | 4930 |
5103 GeolayerdataGeoViewportHi(); | 4931 GeolayerdataGeoViewportHi(); |
5104 | 4932 |
5105 GeolayerdataGeoViewportHi.fromJson(core.Map _json) { | 4933 GeolayerdataGeoViewportHi.fromJson(core.Map _json) { |
5106 if (_json.containsKey("latitude")) { | 4934 if (_json.containsKey("latitude")) { |
5107 latitude = _json["latitude"]; | 4935 latitude = _json["latitude"]; |
5108 } | 4936 } |
5109 if (_json.containsKey("longitude")) { | 4937 if (_json.containsKey("longitude")) { |
5110 longitude = _json["longitude"]; | 4938 longitude = _json["longitude"]; |
5111 } | 4939 } |
5112 } | 4940 } |
5113 | 4941 |
5114 core.Map toJson() { | 4942 core.Map toJson() { |
5115 var _json = new core.Map(); | 4943 var _json = new core.Map(); |
5116 if (latitude != null) { | 4944 if (latitude != null) { |
5117 _json["latitude"] = latitude; | 4945 _json["latitude"] = latitude; |
5118 } | 4946 } |
5119 if (longitude != null) { | 4947 if (longitude != null) { |
5120 _json["longitude"] = longitude; | 4948 _json["longitude"] = longitude; |
5121 } | 4949 } |
5122 return _json; | 4950 return _json; |
5123 } | 4951 } |
5124 } | 4952 } |
5125 | 4953 |
5126 | 4954 |
5127 /** Not documented yet. */ | |
5128 class GeolayerdataGeoViewportLo { | 4955 class GeolayerdataGeoViewportLo { |
5129 /** Not documented yet. */ | |
5130 core.double latitude; | 4956 core.double latitude; |
5131 | 4957 |
5132 /** Not documented yet. */ | |
5133 core.double longitude; | 4958 core.double longitude; |
5134 | 4959 |
5135 | 4960 |
5136 GeolayerdataGeoViewportLo(); | 4961 GeolayerdataGeoViewportLo(); |
5137 | 4962 |
5138 GeolayerdataGeoViewportLo.fromJson(core.Map _json) { | 4963 GeolayerdataGeoViewportLo.fromJson(core.Map _json) { |
5139 if (_json.containsKey("latitude")) { | 4964 if (_json.containsKey("latitude")) { |
5140 latitude = _json["latitude"]; | 4965 latitude = _json["latitude"]; |
5141 } | 4966 } |
5142 if (_json.containsKey("longitude")) { | 4967 if (_json.containsKey("longitude")) { |
(...skipping 12 matching lines...) Expand all Loading... |
5155 return _json; | 4980 return _json; |
5156 } | 4981 } |
5157 } | 4982 } |
5158 | 4983 |
5159 | 4984 |
5160 /** | 4985 /** |
5161 * The viewport for showing this location. This is a latitude, longitude | 4986 * The viewport for showing this location. This is a latitude, longitude |
5162 * rectangle. | 4987 * rectangle. |
5163 */ | 4988 */ |
5164 class GeolayerdataGeoViewport { | 4989 class GeolayerdataGeoViewport { |
5165 /** Not documented yet. */ | |
5166 GeolayerdataGeoViewportHi hi; | 4990 GeolayerdataGeoViewportHi hi; |
5167 | 4991 |
5168 /** Not documented yet. */ | |
5169 GeolayerdataGeoViewportLo lo; | 4992 GeolayerdataGeoViewportLo lo; |
5170 | 4993 |
5171 | 4994 |
5172 GeolayerdataGeoViewport(); | 4995 GeolayerdataGeoViewport(); |
5173 | 4996 |
5174 GeolayerdataGeoViewport.fromJson(core.Map _json) { | 4997 GeolayerdataGeoViewport.fromJson(core.Map _json) { |
5175 if (_json.containsKey("hi")) { | 4998 if (_json.containsKey("hi")) { |
5176 hi = new GeolayerdataGeoViewportHi.fromJson(_json["hi"]); | 4999 hi = new GeolayerdataGeoViewportHi.fromJson(_json["hi"]); |
5177 } | 5000 } |
5178 if (_json.containsKey("lo")) { | 5001 if (_json.containsKey("lo")) { |
5179 lo = new GeolayerdataGeoViewportLo.fromJson(_json["lo"]); | 5002 lo = new GeolayerdataGeoViewportLo.fromJson(_json["lo"]); |
5180 } | 5003 } |
5181 } | 5004 } |
5182 | 5005 |
5183 core.Map toJson() { | 5006 core.Map toJson() { |
5184 var _json = new core.Map(); | 5007 var _json = new core.Map(); |
5185 if (hi != null) { | 5008 if (hi != null) { |
5186 _json["hi"] = (hi).toJson(); | 5009 _json["hi"] = (hi).toJson(); |
5187 } | 5010 } |
5188 if (lo != null) { | 5011 if (lo != null) { |
5189 _json["lo"] = (lo).toJson(); | 5012 _json["lo"] = (lo).toJson(); |
5190 } | 5013 } |
5191 return _json; | 5014 return _json; |
5192 } | 5015 } |
5193 } | 5016 } |
5194 | 5017 |
5195 | 5018 |
5196 /** Not documented yet. */ | |
5197 class GeolayerdataGeo { | 5019 class GeolayerdataGeo { |
5198 /** | 5020 /** |
5199 * The boundary of the location as a set of loops containing pairs of | 5021 * The boundary of the location as a set of loops containing pairs of |
5200 * latitude, longitude coordinates. | 5022 * latitude, longitude coordinates. |
5201 */ | 5023 */ |
5202 core.List<core.List<GeolayerdataGeoBoundary>> boundary; | 5024 core.List<core.List<GeolayerdataGeoBoundary>> boundary; |
5203 | 5025 |
5204 /** | 5026 /** |
5205 * The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER | 5027 * The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER |
5206 */ | 5028 */ |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5289 _json["viewport"] = (viewport).toJson(); | 5111 _json["viewport"] = (viewport).toJson(); |
5290 } | 5112 } |
5291 if (zoom != null) { | 5113 if (zoom != null) { |
5292 _json["zoom"] = zoom; | 5114 _json["zoom"] = zoom; |
5293 } | 5115 } |
5294 return _json; | 5116 return _json; |
5295 } | 5117 } |
5296 } | 5118 } |
5297 | 5119 |
5298 | 5120 |
5299 /** Not documented yet. */ | |
5300 class Geolayerdata { | 5121 class Geolayerdata { |
5301 /** Not documented yet. */ | |
5302 GeolayerdataCommon common; | 5122 GeolayerdataCommon common; |
5303 | 5123 |
5304 /** Not documented yet. */ | |
5305 GeolayerdataGeo geo; | 5124 GeolayerdataGeo geo; |
5306 | 5125 |
5307 /** Not documented yet. */ | |
5308 core.String kind; | 5126 core.String kind; |
5309 | 5127 |
5310 | 5128 |
5311 Geolayerdata(); | 5129 Geolayerdata(); |
5312 | 5130 |
5313 Geolayerdata.fromJson(core.Map _json) { | 5131 Geolayerdata.fromJson(core.Map _json) { |
5314 if (_json.containsKey("common")) { | 5132 if (_json.containsKey("common")) { |
5315 common = new GeolayerdataCommon.fromJson(_json["common"]); | 5133 common = new GeolayerdataCommon.fromJson(_json["common"]); |
5316 } | 5134 } |
5317 if (_json.containsKey("geo")) { | 5135 if (_json.containsKey("geo")) { |
(...skipping 13 matching lines...) Expand all Loading... |
5331 _json["geo"] = (geo).toJson(); | 5149 _json["geo"] = (geo).toJson(); |
5332 } | 5150 } |
5333 if (kind != null) { | 5151 if (kind != null) { |
5334 _json["kind"] = kind; | 5152 _json["kind"] = kind; |
5335 } | 5153 } |
5336 return _json; | 5154 return _json; |
5337 } | 5155 } |
5338 } | 5156 } |
5339 | 5157 |
5340 | 5158 |
5341 /** Not documented yet. */ | |
5342 class Layersummaries { | 5159 class Layersummaries { |
5343 /** A list of layer summary items. */ | 5160 /** A list of layer summary items. */ |
5344 core.List<Layersummary> items; | 5161 core.List<Layersummary> items; |
5345 | 5162 |
5346 /** Resource type. */ | 5163 /** Resource type. */ |
5347 core.String kind; | 5164 core.String kind; |
5348 | 5165 |
5349 /** The total number of layer summaries found. */ | 5166 /** The total number of layer summaries found. */ |
5350 core.int totalItems; | 5167 core.int totalItems; |
5351 | 5168 |
(...skipping 21 matching lines...) Expand all Loading... |
5373 _json["kind"] = kind; | 5190 _json["kind"] = kind; |
5374 } | 5191 } |
5375 if (totalItems != null) { | 5192 if (totalItems != null) { |
5376 _json["totalItems"] = totalItems; | 5193 _json["totalItems"] = totalItems; |
5377 } | 5194 } |
5378 return _json; | 5195 return _json; |
5379 } | 5196 } |
5380 } | 5197 } |
5381 | 5198 |
5382 | 5199 |
5383 /** Not documented yet. */ | |
5384 class Layersummary { | 5200 class Layersummary { |
5385 /** The number of annotations for this layer. */ | 5201 /** The number of annotations for this layer. */ |
5386 core.int annotationCount; | 5202 core.int annotationCount; |
5387 | 5203 |
5388 /** The list of annotation types contained for this layer. */ | 5204 /** The list of annotation types contained for this layer. */ |
5389 core.List<core.String> annotationTypes; | 5205 core.List<core.String> annotationTypes; |
5390 | 5206 |
5391 /** Link to get data for this annotation. */ | 5207 /** Link to get data for this annotation. */ |
5392 core.String annotationsDataLink; | 5208 core.String annotationsDataLink; |
5393 | 5209 |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5512 _json["volumeAnnotationsVersion"] = volumeAnnotationsVersion; | 5328 _json["volumeAnnotationsVersion"] = volumeAnnotationsVersion; |
5513 } | 5329 } |
5514 if (volumeId != null) { | 5330 if (volumeId != null) { |
5515 _json["volumeId"] = volumeId; | 5331 _json["volumeId"] = volumeId; |
5516 } | 5332 } |
5517 return _json; | 5333 return _json; |
5518 } | 5334 } |
5519 } | 5335 } |
5520 | 5336 |
5521 | 5337 |
5522 /** Not documented yet. */ | |
5523 class MetadataItems { | 5338 class MetadataItems { |
5524 /** Not documented yet. */ | |
5525 core.String downloadUrl; | 5339 core.String downloadUrl; |
5526 | 5340 |
5527 /** Not documented yet. */ | |
5528 core.String encryptedKey; | 5341 core.String encryptedKey; |
5529 | 5342 |
5530 /** Not documented yet. */ | |
5531 core.String language; | 5343 core.String language; |
5532 | 5344 |
5533 /** Not documented yet. */ | |
5534 core.String size; | 5345 core.String size; |
5535 | 5346 |
5536 /** Not documented yet. */ | |
5537 core.String version; | 5347 core.String version; |
5538 | 5348 |
5539 | 5349 |
5540 MetadataItems(); | 5350 MetadataItems(); |
5541 | 5351 |
5542 MetadataItems.fromJson(core.Map _json) { | 5352 MetadataItems.fromJson(core.Map _json) { |
5543 if (_json.containsKey("download_url")) { | 5353 if (_json.containsKey("download_url")) { |
5544 downloadUrl = _json["download_url"]; | 5354 downloadUrl = _json["download_url"]; |
5545 } | 5355 } |
5546 if (_json.containsKey("encrypted_key")) { | 5356 if (_json.containsKey("encrypted_key")) { |
(...skipping 25 matching lines...) Expand all Loading... |
5572 _json["size"] = size; | 5382 _json["size"] = size; |
5573 } | 5383 } |
5574 if (version != null) { | 5384 if (version != null) { |
5575 _json["version"] = version; | 5385 _json["version"] = version; |
5576 } | 5386 } |
5577 return _json; | 5387 return _json; |
5578 } | 5388 } |
5579 } | 5389 } |
5580 | 5390 |
5581 | 5391 |
5582 /** Not documented yet. */ | |
5583 class Metadata { | 5392 class Metadata { |
5584 /** A list of offline dictionary metadata. */ | 5393 /** A list of offline dictionary metadata. */ |
5585 core.List<MetadataItems> items; | 5394 core.List<MetadataItems> items; |
5586 | 5395 |
5587 /** Resource type. */ | 5396 /** Resource type. */ |
5588 core.String kind; | 5397 core.String kind; |
5589 | 5398 |
5590 | 5399 |
5591 Metadata(); | 5400 Metadata(); |
5592 | 5401 |
(...skipping 12 matching lines...) Expand all Loading... |
5605 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5414 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5606 } | 5415 } |
5607 if (kind != null) { | 5416 if (kind != null) { |
5608 _json["kind"] = kind; | 5417 _json["kind"] = kind; |
5609 } | 5418 } |
5610 return _json; | 5419 return _json; |
5611 } | 5420 } |
5612 } | 5421 } |
5613 | 5422 |
5614 | 5423 |
5615 /** Not documented yet. */ | |
5616 class OffersItemsItems { | 5424 class OffersItemsItems { |
5617 /** Not documented yet. */ | |
5618 core.String author; | 5425 core.String author; |
5619 | 5426 |
5620 /** Not documented yet. */ | |
5621 core.String canonicalVolumeLink; | 5427 core.String canonicalVolumeLink; |
5622 | 5428 |
5623 /** Not documented yet. */ | |
5624 core.String coverUrl; | 5429 core.String coverUrl; |
5625 | 5430 |
5626 /** Not documented yet. */ | |
5627 core.String description; | 5431 core.String description; |
5628 | 5432 |
5629 /** Not documented yet. */ | |
5630 core.String title; | 5433 core.String title; |
5631 | 5434 |
5632 /** Not documented yet. */ | |
5633 core.String volumeId; | 5435 core.String volumeId; |
5634 | 5436 |
5635 | 5437 |
5636 OffersItemsItems(); | 5438 OffersItemsItems(); |
5637 | 5439 |
5638 OffersItemsItems.fromJson(core.Map _json) { | 5440 OffersItemsItems.fromJson(core.Map _json) { |
5639 if (_json.containsKey("author")) { | 5441 if (_json.containsKey("author")) { |
5640 author = _json["author"]; | 5442 author = _json["author"]; |
5641 } | 5443 } |
5642 if (_json.containsKey("canonicalVolumeLink")) { | 5444 if (_json.containsKey("canonicalVolumeLink")) { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5674 _json["title"] = title; | 5476 _json["title"] = title; |
5675 } | 5477 } |
5676 if (volumeId != null) { | 5478 if (volumeId != null) { |
5677 _json["volumeId"] = volumeId; | 5479 _json["volumeId"] = volumeId; |
5678 } | 5480 } |
5679 return _json; | 5481 return _json; |
5680 } | 5482 } |
5681 } | 5483 } |
5682 | 5484 |
5683 | 5485 |
5684 /** Not documented yet. */ | |
5685 class OffersItems { | 5486 class OffersItems { |
5686 /** Not documented yet. */ | |
5687 core.String artUrl; | 5487 core.String artUrl; |
5688 | 5488 |
5689 /** Not documented yet. */ | |
5690 core.String gservicesKey; | 5489 core.String gservicesKey; |
5691 | 5490 |
5692 /** Not documented yet. */ | |
5693 core.String id; | 5491 core.String id; |
5694 | 5492 |
5695 /** Not documented yet. */ | |
5696 core.List<OffersItemsItems> items; | 5493 core.List<OffersItemsItems> items; |
5697 | 5494 |
5698 | 5495 |
5699 OffersItems(); | 5496 OffersItems(); |
5700 | 5497 |
5701 OffersItems.fromJson(core.Map _json) { | 5498 OffersItems.fromJson(core.Map _json) { |
5702 if (_json.containsKey("artUrl")) { | 5499 if (_json.containsKey("artUrl")) { |
5703 artUrl = _json["artUrl"]; | 5500 artUrl = _json["artUrl"]; |
5704 } | 5501 } |
5705 if (_json.containsKey("gservicesKey")) { | 5502 if (_json.containsKey("gservicesKey")) { |
(...skipping 19 matching lines...) Expand all Loading... |
5725 _json["id"] = id; | 5522 _json["id"] = id; |
5726 } | 5523 } |
5727 if (items != null) { | 5524 if (items != null) { |
5728 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5525 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5729 } | 5526 } |
5730 return _json; | 5527 return _json; |
5731 } | 5528 } |
5732 } | 5529 } |
5733 | 5530 |
5734 | 5531 |
5735 /** Not documented yet. */ | |
5736 class Offers { | 5532 class Offers { |
5737 /** A list of offers. */ | 5533 /** A list of offers. */ |
5738 core.List<OffersItems> items; | 5534 core.List<OffersItems> items; |
5739 | 5535 |
5740 /** Resource type. */ | 5536 /** Resource type. */ |
5741 core.String kind; | 5537 core.String kind; |
5742 | 5538 |
5743 | 5539 |
5744 Offers(); | 5540 Offers(); |
5745 | 5541 |
(...skipping 12 matching lines...) Expand all Loading... |
5758 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5554 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5759 } | 5555 } |
5760 if (kind != null) { | 5556 if (kind != null) { |
5761 _json["kind"] = kind; | 5557 _json["kind"] = kind; |
5762 } | 5558 } |
5763 return _json; | 5559 return _json; |
5764 } | 5560 } |
5765 } | 5561 } |
5766 | 5562 |
5767 | 5563 |
5768 /** Not documented yet. */ | |
5769 class ReadingPosition { | 5564 class ReadingPosition { |
5770 /** Position in an EPUB as a CFI. */ | 5565 /** Position in an EPUB as a CFI. */ |
5771 core.String epubCfiPosition; | 5566 core.String epubCfiPosition; |
5772 | 5567 |
5773 /** Position in a volume for image-based content. */ | 5568 /** Position in a volume for image-based content. */ |
5774 core.String gbImagePosition; | 5569 core.String gbImagePosition; |
5775 | 5570 |
5776 /** Position in a volume for text-based content. */ | 5571 /** Position in a volume for text-based content. */ |
5777 core.String gbTextPosition; | 5572 core.String gbTextPosition; |
5778 | 5573 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5839 _json["updated"] = (updated).toIso8601String(); | 5634 _json["updated"] = (updated).toIso8601String(); |
5840 } | 5635 } |
5841 if (volumeId != null) { | 5636 if (volumeId != null) { |
5842 _json["volumeId"] = volumeId; | 5637 _json["volumeId"] = volumeId; |
5843 } | 5638 } |
5844 return _json; | 5639 return _json; |
5845 } | 5640 } |
5846 } | 5641 } |
5847 | 5642 |
5848 | 5643 |
5849 /** Not documented yet. */ | |
5850 class RequestAccess { | 5644 class RequestAccess { |
5851 /** A concurrent access response. */ | 5645 /** A concurrent access response. */ |
5852 ConcurrentAccessRestriction concurrentAccess; | 5646 ConcurrentAccessRestriction concurrentAccess; |
5853 | 5647 |
5854 /** A download access response. */ | 5648 /** A download access response. */ |
5855 DownloadAccessRestriction downloadAccess; | 5649 DownloadAccessRestriction downloadAccess; |
5856 | 5650 |
5857 /** Resource type. */ | 5651 /** Resource type. */ |
5858 core.String kind; | 5652 core.String kind; |
5859 | 5653 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5950 _json["extraDescription"] = extraDescription; | 5744 _json["extraDescription"] = extraDescription; |
5951 } | 5745 } |
5952 if (url != null) { | 5746 if (url != null) { |
5953 _json["url"] = url; | 5747 _json["url"] = url; |
5954 } | 5748 } |
5955 return _json; | 5749 return _json; |
5956 } | 5750 } |
5957 } | 5751 } |
5958 | 5752 |
5959 | 5753 |
5960 /** Not documented yet. */ | |
5961 class Review { | 5754 class Review { |
5962 /** Author of this review. */ | 5755 /** Author of this review. */ |
5963 ReviewAuthor author; | 5756 ReviewAuthor author; |
5964 | 5757 |
5965 /** Review text. */ | 5758 /** Review text. */ |
5966 core.String content; | 5759 core.String content; |
5967 | 5760 |
5968 /** Date of this review. */ | 5761 /** Date of this review. */ |
5969 core.String date; | 5762 core.String date; |
5970 | 5763 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6066 if (volumeId != null) { | 5859 if (volumeId != null) { |
6067 _json["volumeId"] = volumeId; | 5860 _json["volumeId"] = volumeId; |
6068 } | 5861 } |
6069 return _json; | 5862 return _json; |
6070 } | 5863 } |
6071 } | 5864 } |
6072 | 5865 |
6073 | 5866 |
6074 /** User settings in sub-objects, each for different purposes. */ | 5867 /** User settings in sub-objects, each for different purposes. */ |
6075 class UsersettingsNotesExport { | 5868 class UsersettingsNotesExport { |
6076 /** Not documented yet. */ | |
6077 core.String folderName; | 5869 core.String folderName; |
6078 | 5870 |
6079 /** Not documented yet. */ | |
6080 core.bool isEnabled; | 5871 core.bool isEnabled; |
6081 | 5872 |
6082 | 5873 |
6083 UsersettingsNotesExport(); | 5874 UsersettingsNotesExport(); |
6084 | 5875 |
6085 UsersettingsNotesExport.fromJson(core.Map _json) { | 5876 UsersettingsNotesExport.fromJson(core.Map _json) { |
6086 if (_json.containsKey("folderName")) { | 5877 if (_json.containsKey("folderName")) { |
6087 folderName = _json["folderName"]; | 5878 folderName = _json["folderName"]; |
6088 } | 5879 } |
6089 if (_json.containsKey("isEnabled")) { | 5880 if (_json.containsKey("isEnabled")) { |
6090 isEnabled = _json["isEnabled"]; | 5881 isEnabled = _json["isEnabled"]; |
6091 } | 5882 } |
6092 } | 5883 } |
6093 | 5884 |
6094 core.Map toJson() { | 5885 core.Map toJson() { |
6095 var _json = new core.Map(); | 5886 var _json = new core.Map(); |
6096 if (folderName != null) { | 5887 if (folderName != null) { |
6097 _json["folderName"] = folderName; | 5888 _json["folderName"] = folderName; |
6098 } | 5889 } |
6099 if (isEnabled != null) { | 5890 if (isEnabled != null) { |
6100 _json["isEnabled"] = isEnabled; | 5891 _json["isEnabled"] = isEnabled; |
6101 } | 5892 } |
6102 return _json; | 5893 return _json; |
6103 } | 5894 } |
6104 } | 5895 } |
6105 | 5896 |
6106 | 5897 |
6107 /** Not documented yet. */ | |
6108 class Usersettings { | 5898 class Usersettings { |
6109 /** Resource type. */ | 5899 /** Resource type. */ |
6110 core.String kind; | 5900 core.String kind; |
6111 | 5901 |
6112 /** User settings in sub-objects, each for different purposes. */ | 5902 /** User settings in sub-objects, each for different purposes. */ |
6113 UsersettingsNotesExport notesExport; | 5903 UsersettingsNotesExport notesExport; |
6114 | 5904 |
6115 | 5905 |
6116 Usersettings(); | 5906 Usersettings(); |
6117 | 5907 |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6398 _json["viewability"] = viewability; | 6188 _json["viewability"] = viewability; |
6399 } | 6189 } |
6400 if (webReaderLink != null) { | 6190 if (webReaderLink != null) { |
6401 _json["webReaderLink"] = webReaderLink; | 6191 _json["webReaderLink"] = webReaderLink; |
6402 } | 6192 } |
6403 return _json; | 6193 return _json; |
6404 } | 6194 } |
6405 } | 6195 } |
6406 | 6196 |
6407 | 6197 |
6408 /** Not documented yet. */ | |
6409 class VolumeLayerInfoLayers { | 6198 class VolumeLayerInfoLayers { |
6410 /** The layer id of this layer (e.g. "geo"). */ | 6199 /** The layer id of this layer (e.g. "geo"). */ |
6411 core.String layerId; | 6200 core.String layerId; |
6412 | 6201 |
6413 /** | 6202 /** |
6414 * The current version of this layer's volume annotations. Note that this | 6203 * The current version of this layer's volume annotations. Note that this |
6415 * version applies only to the data in the books.layers.volumeAnnotations.* | 6204 * version applies only to the data in the books.layers.volumeAnnotations.* |
6416 * responses. The actual annotation data is versioned separately. | 6205 * responses. The actual annotation data is versioned separately. |
6417 */ | 6206 */ |
6418 core.String volumeAnnotationsVersion; | 6207 core.String volumeAnnotationsVersion; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6520 if (currencyCode != null) { | 6309 if (currencyCode != null) { |
6521 _json["currencyCode"] = currencyCode; | 6310 _json["currencyCode"] = currencyCode; |
6522 } | 6311 } |
6523 return _json; | 6312 return _json; |
6524 } | 6313 } |
6525 } | 6314 } |
6526 | 6315 |
6527 | 6316 |
6528 /** Offer list (=undiscounted) price in Micros. */ | 6317 /** Offer list (=undiscounted) price in Micros. */ |
6529 class VolumeSaleInfoOffersListPrice { | 6318 class VolumeSaleInfoOffersListPrice { |
6530 /** Not documented yet. */ | |
6531 core.double amountInMicros; | 6319 core.double amountInMicros; |
6532 | 6320 |
6533 /** Not documented yet. */ | |
6534 core.String currencyCode; | 6321 core.String currencyCode; |
6535 | 6322 |
6536 | 6323 |
6537 VolumeSaleInfoOffersListPrice(); | 6324 VolumeSaleInfoOffersListPrice(); |
6538 | 6325 |
6539 VolumeSaleInfoOffersListPrice.fromJson(core.Map _json) { | 6326 VolumeSaleInfoOffersListPrice.fromJson(core.Map _json) { |
6540 if (_json.containsKey("amountInMicros")) { | 6327 if (_json.containsKey("amountInMicros")) { |
6541 amountInMicros = _json["amountInMicros"]; | 6328 amountInMicros = _json["amountInMicros"]; |
6542 } | 6329 } |
6543 if (_json.containsKey("currencyCode")) { | 6330 if (_json.containsKey("currencyCode")) { |
6544 currencyCode = _json["currencyCode"]; | 6331 currencyCode = _json["currencyCode"]; |
6545 } | 6332 } |
6546 } | 6333 } |
6547 | 6334 |
6548 core.Map toJson() { | 6335 core.Map toJson() { |
6549 var _json = new core.Map(); | 6336 var _json = new core.Map(); |
6550 if (amountInMicros != null) { | 6337 if (amountInMicros != null) { |
6551 _json["amountInMicros"] = amountInMicros; | 6338 _json["amountInMicros"] = amountInMicros; |
6552 } | 6339 } |
6553 if (currencyCode != null) { | 6340 if (currencyCode != null) { |
6554 _json["currencyCode"] = currencyCode; | 6341 _json["currencyCode"] = currencyCode; |
6555 } | 6342 } |
6556 return _json; | 6343 return _json; |
6557 } | 6344 } |
6558 } | 6345 } |
6559 | 6346 |
6560 | 6347 |
6561 /** The rental duration (for rental offers only). */ | 6348 /** The rental duration (for rental offers only). */ |
6562 class VolumeSaleInfoOffersRentalDuration { | 6349 class VolumeSaleInfoOffersRentalDuration { |
6563 /** Not documented yet. */ | |
6564 core.double count; | 6350 core.double count; |
6565 | 6351 |
6566 /** Not documented yet. */ | |
6567 core.String unit; | 6352 core.String unit; |
6568 | 6353 |
6569 | 6354 |
6570 VolumeSaleInfoOffersRentalDuration(); | 6355 VolumeSaleInfoOffersRentalDuration(); |
6571 | 6356 |
6572 VolumeSaleInfoOffersRentalDuration.fromJson(core.Map _json) { | 6357 VolumeSaleInfoOffersRentalDuration.fromJson(core.Map _json) { |
6573 if (_json.containsKey("count")) { | 6358 if (_json.containsKey("count")) { |
6574 count = _json["count"]; | 6359 count = _json["count"]; |
6575 } | 6360 } |
6576 if (_json.containsKey("unit")) { | 6361 if (_json.containsKey("unit")) { |
6577 unit = _json["unit"]; | 6362 unit = _json["unit"]; |
6578 } | 6363 } |
6579 } | 6364 } |
6580 | 6365 |
6581 core.Map toJson() { | 6366 core.Map toJson() { |
6582 var _json = new core.Map(); | 6367 var _json = new core.Map(); |
6583 if (count != null) { | 6368 if (count != null) { |
6584 _json["count"] = count; | 6369 _json["count"] = count; |
6585 } | 6370 } |
6586 if (unit != null) { | 6371 if (unit != null) { |
6587 _json["unit"] = unit; | 6372 _json["unit"] = unit; |
6588 } | 6373 } |
6589 return _json; | 6374 return _json; |
6590 } | 6375 } |
6591 } | 6376 } |
6592 | 6377 |
6593 | 6378 |
6594 /** Offer retail (=discounted) price in Micros */ | 6379 /** Offer retail (=discounted) price in Micros */ |
6595 class VolumeSaleInfoOffersRetailPrice { | 6380 class VolumeSaleInfoOffersRetailPrice { |
6596 /** Not documented yet. */ | |
6597 core.double amountInMicros; | 6381 core.double amountInMicros; |
6598 | 6382 |
6599 /** Not documented yet. */ | |
6600 core.String currencyCode; | 6383 core.String currencyCode; |
6601 | 6384 |
6602 | 6385 |
6603 VolumeSaleInfoOffersRetailPrice(); | 6386 VolumeSaleInfoOffersRetailPrice(); |
6604 | 6387 |
6605 VolumeSaleInfoOffersRetailPrice.fromJson(core.Map _json) { | 6388 VolumeSaleInfoOffersRetailPrice.fromJson(core.Map _json) { |
6606 if (_json.containsKey("amountInMicros")) { | 6389 if (_json.containsKey("amountInMicros")) { |
6607 amountInMicros = _json["amountInMicros"]; | 6390 amountInMicros = _json["amountInMicros"]; |
6608 } | 6391 } |
6609 if (_json.containsKey("currencyCode")) { | 6392 if (_json.containsKey("currencyCode")) { |
6610 currencyCode = _json["currencyCode"]; | 6393 currencyCode = _json["currencyCode"]; |
6611 } | 6394 } |
6612 } | 6395 } |
6613 | 6396 |
6614 core.Map toJson() { | 6397 core.Map toJson() { |
6615 var _json = new core.Map(); | 6398 var _json = new core.Map(); |
6616 if (amountInMicros != null) { | 6399 if (amountInMicros != null) { |
6617 _json["amountInMicros"] = amountInMicros; | 6400 _json["amountInMicros"] = amountInMicros; |
6618 } | 6401 } |
6619 if (currencyCode != null) { | 6402 if (currencyCode != null) { |
6620 _json["currencyCode"] = currencyCode; | 6403 _json["currencyCode"] = currencyCode; |
6621 } | 6404 } |
6622 return _json; | 6405 return _json; |
6623 } | 6406 } |
6624 } | 6407 } |
6625 | 6408 |
6626 | 6409 |
6627 /** Not documented yet. */ | |
6628 class VolumeSaleInfoOffers { | 6410 class VolumeSaleInfoOffers { |
6629 /** The finsky offer type (e.g., PURCHASE=0 RENTAL=3) */ | 6411 /** The finsky offer type (e.g., PURCHASE=0 RENTAL=3) */ |
6630 core.int finskyOfferType; | 6412 core.int finskyOfferType; |
6631 | 6413 |
6632 /** Offer list (=undiscounted) price in Micros. */ | 6414 /** Offer list (=undiscounted) price in Micros. */ |
6633 VolumeSaleInfoOffersListPrice listPrice; | 6415 VolumeSaleInfoOffersListPrice listPrice; |
6634 | 6416 |
6635 /** The rental duration (for rental offers only). */ | 6417 /** The rental duration (for rental offers only). */ |
6636 VolumeSaleInfoOffersRentalDuration rentalDuration; | 6418 VolumeSaleInfoOffersRentalDuration rentalDuration; |
6637 | 6419 |
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6839 if (textSnippet != null) { | 6621 if (textSnippet != null) { |
6840 _json["textSnippet"] = textSnippet; | 6622 _json["textSnippet"] = textSnippet; |
6841 } | 6623 } |
6842 return _json; | 6624 return _json; |
6843 } | 6625 } |
6844 } | 6626 } |
6845 | 6627 |
6846 | 6628 |
6847 /** Copy/Paste accounting information. */ | 6629 /** Copy/Paste accounting information. */ |
6848 class VolumeUserInfoCopy { | 6630 class VolumeUserInfoCopy { |
6849 /** Not documented yet. */ | |
6850 core.int allowedCharacterCount; | 6631 core.int allowedCharacterCount; |
6851 | 6632 |
6852 /** Not documented yet. */ | |
6853 core.String limitType; | 6633 core.String limitType; |
6854 | 6634 |
6855 /** Not documented yet. */ | |
6856 core.int remainingCharacterCount; | 6635 core.int remainingCharacterCount; |
6857 | 6636 |
6858 /** Not documented yet. */ | |
6859 core.DateTime updated; | 6637 core.DateTime updated; |
6860 | 6638 |
6861 | 6639 |
6862 VolumeUserInfoCopy(); | 6640 VolumeUserInfoCopy(); |
6863 | 6641 |
6864 VolumeUserInfoCopy.fromJson(core.Map _json) { | 6642 VolumeUserInfoCopy.fromJson(core.Map _json) { |
6865 if (_json.containsKey("allowedCharacterCount")) { | 6643 if (_json.containsKey("allowedCharacterCount")) { |
6866 allowedCharacterCount = _json["allowedCharacterCount"]; | 6644 allowedCharacterCount = _json["allowedCharacterCount"]; |
6867 } | 6645 } |
6868 if (_json.containsKey("limitType")) { | 6646 if (_json.containsKey("limitType")) { |
(...skipping 21 matching lines...) Expand all Loading... |
6890 if (updated != null) { | 6668 if (updated != null) { |
6891 _json["updated"] = (updated).toIso8601String(); | 6669 _json["updated"] = (updated).toIso8601String(); |
6892 } | 6670 } |
6893 return _json; | 6671 return _json; |
6894 } | 6672 } |
6895 } | 6673 } |
6896 | 6674 |
6897 | 6675 |
6898 /** Period during this book is/was a valid rental. */ | 6676 /** Period during this book is/was a valid rental. */ |
6899 class VolumeUserInfoRentalPeriod { | 6677 class VolumeUserInfoRentalPeriod { |
6900 /** Not documented yet. */ | |
6901 core.String endUtcSec; | 6678 core.String endUtcSec; |
6902 | 6679 |
6903 /** Not documented yet. */ | |
6904 core.String startUtcSec; | 6680 core.String startUtcSec; |
6905 | 6681 |
6906 | 6682 |
6907 VolumeUserInfoRentalPeriod(); | 6683 VolumeUserInfoRentalPeriod(); |
6908 | 6684 |
6909 VolumeUserInfoRentalPeriod.fromJson(core.Map _json) { | 6685 VolumeUserInfoRentalPeriod.fromJson(core.Map _json) { |
6910 if (_json.containsKey("endUtcSec")) { | 6686 if (_json.containsKey("endUtcSec")) { |
6911 endUtcSec = _json["endUtcSec"]; | 6687 endUtcSec = _json["endUtcSec"]; |
6912 } | 6688 } |
6913 if (_json.containsKey("startUtcSec")) { | 6689 if (_json.containsKey("startUtcSec")) { |
6914 startUtcSec = _json["startUtcSec"]; | 6690 startUtcSec = _json["startUtcSec"]; |
6915 } | 6691 } |
6916 } | 6692 } |
6917 | 6693 |
6918 core.Map toJson() { | 6694 core.Map toJson() { |
6919 var _json = new core.Map(); | 6695 var _json = new core.Map(); |
6920 if (endUtcSec != null) { | 6696 if (endUtcSec != null) { |
6921 _json["endUtcSec"] = endUtcSec; | 6697 _json["endUtcSec"] = endUtcSec; |
6922 } | 6698 } |
6923 if (startUtcSec != null) { | 6699 if (startUtcSec != null) { |
6924 _json["startUtcSec"] = startUtcSec; | 6700 _json["startUtcSec"] = startUtcSec; |
6925 } | 6701 } |
6926 return _json; | 6702 return _json; |
6927 } | 6703 } |
6928 } | 6704 } |
6929 | 6705 |
6930 | 6706 |
6931 /** Not documented yet. */ | |
6932 class VolumeUserInfoUserUploadedVolumeInfo { | 6707 class VolumeUserInfoUserUploadedVolumeInfo { |
6933 /** Not documented yet. */ | |
6934 core.String processingState; | 6708 core.String processingState; |
6935 | 6709 |
6936 | 6710 |
6937 VolumeUserInfoUserUploadedVolumeInfo(); | 6711 VolumeUserInfoUserUploadedVolumeInfo(); |
6938 | 6712 |
6939 VolumeUserInfoUserUploadedVolumeInfo.fromJson(core.Map _json) { | 6713 VolumeUserInfoUserUploadedVolumeInfo.fromJson(core.Map _json) { |
6940 if (_json.containsKey("processingState")) { | 6714 if (_json.containsKey("processingState")) { |
6941 processingState = _json["processingState"]; | 6715 processingState = _json["processingState"]; |
6942 } | 6716 } |
6943 } | 6717 } |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6993 /** This user's review of this volume, if one exists. */ | 6767 /** This user's review of this volume, if one exists. */ |
6994 Review review; | 6768 Review review; |
6995 | 6769 |
6996 /** | 6770 /** |
6997 * Timestamp when this volume was last modified by a user action, such as a | 6771 * Timestamp when this volume was last modified by a user action, such as a |
6998 * reading position update, volume purchase or writing a review. (RFC 3339 UTC | 6772 * reading position update, volume purchase or writing a review. (RFC 3339 UTC |
6999 * date-time format). | 6773 * date-time format). |
7000 */ | 6774 */ |
7001 core.DateTime updated; | 6775 core.DateTime updated; |
7002 | 6776 |
7003 /** Not documented yet. */ | |
7004 VolumeUserInfoUserUploadedVolumeInfo userUploadedVolumeInfo; | 6777 VolumeUserInfoUserUploadedVolumeInfo userUploadedVolumeInfo; |
7005 | 6778 |
7006 | 6779 |
7007 VolumeUserInfo(); | 6780 VolumeUserInfo(); |
7008 | 6781 |
7009 VolumeUserInfo.fromJson(core.Map _json) { | 6782 VolumeUserInfo.fromJson(core.Map _json) { |
7010 if (_json.containsKey("copy")) { | 6783 if (_json.containsKey("copy")) { |
7011 copy = new VolumeUserInfoCopy.fromJson(_json["copy"]); | 6784 copy = new VolumeUserInfoCopy.fromJson(_json["copy"]); |
7012 } | 6785 } |
7013 if (_json.containsKey("isInMyBooks")) { | 6786 if (_json.containsKey("isInMyBooks")) { |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7199 _json["smallThumbnail"] = smallThumbnail; | 6972 _json["smallThumbnail"] = smallThumbnail; |
7200 } | 6973 } |
7201 if (thumbnail != null) { | 6974 if (thumbnail != null) { |
7202 _json["thumbnail"] = thumbnail; | 6975 _json["thumbnail"] = thumbnail; |
7203 } | 6976 } |
7204 return _json; | 6977 return _json; |
7205 } | 6978 } |
7206 } | 6979 } |
7207 | 6980 |
7208 | 6981 |
7209 /** Not documented yet. */ | |
7210 class VolumeVolumeInfoIndustryIdentifiers { | 6982 class VolumeVolumeInfoIndustryIdentifiers { |
7211 /** Industry specific volume identifier. */ | 6983 /** Industry specific volume identifier. */ |
7212 core.String identifier; | 6984 core.String identifier; |
7213 | 6985 |
7214 /** Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER. */ | 6986 /** Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER. */ |
7215 core.String type; | 6987 core.String type; |
7216 | 6988 |
7217 | 6989 |
7218 VolumeVolumeInfoIndustryIdentifiers(); | 6990 VolumeVolumeInfoIndustryIdentifiers(); |
7219 | 6991 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7483 _json["subtitle"] = subtitle; | 7255 _json["subtitle"] = subtitle; |
7484 } | 7256 } |
7485 if (title != null) { | 7257 if (title != null) { |
7486 _json["title"] = title; | 7258 _json["title"] = title; |
7487 } | 7259 } |
7488 return _json; | 7260 return _json; |
7489 } | 7261 } |
7490 } | 7262 } |
7491 | 7263 |
7492 | 7264 |
7493 /** Not documented yet. */ | |
7494 class Volume { | 7265 class Volume { |
7495 /** | 7266 /** |
7496 * Any information about a volume related to reading or obtaining that volume | 7267 * Any information about a volume related to reading or obtaining that volume |
7497 * text. This information can depend on country (books may be public domain in | 7268 * text. This information can depend on country (books may be public domain in |
7498 * one country but not in another, e.g.). | 7269 * one country but not in another, e.g.). |
7499 */ | 7270 */ |
7500 VolumeAccessInfo accessInfo; | 7271 VolumeAccessInfo accessInfo; |
7501 | 7272 |
7502 /** | 7273 /** |
7503 * Opaque identifier for a specific version of a volume resource. (In LITE | 7274 * Opaque identifier for a specific version of a volume resource. (In LITE |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7614 _json["userInfo"] = (userInfo).toJson(); | 7385 _json["userInfo"] = (userInfo).toJson(); |
7615 } | 7386 } |
7616 if (volumeInfo != null) { | 7387 if (volumeInfo != null) { |
7617 _json["volumeInfo"] = (volumeInfo).toJson(); | 7388 _json["volumeInfo"] = (volumeInfo).toJson(); |
7618 } | 7389 } |
7619 return _json; | 7390 return _json; |
7620 } | 7391 } |
7621 } | 7392 } |
7622 | 7393 |
7623 | 7394 |
7624 /** Not documented yet. */ | |
7625 class Volume2 { | 7395 class Volume2 { |
7626 /** A list of volumes. */ | 7396 /** A list of volumes. */ |
7627 core.List<Volume> items; | 7397 core.List<Volume> items; |
7628 | 7398 |
7629 /** Resource type. */ | 7399 /** Resource type. */ |
7630 core.String kind; | 7400 core.String kind; |
7631 | 7401 |
7632 /** Not documented yet. */ | |
7633 core.String nextPageToken; | 7402 core.String nextPageToken; |
7634 | 7403 |
7635 | 7404 |
7636 Volume2(); | 7405 Volume2(); |
7637 | 7406 |
7638 Volume2.fromJson(core.Map _json) { | 7407 Volume2.fromJson(core.Map _json) { |
7639 if (_json.containsKey("items")) { | 7408 if (_json.containsKey("items")) { |
7640 items = _json["items"].map((value) => new Volume.fromJson(value)).toList()
; | 7409 items = _json["items"].map((value) => new Volume.fromJson(value)).toList()
; |
7641 } | 7410 } |
7642 if (_json.containsKey("kind")) { | 7411 if (_json.containsKey("kind")) { |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7707 _json["gbImageRange"] = (gbImageRange).toJson(); | 7476 _json["gbImageRange"] = (gbImageRange).toJson(); |
7708 } | 7477 } |
7709 if (gbTextRange != null) { | 7478 if (gbTextRange != null) { |
7710 _json["gbTextRange"] = (gbTextRange).toJson(); | 7479 _json["gbTextRange"] = (gbTextRange).toJson(); |
7711 } | 7480 } |
7712 return _json; | 7481 return _json; |
7713 } | 7482 } |
7714 } | 7483 } |
7715 | 7484 |
7716 | 7485 |
7717 /** Not documented yet. */ | |
7718 class Volumeannotation { | 7486 class Volumeannotation { |
7719 /** The annotation data id for this volume annotation. */ | 7487 /** The annotation data id for this volume annotation. */ |
7720 core.String annotationDataId; | 7488 core.String annotationDataId; |
7721 | 7489 |
7722 /** Link to get data for this annotation. */ | 7490 /** Link to get data for this annotation. */ |
7723 core.String annotationDataLink; | 7491 core.String annotationDataLink; |
7724 | 7492 |
7725 /** The type of annotation this is. */ | 7493 /** The type of annotation this is. */ |
7726 core.String annotationType; | 7494 core.String annotationType; |
7727 | 7495 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7851 _json["updated"] = (updated).toIso8601String(); | 7619 _json["updated"] = (updated).toIso8601String(); |
7852 } | 7620 } |
7853 if (volumeId != null) { | 7621 if (volumeId != null) { |
7854 _json["volumeId"] = volumeId; | 7622 _json["volumeId"] = volumeId; |
7855 } | 7623 } |
7856 return _json; | 7624 return _json; |
7857 } | 7625 } |
7858 } | 7626 } |
7859 | 7627 |
7860 | 7628 |
7861 /** Not documented yet. */ | |
7862 class Volumeannotations { | 7629 class Volumeannotations { |
7863 /** A list of volume annotations. */ | 7630 /** A list of volume annotations. */ |
7864 core.List<Volumeannotation> items; | 7631 core.List<Volumeannotation> items; |
7865 | 7632 |
7866 /** Resource type */ | 7633 /** Resource type */ |
7867 core.String kind; | 7634 core.String kind; |
7868 | 7635 |
7869 /** | 7636 /** |
7870 * Token to pass in for pagination for the next page. This will not be present | 7637 * Token to pass in for pagination for the next page. This will not be present |
7871 * if this request does not have more results. | 7638 * if this request does not have more results. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7919 _json["totalItems"] = totalItems; | 7686 _json["totalItems"] = totalItems; |
7920 } | 7687 } |
7921 if (version != null) { | 7688 if (version != null) { |
7922 _json["version"] = version; | 7689 _json["version"] = version; |
7923 } | 7690 } |
7924 return _json; | 7691 return _json; |
7925 } | 7692 } |
7926 } | 7693 } |
7927 | 7694 |
7928 | 7695 |
7929 /** Not documented yet. */ | |
7930 class Volumes { | 7696 class Volumes { |
7931 /** A list of volumes. */ | 7697 /** A list of volumes. */ |
7932 core.List<Volume> items; | 7698 core.List<Volume> items; |
7933 | 7699 |
7934 /** Resource type. */ | 7700 /** Resource type. */ |
7935 core.String kind; | 7701 core.String kind; |
7936 | 7702 |
7937 /** | 7703 /** |
7938 * Total number of volumes found. This might be greater than the number of | 7704 * Total number of volumes found. This might be greater than the number of |
7939 * volumes returned in this response if results have been paginated. | 7705 * volumes returned in this response if results have been paginated. |
(...skipping 22 matching lines...) Expand all Loading... |
7962 } | 7728 } |
7963 if (kind != null) { | 7729 if (kind != null) { |
7964 _json["kind"] = kind; | 7730 _json["kind"] = kind; |
7965 } | 7731 } |
7966 if (totalItems != null) { | 7732 if (totalItems != null) { |
7967 _json["totalItems"] = totalItems; | 7733 _json["totalItems"] = totalItems; |
7968 } | 7734 } |
7969 return _json; | 7735 return _json; |
7970 } | 7736 } |
7971 } | 7737 } |
7972 | |
7973 | |
OLD | NEW |