OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.books.v1; | 3 library googleapis.books.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client books/v1'; | 15 const core.String USER_AGENT = 'dart-api-client books/v1'; |
16 | 16 |
17 /** Searches for books and manages your Google Books library. */ | 17 /// Searches for books and manages your Google Books library. |
18 class BooksApi { | 18 class BooksApi { |
19 /** Manage your books */ | 19 /// Manage your books |
20 static const BooksScope = "https://www.googleapis.com/auth/books"; | 20 static const BooksScope = "https://www.googleapis.com/auth/books"; |
21 | 21 |
22 | |
23 final commons.ApiRequester _requester; | 22 final commons.ApiRequester _requester; |
24 | 23 |
25 BookshelvesResourceApi get bookshelves => new BookshelvesResourceApi(_requeste
r); | 24 BookshelvesResourceApi get bookshelves => |
26 CloudloadingResourceApi get cloudloading => new CloudloadingResourceApi(_reque
ster); | 25 new BookshelvesResourceApi(_requester); |
| 26 CloudloadingResourceApi get cloudloading => |
| 27 new CloudloadingResourceApi(_requester); |
27 DictionaryResourceApi get dictionary => new DictionaryResourceApi(_requester); | 28 DictionaryResourceApi get dictionary => new DictionaryResourceApi(_requester); |
28 LayersResourceApi get layers => new LayersResourceApi(_requester); | 29 LayersResourceApi get layers => new LayersResourceApi(_requester); |
29 MyconfigResourceApi get myconfig => new MyconfigResourceApi(_requester); | 30 MyconfigResourceApi get myconfig => new MyconfigResourceApi(_requester); |
30 MylibraryResourceApi get mylibrary => new MylibraryResourceApi(_requester); | 31 MylibraryResourceApi get mylibrary => new MylibraryResourceApi(_requester); |
31 NotificationResourceApi get notification => new NotificationResourceApi(_reque
ster); | 32 NotificationResourceApi get notification => |
| 33 new NotificationResourceApi(_requester); |
32 OnboardingResourceApi get onboarding => new OnboardingResourceApi(_requester); | 34 OnboardingResourceApi get onboarding => new OnboardingResourceApi(_requester); |
33 PersonalizedstreamResourceApi get personalizedstream => new Personalizedstream
ResourceApi(_requester); | 35 PersonalizedstreamResourceApi get personalizedstream => |
| 36 new PersonalizedstreamResourceApi(_requester); |
34 PromoofferResourceApi get promooffer => new PromoofferResourceApi(_requester); | 37 PromoofferResourceApi get promooffer => new PromoofferResourceApi(_requester); |
35 SeriesResourceApi get series => new SeriesResourceApi(_requester); | 38 SeriesResourceApi get series => new SeriesResourceApi(_requester); |
36 VolumesResourceApi get volumes => new VolumesResourceApi(_requester); | 39 VolumesResourceApi get volumes => new VolumesResourceApi(_requester); |
37 | 40 |
38 BooksApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com
/", core.String servicePath: "books/v1/"}) : | 41 BooksApi(http.Client client, |
39 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 42 {core.String rootUrl: "https://www.googleapis.com/", |
| 43 core.String servicePath: "books/v1/"}) |
| 44 : _requester = |
| 45 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
40 } | 46 } |
41 | 47 |
42 | |
43 class BookshelvesResourceApi { | 48 class BookshelvesResourceApi { |
44 final commons.ApiRequester _requester; | 49 final commons.ApiRequester _requester; |
45 | 50 |
46 BookshelvesVolumesResourceApi get volumes => new BookshelvesVolumesResourceApi
(_requester); | 51 BookshelvesVolumesResourceApi get volumes => |
| 52 new BookshelvesVolumesResourceApi(_requester); |
47 | 53 |
48 BookshelvesResourceApi(commons.ApiRequester client) : | 54 BookshelvesResourceApi(commons.ApiRequester client) : _requester = client; |
49 _requester = client; | |
50 | 55 |
51 /** | 56 /// Retrieves metadata for a specific bookshelf for the specified user. |
52 * Retrieves metadata for a specific bookshelf for the specified user. | 57 /// |
53 * | 58 /// Request parameters: |
54 * Request parameters: | 59 /// |
55 * | 60 /// [userId] - ID of user for whom to retrieve bookshelves. |
56 * [userId] - ID of user for whom to retrieve bookshelves. | 61 /// |
57 * | 62 /// [shelf] - ID of bookshelf to retrieve. |
58 * [shelf] - ID of bookshelf to retrieve. | 63 /// |
59 * | 64 /// [source] - String to identify the originator of this request. |
60 * [source] - String to identify the originator of this request. | 65 /// |
61 * | 66 /// Completes with a [Bookshelf]. |
62 * Completes with a [Bookshelf]. | 67 /// |
63 * | 68 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
64 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 69 /// an error. |
65 * error. | 70 /// |
66 * | 71 /// If the used [http.Client] completes with an error when making a REST |
67 * If the used [http.Client] completes with an error when making a REST call, | 72 /// call, this method will complete with the same error. |
68 * this method will complete with the same error. | 73 async.Future<Bookshelf> get(core.String userId, core.String shelf, |
69 */ | 74 {core.String source}) { |
70 async.Future<Bookshelf> get(core.String userId, core.String shelf, {core.Strin
g source}) { | |
71 var _url = null; | 75 var _url = null; |
72 var _queryParams = new core.Map(); | 76 var _queryParams = new core.Map(); |
73 var _uploadMedia = null; | 77 var _uploadMedia = null; |
74 var _uploadOptions = null; | 78 var _uploadOptions = null; |
75 var _downloadOptions = commons.DownloadOptions.Metadata; | 79 var _downloadOptions = commons.DownloadOptions.Metadata; |
76 var _body = null; | 80 var _body = null; |
77 | 81 |
78 if (userId == null) { | 82 if (userId == null) { |
79 throw new core.ArgumentError("Parameter userId is required."); | 83 throw new core.ArgumentError("Parameter userId is required."); |
80 } | 84 } |
81 if (shelf == null) { | 85 if (shelf == null) { |
82 throw new core.ArgumentError("Parameter shelf is required."); | 86 throw new core.ArgumentError("Parameter shelf is required."); |
83 } | 87 } |
84 if (source != null) { | 88 if (source != null) { |
85 _queryParams["source"] = [source]; | 89 _queryParams["source"] = [source]; |
86 } | 90 } |
87 | 91 |
88 _url = 'users/' + commons.Escaper.ecapeVariable('$userId') + '/bookshelves/'
+ commons.Escaper.ecapeVariable('$shelf'); | 92 _url = 'users/' + |
| 93 commons.Escaper.ecapeVariable('$userId') + |
| 94 '/bookshelves/' + |
| 95 commons.Escaper.ecapeVariable('$shelf'); |
89 | 96 |
90 var _response = _requester.request(_url, | 97 var _response = _requester.request(_url, "GET", |
91 "GET", | 98 body: _body, |
92 body: _body, | 99 queryParams: _queryParams, |
93 queryParams: _queryParams, | 100 uploadOptions: _uploadOptions, |
94 uploadOptions: _uploadOptions, | 101 uploadMedia: _uploadMedia, |
95 uploadMedia: _uploadMedia, | 102 downloadOptions: _downloadOptions); |
96 downloadOptions: _downloadOptions); | |
97 return _response.then((data) => new Bookshelf.fromJson(data)); | 103 return _response.then((data) => new Bookshelf.fromJson(data)); |
98 } | 104 } |
99 | 105 |
100 /** | 106 /// Retrieves a list of public bookshelves for the specified user. |
101 * Retrieves a list of public bookshelves for the specified user. | 107 /// |
102 * | 108 /// Request parameters: |
103 * Request parameters: | 109 /// |
104 * | 110 /// [userId] - ID of user for whom to retrieve bookshelves. |
105 * [userId] - ID of user for whom to retrieve bookshelves. | 111 /// |
106 * | 112 /// [source] - String to identify the originator of this request. |
107 * [source] - String to identify the originator of this request. | 113 /// |
108 * | 114 /// Completes with a [Bookshelves]. |
109 * Completes with a [Bookshelves]. | 115 /// |
110 * | 116 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
111 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 117 /// an error. |
112 * error. | 118 /// |
113 * | 119 /// If the used [http.Client] completes with an error when making a REST |
114 * If the used [http.Client] completes with an error when making a REST call, | 120 /// call, this method will complete with the same error. |
115 * this method will complete with the same error. | |
116 */ | |
117 async.Future<Bookshelves> list(core.String userId, {core.String source}) { | 121 async.Future<Bookshelves> list(core.String userId, {core.String source}) { |
118 var _url = null; | 122 var _url = null; |
119 var _queryParams = new core.Map(); | 123 var _queryParams = new core.Map(); |
120 var _uploadMedia = null; | 124 var _uploadMedia = null; |
121 var _uploadOptions = null; | 125 var _uploadOptions = null; |
122 var _downloadOptions = commons.DownloadOptions.Metadata; | 126 var _downloadOptions = commons.DownloadOptions.Metadata; |
123 var _body = null; | 127 var _body = null; |
124 | 128 |
125 if (userId == null) { | 129 if (userId == null) { |
126 throw new core.ArgumentError("Parameter userId is required."); | 130 throw new core.ArgumentError("Parameter userId is required."); |
127 } | 131 } |
128 if (source != null) { | 132 if (source != null) { |
129 _queryParams["source"] = [source]; | 133 _queryParams["source"] = [source]; |
130 } | 134 } |
131 | 135 |
132 _url = 'users/' + commons.Escaper.ecapeVariable('$userId') + '/bookshelves'; | 136 _url = 'users/' + commons.Escaper.ecapeVariable('$userId') + '/bookshelves'; |
133 | 137 |
134 var _response = _requester.request(_url, | 138 var _response = _requester.request(_url, "GET", |
135 "GET", | 139 body: _body, |
136 body: _body, | 140 queryParams: _queryParams, |
137 queryParams: _queryParams, | 141 uploadOptions: _uploadOptions, |
138 uploadOptions: _uploadOptions, | 142 uploadMedia: _uploadMedia, |
139 uploadMedia: _uploadMedia, | 143 downloadOptions: _downloadOptions); |
140 downloadOptions: _downloadOptions); | |
141 return _response.then((data) => new Bookshelves.fromJson(data)); | 144 return _response.then((data) => new Bookshelves.fromJson(data)); |
142 } | 145 } |
143 | |
144 } | 146 } |
145 | 147 |
146 | |
147 class BookshelvesVolumesResourceApi { | 148 class BookshelvesVolumesResourceApi { |
148 final commons.ApiRequester _requester; | 149 final commons.ApiRequester _requester; |
149 | 150 |
150 BookshelvesVolumesResourceApi(commons.ApiRequester client) : | 151 BookshelvesVolumesResourceApi(commons.ApiRequester client) |
151 _requester = client; | 152 : _requester = client; |
152 | 153 |
153 /** | 154 /// Retrieves volumes in a specific bookshelf for the specified user. |
154 * Retrieves volumes in a specific bookshelf for the specified user. | 155 /// |
155 * | 156 /// Request parameters: |
156 * Request parameters: | 157 /// |
157 * | 158 /// [userId] - ID of user for whom to retrieve bookshelf volumes. |
158 * [userId] - ID of user for whom to retrieve bookshelf volumes. | 159 /// |
159 * | 160 /// [shelf] - ID of bookshelf to retrieve volumes. |
160 * [shelf] - ID of bookshelf to retrieve volumes. | 161 /// |
161 * | 162 /// [maxResults] - Maximum number of results to return |
162 * [maxResults] - Maximum number of results to return | 163 /// |
163 * | 164 /// [showPreorders] - Set to true to show pre-ordered books. Defaults to |
164 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. | 165 /// 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 [commons.ApiRequestError] if the API endpoint returned an | 173 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
173 * error. | 174 /// an 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 |
176 * this method will complete with the same error. | 177 /// call, this method will complete with the same error. |
177 */ | 178 async.Future<Volumes> list(core.String userId, core.String shelf, |
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 {core.int maxResults, |
| 180 core.bool showPreorders, |
| 181 core.String source, |
| 182 core.int startIndex}) { |
179 var _url = null; | 183 var _url = null; |
180 var _queryParams = new core.Map(); | 184 var _queryParams = new core.Map(); |
181 var _uploadMedia = null; | 185 var _uploadMedia = null; |
182 var _uploadOptions = null; | 186 var _uploadOptions = null; |
183 var _downloadOptions = commons.DownloadOptions.Metadata; | 187 var _downloadOptions = commons.DownloadOptions.Metadata; |
184 var _body = null; | 188 var _body = null; |
185 | 189 |
186 if (userId == null) { | 190 if (userId == null) { |
187 throw new core.ArgumentError("Parameter userId is required."); | 191 throw new core.ArgumentError("Parameter userId is required."); |
188 } | 192 } |
189 if (shelf == null) { | 193 if (shelf == null) { |
190 throw new core.ArgumentError("Parameter shelf is required."); | 194 throw new core.ArgumentError("Parameter shelf is required."); |
191 } | 195 } |
192 if (maxResults != null) { | 196 if (maxResults != null) { |
193 _queryParams["maxResults"] = ["${maxResults}"]; | 197 _queryParams["maxResults"] = ["${maxResults}"]; |
194 } | 198 } |
195 if (showPreorders != null) { | 199 if (showPreorders != null) { |
196 _queryParams["showPreorders"] = ["${showPreorders}"]; | 200 _queryParams["showPreorders"] = ["${showPreorders}"]; |
197 } | 201 } |
198 if (source != null) { | 202 if (source != null) { |
199 _queryParams["source"] = [source]; | 203 _queryParams["source"] = [source]; |
200 } | 204 } |
201 if (startIndex != null) { | 205 if (startIndex != null) { |
202 _queryParams["startIndex"] = ["${startIndex}"]; | 206 _queryParams["startIndex"] = ["${startIndex}"]; |
203 } | 207 } |
204 | 208 |
205 _url = 'users/' + commons.Escaper.ecapeVariable('$userId') + '/bookshelves/'
+ commons.Escaper.ecapeVariable('$shelf') + '/volumes'; | 209 _url = 'users/' + |
| 210 commons.Escaper.ecapeVariable('$userId') + |
| 211 '/bookshelves/' + |
| 212 commons.Escaper.ecapeVariable('$shelf') + |
| 213 '/volumes'; |
206 | 214 |
207 var _response = _requester.request(_url, | 215 var _response = _requester.request(_url, "GET", |
208 "GET", | 216 body: _body, |
209 body: _body, | 217 queryParams: _queryParams, |
210 queryParams: _queryParams, | 218 uploadOptions: _uploadOptions, |
211 uploadOptions: _uploadOptions, | 219 uploadMedia: _uploadMedia, |
212 uploadMedia: _uploadMedia, | 220 downloadOptions: _downloadOptions); |
213 downloadOptions: _downloadOptions); | |
214 return _response.then((data) => new Volumes.fromJson(data)); | 221 return _response.then((data) => new Volumes.fromJson(data)); |
215 } | 222 } |
216 | |
217 } | 223 } |
218 | 224 |
219 | |
220 class CloudloadingResourceApi { | 225 class CloudloadingResourceApi { |
221 final commons.ApiRequester _requester; | 226 final commons.ApiRequester _requester; |
222 | 227 |
223 CloudloadingResourceApi(commons.ApiRequester client) : | 228 CloudloadingResourceApi(commons.ApiRequester client) : _requester = client; |
224 _requester = client; | |
225 | 229 |
226 /** | 230 /// Request parameters: |
227 * Request parameters: | 231 /// |
228 * | 232 /// [driveDocumentId] - A drive document id. The upload_client_token must not |
229 * [driveDocumentId] - A drive document id. The upload_client_token must not | 233 /// be set. |
230 * be set. | 234 /// |
231 * | 235 /// [mimeType] - The document MIME type. It can be set only if the |
232 * [mimeType] - The document MIME type. It can be set only if the | 236 /// drive_document_id is set. |
233 * drive_document_id is set. | 237 /// |
234 * | 238 /// [name] - The document name. It can be set only if the drive_document_id |
235 * [name] - The document name. It can be set only if the drive_document_id is | 239 /// is set. |
236 * set. | 240 /// |
237 * | 241 /// [uploadClientToken] - null |
238 * [uploadClientToken] - null | 242 /// |
239 * | 243 /// Completes with a [BooksCloudloadingResource]. |
240 * Completes with a [BooksCloudloadingResource]. | 244 /// |
241 * | 245 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
242 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 246 /// an error. |
243 * error. | 247 /// |
244 * | 248 /// If the used [http.Client] completes with an error when making a REST |
245 * If the used [http.Client] completes with an error when making a REST call, | 249 /// call, this method will complete with the same error. |
246 * this method will complete with the same error. | 250 async.Future<BooksCloudloadingResource> addBook( |
247 */ | 251 {core.String driveDocumentId, |
248 async.Future<BooksCloudloadingResource> addBook({core.String driveDocumentId,
core.String mimeType, core.String name, core.String uploadClientToken}) { | 252 core.String mimeType, |
| 253 core.String name, |
| 254 core.String uploadClientToken}) { |
249 var _url = null; | 255 var _url = null; |
250 var _queryParams = new core.Map(); | 256 var _queryParams = new core.Map(); |
251 var _uploadMedia = null; | 257 var _uploadMedia = null; |
252 var _uploadOptions = null; | 258 var _uploadOptions = null; |
253 var _downloadOptions = commons.DownloadOptions.Metadata; | 259 var _downloadOptions = commons.DownloadOptions.Metadata; |
254 var _body = null; | 260 var _body = null; |
255 | 261 |
256 if (driveDocumentId != null) { | 262 if (driveDocumentId != null) { |
257 _queryParams["drive_document_id"] = [driveDocumentId]; | 263 _queryParams["drive_document_id"] = [driveDocumentId]; |
258 } | 264 } |
259 if (mimeType != null) { | 265 if (mimeType != null) { |
260 _queryParams["mime_type"] = [mimeType]; | 266 _queryParams["mime_type"] = [mimeType]; |
261 } | 267 } |
262 if (name != null) { | 268 if (name != null) { |
263 _queryParams["name"] = [name]; | 269 _queryParams["name"] = [name]; |
264 } | 270 } |
265 if (uploadClientToken != null) { | 271 if (uploadClientToken != null) { |
266 _queryParams["upload_client_token"] = [uploadClientToken]; | 272 _queryParams["upload_client_token"] = [uploadClientToken]; |
267 } | 273 } |
268 | 274 |
269 _url = 'cloudloading/addBook'; | 275 _url = 'cloudloading/addBook'; |
270 | 276 |
271 var _response = _requester.request(_url, | 277 var _response = _requester.request(_url, "POST", |
272 "POST", | 278 body: _body, |
273 body: _body, | 279 queryParams: _queryParams, |
274 queryParams: _queryParams, | 280 uploadOptions: _uploadOptions, |
275 uploadOptions: _uploadOptions, | 281 uploadMedia: _uploadMedia, |
276 uploadMedia: _uploadMedia, | 282 downloadOptions: _downloadOptions); |
277 downloadOptions: _downloadOptions); | 283 return _response |
278 return _response.then((data) => new BooksCloudloadingResource.fromJson(data)
); | 284 .then((data) => new BooksCloudloadingResource.fromJson(data)); |
279 } | 285 } |
280 | 286 |
281 /** | 287 /// Remove the book and its contents |
282 * Remove the book and its contents | 288 /// |
283 * | 289 /// Request parameters: |
284 * Request parameters: | 290 /// |
285 * | 291 /// [volumeId] - The id of the book to be removed. |
286 * [volumeId] - The id of the book to be removed. | 292 /// |
287 * | 293 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
288 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 294 /// an error. |
289 * error. | 295 /// |
290 * | 296 /// If the used [http.Client] completes with an error when making a REST |
291 * If the used [http.Client] completes with an error when making a REST call, | 297 /// call, this method will complete with the same error. |
292 * this method will complete with the same error. | |
293 */ | |
294 async.Future deleteBook(core.String volumeId) { | 298 async.Future deleteBook(core.String volumeId) { |
295 var _url = null; | 299 var _url = null; |
296 var _queryParams = new core.Map(); | 300 var _queryParams = new core.Map(); |
297 var _uploadMedia = null; | 301 var _uploadMedia = null; |
298 var _uploadOptions = null; | 302 var _uploadOptions = null; |
299 var _downloadOptions = commons.DownloadOptions.Metadata; | 303 var _downloadOptions = commons.DownloadOptions.Metadata; |
300 var _body = null; | 304 var _body = null; |
301 | 305 |
302 if (volumeId == null) { | 306 if (volumeId == null) { |
303 throw new core.ArgumentError("Parameter volumeId is required."); | 307 throw new core.ArgumentError("Parameter volumeId is required."); |
304 } | 308 } |
305 _queryParams["volumeId"] = [volumeId]; | 309 _queryParams["volumeId"] = [volumeId]; |
306 | 310 |
307 _downloadOptions = null; | 311 _downloadOptions = null; |
308 | 312 |
309 _url = 'cloudloading/deleteBook'; | 313 _url = 'cloudloading/deleteBook'; |
310 | 314 |
311 var _response = _requester.request(_url, | 315 var _response = _requester.request(_url, "POST", |
312 "POST", | 316 body: _body, |
313 body: _body, | 317 queryParams: _queryParams, |
314 queryParams: _queryParams, | 318 uploadOptions: _uploadOptions, |
315 uploadOptions: _uploadOptions, | 319 uploadMedia: _uploadMedia, |
316 uploadMedia: _uploadMedia, | 320 downloadOptions: _downloadOptions); |
317 downloadOptions: _downloadOptions); | |
318 return _response.then((data) => null); | 321 return _response.then((data) => null); |
319 } | 322 } |
320 | 323 |
321 /** | 324 /// [request] - The metadata request object. |
322 * [request] - The metadata request object. | 325 /// |
323 * | 326 /// Request parameters: |
324 * Request parameters: | 327 /// |
325 * | 328 /// Completes with a [BooksCloudloadingResource]. |
326 * Completes with a [BooksCloudloadingResource]. | 329 /// |
327 * | 330 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
328 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 331 /// an error. |
329 * error. | 332 /// |
330 * | 333 /// If the used [http.Client] completes with an error when making a REST |
331 * If the used [http.Client] completes with an error when making a REST call, | 334 /// call, this method will complete with the same error. |
332 * this method will complete with the same error. | 335 async.Future<BooksCloudloadingResource> updateBook( |
333 */ | 336 BooksCloudloadingResource request) { |
334 async.Future<BooksCloudloadingResource> updateBook(BooksCloudloadingResource r
equest) { | |
335 var _url = null; | 337 var _url = null; |
336 var _queryParams = new core.Map(); | 338 var _queryParams = new core.Map(); |
337 var _uploadMedia = null; | 339 var _uploadMedia = null; |
338 var _uploadOptions = null; | 340 var _uploadOptions = null; |
339 var _downloadOptions = commons.DownloadOptions.Metadata; | 341 var _downloadOptions = commons.DownloadOptions.Metadata; |
340 var _body = null; | 342 var _body = null; |
341 | 343 |
342 if (request != null) { | 344 if (request != null) { |
343 _body = convert.JSON.encode((request).toJson()); | 345 _body = convert.JSON.encode((request).toJson()); |
344 } | 346 } |
345 | 347 |
346 _url = 'cloudloading/updateBook'; | 348 _url = 'cloudloading/updateBook'; |
347 | 349 |
348 var _response = _requester.request(_url, | 350 var _response = _requester.request(_url, "POST", |
349 "POST", | 351 body: _body, |
350 body: _body, | 352 queryParams: _queryParams, |
351 queryParams: _queryParams, | 353 uploadOptions: _uploadOptions, |
352 uploadOptions: _uploadOptions, | 354 uploadMedia: _uploadMedia, |
353 uploadMedia: _uploadMedia, | 355 downloadOptions: _downloadOptions); |
354 downloadOptions: _downloadOptions); | 356 return _response |
355 return _response.then((data) => new BooksCloudloadingResource.fromJson(data)
); | 357 .then((data) => new BooksCloudloadingResource.fromJson(data)); |
356 } | 358 } |
357 | |
358 } | 359 } |
359 | 360 |
360 | |
361 class DictionaryResourceApi { | 361 class DictionaryResourceApi { |
362 final commons.ApiRequester _requester; | 362 final commons.ApiRequester _requester; |
363 | 363 |
364 DictionaryResourceApi(commons.ApiRequester client) : | 364 DictionaryResourceApi(commons.ApiRequester client) : _requester = client; |
365 _requester = client; | |
366 | 365 |
367 /** | 366 /// Returns a list of offline dictionary metadata available |
368 * Returns a list of offline dictionary metadata available | 367 /// |
369 * | 368 /// Request parameters: |
370 * Request parameters: | 369 /// |
371 * | 370 /// [cpksver] - The device/version ID from which to request the data. |
372 * [cpksver] - The device/version ID from which to request the data. | 371 /// |
373 * | 372 /// Completes with a [Metadata]. |
374 * Completes with a [Metadata]. | 373 /// |
375 * | 374 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
376 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 375 /// an error. |
377 * error. | 376 /// |
378 * | 377 /// If the used [http.Client] completes with an error when making a REST |
379 * If the used [http.Client] completes with an error when making a REST call, | 378 /// call, this method will complete with the same error. |
380 * this method will complete with the same error. | |
381 */ | |
382 async.Future<Metadata> listOfflineMetadata(core.String cpksver) { | 379 async.Future<Metadata> listOfflineMetadata(core.String cpksver) { |
383 var _url = null; | 380 var _url = null; |
384 var _queryParams = new core.Map(); | 381 var _queryParams = new core.Map(); |
385 var _uploadMedia = null; | 382 var _uploadMedia = null; |
386 var _uploadOptions = null; | 383 var _uploadOptions = null; |
387 var _downloadOptions = commons.DownloadOptions.Metadata; | 384 var _downloadOptions = commons.DownloadOptions.Metadata; |
388 var _body = null; | 385 var _body = null; |
389 | 386 |
390 if (cpksver == null) { | 387 if (cpksver == null) { |
391 throw new core.ArgumentError("Parameter cpksver is required."); | 388 throw new core.ArgumentError("Parameter cpksver is required."); |
392 } | 389 } |
393 _queryParams["cpksver"] = [cpksver]; | 390 _queryParams["cpksver"] = [cpksver]; |
394 | 391 |
395 _url = 'dictionary/listOfflineMetadata'; | 392 _url = 'dictionary/listOfflineMetadata'; |
396 | 393 |
397 var _response = _requester.request(_url, | 394 var _response = _requester.request(_url, "GET", |
398 "GET", | 395 body: _body, |
399 body: _body, | 396 queryParams: _queryParams, |
400 queryParams: _queryParams, | 397 uploadOptions: _uploadOptions, |
401 uploadOptions: _uploadOptions, | 398 uploadMedia: _uploadMedia, |
402 uploadMedia: _uploadMedia, | 399 downloadOptions: _downloadOptions); |
403 downloadOptions: _downloadOptions); | |
404 return _response.then((data) => new Metadata.fromJson(data)); | 400 return _response.then((data) => new Metadata.fromJson(data)); |
405 } | 401 } |
406 | |
407 } | 402 } |
408 | 403 |
409 | |
410 class LayersResourceApi { | 404 class LayersResourceApi { |
411 final commons.ApiRequester _requester; | 405 final commons.ApiRequester _requester; |
412 | 406 |
413 LayersAnnotationDataResourceApi get annotationData => new LayersAnnotationData
ResourceApi(_requester); | 407 LayersAnnotationDataResourceApi get annotationData => |
414 LayersVolumeAnnotationsResourceApi get volumeAnnotations => new LayersVolumeAn
notationsResourceApi(_requester); | 408 new LayersAnnotationDataResourceApi(_requester); |
| 409 LayersVolumeAnnotationsResourceApi get volumeAnnotations => |
| 410 new LayersVolumeAnnotationsResourceApi(_requester); |
415 | 411 |
416 LayersResourceApi(commons.ApiRequester client) : | 412 LayersResourceApi(commons.ApiRequester client) : _requester = client; |
417 _requester = client; | |
418 | 413 |
419 /** | 414 /// Gets the layer summary for a volume. |
420 * Gets the layer summary for a volume. | 415 /// |
421 * | 416 /// Request parameters: |
422 * Request parameters: | 417 /// |
423 * | 418 /// [volumeId] - The volume to retrieve layers for. |
424 * [volumeId] - The volume to retrieve layers for. | 419 /// |
425 * | 420 /// [summaryId] - The ID for the layer to get the summary for. |
426 * [summaryId] - The ID for the layer to get the summary for. | 421 /// |
427 * | 422 /// [contentVersion] - The content version for the requested volume. |
428 * [contentVersion] - The content version for the requested volume. | 423 /// |
429 * | 424 /// [source] - String to identify the originator of this request. |
430 * [source] - String to identify the originator of this request. | 425 /// |
431 * | 426 /// Completes with a [Layersummary]. |
432 * Completes with a [Layersummary]. | 427 /// |
433 * | 428 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
434 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 429 /// an error. |
435 * error. | 430 /// |
436 * | 431 /// If the used [http.Client] completes with an error when making a REST |
437 * If the used [http.Client] completes with an error when making a REST call, | 432 /// call, this method will complete with the same error. |
438 * this method will complete with the same error. | 433 async.Future<Layersummary> get(core.String volumeId, core.String summaryId, |
439 */ | 434 {core.String contentVersion, core.String source}) { |
440 async.Future<Layersummary> get(core.String volumeId, core.String summaryId, {c
ore.String contentVersion, core.String source}) { | |
441 var _url = null; | 435 var _url = null; |
442 var _queryParams = new core.Map(); | 436 var _queryParams = new core.Map(); |
443 var _uploadMedia = null; | 437 var _uploadMedia = null; |
444 var _uploadOptions = null; | 438 var _uploadOptions = null; |
445 var _downloadOptions = commons.DownloadOptions.Metadata; | 439 var _downloadOptions = commons.DownloadOptions.Metadata; |
446 var _body = null; | 440 var _body = null; |
447 | 441 |
448 if (volumeId == null) { | 442 if (volumeId == null) { |
449 throw new core.ArgumentError("Parameter volumeId is required."); | 443 throw new core.ArgumentError("Parameter volumeId is required."); |
450 } | 444 } |
451 if (summaryId == null) { | 445 if (summaryId == null) { |
452 throw new core.ArgumentError("Parameter summaryId is required."); | 446 throw new core.ArgumentError("Parameter summaryId is required."); |
453 } | 447 } |
454 if (contentVersion != null) { | 448 if (contentVersion != null) { |
455 _queryParams["contentVersion"] = [contentVersion]; | 449 _queryParams["contentVersion"] = [contentVersion]; |
456 } | 450 } |
457 if (source != null) { | 451 if (source != null) { |
458 _queryParams["source"] = [source]; | 452 _queryParams["source"] = [source]; |
459 } | 453 } |
460 | 454 |
461 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layersumm
ary/' + commons.Escaper.ecapeVariable('$summaryId'); | 455 _url = 'volumes/' + |
| 456 commons.Escaper.ecapeVariable('$volumeId') + |
| 457 '/layersummary/' + |
| 458 commons.Escaper.ecapeVariable('$summaryId'); |
462 | 459 |
463 var _response = _requester.request(_url, | 460 var _response = _requester.request(_url, "GET", |
464 "GET", | 461 body: _body, |
465 body: _body, | 462 queryParams: _queryParams, |
466 queryParams: _queryParams, | 463 uploadOptions: _uploadOptions, |
467 uploadOptions: _uploadOptions, | 464 uploadMedia: _uploadMedia, |
468 uploadMedia: _uploadMedia, | 465 downloadOptions: _downloadOptions); |
469 downloadOptions: _downloadOptions); | |
470 return _response.then((data) => new Layersummary.fromJson(data)); | 466 return _response.then((data) => new Layersummary.fromJson(data)); |
471 } | 467 } |
472 | 468 |
473 /** | 469 /// List the layer summaries for a volume. |
474 * List the layer summaries for a volume. | 470 /// |
475 * | 471 /// Request parameters: |
476 * Request parameters: | 472 /// |
477 * | 473 /// [volumeId] - The volume to retrieve layers for. |
478 * [volumeId] - The volume to retrieve layers for. | 474 /// |
479 * | 475 /// [contentVersion] - The content version for the requested volume. |
480 * [contentVersion] - The content version for the requested volume. | 476 /// |
481 * | 477 /// [maxResults] - Maximum number of results to return |
482 * [maxResults] - Maximum number of results to return | 478 /// Value must be between "0" and "200". |
483 * Value must be between "0" and "200". | 479 /// |
484 * | 480 /// [pageToken] - The value of the nextToken from the previous page. |
485 * [pageToken] - The value of the nextToken from the previous page. | 481 /// |
486 * | 482 /// [source] - String to identify the originator of this request. |
487 * [source] - String to identify the originator of this request. | 483 /// |
488 * | 484 /// Completes with a [Layersummaries]. |
489 * Completes with a [Layersummaries]. | 485 /// |
490 * | 486 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
491 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 487 /// an error. |
492 * error. | 488 /// |
493 * | 489 /// If the used [http.Client] completes with an error when making a REST |
494 * If the used [http.Client] completes with an error when making a REST call, | 490 /// call, this method will complete with the same error. |
495 * this method will complete with the same error. | 491 async.Future<Layersummaries> list(core.String volumeId, |
496 */ | 492 {core.String contentVersion, |
497 async.Future<Layersummaries> list(core.String volumeId, {core.String contentVe
rsion, core.int maxResults, core.String pageToken, core.String source}) { | 493 core.int maxResults, |
| 494 core.String pageToken, |
| 495 core.String source}) { |
498 var _url = null; | 496 var _url = null; |
499 var _queryParams = new core.Map(); | 497 var _queryParams = new core.Map(); |
500 var _uploadMedia = null; | 498 var _uploadMedia = null; |
501 var _uploadOptions = null; | 499 var _uploadOptions = null; |
502 var _downloadOptions = commons.DownloadOptions.Metadata; | 500 var _downloadOptions = commons.DownloadOptions.Metadata; |
503 var _body = null; | 501 var _body = null; |
504 | 502 |
505 if (volumeId == null) { | 503 if (volumeId == null) { |
506 throw new core.ArgumentError("Parameter volumeId is required."); | 504 throw new core.ArgumentError("Parameter volumeId is required."); |
507 } | 505 } |
508 if (contentVersion != null) { | 506 if (contentVersion != null) { |
509 _queryParams["contentVersion"] = [contentVersion]; | 507 _queryParams["contentVersion"] = [contentVersion]; |
510 } | 508 } |
511 if (maxResults != null) { | 509 if (maxResults != null) { |
512 _queryParams["maxResults"] = ["${maxResults}"]; | 510 _queryParams["maxResults"] = ["${maxResults}"]; |
513 } | 511 } |
514 if (pageToken != null) { | 512 if (pageToken != null) { |
515 _queryParams["pageToken"] = [pageToken]; | 513 _queryParams["pageToken"] = [pageToken]; |
516 } | 514 } |
517 if (source != null) { | 515 if (source != null) { |
518 _queryParams["source"] = [source]; | 516 _queryParams["source"] = [source]; |
519 } | 517 } |
520 | 518 |
521 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layersumm
ary'; | 519 _url = 'volumes/' + |
| 520 commons.Escaper.ecapeVariable('$volumeId') + |
| 521 '/layersummary'; |
522 | 522 |
523 var _response = _requester.request(_url, | 523 var _response = _requester.request(_url, "GET", |
524 "GET", | 524 body: _body, |
525 body: _body, | 525 queryParams: _queryParams, |
526 queryParams: _queryParams, | 526 uploadOptions: _uploadOptions, |
527 uploadOptions: _uploadOptions, | 527 uploadMedia: _uploadMedia, |
528 uploadMedia: _uploadMedia, | 528 downloadOptions: _downloadOptions); |
529 downloadOptions: _downloadOptions); | |
530 return _response.then((data) => new Layersummaries.fromJson(data)); | 529 return _response.then((data) => new Layersummaries.fromJson(data)); |
531 } | 530 } |
532 | |
533 } | 531 } |
534 | 532 |
535 | |
536 class LayersAnnotationDataResourceApi { | 533 class LayersAnnotationDataResourceApi { |
537 final commons.ApiRequester _requester; | 534 final commons.ApiRequester _requester; |
538 | 535 |
539 LayersAnnotationDataResourceApi(commons.ApiRequester client) : | 536 LayersAnnotationDataResourceApi(commons.ApiRequester client) |
540 _requester = client; | 537 : _requester = client; |
541 | 538 |
542 /** | 539 /// Gets the annotation data. |
543 * Gets the annotation data. | 540 /// |
544 * | 541 /// Request parameters: |
545 * Request parameters: | 542 /// |
546 * | 543 /// [volumeId] - The volume to retrieve annotations for. |
547 * [volumeId] - The volume to retrieve annotations for. | 544 /// |
548 * | 545 /// [layerId] - The ID for the layer to get the annotations. |
549 * [layerId] - The ID for the layer to get the annotations. | 546 /// |
550 * | 547 /// [annotationDataId] - The ID of the annotation data to retrieve. |
551 * [annotationDataId] - The ID of the annotation data to retrieve. | 548 /// |
552 * | 549 /// [contentVersion] - The content version for the volume you are trying to |
553 * [contentVersion] - The content version for the volume you are trying to | 550 /// retrieve. |
554 * retrieve. | 551 /// |
555 * | 552 /// [allowWebDefinitions] - For the dictionary layer. Whether or not to allow |
556 * [allowWebDefinitions] - For the dictionary layer. Whether or not to allow | 553 /// web definitions. |
557 * web definitions. | 554 /// |
558 * | 555 /// [h] - The requested pixel height for any images. If height is provided |
559 * [h] - The requested pixel height for any images. If height is provided | 556 /// width must also be provided. |
560 * width must also be provided. | 557 /// |
561 * | 558 /// [locale] - The locale information for the data. ISO-639-1 language and |
562 * [locale] - The locale information for the data. ISO-639-1 language and | 559 /// ISO-3166-1 country code. Ex: 'en_US'. |
563 * ISO-3166-1 country code. Ex: 'en_US'. | 560 /// |
564 * | 561 /// [scale] - The requested scale for the image. |
565 * [scale] - The requested scale for the image. | 562 /// |
566 * | 563 /// [source] - String to identify the originator of this request. |
567 * [source] - String to identify the originator of this request. | 564 /// |
568 * | 565 /// [w] - The requested pixel width for any images. If width is provided |
569 * [w] - The requested pixel width for any images. If width is provided height | 566 /// height must also be provided. |
570 * must also be provided. | 567 /// |
571 * | 568 /// Completes with a [Annotationdata]. |
572 * Completes with a [Annotationdata]. | 569 /// |
573 * | 570 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
574 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 571 /// an error. |
575 * error. | 572 /// |
576 * | 573 /// If the used [http.Client] completes with an error when making a REST |
577 * If the used [http.Client] completes with an error when making a REST call, | 574 /// call, this method will complete with the same error. |
578 * this method will complete with the same error. | 575 async.Future<Annotationdata> get(core.String volumeId, core.String layerId, |
579 */ | 576 core.String annotationDataId, core.String contentVersion, |
580 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}) { | 577 {core.bool allowWebDefinitions, |
| 578 core.int h, |
| 579 core.String locale, |
| 580 core.int scale, |
| 581 core.String source, |
| 582 core.int w}) { |
581 var _url = null; | 583 var _url = null; |
582 var _queryParams = new core.Map(); | 584 var _queryParams = new core.Map(); |
583 var _uploadMedia = null; | 585 var _uploadMedia = null; |
584 var _uploadOptions = null; | 586 var _uploadOptions = null; |
585 var _downloadOptions = commons.DownloadOptions.Metadata; | 587 var _downloadOptions = commons.DownloadOptions.Metadata; |
586 var _body = null; | 588 var _body = null; |
587 | 589 |
588 if (volumeId == null) { | 590 if (volumeId == null) { |
589 throw new core.ArgumentError("Parameter volumeId is required."); | 591 throw new core.ArgumentError("Parameter volumeId is required."); |
590 } | 592 } |
(...skipping 19 matching lines...) Expand all Loading... |
610 if (scale != null) { | 612 if (scale != null) { |
611 _queryParams["scale"] = ["${scale}"]; | 613 _queryParams["scale"] = ["${scale}"]; |
612 } | 614 } |
613 if (source != null) { | 615 if (source != null) { |
614 _queryParams["source"] = [source]; | 616 _queryParams["source"] = [source]; |
615 } | 617 } |
616 if (w != null) { | 618 if (w != null) { |
617 _queryParams["w"] = ["${w}"]; | 619 _queryParams["w"] = ["${w}"]; |
618 } | 620 } |
619 | 621 |
620 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layers/'
+ commons.Escaper.ecapeVariable('$layerId') + '/data/' + commons.Escaper.ecapeVa
riable('$annotationDataId'); | 622 _url = 'volumes/' + |
| 623 commons.Escaper.ecapeVariable('$volumeId') + |
| 624 '/layers/' + |
| 625 commons.Escaper.ecapeVariable('$layerId') + |
| 626 '/data/' + |
| 627 commons.Escaper.ecapeVariable('$annotationDataId'); |
621 | 628 |
622 var _response = _requester.request(_url, | 629 var _response = _requester.request(_url, "GET", |
623 "GET", | 630 body: _body, |
624 body: _body, | 631 queryParams: _queryParams, |
625 queryParams: _queryParams, | 632 uploadOptions: _uploadOptions, |
626 uploadOptions: _uploadOptions, | 633 uploadMedia: _uploadMedia, |
627 uploadMedia: _uploadMedia, | 634 downloadOptions: _downloadOptions); |
628 downloadOptions: _downloadOptions); | |
629 return _response.then((data) => new Annotationdata.fromJson(data)); | 635 return _response.then((data) => new Annotationdata.fromJson(data)); |
630 } | 636 } |
631 | 637 |
632 /** | 638 /// Gets the annotation data for a volume and layer. |
633 * Gets the annotation data for a volume and layer. | 639 /// |
634 * | 640 /// Request parameters: |
635 * Request parameters: | 641 /// |
636 * | 642 /// [volumeId] - The volume to retrieve annotation data for. |
637 * [volumeId] - The volume to retrieve annotation data for. | 643 /// |
638 * | 644 /// [layerId] - The ID for the layer to get the annotation data. |
639 * [layerId] - The ID for the layer to get the annotation data. | 645 /// |
640 * | 646 /// [contentVersion] - The content version for the requested volume. |
641 * [contentVersion] - The content version for the requested volume. | 647 /// |
642 * | 648 /// [annotationDataId] - The list of Annotation Data Ids to retrieve. |
643 * [annotationDataId] - The list of Annotation Data Ids to retrieve. | 649 /// Pagination is ignored if this is set. |
644 * Pagination is ignored if this is set. | 650 /// |
645 * | 651 /// [h] - The requested pixel height for any images. If height is provided |
646 * [h] - The requested pixel height for any images. If height is provided | 652 /// width must also be provided. |
647 * width must also be provided. | 653 /// |
648 * | 654 /// [locale] - The locale information for the data. ISO-639-1 language and |
649 * [locale] - The locale information for the data. ISO-639-1 language and | 655 /// ISO-3166-1 country code. Ex: 'en_US'. |
650 * ISO-3166-1 country code. Ex: 'en_US'. | 656 /// |
651 * | 657 /// [maxResults] - Maximum number of results to return |
652 * [maxResults] - Maximum number of results to return | 658 /// Value must be between "0" and "200". |
653 * Value must be between "0" and "200". | 659 /// |
654 * | 660 /// [pageToken] - The value of the nextToken from the previous page. |
655 * [pageToken] - The value of the nextToken from the previous page. | 661 /// |
656 * | 662 /// [scale] - The requested scale for the image. |
657 * [scale] - The requested scale for the image. | 663 /// |
658 * | 664 /// [source] - String to identify the originator of this request. |
659 * [source] - String to identify the originator of this request. | 665 /// |
660 * | 666 /// [updatedMax] - RFC 3339 timestamp to restrict to items updated prior to |
661 * [updatedMax] - RFC 3339 timestamp to restrict to items updated prior to | 667 /// this timestamp (exclusive). |
662 * this timestamp (exclusive). | 668 /// |
663 * | 669 /// [updatedMin] - RFC 3339 timestamp to restrict to items updated since this |
664 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this | 670 /// timestamp (inclusive). |
665 * timestamp (inclusive). | 671 /// |
666 * | 672 /// [w] - The requested pixel width for any images. If width is provided |
667 * [w] - The requested pixel width for any images. If width is provided height | 673 /// height must also be provided. |
668 * must also be provided. | 674 /// |
669 * | 675 /// Completes with a [Annotationsdata]. |
670 * Completes with a [Annotationsdata]. | 676 /// |
671 * | 677 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
672 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 678 /// an error. |
673 * error. | 679 /// |
674 * | 680 /// If the used [http.Client] completes with an error when making a REST |
675 * If the used [http.Client] completes with an error when making a REST call, | 681 /// call, this method will complete with the same error. |
676 * this method will complete with the same error. | 682 async.Future<Annotationsdata> list( |
677 */ | 683 core.String volumeId, core.String layerId, core.String contentVersion, |
678 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
}) { | 684 {core.List<core.String> annotationDataId, |
| 685 core.int h, |
| 686 core.String locale, |
| 687 core.int maxResults, |
| 688 core.String pageToken, |
| 689 core.int scale, |
| 690 core.String source, |
| 691 core.String updatedMax, |
| 692 core.String updatedMin, |
| 693 core.int w}) { |
679 var _url = null; | 694 var _url = null; |
680 var _queryParams = new core.Map(); | 695 var _queryParams = new core.Map(); |
681 var _uploadMedia = null; | 696 var _uploadMedia = null; |
682 var _uploadOptions = null; | 697 var _uploadOptions = null; |
683 var _downloadOptions = commons.DownloadOptions.Metadata; | 698 var _downloadOptions = commons.DownloadOptions.Metadata; |
684 var _body = null; | 699 var _body = null; |
685 | 700 |
686 if (volumeId == null) { | 701 if (volumeId == null) { |
687 throw new core.ArgumentError("Parameter volumeId is required."); | 702 throw new core.ArgumentError("Parameter volumeId is required."); |
688 } | 703 } |
(...skipping 28 matching lines...) Expand all Loading... |
717 if (updatedMax != null) { | 732 if (updatedMax != null) { |
718 _queryParams["updatedMax"] = [updatedMax]; | 733 _queryParams["updatedMax"] = [updatedMax]; |
719 } | 734 } |
720 if (updatedMin != null) { | 735 if (updatedMin != null) { |
721 _queryParams["updatedMin"] = [updatedMin]; | 736 _queryParams["updatedMin"] = [updatedMin]; |
722 } | 737 } |
723 if (w != null) { | 738 if (w != null) { |
724 _queryParams["w"] = ["${w}"]; | 739 _queryParams["w"] = ["${w}"]; |
725 } | 740 } |
726 | 741 |
727 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layers/'
+ commons.Escaper.ecapeVariable('$layerId') + '/data'; | 742 _url = 'volumes/' + |
| 743 commons.Escaper.ecapeVariable('$volumeId') + |
| 744 '/layers/' + |
| 745 commons.Escaper.ecapeVariable('$layerId') + |
| 746 '/data'; |
728 | 747 |
729 var _response = _requester.request(_url, | 748 var _response = _requester.request(_url, "GET", |
730 "GET", | 749 body: _body, |
731 body: _body, | 750 queryParams: _queryParams, |
732 queryParams: _queryParams, | 751 uploadOptions: _uploadOptions, |
733 uploadOptions: _uploadOptions, | 752 uploadMedia: _uploadMedia, |
734 uploadMedia: _uploadMedia, | 753 downloadOptions: _downloadOptions); |
735 downloadOptions: _downloadOptions); | |
736 return _response.then((data) => new Annotationsdata.fromJson(data)); | 754 return _response.then((data) => new Annotationsdata.fromJson(data)); |
737 } | 755 } |
738 | |
739 } | 756 } |
740 | 757 |
741 | |
742 class LayersVolumeAnnotationsResourceApi { | 758 class LayersVolumeAnnotationsResourceApi { |
743 final commons.ApiRequester _requester; | 759 final commons.ApiRequester _requester; |
744 | 760 |
745 LayersVolumeAnnotationsResourceApi(commons.ApiRequester client) : | 761 LayersVolumeAnnotationsResourceApi(commons.ApiRequester client) |
746 _requester = client; | 762 : _requester = client; |
747 | 763 |
748 /** | 764 /// Gets the volume annotation. |
749 * Gets the volume annotation. | 765 /// |
750 * | 766 /// Request parameters: |
751 * Request parameters: | 767 /// |
752 * | 768 /// [volumeId] - The volume to retrieve annotations for. |
753 * [volumeId] - The volume to retrieve annotations for. | 769 /// |
754 * | 770 /// [layerId] - The ID for the layer to get the annotations. |
755 * [layerId] - The ID for the layer to get the annotations. | 771 /// |
756 * | 772 /// [annotationId] - The ID of the volume annotation to retrieve. |
757 * [annotationId] - The ID of the volume annotation to retrieve. | 773 /// |
758 * | 774 /// [locale] - The locale information for the data. ISO-639-1 language and |
759 * [locale] - The locale information for the data. ISO-639-1 language and | 775 /// ISO-3166-1 country code. Ex: 'en_US'. |
760 * ISO-3166-1 country code. Ex: 'en_US'. | 776 /// |
761 * | 777 /// [source] - String to identify the originator of this request. |
762 * [source] - String to identify the originator of this request. | 778 /// |
763 * | 779 /// Completes with a [Volumeannotation]. |
764 * Completes with a [Volumeannotation]. | 780 /// |
765 * | 781 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
766 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 782 /// an error. |
767 * error. | 783 /// |
768 * | 784 /// If the used [http.Client] completes with an error when making a REST |
769 * If the used [http.Client] completes with an error when making a REST call, | 785 /// call, this method will complete with the same error. |
770 * this method will complete with the same error. | 786 async.Future<Volumeannotation> get( |
771 */ | 787 core.String volumeId, core.String layerId, core.String annotationId, |
772 async.Future<Volumeannotation> get(core.String volumeId, core.String layerId,
core.String annotationId, {core.String locale, core.String source}) { | 788 {core.String locale, core.String source}) { |
773 var _url = null; | 789 var _url = null; |
774 var _queryParams = new core.Map(); | 790 var _queryParams = new core.Map(); |
775 var _uploadMedia = null; | 791 var _uploadMedia = null; |
776 var _uploadOptions = null; | 792 var _uploadOptions = null; |
777 var _downloadOptions = commons.DownloadOptions.Metadata; | 793 var _downloadOptions = commons.DownloadOptions.Metadata; |
778 var _body = null; | 794 var _body = null; |
779 | 795 |
780 if (volumeId == null) { | 796 if (volumeId == null) { |
781 throw new core.ArgumentError("Parameter volumeId is required."); | 797 throw new core.ArgumentError("Parameter volumeId is required."); |
782 } | 798 } |
783 if (layerId == null) { | 799 if (layerId == null) { |
784 throw new core.ArgumentError("Parameter layerId is required."); | 800 throw new core.ArgumentError("Parameter layerId is required."); |
785 } | 801 } |
786 if (annotationId == null) { | 802 if (annotationId == null) { |
787 throw new core.ArgumentError("Parameter annotationId is required."); | 803 throw new core.ArgumentError("Parameter annotationId is required."); |
788 } | 804 } |
789 if (locale != null) { | 805 if (locale != null) { |
790 _queryParams["locale"] = [locale]; | 806 _queryParams["locale"] = [locale]; |
791 } | 807 } |
792 if (source != null) { | 808 if (source != null) { |
793 _queryParams["source"] = [source]; | 809 _queryParams["source"] = [source]; |
794 } | 810 } |
795 | 811 |
796 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layers/'
+ commons.Escaper.ecapeVariable('$layerId') + '/annotations/' + commons.Escaper.
ecapeVariable('$annotationId'); | 812 _url = 'volumes/' + |
| 813 commons.Escaper.ecapeVariable('$volumeId') + |
| 814 '/layers/' + |
| 815 commons.Escaper.ecapeVariable('$layerId') + |
| 816 '/annotations/' + |
| 817 commons.Escaper.ecapeVariable('$annotationId'); |
797 | 818 |
798 var _response = _requester.request(_url, | 819 var _response = _requester.request(_url, "GET", |
799 "GET", | 820 body: _body, |
800 body: _body, | 821 queryParams: _queryParams, |
801 queryParams: _queryParams, | 822 uploadOptions: _uploadOptions, |
802 uploadOptions: _uploadOptions, | 823 uploadMedia: _uploadMedia, |
803 uploadMedia: _uploadMedia, | 824 downloadOptions: _downloadOptions); |
804 downloadOptions: _downloadOptions); | |
805 return _response.then((data) => new Volumeannotation.fromJson(data)); | 825 return _response.then((data) => new Volumeannotation.fromJson(data)); |
806 } | 826 } |
807 | 827 |
808 /** | 828 /// Gets the volume annotations for a volume and layer. |
809 * Gets the volume annotations for a volume and layer. | 829 /// |
810 * | 830 /// Request parameters: |
811 * Request parameters: | 831 /// |
812 * | 832 /// [volumeId] - The volume to retrieve annotations for. |
813 * [volumeId] - The volume to retrieve annotations for. | 833 /// |
814 * | 834 /// [layerId] - The ID for the layer to get the annotations. |
815 * [layerId] - The ID for the layer to get the annotations. | 835 /// |
816 * | 836 /// [contentVersion] - The content version for the requested volume. |
817 * [contentVersion] - The content version for the requested volume. | 837 /// |
818 * | 838 /// [endOffset] - The end offset to end retrieving data from. |
819 * [endOffset] - The end offset to end retrieving data from. | 839 /// |
820 * | 840 /// [endPosition] - The end position to end retrieving data from. |
821 * [endPosition] - The end position to end retrieving data from. | 841 /// |
822 * | 842 /// [locale] - The locale information for the data. ISO-639-1 language and |
823 * [locale] - The locale information for the data. ISO-639-1 language and | 843 /// ISO-3166-1 country code. Ex: 'en_US'. |
824 * ISO-3166-1 country code. Ex: 'en_US'. | 844 /// |
825 * | 845 /// [maxResults] - Maximum number of results to return |
826 * [maxResults] - Maximum number of results to return | 846 /// Value must be between "0" and "200". |
827 * Value must be between "0" and "200". | 847 /// |
828 * | 848 /// [pageToken] - The value of the nextToken from the previous page. |
829 * [pageToken] - The value of the nextToken from the previous page. | 849 /// |
830 * | 850 /// [showDeleted] - Set to true to return deleted annotations. updatedMin |
831 * [showDeleted] - Set to true to return deleted annotations. updatedMin must | 851 /// must be in the request to use this. Defaults to false. |
832 * be in the request to use this. Defaults to false. | 852 /// |
833 * | 853 /// [source] - String to identify the originator of this request. |
834 * [source] - String to identify the originator of this request. | 854 /// |
835 * | 855 /// [startOffset] - The start offset to start retrieving data from. |
836 * [startOffset] - The start offset to start retrieving data from. | 856 /// |
837 * | 857 /// [startPosition] - The start position to start retrieving data from. |
838 * [startPosition] - The start position to start retrieving data from. | 858 /// |
839 * | 859 /// [updatedMax] - RFC 3339 timestamp to restrict to items updated prior to |
840 * [updatedMax] - RFC 3339 timestamp to restrict to items updated prior to | 860 /// this timestamp (exclusive). |
841 * this timestamp (exclusive). | 861 /// |
842 * | 862 /// [updatedMin] - RFC 3339 timestamp to restrict to items updated since this |
843 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this | 863 /// timestamp (inclusive). |
844 * timestamp (inclusive). | 864 /// |
845 * | 865 /// [volumeAnnotationsVersion] - The version of the volume annotations that |
846 * [volumeAnnotationsVersion] - The version of the volume annotations that you | 866 /// you are requesting. |
847 * are requesting. | 867 /// |
848 * | 868 /// Completes with a [Volumeannotations]. |
849 * Completes with a [Volumeannotations]. | 869 /// |
850 * | 870 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
851 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 871 /// an error. |
852 * error. | 872 /// |
853 * | 873 /// If the used [http.Client] completes with an error when making a REST |
854 * If the used [http.Client] completes with an error when making a REST call, | 874 /// call, this method will complete with the same error. |
855 * this method will complete with the same error. | 875 async.Future<Volumeannotations> list( |
856 */ | 876 core.String volumeId, core.String layerId, core.String contentVersion, |
857 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}) { | 877 {core.String endOffset, |
| 878 core.String endPosition, |
| 879 core.String locale, |
| 880 core.int maxResults, |
| 881 core.String pageToken, |
| 882 core.bool showDeleted, |
| 883 core.String source, |
| 884 core.String startOffset, |
| 885 core.String startPosition, |
| 886 core.String updatedMax, |
| 887 core.String updatedMin, |
| 888 core.String volumeAnnotationsVersion}) { |
858 var _url = null; | 889 var _url = null; |
859 var _queryParams = new core.Map(); | 890 var _queryParams = new core.Map(); |
860 var _uploadMedia = null; | 891 var _uploadMedia = null; |
861 var _uploadOptions = null; | 892 var _uploadOptions = null; |
862 var _downloadOptions = commons.DownloadOptions.Metadata; | 893 var _downloadOptions = commons.DownloadOptions.Metadata; |
863 var _body = null; | 894 var _body = null; |
864 | 895 |
865 if (volumeId == null) { | 896 if (volumeId == null) { |
866 throw new core.ArgumentError("Parameter volumeId is required."); | 897 throw new core.ArgumentError("Parameter volumeId is required."); |
867 } | 898 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
902 if (updatedMax != null) { | 933 if (updatedMax != null) { |
903 _queryParams["updatedMax"] = [updatedMax]; | 934 _queryParams["updatedMax"] = [updatedMax]; |
904 } | 935 } |
905 if (updatedMin != null) { | 936 if (updatedMin != null) { |
906 _queryParams["updatedMin"] = [updatedMin]; | 937 _queryParams["updatedMin"] = [updatedMin]; |
907 } | 938 } |
908 if (volumeAnnotationsVersion != null) { | 939 if (volumeAnnotationsVersion != null) { |
909 _queryParams["volumeAnnotationsVersion"] = [volumeAnnotationsVersion]; | 940 _queryParams["volumeAnnotationsVersion"] = [volumeAnnotationsVersion]; |
910 } | 941 } |
911 | 942 |
912 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/layers/'
+ commons.Escaper.ecapeVariable('$layerId'); | 943 _url = 'volumes/' + |
| 944 commons.Escaper.ecapeVariable('$volumeId') + |
| 945 '/layers/' + |
| 946 commons.Escaper.ecapeVariable('$layerId'); |
913 | 947 |
914 var _response = _requester.request(_url, | 948 var _response = _requester.request(_url, "GET", |
915 "GET", | 949 body: _body, |
916 body: _body, | 950 queryParams: _queryParams, |
917 queryParams: _queryParams, | 951 uploadOptions: _uploadOptions, |
918 uploadOptions: _uploadOptions, | 952 uploadMedia: _uploadMedia, |
919 uploadMedia: _uploadMedia, | 953 downloadOptions: _downloadOptions); |
920 downloadOptions: _downloadOptions); | |
921 return _response.then((data) => new Volumeannotations.fromJson(data)); | 954 return _response.then((data) => new Volumeannotations.fromJson(data)); |
922 } | 955 } |
923 | |
924 } | 956 } |
925 | 957 |
926 | |
927 class MyconfigResourceApi { | 958 class MyconfigResourceApi { |
928 final commons.ApiRequester _requester; | 959 final commons.ApiRequester _requester; |
929 | 960 |
930 MyconfigResourceApi(commons.ApiRequester client) : | 961 MyconfigResourceApi(commons.ApiRequester client) : _requester = client; |
931 _requester = client; | |
932 | 962 |
933 /** | 963 /// Gets the current settings for the user. |
934 * Gets the current settings for the user. | 964 /// |
935 * | 965 /// Request parameters: |
936 * Request parameters: | 966 /// |
937 * | 967 /// Completes with a [Usersettings]. |
938 * Completes with a [Usersettings]. | 968 /// |
939 * | 969 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
940 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 970 /// an error. |
941 * error. | 971 /// |
942 * | 972 /// If the used [http.Client] completes with an error when making a REST |
943 * If the used [http.Client] completes with an error when making a REST call, | 973 /// call, this method will complete with the same error. |
944 * this method will complete with the same error. | |
945 */ | |
946 async.Future<Usersettings> getUserSettings() { | 974 async.Future<Usersettings> getUserSettings() { |
947 var _url = null; | 975 var _url = null; |
948 var _queryParams = new core.Map(); | 976 var _queryParams = new core.Map(); |
949 var _uploadMedia = null; | 977 var _uploadMedia = null; |
950 var _uploadOptions = null; | 978 var _uploadOptions = null; |
951 var _downloadOptions = commons.DownloadOptions.Metadata; | 979 var _downloadOptions = commons.DownloadOptions.Metadata; |
952 var _body = null; | 980 var _body = null; |
953 | 981 |
954 | |
955 _url = 'myconfig/getUserSettings'; | 982 _url = 'myconfig/getUserSettings'; |
956 | 983 |
957 var _response = _requester.request(_url, | 984 var _response = _requester.request(_url, "GET", |
958 "GET", | 985 body: _body, |
959 body: _body, | 986 queryParams: _queryParams, |
960 queryParams: _queryParams, | 987 uploadOptions: _uploadOptions, |
961 uploadOptions: _uploadOptions, | 988 uploadMedia: _uploadMedia, |
962 uploadMedia: _uploadMedia, | 989 downloadOptions: _downloadOptions); |
963 downloadOptions: _downloadOptions); | |
964 return _response.then((data) => new Usersettings.fromJson(data)); | 990 return _response.then((data) => new Usersettings.fromJson(data)); |
965 } | 991 } |
966 | 992 |
967 /** | 993 /// Release downloaded content access restriction. |
968 * Release downloaded content access restriction. | 994 /// |
969 * | 995 /// Request parameters: |
970 * Request parameters: | 996 /// |
971 * | 997 /// [volumeIds] - The volume(s) to release restrictions for. |
972 * [volumeIds] - The volume(s) to release restrictions for. | 998 /// |
973 * | 999 /// [cpksver] - The device/version ID from which to release the restriction. |
974 * [cpksver] - The device/version ID from which to release the restriction. | 1000 /// |
975 * | 1001 /// [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. |
976 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. | 1002 /// en_US. |
977 * en_US. | 1003 /// |
978 * | 1004 /// [source] - String to identify the originator of this request. |
979 * [source] - String to identify the originator of this request. | 1005 /// |
980 * | 1006 /// Completes with a [DownloadAccesses]. |
981 * Completes with a [DownloadAccesses]. | 1007 /// |
982 * | 1008 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1009 /// an error. |
984 * error. | 1010 /// |
985 * | 1011 /// If the used [http.Client] completes with an error when making a REST |
986 * If the used [http.Client] completes with an error when making a REST call, | 1012 /// call, this method will complete with the same error. |
987 * this method will complete with the same error. | 1013 async.Future<DownloadAccesses> releaseDownloadAccess( |
988 */ | 1014 core.List<core.String> volumeIds, core.String cpksver, |
989 async.Future<DownloadAccesses> releaseDownloadAccess(core.List<core.String> vo
lumeIds, core.String cpksver, {core.String locale, core.String source}) { | 1015 {core.String locale, core.String source}) { |
990 var _url = null; | 1016 var _url = null; |
991 var _queryParams = new core.Map(); | 1017 var _queryParams = new core.Map(); |
992 var _uploadMedia = null; | 1018 var _uploadMedia = null; |
993 var _uploadOptions = null; | 1019 var _uploadOptions = null; |
994 var _downloadOptions = commons.DownloadOptions.Metadata; | 1020 var _downloadOptions = commons.DownloadOptions.Metadata; |
995 var _body = null; | 1021 var _body = null; |
996 | 1022 |
997 if (volumeIds == null || volumeIds.isEmpty) { | 1023 if (volumeIds == null || volumeIds.isEmpty) { |
998 throw new core.ArgumentError("Parameter volumeIds is required."); | 1024 throw new core.ArgumentError("Parameter volumeIds is required."); |
999 } | 1025 } |
1000 _queryParams["volumeIds"] = volumeIds; | 1026 _queryParams["volumeIds"] = volumeIds; |
1001 if (cpksver == null) { | 1027 if (cpksver == null) { |
1002 throw new core.ArgumentError("Parameter cpksver is required."); | 1028 throw new core.ArgumentError("Parameter cpksver is required."); |
1003 } | 1029 } |
1004 _queryParams["cpksver"] = [cpksver]; | 1030 _queryParams["cpksver"] = [cpksver]; |
1005 if (locale != null) { | 1031 if (locale != null) { |
1006 _queryParams["locale"] = [locale]; | 1032 _queryParams["locale"] = [locale]; |
1007 } | 1033 } |
1008 if (source != null) { | 1034 if (source != null) { |
1009 _queryParams["source"] = [source]; | 1035 _queryParams["source"] = [source]; |
1010 } | 1036 } |
1011 | 1037 |
1012 _url = 'myconfig/releaseDownloadAccess'; | 1038 _url = 'myconfig/releaseDownloadAccess'; |
1013 | 1039 |
1014 var _response = _requester.request(_url, | 1040 var _response = _requester.request(_url, "POST", |
1015 "POST", | 1041 body: _body, |
1016 body: _body, | 1042 queryParams: _queryParams, |
1017 queryParams: _queryParams, | 1043 uploadOptions: _uploadOptions, |
1018 uploadOptions: _uploadOptions, | 1044 uploadMedia: _uploadMedia, |
1019 uploadMedia: _uploadMedia, | 1045 downloadOptions: _downloadOptions); |
1020 downloadOptions: _downloadOptions); | |
1021 return _response.then((data) => new DownloadAccesses.fromJson(data)); | 1046 return _response.then((data) => new DownloadAccesses.fromJson(data)); |
1022 } | 1047 } |
1023 | 1048 |
1024 /** | 1049 /// Request concurrent and download access restrictions. |
1025 * Request concurrent and download access restrictions. | 1050 /// |
1026 * | 1051 /// Request parameters: |
1027 * Request parameters: | 1052 /// |
1028 * | 1053 /// [source] - String to identify the originator of this request. |
1029 * [source] - String to identify the originator of this request. | 1054 /// |
1030 * | 1055 /// [volumeId] - The volume to request concurrent/download restrictions for. |
1031 * [volumeId] - The volume to request concurrent/download restrictions for. | 1056 /// |
1032 * | 1057 /// [nonce] - The client nonce value. |
1033 * [nonce] - The client nonce value. | 1058 /// |
1034 * | 1059 /// [cpksver] - The device/version ID from which to request the restrictions. |
1035 * [cpksver] - The device/version ID from which to request the restrictions. | 1060 /// |
1036 * | 1061 /// [licenseTypes] - The type of access license to request. If not specified, |
1037 * [licenseTypes] - The type of access license to request. If not specified, | 1062 /// the default is BOTH. |
1038 * the default is BOTH. | 1063 /// Possible string values are: |
1039 * Possible string values are: | 1064 /// - "BOTH" : Both concurrent and download licenses. |
1040 * - "BOTH" : Both concurrent and download licenses. | 1065 /// - "CONCURRENT" : Concurrent access license. |
1041 * - "CONCURRENT" : Concurrent access license. | 1066 /// - "DOWNLOAD" : Offline download access license. |
1042 * - "DOWNLOAD" : Offline download access license. | 1067 /// |
1043 * | 1068 /// [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. |
1044 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. | 1069 /// en_US. |
1045 * en_US. | 1070 /// |
1046 * | 1071 /// Completes with a [RequestAccess]. |
1047 * Completes with a [RequestAccess]. | 1072 /// |
1048 * | 1073 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1049 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1074 /// an error. |
1050 * error. | 1075 /// |
1051 * | 1076 /// If the used [http.Client] completes with an error when making a REST |
1052 * If the used [http.Client] completes with an error when making a REST call, | 1077 /// call, this method will complete with the same error. |
1053 * this method will complete with the same error. | 1078 async.Future<RequestAccess> requestAccess(core.String source, |
1054 */ | 1079 core.String volumeId, core.String nonce, core.String cpksver, |
1055 async.Future<RequestAccess> requestAccess(core.String source, core.String volu
meId, core.String nonce, core.String cpksver, {core.String licenseTypes, core.St
ring locale}) { | 1080 {core.String licenseTypes, core.String locale}) { |
1056 var _url = null; | 1081 var _url = null; |
1057 var _queryParams = new core.Map(); | 1082 var _queryParams = new core.Map(); |
1058 var _uploadMedia = null; | 1083 var _uploadMedia = null; |
1059 var _uploadOptions = null; | 1084 var _uploadOptions = null; |
1060 var _downloadOptions = commons.DownloadOptions.Metadata; | 1085 var _downloadOptions = commons.DownloadOptions.Metadata; |
1061 var _body = null; | 1086 var _body = null; |
1062 | 1087 |
1063 if (source == null) { | 1088 if (source == null) { |
1064 throw new core.ArgumentError("Parameter source is required."); | 1089 throw new core.ArgumentError("Parameter source is required."); |
1065 } | 1090 } |
(...skipping 12 matching lines...) Expand all Loading... |
1078 _queryParams["cpksver"] = [cpksver]; | 1103 _queryParams["cpksver"] = [cpksver]; |
1079 if (licenseTypes != null) { | 1104 if (licenseTypes != null) { |
1080 _queryParams["licenseTypes"] = [licenseTypes]; | 1105 _queryParams["licenseTypes"] = [licenseTypes]; |
1081 } | 1106 } |
1082 if (locale != null) { | 1107 if (locale != null) { |
1083 _queryParams["locale"] = [locale]; | 1108 _queryParams["locale"] = [locale]; |
1084 } | 1109 } |
1085 | 1110 |
1086 _url = 'myconfig/requestAccess'; | 1111 _url = 'myconfig/requestAccess'; |
1087 | 1112 |
1088 var _response = _requester.request(_url, | 1113 var _response = _requester.request(_url, "POST", |
1089 "POST", | 1114 body: _body, |
1090 body: _body, | 1115 queryParams: _queryParams, |
1091 queryParams: _queryParams, | 1116 uploadOptions: _uploadOptions, |
1092 uploadOptions: _uploadOptions, | 1117 uploadMedia: _uploadMedia, |
1093 uploadMedia: _uploadMedia, | 1118 downloadOptions: _downloadOptions); |
1094 downloadOptions: _downloadOptions); | |
1095 return _response.then((data) => new RequestAccess.fromJson(data)); | 1119 return _response.then((data) => new RequestAccess.fromJson(data)); |
1096 } | 1120 } |
1097 | 1121 |
1098 /** | 1122 /// Request downloaded content access for specified volumes on the My eBooks |
1099 * Request downloaded content access for specified volumes on the My eBooks | 1123 /// shelf. |
1100 * shelf. | 1124 /// |
1101 * | 1125 /// Request parameters: |
1102 * Request parameters: | 1126 /// |
1103 * | 1127 /// [source] - String to identify the originator of this request. |
1104 * [source] - String to identify the originator of this request. | 1128 /// |
1105 * | 1129 /// [nonce] - The client nonce value. |
1106 * [nonce] - The client nonce value. | 1130 /// |
1107 * | 1131 /// [cpksver] - The device/version ID from which to release the restriction. |
1108 * [cpksver] - The device/version ID from which to release the restriction. | 1132 /// |
1109 * | 1133 /// [features] - List of features supported by the client, i.e., 'RENTALS' |
1110 * [features] - List of features supported by the client, i.e., 'RENTALS' | 1134 /// |
1111 * | 1135 /// [includeNonComicsSeries] - Set to true to include non-comics series. |
1112 * [includeNonComicsSeries] - Set to true to include non-comics series. | 1136 /// Defaults to false. |
1113 * Defaults to false. | 1137 /// |
1114 * | 1138 /// [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. |
1115 * [locale] - ISO-639-1, ISO-3166-1 codes for message localization, i.e. | 1139 /// en_US. |
1116 * en_US. | 1140 /// |
1117 * | 1141 /// [showPreorders] - Set to true to show pre-ordered books. Defaults to |
1118 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. | 1142 /// false. |
1119 * | 1143 /// |
1120 * [volumeIds] - The volume(s) to request download restrictions for. | 1144 /// [volumeIds] - The volume(s) to request download restrictions for. |
1121 * | 1145 /// |
1122 * Completes with a [Volumes]. | 1146 /// Completes with a [Volumes]. |
1123 * | 1147 /// |
1124 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1148 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1125 * error. | 1149 /// an error. |
1126 * | 1150 /// |
1127 * If the used [http.Client] completes with an error when making a REST call, | 1151 /// If the used [http.Client] completes with an error when making a REST |
1128 * this method will complete with the same error. | 1152 /// call, this method will complete with the same error. |
1129 */ | 1153 async.Future<Volumes> syncVolumeLicenses( |
1130 async.Future<Volumes> syncVolumeLicenses(core.String source, core.String nonce
, core.String cpksver, {core.List<core.String> features, core.bool includeNonCom
icsSeries, core.String locale, core.bool showPreorders, core.List<core.String> v
olumeIds}) { | 1154 core.String source, core.String nonce, core.String cpksver, |
| 1155 {core.List<core.String> features, |
| 1156 core.bool includeNonComicsSeries, |
| 1157 core.String locale, |
| 1158 core.bool showPreorders, |
| 1159 core.List<core.String> volumeIds}) { |
1131 var _url = null; | 1160 var _url = null; |
1132 var _queryParams = new core.Map(); | 1161 var _queryParams = new core.Map(); |
1133 var _uploadMedia = null; | 1162 var _uploadMedia = null; |
1134 var _uploadOptions = null; | 1163 var _uploadOptions = null; |
1135 var _downloadOptions = commons.DownloadOptions.Metadata; | 1164 var _downloadOptions = commons.DownloadOptions.Metadata; |
1136 var _body = null; | 1165 var _body = null; |
1137 | 1166 |
1138 if (source == null) { | 1167 if (source == null) { |
1139 throw new core.ArgumentError("Parameter source is required."); | 1168 throw new core.ArgumentError("Parameter source is required."); |
1140 } | 1169 } |
(...skipping 17 matching lines...) Expand all Loading... |
1158 } | 1187 } |
1159 if (showPreorders != null) { | 1188 if (showPreorders != null) { |
1160 _queryParams["showPreorders"] = ["${showPreorders}"]; | 1189 _queryParams["showPreorders"] = ["${showPreorders}"]; |
1161 } | 1190 } |
1162 if (volumeIds != null) { | 1191 if (volumeIds != null) { |
1163 _queryParams["volumeIds"] = volumeIds; | 1192 _queryParams["volumeIds"] = volumeIds; |
1164 } | 1193 } |
1165 | 1194 |
1166 _url = 'myconfig/syncVolumeLicenses'; | 1195 _url = 'myconfig/syncVolumeLicenses'; |
1167 | 1196 |
1168 var _response = _requester.request(_url, | 1197 var _response = _requester.request(_url, "POST", |
1169 "POST", | 1198 body: _body, |
1170 body: _body, | 1199 queryParams: _queryParams, |
1171 queryParams: _queryParams, | 1200 uploadOptions: _uploadOptions, |
1172 uploadOptions: _uploadOptions, | 1201 uploadMedia: _uploadMedia, |
1173 uploadMedia: _uploadMedia, | 1202 downloadOptions: _downloadOptions); |
1174 downloadOptions: _downloadOptions); | |
1175 return _response.then((data) => new Volumes.fromJson(data)); | 1203 return _response.then((data) => new Volumes.fromJson(data)); |
1176 } | 1204 } |
1177 | 1205 |
1178 /** | 1206 /// Sets the settings for the user. If a sub-object is specified, it will |
1179 * Sets the settings for the user. If a sub-object is specified, it will | 1207 /// overwrite the existing sub-object stored in the server. Unspecified |
1180 * overwrite the existing sub-object stored in the server. Unspecified | 1208 /// sub-objects will retain the existing value. |
1181 * sub-objects will retain the existing value. | 1209 /// |
1182 * | 1210 /// [request] - The metadata request object. |
1183 * [request] - The metadata request object. | 1211 /// |
1184 * | 1212 /// Request parameters: |
1185 * Request parameters: | 1213 /// |
1186 * | 1214 /// Completes with a [Usersettings]. |
1187 * Completes with a [Usersettings]. | 1215 /// |
1188 * | 1216 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1189 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1217 /// an error. |
1190 * error. | 1218 /// |
1191 * | 1219 /// If the used [http.Client] completes with an error when making a REST |
1192 * If the used [http.Client] completes with an error when making a REST call, | 1220 /// call, this method will complete with the same error. |
1193 * this method will complete with the same error. | |
1194 */ | |
1195 async.Future<Usersettings> updateUserSettings(Usersettings request) { | 1221 async.Future<Usersettings> updateUserSettings(Usersettings request) { |
1196 var _url = null; | 1222 var _url = null; |
1197 var _queryParams = new core.Map(); | 1223 var _queryParams = new core.Map(); |
1198 var _uploadMedia = null; | 1224 var _uploadMedia = null; |
1199 var _uploadOptions = null; | 1225 var _uploadOptions = null; |
1200 var _downloadOptions = commons.DownloadOptions.Metadata; | 1226 var _downloadOptions = commons.DownloadOptions.Metadata; |
1201 var _body = null; | 1227 var _body = null; |
1202 | 1228 |
1203 if (request != null) { | 1229 if (request != null) { |
1204 _body = convert.JSON.encode((request).toJson()); | 1230 _body = convert.JSON.encode((request).toJson()); |
1205 } | 1231 } |
1206 | 1232 |
1207 _url = 'myconfig/updateUserSettings'; | 1233 _url = 'myconfig/updateUserSettings'; |
1208 | 1234 |
1209 var _response = _requester.request(_url, | 1235 var _response = _requester.request(_url, "POST", |
1210 "POST", | 1236 body: _body, |
1211 body: _body, | 1237 queryParams: _queryParams, |
1212 queryParams: _queryParams, | 1238 uploadOptions: _uploadOptions, |
1213 uploadOptions: _uploadOptions, | 1239 uploadMedia: _uploadMedia, |
1214 uploadMedia: _uploadMedia, | 1240 downloadOptions: _downloadOptions); |
1215 downloadOptions: _downloadOptions); | |
1216 return _response.then((data) => new Usersettings.fromJson(data)); | 1241 return _response.then((data) => new Usersettings.fromJson(data)); |
1217 } | 1242 } |
1218 | |
1219 } | 1243 } |
1220 | 1244 |
1221 | |
1222 class MylibraryResourceApi { | 1245 class MylibraryResourceApi { |
1223 final commons.ApiRequester _requester; | 1246 final commons.ApiRequester _requester; |
1224 | 1247 |
1225 MylibraryAnnotationsResourceApi get annotations => new MylibraryAnnotationsRes
ourceApi(_requester); | 1248 MylibraryAnnotationsResourceApi get annotations => |
1226 MylibraryBookshelvesResourceApi get bookshelves => new MylibraryBookshelvesRes
ourceApi(_requester); | 1249 new MylibraryAnnotationsResourceApi(_requester); |
1227 MylibraryReadingpositionsResourceApi get readingpositions => new MylibraryRead
ingpositionsResourceApi(_requester); | 1250 MylibraryBookshelvesResourceApi get bookshelves => |
| 1251 new MylibraryBookshelvesResourceApi(_requester); |
| 1252 MylibraryReadingpositionsResourceApi get readingpositions => |
| 1253 new MylibraryReadingpositionsResourceApi(_requester); |
1228 | 1254 |
1229 MylibraryResourceApi(commons.ApiRequester client) : | 1255 MylibraryResourceApi(commons.ApiRequester client) : _requester = client; |
1230 _requester = client; | |
1231 } | 1256 } |
1232 | 1257 |
1233 | |
1234 class MylibraryAnnotationsResourceApi { | 1258 class MylibraryAnnotationsResourceApi { |
1235 final commons.ApiRequester _requester; | 1259 final commons.ApiRequester _requester; |
1236 | 1260 |
1237 MylibraryAnnotationsResourceApi(commons.ApiRequester client) : | 1261 MylibraryAnnotationsResourceApi(commons.ApiRequester client) |
1238 _requester = client; | 1262 : _requester = client; |
1239 | 1263 |
1240 /** | 1264 /// Deletes an annotation. |
1241 * Deletes an annotation. | 1265 /// |
1242 * | 1266 /// Request parameters: |
1243 * Request parameters: | 1267 /// |
1244 * | 1268 /// [annotationId] - The ID for the annotation to delete. |
1245 * [annotationId] - The ID for the annotation to delete. | 1269 /// |
1246 * | 1270 /// [source] - String to identify the originator of this request. |
1247 * [source] - String to identify the originator of this request. | 1271 /// |
1248 * | 1272 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1249 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1273 /// an error. |
1250 * error. | 1274 /// |
1251 * | 1275 /// If the used [http.Client] completes with an error when making a REST |
1252 * If the used [http.Client] completes with an error when making a REST call, | 1276 /// call, this method will complete with the same error. |
1253 * this method will complete with the same error. | |
1254 */ | |
1255 async.Future delete(core.String annotationId, {core.String source}) { | 1277 async.Future delete(core.String annotationId, {core.String source}) { |
1256 var _url = null; | 1278 var _url = null; |
1257 var _queryParams = new core.Map(); | 1279 var _queryParams = new core.Map(); |
1258 var _uploadMedia = null; | 1280 var _uploadMedia = null; |
1259 var _uploadOptions = null; | 1281 var _uploadOptions = null; |
1260 var _downloadOptions = commons.DownloadOptions.Metadata; | 1282 var _downloadOptions = commons.DownloadOptions.Metadata; |
1261 var _body = null; | 1283 var _body = null; |
1262 | 1284 |
1263 if (annotationId == null) { | 1285 if (annotationId == null) { |
1264 throw new core.ArgumentError("Parameter annotationId is required."); | 1286 throw new core.ArgumentError("Parameter annotationId is required."); |
1265 } | 1287 } |
1266 if (source != null) { | 1288 if (source != null) { |
1267 _queryParams["source"] = [source]; | 1289 _queryParams["source"] = [source]; |
1268 } | 1290 } |
1269 | 1291 |
1270 _downloadOptions = null; | 1292 _downloadOptions = null; |
1271 | 1293 |
1272 _url = 'mylibrary/annotations/' + commons.Escaper.ecapeVariable('$annotation
Id'); | 1294 _url = 'mylibrary/annotations/' + |
| 1295 commons.Escaper.ecapeVariable('$annotationId'); |
1273 | 1296 |
1274 var _response = _requester.request(_url, | 1297 var _response = _requester.request(_url, "DELETE", |
1275 "DELETE", | 1298 body: _body, |
1276 body: _body, | 1299 queryParams: _queryParams, |
1277 queryParams: _queryParams, | 1300 uploadOptions: _uploadOptions, |
1278 uploadOptions: _uploadOptions, | 1301 uploadMedia: _uploadMedia, |
1279 uploadMedia: _uploadMedia, | 1302 downloadOptions: _downloadOptions); |
1280 downloadOptions: _downloadOptions); | |
1281 return _response.then((data) => null); | 1303 return _response.then((data) => null); |
1282 } | 1304 } |
1283 | 1305 |
1284 /** | 1306 /// Inserts a new annotation. |
1285 * Inserts a new annotation. | 1307 /// |
1286 * | 1308 /// [request] - The metadata request object. |
1287 * [request] - The metadata request object. | 1309 /// |
1288 * | 1310 /// Request parameters: |
1289 * Request parameters: | 1311 /// |
1290 * | 1312 /// [annotationId] - The ID for the annotation to insert. |
1291 * [annotationId] - The ID for the annotation to insert. | 1313 /// |
1292 * | 1314 /// [country] - ISO-3166-1 code to override the IP-based location. |
1293 * [country] - ISO-3166-1 code to override the IP-based location. | 1315 /// |
1294 * | 1316 /// [showOnlySummaryInResponse] - Requests that only the summary of the |
1295 * [showOnlySummaryInResponse] - Requests that only the summary of the | 1317 /// specified layer be provided in the response. |
1296 * specified layer be provided in the response. | 1318 /// |
1297 * | 1319 /// [source] - String to identify the originator of this request. |
1298 * [source] - String to identify the originator of this request. | 1320 /// |
1299 * | 1321 /// Completes with a [Annotation]. |
1300 * Completes with a [Annotation]. | 1322 /// |
1301 * | 1323 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1302 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1324 /// an error. |
1303 * error. | 1325 /// |
1304 * | 1326 /// If the used [http.Client] completes with an error when making a REST |
1305 * If the used [http.Client] completes with an error when making a REST call, | 1327 /// call, this method will complete with the same error. |
1306 * this method will complete with the same error. | 1328 async.Future<Annotation> insert(Annotation request, |
1307 */ | 1329 {core.String annotationId, |
1308 async.Future<Annotation> insert(Annotation request, {core.String annotationId,
core.String country, core.bool showOnlySummaryInResponse, core.String source})
{ | 1330 core.String country, |
| 1331 core.bool showOnlySummaryInResponse, |
| 1332 core.String source}) { |
1309 var _url = null; | 1333 var _url = null; |
1310 var _queryParams = new core.Map(); | 1334 var _queryParams = new core.Map(); |
1311 var _uploadMedia = null; | 1335 var _uploadMedia = null; |
1312 var _uploadOptions = null; | 1336 var _uploadOptions = null; |
1313 var _downloadOptions = commons.DownloadOptions.Metadata; | 1337 var _downloadOptions = commons.DownloadOptions.Metadata; |
1314 var _body = null; | 1338 var _body = null; |
1315 | 1339 |
1316 if (request != null) { | 1340 if (request != null) { |
1317 _body = convert.JSON.encode((request).toJson()); | 1341 _body = convert.JSON.encode((request).toJson()); |
1318 } | 1342 } |
1319 if (annotationId != null) { | 1343 if (annotationId != null) { |
1320 _queryParams["annotationId"] = [annotationId]; | 1344 _queryParams["annotationId"] = [annotationId]; |
1321 } | 1345 } |
1322 if (country != null) { | 1346 if (country != null) { |
1323 _queryParams["country"] = [country]; | 1347 _queryParams["country"] = [country]; |
1324 } | 1348 } |
1325 if (showOnlySummaryInResponse != null) { | 1349 if (showOnlySummaryInResponse != null) { |
1326 _queryParams["showOnlySummaryInResponse"] = ["${showOnlySummaryInResponse}
"]; | 1350 _queryParams["showOnlySummaryInResponse"] = [ |
| 1351 "${showOnlySummaryInResponse}" |
| 1352 ]; |
1327 } | 1353 } |
1328 if (source != null) { | 1354 if (source != null) { |
1329 _queryParams["source"] = [source]; | 1355 _queryParams["source"] = [source]; |
1330 } | 1356 } |
1331 | 1357 |
1332 _url = 'mylibrary/annotations'; | 1358 _url = 'mylibrary/annotations'; |
1333 | 1359 |
1334 var _response = _requester.request(_url, | 1360 var _response = _requester.request(_url, "POST", |
1335 "POST", | 1361 body: _body, |
1336 body: _body, | 1362 queryParams: _queryParams, |
1337 queryParams: _queryParams, | 1363 uploadOptions: _uploadOptions, |
1338 uploadOptions: _uploadOptions, | 1364 uploadMedia: _uploadMedia, |
1339 uploadMedia: _uploadMedia, | 1365 downloadOptions: _downloadOptions); |
1340 downloadOptions: _downloadOptions); | |
1341 return _response.then((data) => new Annotation.fromJson(data)); | 1366 return _response.then((data) => new Annotation.fromJson(data)); |
1342 } | 1367 } |
1343 | 1368 |
1344 /** | 1369 /// Retrieves a list of annotations, possibly filtered. |
1345 * Retrieves a list of annotations, possibly filtered. | 1370 /// |
1346 * | 1371 /// Request parameters: |
1347 * Request parameters: | 1372 /// |
1348 * | 1373 /// [contentVersion] - The content version for the requested volume. |
1349 * [contentVersion] - The content version for the requested volume. | 1374 /// |
1350 * | 1375 /// [layerId] - The layer ID to limit annotation by. |
1351 * [layerId] - The layer ID to limit annotation by. | 1376 /// |
1352 * | 1377 /// [layerIds] - The layer ID(s) to limit annotation by. |
1353 * [layerIds] - The layer ID(s) to limit annotation by. | 1378 /// |
1354 * | 1379 /// [maxResults] - Maximum number of results to return |
1355 * [maxResults] - Maximum number of results to return | 1380 /// Value must be between "0" and "40". |
1356 * Value must be between "0" and "40". | 1381 /// |
1357 * | 1382 /// [pageToken] - The value of the nextToken from the previous page. |
1358 * [pageToken] - The value of the nextToken from the previous page. | 1383 /// |
1359 * | 1384 /// [showDeleted] - Set to true to return deleted annotations. updatedMin |
1360 * [showDeleted] - Set to true to return deleted annotations. updatedMin must | 1385 /// must be in the request to use this. Defaults to false. |
1361 * be in the request to use this. Defaults to false. | 1386 /// |
1362 * | 1387 /// [source] - String to identify the originator of this request. |
1363 * [source] - String to identify the originator of this request. | 1388 /// |
1364 * | 1389 /// [updatedMax] - RFC 3339 timestamp to restrict to items updated prior to |
1365 * [updatedMax] - RFC 3339 timestamp to restrict to items updated prior to | 1390 /// this timestamp (exclusive). |
1366 * this timestamp (exclusive). | 1391 /// |
1367 * | 1392 /// [updatedMin] - RFC 3339 timestamp to restrict to items updated since this |
1368 * [updatedMin] - RFC 3339 timestamp to restrict to items updated since this | 1393 /// timestamp (inclusive). |
1369 * timestamp (inclusive). | 1394 /// |
1370 * | 1395 /// [volumeId] - The volume to restrict annotations to. |
1371 * [volumeId] - The volume to restrict annotations to. | 1396 /// |
1372 * | 1397 /// Completes with a [Annotations]. |
1373 * Completes with a [Annotations]. | 1398 /// |
1374 * | 1399 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1400 /// an error. |
1376 * error. | 1401 /// |
1377 * | 1402 /// If the used [http.Client] completes with an error when making a REST |
1378 * If the used [http.Client] completes with an error when making a REST call, | 1403 /// call, this method will complete with the same error. |
1379 * this method will complete with the same error. | 1404 async.Future<Annotations> list( |
1380 */ | 1405 {core.String contentVersion, |
1381 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}) { | 1406 core.String layerId, |
| 1407 core.List<core.String> layerIds, |
| 1408 core.int maxResults, |
| 1409 core.String pageToken, |
| 1410 core.bool showDeleted, |
| 1411 core.String source, |
| 1412 core.String updatedMax, |
| 1413 core.String updatedMin, |
| 1414 core.String volumeId}) { |
1382 var _url = null; | 1415 var _url = null; |
1383 var _queryParams = new core.Map(); | 1416 var _queryParams = new core.Map(); |
1384 var _uploadMedia = null; | 1417 var _uploadMedia = null; |
1385 var _uploadOptions = null; | 1418 var _uploadOptions = null; |
1386 var _downloadOptions = commons.DownloadOptions.Metadata; | 1419 var _downloadOptions = commons.DownloadOptions.Metadata; |
1387 var _body = null; | 1420 var _body = null; |
1388 | 1421 |
1389 if (contentVersion != null) { | 1422 if (contentVersion != null) { |
1390 _queryParams["contentVersion"] = [contentVersion]; | 1423 _queryParams["contentVersion"] = [contentVersion]; |
1391 } | 1424 } |
(...skipping 20 matching lines...) Expand all Loading... |
1412 } | 1445 } |
1413 if (updatedMin != null) { | 1446 if (updatedMin != null) { |
1414 _queryParams["updatedMin"] = [updatedMin]; | 1447 _queryParams["updatedMin"] = [updatedMin]; |
1415 } | 1448 } |
1416 if (volumeId != null) { | 1449 if (volumeId != null) { |
1417 _queryParams["volumeId"] = [volumeId]; | 1450 _queryParams["volumeId"] = [volumeId]; |
1418 } | 1451 } |
1419 | 1452 |
1420 _url = 'mylibrary/annotations'; | 1453 _url = 'mylibrary/annotations'; |
1421 | 1454 |
1422 var _response = _requester.request(_url, | 1455 var _response = _requester.request(_url, "GET", |
1423 "GET", | 1456 body: _body, |
1424 body: _body, | 1457 queryParams: _queryParams, |
1425 queryParams: _queryParams, | 1458 uploadOptions: _uploadOptions, |
1426 uploadOptions: _uploadOptions, | 1459 uploadMedia: _uploadMedia, |
1427 uploadMedia: _uploadMedia, | 1460 downloadOptions: _downloadOptions); |
1428 downloadOptions: _downloadOptions); | |
1429 return _response.then((data) => new Annotations.fromJson(data)); | 1461 return _response.then((data) => new Annotations.fromJson(data)); |
1430 } | 1462 } |
1431 | 1463 |
1432 /** | 1464 /// Gets the summary of specified layers. |
1433 * Gets the summary of specified layers. | 1465 /// |
1434 * | 1466 /// Request parameters: |
1435 * Request parameters: | 1467 /// |
1436 * | 1468 /// [layerIds] - Array of layer IDs to get the summary for. |
1437 * [layerIds] - Array of layer IDs to get the summary for. | 1469 /// |
1438 * | 1470 /// [volumeId] - Volume id to get the summary for. |
1439 * [volumeId] - Volume id to get the summary for. | 1471 /// |
1440 * | 1472 /// Completes with a [AnnotationsSummary]. |
1441 * Completes with a [AnnotationsSummary]. | 1473 /// |
1442 * | 1474 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1443 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1475 /// an error. |
1444 * error. | 1476 /// |
1445 * | 1477 /// If the used [http.Client] completes with an error when making a REST |
1446 * If the used [http.Client] completes with an error when making a REST call, | 1478 /// call, this method will complete with the same error. |
1447 * this method will complete with the same error. | 1479 async.Future<AnnotationsSummary> summary( |
1448 */ | 1480 core.List<core.String> layerIds, core.String volumeId) { |
1449 async.Future<AnnotationsSummary> summary(core.List<core.String> layerIds, core
.String volumeId) { | |
1450 var _url = null; | 1481 var _url = null; |
1451 var _queryParams = new core.Map(); | 1482 var _queryParams = new core.Map(); |
1452 var _uploadMedia = null; | 1483 var _uploadMedia = null; |
1453 var _uploadOptions = null; | 1484 var _uploadOptions = null; |
1454 var _downloadOptions = commons.DownloadOptions.Metadata; | 1485 var _downloadOptions = commons.DownloadOptions.Metadata; |
1455 var _body = null; | 1486 var _body = null; |
1456 | 1487 |
1457 if (layerIds == null || layerIds.isEmpty) { | 1488 if (layerIds == null || layerIds.isEmpty) { |
1458 throw new core.ArgumentError("Parameter layerIds is required."); | 1489 throw new core.ArgumentError("Parameter layerIds is required."); |
1459 } | 1490 } |
1460 _queryParams["layerIds"] = layerIds; | 1491 _queryParams["layerIds"] = layerIds; |
1461 if (volumeId == null) { | 1492 if (volumeId == null) { |
1462 throw new core.ArgumentError("Parameter volumeId is required."); | 1493 throw new core.ArgumentError("Parameter volumeId is required."); |
1463 } | 1494 } |
1464 _queryParams["volumeId"] = [volumeId]; | 1495 _queryParams["volumeId"] = [volumeId]; |
1465 | 1496 |
1466 _url = 'mylibrary/annotations/summary'; | 1497 _url = 'mylibrary/annotations/summary'; |
1467 | 1498 |
1468 var _response = _requester.request(_url, | 1499 var _response = _requester.request(_url, "POST", |
1469 "POST", | 1500 body: _body, |
1470 body: _body, | 1501 queryParams: _queryParams, |
1471 queryParams: _queryParams, | 1502 uploadOptions: _uploadOptions, |
1472 uploadOptions: _uploadOptions, | 1503 uploadMedia: _uploadMedia, |
1473 uploadMedia: _uploadMedia, | 1504 downloadOptions: _downloadOptions); |
1474 downloadOptions: _downloadOptions); | |
1475 return _response.then((data) => new AnnotationsSummary.fromJson(data)); | 1505 return _response.then((data) => new AnnotationsSummary.fromJson(data)); |
1476 } | 1506 } |
1477 | 1507 |
1478 /** | 1508 /// Updates an existing annotation. |
1479 * Updates an existing annotation. | 1509 /// |
1480 * | 1510 /// [request] - The metadata request object. |
1481 * [request] - The metadata request object. | 1511 /// |
1482 * | 1512 /// Request parameters: |
1483 * Request parameters: | 1513 /// |
1484 * | 1514 /// [annotationId] - The ID for the annotation to update. |
1485 * [annotationId] - The ID for the annotation to update. | 1515 /// |
1486 * | 1516 /// [source] - String to identify the originator of this request. |
1487 * [source] - String to identify the originator of this request. | 1517 /// |
1488 * | 1518 /// Completes with a [Annotation]. |
1489 * Completes with a [Annotation]. | 1519 /// |
1490 * | 1520 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1491 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1521 /// an error. |
1492 * error. | 1522 /// |
1493 * | 1523 /// If the used [http.Client] completes with an error when making a REST |
1494 * If the used [http.Client] completes with an error when making a REST call, | 1524 /// call, this method will complete with the same error. |
1495 * this method will complete with the same error. | 1525 async.Future<Annotation> update(Annotation request, core.String annotationId, |
1496 */ | 1526 {core.String source}) { |
1497 async.Future<Annotation> update(Annotation request, core.String annotationId,
{core.String source}) { | |
1498 var _url = null; | 1527 var _url = null; |
1499 var _queryParams = new core.Map(); | 1528 var _queryParams = new core.Map(); |
1500 var _uploadMedia = null; | 1529 var _uploadMedia = null; |
1501 var _uploadOptions = null; | 1530 var _uploadOptions = null; |
1502 var _downloadOptions = commons.DownloadOptions.Metadata; | 1531 var _downloadOptions = commons.DownloadOptions.Metadata; |
1503 var _body = null; | 1532 var _body = null; |
1504 | 1533 |
1505 if (request != null) { | 1534 if (request != null) { |
1506 _body = convert.JSON.encode((request).toJson()); | 1535 _body = convert.JSON.encode((request).toJson()); |
1507 } | 1536 } |
1508 if (annotationId == null) { | 1537 if (annotationId == null) { |
1509 throw new core.ArgumentError("Parameter annotationId is required."); | 1538 throw new core.ArgumentError("Parameter annotationId is required."); |
1510 } | 1539 } |
1511 if (source != null) { | 1540 if (source != null) { |
1512 _queryParams["source"] = [source]; | 1541 _queryParams["source"] = [source]; |
1513 } | 1542 } |
1514 | 1543 |
1515 _url = 'mylibrary/annotations/' + commons.Escaper.ecapeVariable('$annotation
Id'); | 1544 _url = 'mylibrary/annotations/' + |
| 1545 commons.Escaper.ecapeVariable('$annotationId'); |
1516 | 1546 |
1517 var _response = _requester.request(_url, | 1547 var _response = _requester.request(_url, "PUT", |
1518 "PUT", | 1548 body: _body, |
1519 body: _body, | 1549 queryParams: _queryParams, |
1520 queryParams: _queryParams, | 1550 uploadOptions: _uploadOptions, |
1521 uploadOptions: _uploadOptions, | 1551 uploadMedia: _uploadMedia, |
1522 uploadMedia: _uploadMedia, | 1552 downloadOptions: _downloadOptions); |
1523 downloadOptions: _downloadOptions); | |
1524 return _response.then((data) => new Annotation.fromJson(data)); | 1553 return _response.then((data) => new Annotation.fromJson(data)); |
1525 } | 1554 } |
1526 | |
1527 } | 1555 } |
1528 | 1556 |
1529 | |
1530 class MylibraryBookshelvesResourceApi { | 1557 class MylibraryBookshelvesResourceApi { |
1531 final commons.ApiRequester _requester; | 1558 final commons.ApiRequester _requester; |
1532 | 1559 |
1533 MylibraryBookshelvesVolumesResourceApi get volumes => new MylibraryBookshelves
VolumesResourceApi(_requester); | 1560 MylibraryBookshelvesVolumesResourceApi get volumes => |
| 1561 new MylibraryBookshelvesVolumesResourceApi(_requester); |
1534 | 1562 |
1535 MylibraryBookshelvesResourceApi(commons.ApiRequester client) : | 1563 MylibraryBookshelvesResourceApi(commons.ApiRequester client) |
1536 _requester = client; | 1564 : _requester = client; |
1537 | 1565 |
1538 /** | 1566 /// Adds a volume to a bookshelf. |
1539 * Adds a volume to a bookshelf. | 1567 /// |
1540 * | 1568 /// Request parameters: |
1541 * Request parameters: | 1569 /// |
1542 * | 1570 /// [shelf] - ID of bookshelf to which to add a volume. |
1543 * [shelf] - ID of bookshelf to which to add a volume. | 1571 /// |
1544 * | 1572 /// [volumeId] - ID of volume to add. |
1545 * [volumeId] - ID of volume to add. | 1573 /// |
1546 * | 1574 /// [reason] - The reason for which the book is added to the library. |
1547 * [reason] - The reason for which the book is added to the library. | 1575 /// Possible string values are: |
1548 * Possible string values are: | 1576 /// - "IOS_PREX" : Volumes added from the PREX flow on iOS. |
1549 * - "IOS_PREX" : Volumes added from the PREX flow on iOS. | 1577 /// - "IOS_SEARCH" : Volumes added from the Search flow on iOS. |
1550 * - "IOS_SEARCH" : Volumes added from the Search flow on iOS. | 1578 /// - "ONBOARDING" : Volumes added from the Onboarding flow. |
1551 * - "ONBOARDING" : Volumes added from the Onboarding flow. | 1579 /// |
1552 * | 1580 /// [source] - String to identify the originator of this request. |
1553 * [source] - String to identify the originator of this request. | 1581 /// |
1554 * | 1582 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1555 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1583 /// an error. |
1556 * error. | 1584 /// |
1557 * | 1585 /// If the used [http.Client] completes with an error when making a REST |
1558 * If the used [http.Client] completes with an error when making a REST call, | 1586 /// call, this method will complete with the same error. |
1559 * this method will complete with the same error. | 1587 async.Future addVolume(core.String shelf, core.String volumeId, |
1560 */ | 1588 {core.String reason, core.String source}) { |
1561 async.Future addVolume(core.String shelf, core.String volumeId, {core.String r
eason, core.String source}) { | |
1562 var _url = null; | 1589 var _url = null; |
1563 var _queryParams = new core.Map(); | 1590 var _queryParams = new core.Map(); |
1564 var _uploadMedia = null; | 1591 var _uploadMedia = null; |
1565 var _uploadOptions = null; | 1592 var _uploadOptions = null; |
1566 var _downloadOptions = commons.DownloadOptions.Metadata; | 1593 var _downloadOptions = commons.DownloadOptions.Metadata; |
1567 var _body = null; | 1594 var _body = null; |
1568 | 1595 |
1569 if (shelf == null) { | 1596 if (shelf == null) { |
1570 throw new core.ArgumentError("Parameter shelf is required."); | 1597 throw new core.ArgumentError("Parameter shelf is required."); |
1571 } | 1598 } |
1572 if (volumeId == null) { | 1599 if (volumeId == null) { |
1573 throw new core.ArgumentError("Parameter volumeId is required."); | 1600 throw new core.ArgumentError("Parameter volumeId is required."); |
1574 } | 1601 } |
1575 _queryParams["volumeId"] = [volumeId]; | 1602 _queryParams["volumeId"] = [volumeId]; |
1576 if (reason != null) { | 1603 if (reason != null) { |
1577 _queryParams["reason"] = [reason]; | 1604 _queryParams["reason"] = [reason]; |
1578 } | 1605 } |
1579 if (source != null) { | 1606 if (source != null) { |
1580 _queryParams["source"] = [source]; | 1607 _queryParams["source"] = [source]; |
1581 } | 1608 } |
1582 | 1609 |
1583 _downloadOptions = null; | 1610 _downloadOptions = null; |
1584 | 1611 |
1585 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/addVolume'; | 1612 _url = 'mylibrary/bookshelves/' + |
| 1613 commons.Escaper.ecapeVariable('$shelf') + |
| 1614 '/addVolume'; |
1586 | 1615 |
1587 var _response = _requester.request(_url, | 1616 var _response = _requester.request(_url, "POST", |
1588 "POST", | 1617 body: _body, |
1589 body: _body, | 1618 queryParams: _queryParams, |
1590 queryParams: _queryParams, | 1619 uploadOptions: _uploadOptions, |
1591 uploadOptions: _uploadOptions, | 1620 uploadMedia: _uploadMedia, |
1592 uploadMedia: _uploadMedia, | 1621 downloadOptions: _downloadOptions); |
1593 downloadOptions: _downloadOptions); | |
1594 return _response.then((data) => null); | 1622 return _response.then((data) => null); |
1595 } | 1623 } |
1596 | 1624 |
1597 /** | 1625 /// Clears all volumes from a bookshelf. |
1598 * Clears all volumes from a bookshelf. | 1626 /// |
1599 * | 1627 /// Request parameters: |
1600 * Request parameters: | 1628 /// |
1601 * | 1629 /// [shelf] - ID of bookshelf from which to remove a volume. |
1602 * [shelf] - ID of bookshelf from which to remove a volume. | 1630 /// |
1603 * | 1631 /// [source] - String to identify the originator of this request. |
1604 * [source] - String to identify the originator of this request. | 1632 /// |
1605 * | 1633 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1606 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1634 /// an error. |
1607 * error. | 1635 /// |
1608 * | 1636 /// If the used [http.Client] completes with an error when making a REST |
1609 * If the used [http.Client] completes with an error when making a REST call, | 1637 /// call, this method will complete with the same error. |
1610 * this method will complete with the same error. | |
1611 */ | |
1612 async.Future clearVolumes(core.String shelf, {core.String source}) { | 1638 async.Future clearVolumes(core.String shelf, {core.String source}) { |
1613 var _url = null; | 1639 var _url = null; |
1614 var _queryParams = new core.Map(); | 1640 var _queryParams = new core.Map(); |
1615 var _uploadMedia = null; | 1641 var _uploadMedia = null; |
1616 var _uploadOptions = null; | 1642 var _uploadOptions = null; |
1617 var _downloadOptions = commons.DownloadOptions.Metadata; | 1643 var _downloadOptions = commons.DownloadOptions.Metadata; |
1618 var _body = null; | 1644 var _body = null; |
1619 | 1645 |
1620 if (shelf == null) { | 1646 if (shelf == null) { |
1621 throw new core.ArgumentError("Parameter shelf is required."); | 1647 throw new core.ArgumentError("Parameter shelf is required."); |
1622 } | 1648 } |
1623 if (source != null) { | 1649 if (source != null) { |
1624 _queryParams["source"] = [source]; | 1650 _queryParams["source"] = [source]; |
1625 } | 1651 } |
1626 | 1652 |
1627 _downloadOptions = null; | 1653 _downloadOptions = null; |
1628 | 1654 |
1629 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/clearVolumes'; | 1655 _url = 'mylibrary/bookshelves/' + |
| 1656 commons.Escaper.ecapeVariable('$shelf') + |
| 1657 '/clearVolumes'; |
1630 | 1658 |
1631 var _response = _requester.request(_url, | 1659 var _response = _requester.request(_url, "POST", |
1632 "POST", | 1660 body: _body, |
1633 body: _body, | 1661 queryParams: _queryParams, |
1634 queryParams: _queryParams, | 1662 uploadOptions: _uploadOptions, |
1635 uploadOptions: _uploadOptions, | 1663 uploadMedia: _uploadMedia, |
1636 uploadMedia: _uploadMedia, | 1664 downloadOptions: _downloadOptions); |
1637 downloadOptions: _downloadOptions); | |
1638 return _response.then((data) => null); | 1665 return _response.then((data) => null); |
1639 } | 1666 } |
1640 | 1667 |
1641 /** | 1668 /// Retrieves metadata for a specific bookshelf belonging to the |
1642 * Retrieves metadata for a specific bookshelf belonging to the authenticated | 1669 /// authenticated user. |
1643 * user. | 1670 /// |
1644 * | 1671 /// Request parameters: |
1645 * Request parameters: | 1672 /// |
1646 * | 1673 /// [shelf] - ID of bookshelf to retrieve. |
1647 * [shelf] - ID of bookshelf to retrieve. | 1674 /// |
1648 * | 1675 /// [source] - String to identify the originator of this request. |
1649 * [source] - String to identify the originator of this request. | 1676 /// |
1650 * | 1677 /// Completes with a [Bookshelf]. |
1651 * Completes with a [Bookshelf]. | 1678 /// |
1652 * | 1679 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1653 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1680 /// an error. |
1654 * error. | 1681 /// |
1655 * | 1682 /// If the used [http.Client] completes with an error when making a REST |
1656 * If the used [http.Client] completes with an error when making a REST call, | 1683 /// call, this method will complete with the same error. |
1657 * this method will complete with the same error. | |
1658 */ | |
1659 async.Future<Bookshelf> get(core.String shelf, {core.String source}) { | 1684 async.Future<Bookshelf> get(core.String shelf, {core.String source}) { |
1660 var _url = null; | 1685 var _url = null; |
1661 var _queryParams = new core.Map(); | 1686 var _queryParams = new core.Map(); |
1662 var _uploadMedia = null; | 1687 var _uploadMedia = null; |
1663 var _uploadOptions = null; | 1688 var _uploadOptions = null; |
1664 var _downloadOptions = commons.DownloadOptions.Metadata; | 1689 var _downloadOptions = commons.DownloadOptions.Metadata; |
1665 var _body = null; | 1690 var _body = null; |
1666 | 1691 |
1667 if (shelf == null) { | 1692 if (shelf == null) { |
1668 throw new core.ArgumentError("Parameter shelf is required."); | 1693 throw new core.ArgumentError("Parameter shelf is required."); |
1669 } | 1694 } |
1670 if (source != null) { | 1695 if (source != null) { |
1671 _queryParams["source"] = [source]; | 1696 _queryParams["source"] = [source]; |
1672 } | 1697 } |
1673 | 1698 |
1674 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf'); | 1699 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf'); |
1675 | 1700 |
1676 var _response = _requester.request(_url, | 1701 var _response = _requester.request(_url, "GET", |
1677 "GET", | 1702 body: _body, |
1678 body: _body, | 1703 queryParams: _queryParams, |
1679 queryParams: _queryParams, | 1704 uploadOptions: _uploadOptions, |
1680 uploadOptions: _uploadOptions, | 1705 uploadMedia: _uploadMedia, |
1681 uploadMedia: _uploadMedia, | 1706 downloadOptions: _downloadOptions); |
1682 downloadOptions: _downloadOptions); | |
1683 return _response.then((data) => new Bookshelf.fromJson(data)); | 1707 return _response.then((data) => new Bookshelf.fromJson(data)); |
1684 } | 1708 } |
1685 | 1709 |
1686 /** | 1710 /// Retrieves a list of bookshelves belonging to the authenticated user. |
1687 * Retrieves a list of bookshelves belonging to the authenticated user. | 1711 /// |
1688 * | 1712 /// Request parameters: |
1689 * Request parameters: | 1713 /// |
1690 * | 1714 /// [source] - String to identify the originator of this request. |
1691 * [source] - String to identify the originator of this request. | 1715 /// |
1692 * | 1716 /// Completes with a [Bookshelves]. |
1693 * Completes with a [Bookshelves]. | 1717 /// |
1694 * | 1718 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1695 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1719 /// an error. |
1696 * error. | 1720 /// |
1697 * | 1721 /// If the used [http.Client] completes with an error when making a REST |
1698 * If the used [http.Client] completes with an error when making a REST call, | 1722 /// call, this method will complete with the same error. |
1699 * this method will complete with the same error. | |
1700 */ | |
1701 async.Future<Bookshelves> list({core.String source}) { | 1723 async.Future<Bookshelves> list({core.String source}) { |
1702 var _url = null; | 1724 var _url = null; |
1703 var _queryParams = new core.Map(); | 1725 var _queryParams = new core.Map(); |
1704 var _uploadMedia = null; | 1726 var _uploadMedia = null; |
1705 var _uploadOptions = null; | 1727 var _uploadOptions = null; |
1706 var _downloadOptions = commons.DownloadOptions.Metadata; | 1728 var _downloadOptions = commons.DownloadOptions.Metadata; |
1707 var _body = null; | 1729 var _body = null; |
1708 | 1730 |
1709 if (source != null) { | 1731 if (source != null) { |
1710 _queryParams["source"] = [source]; | 1732 _queryParams["source"] = [source]; |
1711 } | 1733 } |
1712 | 1734 |
1713 _url = 'mylibrary/bookshelves'; | 1735 _url = 'mylibrary/bookshelves'; |
1714 | 1736 |
1715 var _response = _requester.request(_url, | 1737 var _response = _requester.request(_url, "GET", |
1716 "GET", | 1738 body: _body, |
1717 body: _body, | 1739 queryParams: _queryParams, |
1718 queryParams: _queryParams, | 1740 uploadOptions: _uploadOptions, |
1719 uploadOptions: _uploadOptions, | 1741 uploadMedia: _uploadMedia, |
1720 uploadMedia: _uploadMedia, | 1742 downloadOptions: _downloadOptions); |
1721 downloadOptions: _downloadOptions); | |
1722 return _response.then((data) => new Bookshelves.fromJson(data)); | 1743 return _response.then((data) => new Bookshelves.fromJson(data)); |
1723 } | 1744 } |
1724 | 1745 |
1725 /** | 1746 /// Moves a volume within a bookshelf. |
1726 * Moves a volume within a bookshelf. | 1747 /// |
1727 * | 1748 /// Request parameters: |
1728 * Request parameters: | 1749 /// |
1729 * | 1750 /// [shelf] - ID of bookshelf with the volume. |
1730 * [shelf] - ID of bookshelf with the volume. | 1751 /// |
1731 * | 1752 /// [volumeId] - ID of volume to move. |
1732 * [volumeId] - ID of volume to move. | 1753 /// |
1733 * | 1754 /// [volumePosition] - Position on shelf to move the item (0 puts the item |
1734 * [volumePosition] - Position on shelf to move the item (0 puts the item | 1755 /// before the current first item, 1 puts it between the first and the second |
1735 * before the current first item, 1 puts it between the first and the second | 1756 /// and so on.) |
1736 * and so on.) | 1757 /// |
1737 * | 1758 /// [source] - String to identify the originator of this request. |
1738 * [source] - String to identify the originator of this request. | 1759 /// |
1739 * | 1760 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1740 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1761 /// an error. |
1741 * error. | 1762 /// |
1742 * | 1763 /// If the used [http.Client] completes with an error when making a REST |
1743 * If the used [http.Client] completes with an error when making a REST call, | 1764 /// call, this method will complete with the same error. |
1744 * this method will complete with the same error. | 1765 async.Future moveVolume( |
1745 */ | 1766 core.String shelf, core.String volumeId, core.int volumePosition, |
1746 async.Future moveVolume(core.String shelf, core.String volumeId, core.int volu
mePosition, {core.String source}) { | 1767 {core.String source}) { |
1747 var _url = null; | 1768 var _url = null; |
1748 var _queryParams = new core.Map(); | 1769 var _queryParams = new core.Map(); |
1749 var _uploadMedia = null; | 1770 var _uploadMedia = null; |
1750 var _uploadOptions = null; | 1771 var _uploadOptions = null; |
1751 var _downloadOptions = commons.DownloadOptions.Metadata; | 1772 var _downloadOptions = commons.DownloadOptions.Metadata; |
1752 var _body = null; | 1773 var _body = null; |
1753 | 1774 |
1754 if (shelf == null) { | 1775 if (shelf == null) { |
1755 throw new core.ArgumentError("Parameter shelf is required."); | 1776 throw new core.ArgumentError("Parameter shelf is required."); |
1756 } | 1777 } |
1757 if (volumeId == null) { | 1778 if (volumeId == null) { |
1758 throw new core.ArgumentError("Parameter volumeId is required."); | 1779 throw new core.ArgumentError("Parameter volumeId is required."); |
1759 } | 1780 } |
1760 _queryParams["volumeId"] = [volumeId]; | 1781 _queryParams["volumeId"] = [volumeId]; |
1761 if (volumePosition == null) { | 1782 if (volumePosition == null) { |
1762 throw new core.ArgumentError("Parameter volumePosition is required."); | 1783 throw new core.ArgumentError("Parameter volumePosition is required."); |
1763 } | 1784 } |
1764 _queryParams["volumePosition"] = ["${volumePosition}"]; | 1785 _queryParams["volumePosition"] = ["${volumePosition}"]; |
1765 if (source != null) { | 1786 if (source != null) { |
1766 _queryParams["source"] = [source]; | 1787 _queryParams["source"] = [source]; |
1767 } | 1788 } |
1768 | 1789 |
1769 _downloadOptions = null; | 1790 _downloadOptions = null; |
1770 | 1791 |
1771 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/moveVolume'; | 1792 _url = 'mylibrary/bookshelves/' + |
| 1793 commons.Escaper.ecapeVariable('$shelf') + |
| 1794 '/moveVolume'; |
1772 | 1795 |
1773 var _response = _requester.request(_url, | 1796 var _response = _requester.request(_url, "POST", |
1774 "POST", | 1797 body: _body, |
1775 body: _body, | 1798 queryParams: _queryParams, |
1776 queryParams: _queryParams, | 1799 uploadOptions: _uploadOptions, |
1777 uploadOptions: _uploadOptions, | 1800 uploadMedia: _uploadMedia, |
1778 uploadMedia: _uploadMedia, | 1801 downloadOptions: _downloadOptions); |
1779 downloadOptions: _downloadOptions); | |
1780 return _response.then((data) => null); | 1802 return _response.then((data) => null); |
1781 } | 1803 } |
1782 | 1804 |
1783 /** | 1805 /// Removes a volume from a bookshelf. |
1784 * Removes a volume from a bookshelf. | 1806 /// |
1785 * | 1807 /// Request parameters: |
1786 * Request parameters: | 1808 /// |
1787 * | 1809 /// [shelf] - ID of bookshelf from which to remove a volume. |
1788 * [shelf] - ID of bookshelf from which to remove a volume. | 1810 /// |
1789 * | 1811 /// [volumeId] - ID of volume to remove. |
1790 * [volumeId] - ID of volume to remove. | 1812 /// |
1791 * | 1813 /// [reason] - The reason for which the book is removed from the library. |
1792 * [reason] - The reason for which the book is removed from the library. | 1814 /// Possible string values are: |
1793 * Possible string values are: | 1815 /// - "ONBOARDING" : Samples removed from the Onboarding flow. |
1794 * - "ONBOARDING" : Samples removed from the Onboarding flow. | 1816 /// |
1795 * | 1817 /// [source] - String to identify the originator of this request. |
1796 * [source] - String to identify the originator of this request. | 1818 /// |
1797 * | 1819 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1798 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1820 /// an error. |
1799 * error. | 1821 /// |
1800 * | 1822 /// If the used [http.Client] completes with an error when making a REST |
1801 * If the used [http.Client] completes with an error when making a REST call, | 1823 /// call, this method will complete with the same error. |
1802 * this method will complete with the same error. | 1824 async.Future removeVolume(core.String shelf, core.String volumeId, |
1803 */ | 1825 {core.String reason, core.String source}) { |
1804 async.Future removeVolume(core.String shelf, core.String volumeId, {core.Strin
g reason, core.String source}) { | |
1805 var _url = null; | 1826 var _url = null; |
1806 var _queryParams = new core.Map(); | 1827 var _queryParams = new core.Map(); |
1807 var _uploadMedia = null; | 1828 var _uploadMedia = null; |
1808 var _uploadOptions = null; | 1829 var _uploadOptions = null; |
1809 var _downloadOptions = commons.DownloadOptions.Metadata; | 1830 var _downloadOptions = commons.DownloadOptions.Metadata; |
1810 var _body = null; | 1831 var _body = null; |
1811 | 1832 |
1812 if (shelf == null) { | 1833 if (shelf == null) { |
1813 throw new core.ArgumentError("Parameter shelf is required."); | 1834 throw new core.ArgumentError("Parameter shelf is required."); |
1814 } | 1835 } |
1815 if (volumeId == null) { | 1836 if (volumeId == null) { |
1816 throw new core.ArgumentError("Parameter volumeId is required."); | 1837 throw new core.ArgumentError("Parameter volumeId is required."); |
1817 } | 1838 } |
1818 _queryParams["volumeId"] = [volumeId]; | 1839 _queryParams["volumeId"] = [volumeId]; |
1819 if (reason != null) { | 1840 if (reason != null) { |
1820 _queryParams["reason"] = [reason]; | 1841 _queryParams["reason"] = [reason]; |
1821 } | 1842 } |
1822 if (source != null) { | 1843 if (source != null) { |
1823 _queryParams["source"] = [source]; | 1844 _queryParams["source"] = [source]; |
1824 } | 1845 } |
1825 | 1846 |
1826 _downloadOptions = null; | 1847 _downloadOptions = null; |
1827 | 1848 |
1828 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/removeVolume'; | 1849 _url = 'mylibrary/bookshelves/' + |
| 1850 commons.Escaper.ecapeVariable('$shelf') + |
| 1851 '/removeVolume'; |
1829 | 1852 |
1830 var _response = _requester.request(_url, | 1853 var _response = _requester.request(_url, "POST", |
1831 "POST", | 1854 body: _body, |
1832 body: _body, | 1855 queryParams: _queryParams, |
1833 queryParams: _queryParams, | 1856 uploadOptions: _uploadOptions, |
1834 uploadOptions: _uploadOptions, | 1857 uploadMedia: _uploadMedia, |
1835 uploadMedia: _uploadMedia, | 1858 downloadOptions: _downloadOptions); |
1836 downloadOptions: _downloadOptions); | |
1837 return _response.then((data) => null); | 1859 return _response.then((data) => null); |
1838 } | 1860 } |
1839 | |
1840 } | 1861 } |
1841 | 1862 |
1842 | |
1843 class MylibraryBookshelvesVolumesResourceApi { | 1863 class MylibraryBookshelvesVolumesResourceApi { |
1844 final commons.ApiRequester _requester; | 1864 final commons.ApiRequester _requester; |
1845 | 1865 |
1846 MylibraryBookshelvesVolumesResourceApi(commons.ApiRequester client) : | 1866 MylibraryBookshelvesVolumesResourceApi(commons.ApiRequester client) |
1847 _requester = client; | 1867 : _requester = client; |
1848 | 1868 |
1849 /** | 1869 /// Gets volume information for volumes on a bookshelf. |
1850 * Gets volume information for volumes on a bookshelf. | 1870 /// |
1851 * | 1871 /// Request parameters: |
1852 * Request parameters: | 1872 /// |
1853 * | 1873 /// [shelf] - The bookshelf ID or name retrieve volumes for. |
1854 * [shelf] - The bookshelf ID or name retrieve volumes for. | 1874 /// |
1855 * | 1875 /// [country] - ISO-3166-1 code to override the IP-based location. |
1856 * [country] - ISO-3166-1 code to override the IP-based location. | 1876 /// |
1857 * | 1877 /// [maxResults] - Maximum number of results to return |
1858 * [maxResults] - Maximum number of results to return | 1878 /// |
1859 * | 1879 /// [projection] - Restrict information returned to a set of selected fields. |
1860 * [projection] - Restrict information returned to a set of selected fields. | 1880 /// Possible string values are: |
1861 * Possible string values are: | 1881 /// - "full" : Includes all volume data. |
1862 * - "full" : Includes all volume data. | 1882 /// - "lite" : Includes a subset of fields in volumeInfo and accessInfo. |
1863 * - "lite" : Includes a subset of fields in volumeInfo and accessInfo. | 1883 /// |
1864 * | 1884 /// [q] - Full-text search query string in this bookshelf. |
1865 * [q] - Full-text search query string in this bookshelf. | 1885 /// |
1866 * | 1886 /// [showPreorders] - Set to true to show pre-ordered books. Defaults to |
1867 * [showPreorders] - Set to true to show pre-ordered books. Defaults to false. | 1887 /// false. |
1868 * | 1888 /// |
1869 * [source] - String to identify the originator of this request. | 1889 /// [source] - String to identify the originator of this request. |
1870 * | 1890 /// |
1871 * [startIndex] - Index of the first element to return (starts at 0) | 1891 /// [startIndex] - Index of the first element to return (starts at 0) |
1872 * | 1892 /// |
1873 * Completes with a [Volumes]. | 1893 /// Completes with a [Volumes]. |
1874 * | 1894 /// |
1875 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1895 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1876 * error. | 1896 /// an error. |
1877 * | 1897 /// |
1878 * If the used [http.Client] completes with an error when making a REST call, | 1898 /// If the used [http.Client] completes with an error when making a REST |
1879 * this method will complete with the same error. | 1899 /// call, this method will complete with the same error. |
1880 */ | 1900 async.Future<Volumes> list(core.String shelf, |
1881 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}) { | 1901 {core.String country, |
| 1902 core.int maxResults, |
| 1903 core.String projection, |
| 1904 core.String q, |
| 1905 core.bool showPreorders, |
| 1906 core.String source, |
| 1907 core.int startIndex}) { |
1882 var _url = null; | 1908 var _url = null; |
1883 var _queryParams = new core.Map(); | 1909 var _queryParams = new core.Map(); |
1884 var _uploadMedia = null; | 1910 var _uploadMedia = null; |
1885 var _uploadOptions = null; | 1911 var _uploadOptions = null; |
1886 var _downloadOptions = commons.DownloadOptions.Metadata; | 1912 var _downloadOptions = commons.DownloadOptions.Metadata; |
1887 var _body = null; | 1913 var _body = null; |
1888 | 1914 |
1889 if (shelf == null) { | 1915 if (shelf == null) { |
1890 throw new core.ArgumentError("Parameter shelf is required."); | 1916 throw new core.ArgumentError("Parameter shelf is required."); |
1891 } | 1917 } |
(...skipping 12 matching lines...) Expand all Loading... |
1904 if (showPreorders != null) { | 1930 if (showPreorders != null) { |
1905 _queryParams["showPreorders"] = ["${showPreorders}"]; | 1931 _queryParams["showPreorders"] = ["${showPreorders}"]; |
1906 } | 1932 } |
1907 if (source != null) { | 1933 if (source != null) { |
1908 _queryParams["source"] = [source]; | 1934 _queryParams["source"] = [source]; |
1909 } | 1935 } |
1910 if (startIndex != null) { | 1936 if (startIndex != null) { |
1911 _queryParams["startIndex"] = ["${startIndex}"]; | 1937 _queryParams["startIndex"] = ["${startIndex}"]; |
1912 } | 1938 } |
1913 | 1939 |
1914 _url = 'mylibrary/bookshelves/' + commons.Escaper.ecapeVariable('$shelf') +
'/volumes'; | 1940 _url = 'mylibrary/bookshelves/' + |
| 1941 commons.Escaper.ecapeVariable('$shelf') + |
| 1942 '/volumes'; |
1915 | 1943 |
1916 var _response = _requester.request(_url, | 1944 var _response = _requester.request(_url, "GET", |
1917 "GET", | 1945 body: _body, |
1918 body: _body, | 1946 queryParams: _queryParams, |
1919 queryParams: _queryParams, | 1947 uploadOptions: _uploadOptions, |
1920 uploadOptions: _uploadOptions, | 1948 uploadMedia: _uploadMedia, |
1921 uploadMedia: _uploadMedia, | 1949 downloadOptions: _downloadOptions); |
1922 downloadOptions: _downloadOptions); | |
1923 return _response.then((data) => new Volumes.fromJson(data)); | 1950 return _response.then((data) => new Volumes.fromJson(data)); |
1924 } | 1951 } |
1925 | |
1926 } | 1952 } |
1927 | 1953 |
1928 | |
1929 class MylibraryReadingpositionsResourceApi { | 1954 class MylibraryReadingpositionsResourceApi { |
1930 final commons.ApiRequester _requester; | 1955 final commons.ApiRequester _requester; |
1931 | 1956 |
1932 MylibraryReadingpositionsResourceApi(commons.ApiRequester client) : | 1957 MylibraryReadingpositionsResourceApi(commons.ApiRequester client) |
1933 _requester = client; | 1958 : _requester = client; |
1934 | 1959 |
1935 /** | 1960 /// Retrieves my reading position information for a volume. |
1936 * Retrieves my reading position information for a volume. | 1961 /// |
1937 * | 1962 /// Request parameters: |
1938 * Request parameters: | 1963 /// |
1939 * | 1964 /// [volumeId] - ID of volume for which to retrieve a reading position. |
1940 * [volumeId] - ID of volume for which to retrieve a reading position. | 1965 /// |
1941 * | 1966 /// [contentVersion] - Volume content version for which this reading position |
1942 * [contentVersion] - Volume content version for which this reading position | 1967 /// is requested. |
1943 * is requested. | 1968 /// |
1944 * | 1969 /// [source] - String to identify the originator of this request. |
1945 * [source] - String to identify the originator of this request. | 1970 /// |
1946 * | 1971 /// Completes with a [ReadingPosition]. |
1947 * Completes with a [ReadingPosition]. | 1972 /// |
1948 * | 1973 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
1949 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1974 /// an error. |
1950 * error. | 1975 /// |
1951 * | 1976 /// If the used [http.Client] completes with an error when making a REST |
1952 * If the used [http.Client] completes with an error when making a REST call, | 1977 /// call, this method will complete with the same error. |
1953 * this method will complete with the same error. | 1978 async.Future<ReadingPosition> get(core.String volumeId, |
1954 */ | 1979 {core.String contentVersion, core.String source}) { |
1955 async.Future<ReadingPosition> get(core.String volumeId, {core.String contentVe
rsion, core.String source}) { | |
1956 var _url = null; | 1980 var _url = null; |
1957 var _queryParams = new core.Map(); | 1981 var _queryParams = new core.Map(); |
1958 var _uploadMedia = null; | 1982 var _uploadMedia = null; |
1959 var _uploadOptions = null; | 1983 var _uploadOptions = null; |
1960 var _downloadOptions = commons.DownloadOptions.Metadata; | 1984 var _downloadOptions = commons.DownloadOptions.Metadata; |
1961 var _body = null; | 1985 var _body = null; |
1962 | 1986 |
1963 if (volumeId == null) { | 1987 if (volumeId == null) { |
1964 throw new core.ArgumentError("Parameter volumeId is required."); | 1988 throw new core.ArgumentError("Parameter volumeId is required."); |
1965 } | 1989 } |
1966 if (contentVersion != null) { | 1990 if (contentVersion != null) { |
1967 _queryParams["contentVersion"] = [contentVersion]; | 1991 _queryParams["contentVersion"] = [contentVersion]; |
1968 } | 1992 } |
1969 if (source != null) { | 1993 if (source != null) { |
1970 _queryParams["source"] = [source]; | 1994 _queryParams["source"] = [source]; |
1971 } | 1995 } |
1972 | 1996 |
1973 _url = 'mylibrary/readingpositions/' + commons.Escaper.ecapeVariable('$volum
eId'); | 1997 _url = 'mylibrary/readingpositions/' + |
| 1998 commons.Escaper.ecapeVariable('$volumeId'); |
1974 | 1999 |
1975 var _response = _requester.request(_url, | 2000 var _response = _requester.request(_url, "GET", |
1976 "GET", | 2001 body: _body, |
1977 body: _body, | 2002 queryParams: _queryParams, |
1978 queryParams: _queryParams, | 2003 uploadOptions: _uploadOptions, |
1979 uploadOptions: _uploadOptions, | 2004 uploadMedia: _uploadMedia, |
1980 uploadMedia: _uploadMedia, | 2005 downloadOptions: _downloadOptions); |
1981 downloadOptions: _downloadOptions); | |
1982 return _response.then((data) => new ReadingPosition.fromJson(data)); | 2006 return _response.then((data) => new ReadingPosition.fromJson(data)); |
1983 } | 2007 } |
1984 | 2008 |
1985 /** | 2009 /// Sets my reading position information for a volume. |
1986 * Sets my reading position information for a volume. | 2010 /// |
1987 * | 2011 /// Request parameters: |
1988 * Request parameters: | 2012 /// |
1989 * | 2013 /// [volumeId] - ID of volume for which to update the reading position. |
1990 * [volumeId] - ID of volume for which to update the reading position. | 2014 /// |
1991 * | 2015 /// [timestamp] - RFC 3339 UTC format timestamp associated with this reading |
1992 * [timestamp] - RFC 3339 UTC format timestamp associated with this reading | 2016 /// position. |
1993 * position. | 2017 /// |
1994 * | 2018 /// [position] - Position string for the new volume reading position. |
1995 * [position] - Position string for the new volume reading position. | 2019 /// |
1996 * | 2020 /// [action] - Action that caused this reading position to be set. |
1997 * [action] - Action that caused this reading position to be set. | 2021 /// Possible string values are: |
1998 * Possible string values are: | 2022 /// - "bookmark" : User chose bookmark within volume. |
1999 * - "bookmark" : User chose bookmark within volume. | 2023 /// - "chapter" : User selected chapter from list. |
2000 * - "chapter" : User selected chapter from list. | 2024 /// - "next-page" : Next page event. |
2001 * - "next-page" : Next page event. | 2025 /// - "prev-page" : Previous page event. |
2002 * - "prev-page" : Previous page event. | 2026 /// - "scroll" : User navigated to page. |
2003 * - "scroll" : User navigated to page. | 2027 /// - "search" : User chose search results within volume. |
2004 * - "search" : User chose search results within volume. | 2028 /// |
2005 * | 2029 /// [contentVersion] - Volume content version for which this reading position |
2006 * [contentVersion] - Volume content version for which this reading position | 2030 /// applies. |
2007 * applies. | 2031 /// |
2008 * | 2032 /// [deviceCookie] - Random persistent device cookie optional on set |
2009 * [deviceCookie] - Random persistent device cookie optional on set position. | 2033 /// position. |
2010 * | 2034 /// |
2011 * [source] - String to identify the originator of this request. | 2035 /// [source] - String to identify the originator of this request. |
2012 * | 2036 /// |
2013 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2037 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2014 * error. | 2038 /// an error. |
2015 * | 2039 /// |
2016 * If the used [http.Client] completes with an error when making a REST call, | 2040 /// If the used [http.Client] completes with an error when making a REST |
2017 * this method will complete with the same error. | 2041 /// call, this method will complete with the same error. |
2018 */ | 2042 async.Future setPosition( |
2019 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}) { | 2043 core.String volumeId, core.String timestamp, core.String position, |
| 2044 {core.String action, |
| 2045 core.String contentVersion, |
| 2046 core.String deviceCookie, |
| 2047 core.String source}) { |
2020 var _url = null; | 2048 var _url = null; |
2021 var _queryParams = new core.Map(); | 2049 var _queryParams = new core.Map(); |
2022 var _uploadMedia = null; | 2050 var _uploadMedia = null; |
2023 var _uploadOptions = null; | 2051 var _uploadOptions = null; |
2024 var _downloadOptions = commons.DownloadOptions.Metadata; | 2052 var _downloadOptions = commons.DownloadOptions.Metadata; |
2025 var _body = null; | 2053 var _body = null; |
2026 | 2054 |
2027 if (volumeId == null) { | 2055 if (volumeId == null) { |
2028 throw new core.ArgumentError("Parameter volumeId is required."); | 2056 throw new core.ArgumentError("Parameter volumeId is required."); |
2029 } | 2057 } |
(...skipping 13 matching lines...) Expand all Loading... |
2043 } | 2071 } |
2044 if (deviceCookie != null) { | 2072 if (deviceCookie != null) { |
2045 _queryParams["deviceCookie"] = [deviceCookie]; | 2073 _queryParams["deviceCookie"] = [deviceCookie]; |
2046 } | 2074 } |
2047 if (source != null) { | 2075 if (source != null) { |
2048 _queryParams["source"] = [source]; | 2076 _queryParams["source"] = [source]; |
2049 } | 2077 } |
2050 | 2078 |
2051 _downloadOptions = null; | 2079 _downloadOptions = null; |
2052 | 2080 |
2053 _url = 'mylibrary/readingpositions/' + commons.Escaper.ecapeVariable('$volum
eId') + '/setPosition'; | 2081 _url = 'mylibrary/readingpositions/' + |
| 2082 commons.Escaper.ecapeVariable('$volumeId') + |
| 2083 '/setPosition'; |
2054 | 2084 |
2055 var _response = _requester.request(_url, | 2085 var _response = _requester.request(_url, "POST", |
2056 "POST", | 2086 body: _body, |
2057 body: _body, | 2087 queryParams: _queryParams, |
2058 queryParams: _queryParams, | 2088 uploadOptions: _uploadOptions, |
2059 uploadOptions: _uploadOptions, | 2089 uploadMedia: _uploadMedia, |
2060 uploadMedia: _uploadMedia, | 2090 downloadOptions: _downloadOptions); |
2061 downloadOptions: _downloadOptions); | |
2062 return _response.then((data) => null); | 2091 return _response.then((data) => null); |
2063 } | 2092 } |
2064 | |
2065 } | 2093 } |
2066 | 2094 |
2067 | |
2068 class NotificationResourceApi { | 2095 class NotificationResourceApi { |
2069 final commons.ApiRequester _requester; | 2096 final commons.ApiRequester _requester; |
2070 | 2097 |
2071 NotificationResourceApi(commons.ApiRequester client) : | 2098 NotificationResourceApi(commons.ApiRequester client) : _requester = client; |
2072 _requester = client; | |
2073 | 2099 |
2074 /** | 2100 /// Returns notification details for a given notification id. |
2075 * Returns notification details for a given notification id. | 2101 /// |
2076 * | 2102 /// Request parameters: |
2077 * Request parameters: | 2103 /// |
2078 * | 2104 /// [notificationId] - String to identify the notification. |
2079 * [notificationId] - String to identify the notification. | 2105 /// |
2080 * | 2106 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
2081 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 2107 /// Used for generating notification title and body. |
2082 * Used for generating notification title and body. | 2108 /// |
2083 * | 2109 /// [source] - String to identify the originator of this request. |
2084 * [source] - String to identify the originator of this request. | 2110 /// |
2085 * | 2111 /// Completes with a [Notification]. |
2086 * Completes with a [Notification]. | 2112 /// |
2087 * | 2113 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2088 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2114 /// an error. |
2089 * error. | 2115 /// |
2090 * | 2116 /// If the used [http.Client] completes with an error when making a REST |
2091 * If the used [http.Client] completes with an error when making a REST call, | 2117 /// call, this method will complete with the same error. |
2092 * this method will complete with the same error. | 2118 async.Future<Notification> get(core.String notificationId, |
2093 */ | 2119 {core.String locale, core.String source}) { |
2094 async.Future<Notification> get(core.String notificationId, {core.String locale
, core.String source}) { | |
2095 var _url = null; | 2120 var _url = null; |
2096 var _queryParams = new core.Map(); | 2121 var _queryParams = new core.Map(); |
2097 var _uploadMedia = null; | 2122 var _uploadMedia = null; |
2098 var _uploadOptions = null; | 2123 var _uploadOptions = null; |
2099 var _downloadOptions = commons.DownloadOptions.Metadata; | 2124 var _downloadOptions = commons.DownloadOptions.Metadata; |
2100 var _body = null; | 2125 var _body = null; |
2101 | 2126 |
2102 if (notificationId == null) { | 2127 if (notificationId == null) { |
2103 throw new core.ArgumentError("Parameter notificationId is required."); | 2128 throw new core.ArgumentError("Parameter notificationId is required."); |
2104 } | 2129 } |
2105 _queryParams["notification_id"] = [notificationId]; | 2130 _queryParams["notification_id"] = [notificationId]; |
2106 if (locale != null) { | 2131 if (locale != null) { |
2107 _queryParams["locale"] = [locale]; | 2132 _queryParams["locale"] = [locale]; |
2108 } | 2133 } |
2109 if (source != null) { | 2134 if (source != null) { |
2110 _queryParams["source"] = [source]; | 2135 _queryParams["source"] = [source]; |
2111 } | 2136 } |
2112 | 2137 |
2113 _url = 'notification/get'; | 2138 _url = 'notification/get'; |
2114 | 2139 |
2115 var _response = _requester.request(_url, | 2140 var _response = _requester.request(_url, "GET", |
2116 "GET", | 2141 body: _body, |
2117 body: _body, | 2142 queryParams: _queryParams, |
2118 queryParams: _queryParams, | 2143 uploadOptions: _uploadOptions, |
2119 uploadOptions: _uploadOptions, | 2144 uploadMedia: _uploadMedia, |
2120 uploadMedia: _uploadMedia, | 2145 downloadOptions: _downloadOptions); |
2121 downloadOptions: _downloadOptions); | |
2122 return _response.then((data) => new Notification.fromJson(data)); | 2146 return _response.then((data) => new Notification.fromJson(data)); |
2123 } | 2147 } |
2124 | |
2125 } | 2148 } |
2126 | 2149 |
2127 | |
2128 class OnboardingResourceApi { | 2150 class OnboardingResourceApi { |
2129 final commons.ApiRequester _requester; | 2151 final commons.ApiRequester _requester; |
2130 | 2152 |
2131 OnboardingResourceApi(commons.ApiRequester client) : | 2153 OnboardingResourceApi(commons.ApiRequester client) : _requester = client; |
2132 _requester = client; | |
2133 | 2154 |
2134 /** | 2155 /// List categories for onboarding experience. |
2135 * List categories for onboarding experience. | 2156 /// |
2136 * | 2157 /// Request parameters: |
2137 * Request parameters: | 2158 /// |
2138 * | 2159 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is |
2139 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is en-US | 2160 /// en-US if unset. |
2140 * if unset. | 2161 /// |
2141 * | 2162 /// Completes with a [Category]. |
2142 * Completes with a [Category]. | 2163 /// |
2143 * | 2164 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2144 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2165 /// an error. |
2145 * error. | 2166 /// |
2146 * | 2167 /// If the used [http.Client] completes with an error when making a REST |
2147 * If the used [http.Client] completes with an error when making a REST call, | 2168 /// call, this method will complete with the same error. |
2148 * this method will complete with the same error. | |
2149 */ | |
2150 async.Future<Category> listCategories({core.String locale}) { | 2169 async.Future<Category> listCategories({core.String locale}) { |
2151 var _url = null; | 2170 var _url = null; |
2152 var _queryParams = new core.Map(); | 2171 var _queryParams = new core.Map(); |
2153 var _uploadMedia = null; | 2172 var _uploadMedia = null; |
2154 var _uploadOptions = null; | 2173 var _uploadOptions = null; |
2155 var _downloadOptions = commons.DownloadOptions.Metadata; | 2174 var _downloadOptions = commons.DownloadOptions.Metadata; |
2156 var _body = null; | 2175 var _body = null; |
2157 | 2176 |
2158 if (locale != null) { | 2177 if (locale != null) { |
2159 _queryParams["locale"] = [locale]; | 2178 _queryParams["locale"] = [locale]; |
2160 } | 2179 } |
2161 | 2180 |
2162 _url = 'onboarding/listCategories'; | 2181 _url = 'onboarding/listCategories'; |
2163 | 2182 |
2164 var _response = _requester.request(_url, | 2183 var _response = _requester.request(_url, "GET", |
2165 "GET", | 2184 body: _body, |
2166 body: _body, | 2185 queryParams: _queryParams, |
2167 queryParams: _queryParams, | 2186 uploadOptions: _uploadOptions, |
2168 uploadOptions: _uploadOptions, | 2187 uploadMedia: _uploadMedia, |
2169 uploadMedia: _uploadMedia, | 2188 downloadOptions: _downloadOptions); |
2170 downloadOptions: _downloadOptions); | |
2171 return _response.then((data) => new Category.fromJson(data)); | 2189 return _response.then((data) => new Category.fromJson(data)); |
2172 } | 2190 } |
2173 | 2191 |
2174 /** | 2192 /// List available volumes under categories for onboarding experience. |
2175 * List available volumes under categories for onboarding experience. | 2193 /// |
2176 * | 2194 /// Request parameters: |
2177 * Request parameters: | 2195 /// |
2178 * | 2196 /// [categoryId] - List of category ids requested. |
2179 * [categoryId] - List of category ids requested. | 2197 /// |
2180 * | 2198 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is |
2181 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Default is en-US | 2199 /// en-US if unset. |
2182 * if unset. | 2200 /// |
2183 * | 2201 /// [maxAllowedMaturityRating] - The maximum allowed maturity rating of |
2184 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of | 2202 /// returned volumes. Books with a higher maturity rating are filtered out. |
2185 * returned volumes. Books with a higher maturity rating are filtered out. | 2203 /// Possible string values are: |
2186 * Possible string values are: | 2204 /// - "mature" : Show books which are rated mature or lower. |
2187 * - "mature" : Show books which are rated mature or lower. | 2205 /// - "not-mature" : Show books which are rated not mature. |
2188 * - "not-mature" : Show books which are rated not mature. | 2206 /// |
2189 * | 2207 /// [pageSize] - Number of maximum results per page to be included in the |
2190 * [pageSize] - Number of maximum results per page to be included in the | 2208 /// response. |
2191 * response. | 2209 /// |
2192 * | 2210 /// [pageToken] - The value of the nextToken from the previous page. |
2193 * [pageToken] - The value of the nextToken from the previous page. | 2211 /// |
2194 * | 2212 /// Completes with a [Volume2]. |
2195 * Completes with a [Volume2]. | 2213 /// |
2196 * | 2214 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2215 /// an error. |
2198 * error. | 2216 /// |
2199 * | 2217 /// If the used [http.Client] completes with an error when making a REST |
2200 * If the used [http.Client] completes with an error when making a REST call, | 2218 /// call, this method will complete with the same error. |
2201 * this method will complete with the same error. | 2219 async.Future<Volume2> listCategoryVolumes( |
2202 */ | 2220 {core.List<core.String> categoryId, |
2203 async.Future<Volume2> listCategoryVolumes({core.List<core.String> categoryId,
core.String locale, core.String maxAllowedMaturityRating, core.int pageSize, cor
e.String pageToken}) { | 2221 core.String locale, |
| 2222 core.String maxAllowedMaturityRating, |
| 2223 core.int pageSize, |
| 2224 core.String pageToken}) { |
2204 var _url = null; | 2225 var _url = null; |
2205 var _queryParams = new core.Map(); | 2226 var _queryParams = new core.Map(); |
2206 var _uploadMedia = null; | 2227 var _uploadMedia = null; |
2207 var _uploadOptions = null; | 2228 var _uploadOptions = null; |
2208 var _downloadOptions = commons.DownloadOptions.Metadata; | 2229 var _downloadOptions = commons.DownloadOptions.Metadata; |
2209 var _body = null; | 2230 var _body = null; |
2210 | 2231 |
2211 if (categoryId != null) { | 2232 if (categoryId != null) { |
2212 _queryParams["categoryId"] = categoryId; | 2233 _queryParams["categoryId"] = categoryId; |
2213 } | 2234 } |
2214 if (locale != null) { | 2235 if (locale != null) { |
2215 _queryParams["locale"] = [locale]; | 2236 _queryParams["locale"] = [locale]; |
2216 } | 2237 } |
2217 if (maxAllowedMaturityRating != null) { | 2238 if (maxAllowedMaturityRating != null) { |
2218 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; | 2239 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; |
2219 } | 2240 } |
2220 if (pageSize != null) { | 2241 if (pageSize != null) { |
2221 _queryParams["pageSize"] = ["${pageSize}"]; | 2242 _queryParams["pageSize"] = ["${pageSize}"]; |
2222 } | 2243 } |
2223 if (pageToken != null) { | 2244 if (pageToken != null) { |
2224 _queryParams["pageToken"] = [pageToken]; | 2245 _queryParams["pageToken"] = [pageToken]; |
2225 } | 2246 } |
2226 | 2247 |
2227 _url = 'onboarding/listCategoryVolumes'; | 2248 _url = 'onboarding/listCategoryVolumes'; |
2228 | 2249 |
2229 var _response = _requester.request(_url, | 2250 var _response = _requester.request(_url, "GET", |
2230 "GET", | 2251 body: _body, |
2231 body: _body, | 2252 queryParams: _queryParams, |
2232 queryParams: _queryParams, | 2253 uploadOptions: _uploadOptions, |
2233 uploadOptions: _uploadOptions, | 2254 uploadMedia: _uploadMedia, |
2234 uploadMedia: _uploadMedia, | 2255 downloadOptions: _downloadOptions); |
2235 downloadOptions: _downloadOptions); | |
2236 return _response.then((data) => new Volume2.fromJson(data)); | 2256 return _response.then((data) => new Volume2.fromJson(data)); |
2237 } | 2257 } |
2238 | |
2239 } | 2258 } |
2240 | 2259 |
2241 | |
2242 class PersonalizedstreamResourceApi { | 2260 class PersonalizedstreamResourceApi { |
2243 final commons.ApiRequester _requester; | 2261 final commons.ApiRequester _requester; |
2244 | 2262 |
2245 PersonalizedstreamResourceApi(commons.ApiRequester client) : | 2263 PersonalizedstreamResourceApi(commons.ApiRequester client) |
2246 _requester = client; | 2264 : _requester = client; |
2247 | 2265 |
2248 /** | 2266 /// Returns a stream of personalized book clusters |
2249 * Returns a stream of personalized book clusters | 2267 /// |
2250 * | 2268 /// Request parameters: |
2251 * Request parameters: | 2269 /// |
2252 * | 2270 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
2253 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 2271 /// Used for generating recommendations. |
2254 * Used for generating recommendations. | 2272 /// |
2255 * | 2273 /// [maxAllowedMaturityRating] - The maximum allowed maturity rating of |
2256 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of | 2274 /// returned recommendations. Books with a higher maturity rating are |
2257 * returned recommendations. Books with a higher maturity rating are filtered | 2275 /// filtered out. |
2258 * out. | 2276 /// Possible string values are: |
2259 * Possible string values are: | 2277 /// - "mature" : Show books which are rated mature or lower. |
2260 * - "mature" : Show books which are rated mature or lower. | 2278 /// - "not-mature" : Show books which are rated not mature. |
2261 * - "not-mature" : Show books which are rated not mature. | 2279 /// |
2262 * | 2280 /// [source] - String to identify the originator of this request. |
2263 * [source] - String to identify the originator of this request. | 2281 /// |
2264 * | 2282 /// Completes with a [Discoveryclusters]. |
2265 * Completes with a [Discoveryclusters]. | 2283 /// |
2266 * | 2284 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2267 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2285 /// an error. |
2268 * error. | 2286 /// |
2269 * | 2287 /// If the used [http.Client] completes with an error when making a REST |
2270 * If the used [http.Client] completes with an error when making a REST call, | 2288 /// call, this method will complete with the same error. |
2271 * this method will complete with the same error. | 2289 async.Future<Discoveryclusters> get( |
2272 */ | 2290 {core.String locale, |
2273 async.Future<Discoveryclusters> get({core.String locale, core.String maxAllowe
dMaturityRating, core.String source}) { | 2291 core.String maxAllowedMaturityRating, |
| 2292 core.String source}) { |
2274 var _url = null; | 2293 var _url = null; |
2275 var _queryParams = new core.Map(); | 2294 var _queryParams = new core.Map(); |
2276 var _uploadMedia = null; | 2295 var _uploadMedia = null; |
2277 var _uploadOptions = null; | 2296 var _uploadOptions = null; |
2278 var _downloadOptions = commons.DownloadOptions.Metadata; | 2297 var _downloadOptions = commons.DownloadOptions.Metadata; |
2279 var _body = null; | 2298 var _body = null; |
2280 | 2299 |
2281 if (locale != null) { | 2300 if (locale != null) { |
2282 _queryParams["locale"] = [locale]; | 2301 _queryParams["locale"] = [locale]; |
2283 } | 2302 } |
2284 if (maxAllowedMaturityRating != null) { | 2303 if (maxAllowedMaturityRating != null) { |
2285 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; | 2304 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; |
2286 } | 2305 } |
2287 if (source != null) { | 2306 if (source != null) { |
2288 _queryParams["source"] = [source]; | 2307 _queryParams["source"] = [source]; |
2289 } | 2308 } |
2290 | 2309 |
2291 _url = 'personalizedstream/get'; | 2310 _url = 'personalizedstream/get'; |
2292 | 2311 |
2293 var _response = _requester.request(_url, | 2312 var _response = _requester.request(_url, "GET", |
2294 "GET", | 2313 body: _body, |
2295 body: _body, | 2314 queryParams: _queryParams, |
2296 queryParams: _queryParams, | 2315 uploadOptions: _uploadOptions, |
2297 uploadOptions: _uploadOptions, | 2316 uploadMedia: _uploadMedia, |
2298 uploadMedia: _uploadMedia, | 2317 downloadOptions: _downloadOptions); |
2299 downloadOptions: _downloadOptions); | |
2300 return _response.then((data) => new Discoveryclusters.fromJson(data)); | 2318 return _response.then((data) => new Discoveryclusters.fromJson(data)); |
2301 } | 2319 } |
2302 | |
2303 } | 2320 } |
2304 | 2321 |
2305 | |
2306 class PromoofferResourceApi { | 2322 class PromoofferResourceApi { |
2307 final commons.ApiRequester _requester; | 2323 final commons.ApiRequester _requester; |
2308 | 2324 |
2309 PromoofferResourceApi(commons.ApiRequester client) : | 2325 PromoofferResourceApi(commons.ApiRequester client) : _requester = client; |
2310 _requester = client; | |
2311 | 2326 |
2312 /** | 2327 /// Request parameters: |
2313 * Request parameters: | 2328 /// |
2314 * | 2329 /// [androidId] - device android_id |
2315 * [androidId] - device android_id | 2330 /// |
2316 * | 2331 /// [device] - device device |
2317 * [device] - device device | 2332 /// |
2318 * | 2333 /// [manufacturer] - device manufacturer |
2319 * [manufacturer] - device manufacturer | 2334 /// |
2320 * | 2335 /// [model] - device model |
2321 * [model] - device model | 2336 /// |
2322 * | 2337 /// [offerId] - null |
2323 * [offerId] - null | 2338 /// |
2324 * | 2339 /// [product] - device product |
2325 * [product] - device product | 2340 /// |
2326 * | 2341 /// [serial] - device serial |
2327 * [serial] - device serial | 2342 /// |
2328 * | 2343 /// [volumeId] - Volume id to exercise the offer |
2329 * [volumeId] - Volume id to exercise the offer | 2344 /// |
2330 * | 2345 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2346 /// an error. |
2332 * error. | 2347 /// |
2333 * | 2348 /// If the used [http.Client] completes with an error when making a REST |
2334 * If the used [http.Client] completes with an error when making a REST call, | 2349 /// call, this method will complete with the same error. |
2335 * this method will complete with the same error. | 2350 async.Future accept( |
2336 */ | 2351 {core.String androidId, |
2337 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}) { | 2352 core.String device, |
| 2353 core.String manufacturer, |
| 2354 core.String model, |
| 2355 core.String offerId, |
| 2356 core.String product, |
| 2357 core.String serial, |
| 2358 core.String volumeId}) { |
2338 var _url = null; | 2359 var _url = null; |
2339 var _queryParams = new core.Map(); | 2360 var _queryParams = new core.Map(); |
2340 var _uploadMedia = null; | 2361 var _uploadMedia = null; |
2341 var _uploadOptions = null; | 2362 var _uploadOptions = null; |
2342 var _downloadOptions = commons.DownloadOptions.Metadata; | 2363 var _downloadOptions = commons.DownloadOptions.Metadata; |
2343 var _body = null; | 2364 var _body = null; |
2344 | 2365 |
2345 if (androidId != null) { | 2366 if (androidId != null) { |
2346 _queryParams["androidId"] = [androidId]; | 2367 _queryParams["androidId"] = [androidId]; |
2347 } | 2368 } |
(...skipping 16 matching lines...) Expand all Loading... |
2364 _queryParams["serial"] = [serial]; | 2385 _queryParams["serial"] = [serial]; |
2365 } | 2386 } |
2366 if (volumeId != null) { | 2387 if (volumeId != null) { |
2367 _queryParams["volumeId"] = [volumeId]; | 2388 _queryParams["volumeId"] = [volumeId]; |
2368 } | 2389 } |
2369 | 2390 |
2370 _downloadOptions = null; | 2391 _downloadOptions = null; |
2371 | 2392 |
2372 _url = 'promooffer/accept'; | 2393 _url = 'promooffer/accept'; |
2373 | 2394 |
2374 var _response = _requester.request(_url, | 2395 var _response = _requester.request(_url, "POST", |
2375 "POST", | 2396 body: _body, |
2376 body: _body, | 2397 queryParams: _queryParams, |
2377 queryParams: _queryParams, | 2398 uploadOptions: _uploadOptions, |
2378 uploadOptions: _uploadOptions, | 2399 uploadMedia: _uploadMedia, |
2379 uploadMedia: _uploadMedia, | 2400 downloadOptions: _downloadOptions); |
2380 downloadOptions: _downloadOptions); | |
2381 return _response.then((data) => null); | 2401 return _response.then((data) => null); |
2382 } | 2402 } |
2383 | 2403 |
2384 /** | 2404 /// Request parameters: |
2385 * Request parameters: | 2405 /// |
2386 * | 2406 /// [androidId] - device android_id |
2387 * [androidId] - device android_id | 2407 /// |
2388 * | 2408 /// [device] - device device |
2389 * [device] - device device | 2409 /// |
2390 * | 2410 /// [manufacturer] - device manufacturer |
2391 * [manufacturer] - device manufacturer | 2411 /// |
2392 * | 2412 /// [model] - device model |
2393 * [model] - device model | 2413 /// |
2394 * | 2414 /// [offerId] - Offer to dimiss |
2395 * [offerId] - Offer to dimiss | 2415 /// |
2396 * | 2416 /// [product] - device product |
2397 * [product] - device product | 2417 /// |
2398 * | 2418 /// [serial] - device serial |
2399 * [serial] - device serial | 2419 /// |
2400 * | 2420 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2401 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2421 /// an error. |
2402 * error. | 2422 /// |
2403 * | 2423 /// If the used [http.Client] completes with an error when making a REST |
2404 * If the used [http.Client] completes with an error when making a REST call, | 2424 /// call, this method will complete with the same error. |
2405 * this method will complete with the same error. | 2425 async.Future dismiss( |
2406 */ | 2426 {core.String androidId, |
2407 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}) { | 2427 core.String device, |
| 2428 core.String manufacturer, |
| 2429 core.String model, |
| 2430 core.String offerId, |
| 2431 core.String product, |
| 2432 core.String serial}) { |
2408 var _url = null; | 2433 var _url = null; |
2409 var _queryParams = new core.Map(); | 2434 var _queryParams = new core.Map(); |
2410 var _uploadMedia = null; | 2435 var _uploadMedia = null; |
2411 var _uploadOptions = null; | 2436 var _uploadOptions = null; |
2412 var _downloadOptions = commons.DownloadOptions.Metadata; | 2437 var _downloadOptions = commons.DownloadOptions.Metadata; |
2413 var _body = null; | 2438 var _body = null; |
2414 | 2439 |
2415 if (androidId != null) { | 2440 if (androidId != null) { |
2416 _queryParams["androidId"] = [androidId]; | 2441 _queryParams["androidId"] = [androidId]; |
2417 } | 2442 } |
(...skipping 13 matching lines...) Expand all Loading... |
2431 _queryParams["product"] = [product]; | 2456 _queryParams["product"] = [product]; |
2432 } | 2457 } |
2433 if (serial != null) { | 2458 if (serial != null) { |
2434 _queryParams["serial"] = [serial]; | 2459 _queryParams["serial"] = [serial]; |
2435 } | 2460 } |
2436 | 2461 |
2437 _downloadOptions = null; | 2462 _downloadOptions = null; |
2438 | 2463 |
2439 _url = 'promooffer/dismiss'; | 2464 _url = 'promooffer/dismiss'; |
2440 | 2465 |
2441 var _response = _requester.request(_url, | 2466 var _response = _requester.request(_url, "POST", |
2442 "POST", | 2467 body: _body, |
2443 body: _body, | 2468 queryParams: _queryParams, |
2444 queryParams: _queryParams, | 2469 uploadOptions: _uploadOptions, |
2445 uploadOptions: _uploadOptions, | 2470 uploadMedia: _uploadMedia, |
2446 uploadMedia: _uploadMedia, | 2471 downloadOptions: _downloadOptions); |
2447 downloadOptions: _downloadOptions); | |
2448 return _response.then((data) => null); | 2472 return _response.then((data) => null); |
2449 } | 2473 } |
2450 | 2474 |
2451 /** | 2475 /// Returns a list of promo offers available to the user |
2452 * Returns a list of promo offers available to the user | 2476 /// |
2453 * | 2477 /// Request parameters: |
2454 * Request parameters: | 2478 /// |
2455 * | 2479 /// [androidId] - device android_id |
2456 * [androidId] - device android_id | 2480 /// |
2457 * | 2481 /// [device] - device device |
2458 * [device] - device device | 2482 /// |
2459 * | 2483 /// [manufacturer] - device manufacturer |
2460 * [manufacturer] - device manufacturer | 2484 /// |
2461 * | 2485 /// [model] - device model |
2462 * [model] - device model | 2486 /// |
2463 * | 2487 /// [product] - device product |
2464 * [product] - device product | 2488 /// |
2465 * | 2489 /// [serial] - device serial |
2466 * [serial] - device serial | 2490 /// |
2467 * | 2491 /// Completes with a [Offers]. |
2468 * Completes with a [Offers]. | 2492 /// |
2469 * | 2493 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2494 /// an error. |
2471 * error. | 2495 /// |
2472 * | 2496 /// If the used [http.Client] completes with an error when making a REST |
2473 * If the used [http.Client] completes with an error when making a REST call, | 2497 /// call, this method will complete with the same error. |
2474 * this method will complete with the same error. | 2498 async.Future<Offers> get( |
2475 */ | 2499 {core.String androidId, |
2476 async.Future<Offers> get({core.String androidId, core.String device, core.Stri
ng manufacturer, core.String model, core.String product, core.String serial}) { | 2500 core.String device, |
| 2501 core.String manufacturer, |
| 2502 core.String model, |
| 2503 core.String product, |
| 2504 core.String serial}) { |
2477 var _url = null; | 2505 var _url = null; |
2478 var _queryParams = new core.Map(); | 2506 var _queryParams = new core.Map(); |
2479 var _uploadMedia = null; | 2507 var _uploadMedia = null; |
2480 var _uploadOptions = null; | 2508 var _uploadOptions = null; |
2481 var _downloadOptions = commons.DownloadOptions.Metadata; | 2509 var _downloadOptions = commons.DownloadOptions.Metadata; |
2482 var _body = null; | 2510 var _body = null; |
2483 | 2511 |
2484 if (androidId != null) { | 2512 if (androidId != null) { |
2485 _queryParams["androidId"] = [androidId]; | 2513 _queryParams["androidId"] = [androidId]; |
2486 } | 2514 } |
2487 if (device != null) { | 2515 if (device != null) { |
2488 _queryParams["device"] = [device]; | 2516 _queryParams["device"] = [device]; |
2489 } | 2517 } |
2490 if (manufacturer != null) { | 2518 if (manufacturer != null) { |
2491 _queryParams["manufacturer"] = [manufacturer]; | 2519 _queryParams["manufacturer"] = [manufacturer]; |
2492 } | 2520 } |
2493 if (model != null) { | 2521 if (model != null) { |
2494 _queryParams["model"] = [model]; | 2522 _queryParams["model"] = [model]; |
2495 } | 2523 } |
2496 if (product != null) { | 2524 if (product != null) { |
2497 _queryParams["product"] = [product]; | 2525 _queryParams["product"] = [product]; |
2498 } | 2526 } |
2499 if (serial != null) { | 2527 if (serial != null) { |
2500 _queryParams["serial"] = [serial]; | 2528 _queryParams["serial"] = [serial]; |
2501 } | 2529 } |
2502 | 2530 |
2503 _url = 'promooffer/get'; | 2531 _url = 'promooffer/get'; |
2504 | 2532 |
2505 var _response = _requester.request(_url, | 2533 var _response = _requester.request(_url, "GET", |
2506 "GET", | 2534 body: _body, |
2507 body: _body, | 2535 queryParams: _queryParams, |
2508 queryParams: _queryParams, | 2536 uploadOptions: _uploadOptions, |
2509 uploadOptions: _uploadOptions, | 2537 uploadMedia: _uploadMedia, |
2510 uploadMedia: _uploadMedia, | 2538 downloadOptions: _downloadOptions); |
2511 downloadOptions: _downloadOptions); | |
2512 return _response.then((data) => new Offers.fromJson(data)); | 2539 return _response.then((data) => new Offers.fromJson(data)); |
2513 } | 2540 } |
2514 | |
2515 } | 2541 } |
2516 | 2542 |
2517 | |
2518 class SeriesResourceApi { | 2543 class SeriesResourceApi { |
2519 final commons.ApiRequester _requester; | 2544 final commons.ApiRequester _requester; |
2520 | 2545 |
2521 SeriesMembershipResourceApi get membership => new SeriesMembershipResourceApi(
_requester); | 2546 SeriesMembershipResourceApi get membership => |
| 2547 new SeriesMembershipResourceApi(_requester); |
2522 | 2548 |
2523 SeriesResourceApi(commons.ApiRequester client) : | 2549 SeriesResourceApi(commons.ApiRequester client) : _requester = client; |
2524 _requester = client; | |
2525 | 2550 |
2526 /** | 2551 /// Returns Series metadata for the given series ids. |
2527 * Returns Series metadata for the given series ids. | 2552 /// |
2528 * | 2553 /// Request parameters: |
2529 * Request parameters: | 2554 /// |
2530 * | 2555 /// [seriesId] - String that identifies the series |
2531 * [seriesId] - String that identifies the series | 2556 /// |
2532 * | 2557 /// Completes with a [Series]. |
2533 * Completes with a [Series]. | 2558 /// |
2534 * | 2559 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2535 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2560 /// an error. |
2536 * error. | 2561 /// |
2537 * | 2562 /// If the used [http.Client] completes with an error when making a REST |
2538 * If the used [http.Client] completes with an error when making a REST call, | 2563 /// call, this method will complete with the same error. |
2539 * this method will complete with the same error. | |
2540 */ | |
2541 async.Future<Series> get(core.List<core.String> seriesId) { | 2564 async.Future<Series> get(core.List<core.String> seriesId) { |
2542 var _url = null; | 2565 var _url = null; |
2543 var _queryParams = new core.Map(); | 2566 var _queryParams = new core.Map(); |
2544 var _uploadMedia = null; | 2567 var _uploadMedia = null; |
2545 var _uploadOptions = null; | 2568 var _uploadOptions = null; |
2546 var _downloadOptions = commons.DownloadOptions.Metadata; | 2569 var _downloadOptions = commons.DownloadOptions.Metadata; |
2547 var _body = null; | 2570 var _body = null; |
2548 | 2571 |
2549 if (seriesId == null || seriesId.isEmpty) { | 2572 if (seriesId == null || seriesId.isEmpty) { |
2550 throw new core.ArgumentError("Parameter seriesId is required."); | 2573 throw new core.ArgumentError("Parameter seriesId is required."); |
2551 } | 2574 } |
2552 _queryParams["series_id"] = seriesId; | 2575 _queryParams["series_id"] = seriesId; |
2553 | 2576 |
2554 _url = 'series/get'; | 2577 _url = 'series/get'; |
2555 | 2578 |
2556 var _response = _requester.request(_url, | 2579 var _response = _requester.request(_url, "GET", |
2557 "GET", | 2580 body: _body, |
2558 body: _body, | 2581 queryParams: _queryParams, |
2559 queryParams: _queryParams, | 2582 uploadOptions: _uploadOptions, |
2560 uploadOptions: _uploadOptions, | 2583 uploadMedia: _uploadMedia, |
2561 uploadMedia: _uploadMedia, | 2584 downloadOptions: _downloadOptions); |
2562 downloadOptions: _downloadOptions); | |
2563 return _response.then((data) => new Series.fromJson(data)); | 2585 return _response.then((data) => new Series.fromJson(data)); |
2564 } | 2586 } |
2565 | |
2566 } | 2587 } |
2567 | 2588 |
2568 | |
2569 class SeriesMembershipResourceApi { | 2589 class SeriesMembershipResourceApi { |
2570 final commons.ApiRequester _requester; | 2590 final commons.ApiRequester _requester; |
2571 | 2591 |
2572 SeriesMembershipResourceApi(commons.ApiRequester client) : | 2592 SeriesMembershipResourceApi(commons.ApiRequester client) |
2573 _requester = client; | 2593 : _requester = client; |
2574 | 2594 |
2575 /** | 2595 /// Returns Series membership data given the series id. |
2576 * Returns Series membership data given the series id. | 2596 /// |
2577 * | 2597 /// Request parameters: |
2578 * Request parameters: | 2598 /// |
2579 * | 2599 /// [seriesId] - String that identifies the series |
2580 * [seriesId] - String that identifies the series | 2600 /// |
2581 * | 2601 /// [pageSize] - Number of maximum results per page to be included in the |
2582 * [pageSize] - Number of maximum results per page to be included in the | 2602 /// response. |
2583 * response. | 2603 /// |
2584 * | 2604 /// [pageToken] - The value of the nextToken from the previous page. |
2585 * [pageToken] - The value of the nextToken from the previous page. | 2605 /// |
2586 * | 2606 /// Completes with a [Seriesmembership]. |
2587 * Completes with a [Seriesmembership]. | 2607 /// |
2588 * | 2608 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2589 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2609 /// an error. |
2590 * error. | 2610 /// |
2591 * | 2611 /// If the used [http.Client] completes with an error when making a REST |
2592 * If the used [http.Client] completes with an error when making a REST call, | 2612 /// call, this method will complete with the same error. |
2593 * this method will complete with the same error. | 2613 async.Future<Seriesmembership> get(core.String seriesId, |
2594 */ | 2614 {core.int pageSize, core.String pageToken}) { |
2595 async.Future<Seriesmembership> get(core.String seriesId, {core.int pageSize, c
ore.String pageToken}) { | |
2596 var _url = null; | 2615 var _url = null; |
2597 var _queryParams = new core.Map(); | 2616 var _queryParams = new core.Map(); |
2598 var _uploadMedia = null; | 2617 var _uploadMedia = null; |
2599 var _uploadOptions = null; | 2618 var _uploadOptions = null; |
2600 var _downloadOptions = commons.DownloadOptions.Metadata; | 2619 var _downloadOptions = commons.DownloadOptions.Metadata; |
2601 var _body = null; | 2620 var _body = null; |
2602 | 2621 |
2603 if (seriesId == null) { | 2622 if (seriesId == null) { |
2604 throw new core.ArgumentError("Parameter seriesId is required."); | 2623 throw new core.ArgumentError("Parameter seriesId is required."); |
2605 } | 2624 } |
2606 _queryParams["series_id"] = [seriesId]; | 2625 _queryParams["series_id"] = [seriesId]; |
2607 if (pageSize != null) { | 2626 if (pageSize != null) { |
2608 _queryParams["page_size"] = ["${pageSize}"]; | 2627 _queryParams["page_size"] = ["${pageSize}"]; |
2609 } | 2628 } |
2610 if (pageToken != null) { | 2629 if (pageToken != null) { |
2611 _queryParams["page_token"] = [pageToken]; | 2630 _queryParams["page_token"] = [pageToken]; |
2612 } | 2631 } |
2613 | 2632 |
2614 _url = 'series/membership/get'; | 2633 _url = 'series/membership/get'; |
2615 | 2634 |
2616 var _response = _requester.request(_url, | 2635 var _response = _requester.request(_url, "GET", |
2617 "GET", | 2636 body: _body, |
2618 body: _body, | 2637 queryParams: _queryParams, |
2619 queryParams: _queryParams, | 2638 uploadOptions: _uploadOptions, |
2620 uploadOptions: _uploadOptions, | 2639 uploadMedia: _uploadMedia, |
2621 uploadMedia: _uploadMedia, | 2640 downloadOptions: _downloadOptions); |
2622 downloadOptions: _downloadOptions); | |
2623 return _response.then((data) => new Seriesmembership.fromJson(data)); | 2641 return _response.then((data) => new Seriesmembership.fromJson(data)); |
2624 } | 2642 } |
2625 | |
2626 } | 2643 } |
2627 | 2644 |
2628 | |
2629 class VolumesResourceApi { | 2645 class VolumesResourceApi { |
2630 final commons.ApiRequester _requester; | 2646 final commons.ApiRequester _requester; |
2631 | 2647 |
2632 VolumesAssociatedResourceApi get associated => new VolumesAssociatedResourceAp
i(_requester); | 2648 VolumesAssociatedResourceApi get associated => |
2633 VolumesMybooksResourceApi get mybooks => new VolumesMybooksResourceApi(_reques
ter); | 2649 new VolumesAssociatedResourceApi(_requester); |
2634 VolumesRecommendedResourceApi get recommended => new VolumesRecommendedResourc
eApi(_requester); | 2650 VolumesMybooksResourceApi get mybooks => |
2635 VolumesUseruploadedResourceApi get useruploaded => new VolumesUseruploadedReso
urceApi(_requester); | 2651 new VolumesMybooksResourceApi(_requester); |
| 2652 VolumesRecommendedResourceApi get recommended => |
| 2653 new VolumesRecommendedResourceApi(_requester); |
| 2654 VolumesUseruploadedResourceApi get useruploaded => |
| 2655 new VolumesUseruploadedResourceApi(_requester); |
2636 | 2656 |
2637 VolumesResourceApi(commons.ApiRequester client) : | 2657 VolumesResourceApi(commons.ApiRequester client) : _requester = client; |
2638 _requester = client; | |
2639 | 2658 |
2640 /** | 2659 /// Gets volume information for a single volume. |
2641 * Gets volume information for a single volume. | 2660 /// |
2642 * | 2661 /// Request parameters: |
2643 * Request parameters: | 2662 /// |
2644 * | 2663 /// [volumeId] - ID of volume to retrieve. |
2645 * [volumeId] - ID of volume to retrieve. | 2664 /// |
2646 * | 2665 /// [country] - ISO-3166-1 code to override the IP-based location. |
2647 * [country] - ISO-3166-1 code to override the IP-based location. | 2666 /// |
2648 * | 2667 /// [includeNonComicsSeries] - Set to true to include non-comics series. |
2649 * [includeNonComicsSeries] - Set to true to include non-comics series. | 2668 /// Defaults to false. |
2650 * Defaults to false. | 2669 /// |
2651 * | 2670 /// [partner] - Brand results for partner ID. |
2652 * [partner] - Brand results for partner ID. | 2671 /// |
2653 * | 2672 /// [projection] - Restrict information returned to a set of selected fields. |
2654 * [projection] - Restrict information returned to a set of selected fields. | 2673 /// Possible string values are: |
2655 * Possible string values are: | 2674 /// - "full" : Includes all volume data. |
2656 * - "full" : Includes all volume data. | 2675 /// - "lite" : Includes a subset of fields in volumeInfo and accessInfo. |
2657 * - "lite" : Includes a subset of fields in volumeInfo and accessInfo. | 2676 /// |
2658 * | 2677 /// [source] - String to identify the originator of this request. |
2659 * [source] - String to identify the originator of this request. | 2678 /// |
2660 * | 2679 /// [userLibraryConsistentRead] - null |
2661 * [userLibraryConsistentRead] - null | 2680 /// |
2662 * | 2681 /// Completes with a [Volume]. |
2663 * Completes with a [Volume]. | 2682 /// |
2664 * | 2683 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2665 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2684 /// an error. |
2666 * error. | 2685 /// |
2667 * | 2686 /// If the used [http.Client] completes with an error when making a REST |
2668 * If the used [http.Client] completes with an error when making a REST call, | 2687 /// call, this method will complete with the same error. |
2669 * this method will complete with the same error. | 2688 async.Future<Volume> get(core.String volumeId, |
2670 */ | 2689 {core.String country, |
2671 async.Future<Volume> get(core.String volumeId, {core.String country, core.bool
includeNonComicsSeries, core.String partner, core.String projection, core.Strin
g source, core.bool userLibraryConsistentRead}) { | 2690 core.bool includeNonComicsSeries, |
| 2691 core.String partner, |
| 2692 core.String projection, |
| 2693 core.String source, |
| 2694 core.bool userLibraryConsistentRead}) { |
2672 var _url = null; | 2695 var _url = null; |
2673 var _queryParams = new core.Map(); | 2696 var _queryParams = new core.Map(); |
2674 var _uploadMedia = null; | 2697 var _uploadMedia = null; |
2675 var _uploadOptions = null; | 2698 var _uploadOptions = null; |
2676 var _downloadOptions = commons.DownloadOptions.Metadata; | 2699 var _downloadOptions = commons.DownloadOptions.Metadata; |
2677 var _body = null; | 2700 var _body = null; |
2678 | 2701 |
2679 if (volumeId == null) { | 2702 if (volumeId == null) { |
2680 throw new core.ArgumentError("Parameter volumeId is required."); | 2703 throw new core.ArgumentError("Parameter volumeId is required."); |
2681 } | 2704 } |
2682 if (country != null) { | 2705 if (country != null) { |
2683 _queryParams["country"] = [country]; | 2706 _queryParams["country"] = [country]; |
2684 } | 2707 } |
2685 if (includeNonComicsSeries != null) { | 2708 if (includeNonComicsSeries != null) { |
2686 _queryParams["includeNonComicsSeries"] = ["${includeNonComicsSeries}"]; | 2709 _queryParams["includeNonComicsSeries"] = ["${includeNonComicsSeries}"]; |
2687 } | 2710 } |
2688 if (partner != null) { | 2711 if (partner != null) { |
2689 _queryParams["partner"] = [partner]; | 2712 _queryParams["partner"] = [partner]; |
2690 } | 2713 } |
2691 if (projection != null) { | 2714 if (projection != null) { |
2692 _queryParams["projection"] = [projection]; | 2715 _queryParams["projection"] = [projection]; |
2693 } | 2716 } |
2694 if (source != null) { | 2717 if (source != null) { |
2695 _queryParams["source"] = [source]; | 2718 _queryParams["source"] = [source]; |
2696 } | 2719 } |
2697 if (userLibraryConsistentRead != null) { | 2720 if (userLibraryConsistentRead != null) { |
2698 _queryParams["user_library_consistent_read"] = ["${userLibraryConsistentRe
ad}"]; | 2721 _queryParams["user_library_consistent_read"] = [ |
| 2722 "${userLibraryConsistentRead}" |
| 2723 ]; |
2699 } | 2724 } |
2700 | 2725 |
2701 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId'); | 2726 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId'); |
2702 | 2727 |
2703 var _response = _requester.request(_url, | 2728 var _response = _requester.request(_url, "GET", |
2704 "GET", | 2729 body: _body, |
2705 body: _body, | 2730 queryParams: _queryParams, |
2706 queryParams: _queryParams, | 2731 uploadOptions: _uploadOptions, |
2707 uploadOptions: _uploadOptions, | 2732 uploadMedia: _uploadMedia, |
2708 uploadMedia: _uploadMedia, | 2733 downloadOptions: _downloadOptions); |
2709 downloadOptions: _downloadOptions); | |
2710 return _response.then((data) => new Volume.fromJson(data)); | 2734 return _response.then((data) => new Volume.fromJson(data)); |
2711 } | 2735 } |
2712 | 2736 |
2713 /** | 2737 /// Performs a book search. |
2714 * Performs a book search. | 2738 /// |
2715 * | 2739 /// Request parameters: |
2716 * Request parameters: | 2740 /// |
2717 * | 2741 /// [q] - Full-text search query string. |
2718 * [q] - Full-text search query string. | 2742 /// |
2719 * | 2743 /// [download] - Restrict to volumes by download availability. |
2720 * [download] - Restrict to volumes by download availability. | 2744 /// Possible string values are: |
2721 * Possible string values are: | 2745 /// - "epub" : All volumes with epub. |
2722 * - "epub" : All volumes with epub. | 2746 /// |
2723 * | 2747 /// [filter] - Filter search results. |
2724 * [filter] - Filter search results. | 2748 /// Possible string values are: |
2725 * Possible string values are: | 2749 /// - "ebooks" : All Google eBooks. |
2726 * - "ebooks" : All Google eBooks. | 2750 /// - "free-ebooks" : Google eBook with full volume text viewability. |
2727 * - "free-ebooks" : Google eBook with full volume text viewability. | 2751 /// - "full" : Public can view entire volume text. |
2728 * - "full" : Public can view entire volume text. | 2752 /// - "paid-ebooks" : Google eBook with a price. |
2729 * - "paid-ebooks" : Google eBook with a price. | 2753 /// - "partial" : Public able to see parts of text. |
2730 * - "partial" : Public able to see parts of text. | 2754 /// |
2731 * | 2755 /// [langRestrict] - Restrict results to books with this language code. |
2732 * [langRestrict] - Restrict results to books with this language code. | 2756 /// |
2733 * | 2757 /// [libraryRestrict] - Restrict search to this user's library. |
2734 * [libraryRestrict] - Restrict search to this user's library. | 2758 /// Possible string values are: |
2735 * Possible string values are: | 2759 /// - "my-library" : Restrict to the user's library, any shelf. |
2736 * - "my-library" : Restrict to the user's library, any shelf. | 2760 /// - "no-restrict" : Do not restrict based on user's library. |
2737 * - "no-restrict" : Do not restrict based on user's library. | 2761 /// |
2738 * | 2762 /// [maxAllowedMaturityRating] - The maximum allowed maturity rating of |
2739 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of | 2763 /// returned recommendations. Books with a higher maturity rating are |
2740 * returned recommendations. Books with a higher maturity rating are filtered | 2764 /// filtered out. |
2741 * out. | 2765 /// Possible string values are: |
2742 * Possible string values are: | 2766 /// - "mature" : Show books which are rated mature or lower. |
2743 * - "mature" : Show books which are rated mature or lower. | 2767 /// - "not-mature" : Show books which are rated not mature. |
2744 * - "not-mature" : Show books which are rated not mature. | 2768 /// |
2745 * | 2769 /// [maxResults] - Maximum number of results to return. |
2746 * [maxResults] - Maximum number of results to return. | 2770 /// Value must be between "0" and "40". |
2747 * Value must be between "0" and "40". | 2771 /// |
2748 * | 2772 /// [orderBy] - Sort search results. |
2749 * [orderBy] - Sort search results. | 2773 /// Possible string values are: |
2750 * Possible string values are: | 2774 /// - "newest" : Most recently published. |
2751 * - "newest" : Most recently published. | 2775 /// - "relevance" : Relevance to search terms. |
2752 * - "relevance" : Relevance to search terms. | 2776 /// |
2753 * | 2777 /// [partner] - Restrict and brand results for partner ID. |
2754 * [partner] - Restrict and brand results for partner ID. | 2778 /// |
2755 * | 2779 /// [printType] - Restrict to books or magazines. |
2756 * [printType] - Restrict to books or magazines. | 2780 /// Possible string values are: |
2757 * Possible string values are: | 2781 /// - "all" : All volume content types. |
2758 * - "all" : All volume content types. | 2782 /// - "books" : Just books. |
2759 * - "books" : Just books. | 2783 /// - "magazines" : Just magazines. |
2760 * - "magazines" : Just magazines. | 2784 /// |
2761 * | 2785 /// [projection] - Restrict information returned to a set of selected fields. |
2762 * [projection] - Restrict information returned to a set of selected fields. | 2786 /// Possible string values are: |
2763 * Possible string values are: | 2787 /// - "full" : Includes all volume data. |
2764 * - "full" : Includes all volume data. | 2788 /// - "lite" : Includes a subset of fields in volumeInfo and accessInfo. |
2765 * - "lite" : Includes a subset of fields in volumeInfo and accessInfo. | 2789 /// |
2766 * | 2790 /// [showPreorders] - Set to true to show books available for preorder. |
2767 * [showPreorders] - Set to true to show books available for preorder. | 2791 /// Defaults to false. |
2768 * Defaults to false. | 2792 /// |
2769 * | 2793 /// [source] - String to identify the originator of this request. |
2770 * [source] - String to identify the originator of this request. | 2794 /// |
2771 * | 2795 /// [startIndex] - Index of the first result to return (starts at 0) |
2772 * [startIndex] - Index of the first result to return (starts at 0) | 2796 /// |
2773 * | 2797 /// Completes with a [Volumes]. |
2774 * Completes with a [Volumes]. | 2798 /// |
2775 * | 2799 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2776 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2800 /// an error. |
2777 * error. | 2801 /// |
2778 * | 2802 /// If the used [http.Client] completes with an error when making a REST |
2779 * If the used [http.Client] completes with an error when making a REST call, | 2803 /// call, this method will complete with the same error. |
2780 * this method will complete with the same error. | 2804 async.Future<Volumes> list(core.String q, |
2781 */ | 2805 {core.String download, |
2782 async.Future<Volumes> list(core.String q, {core.String download, core.String f
ilter, core.String langRestrict, core.String libraryRestrict, core.String maxAll
owedMaturityRating, core.int maxResults, core.String orderBy, core.String partne
r, core.String printType, core.String projection, core.bool showPreorders, core.
String source, core.int startIndex}) { | 2806 core.String filter, |
| 2807 core.String langRestrict, |
| 2808 core.String libraryRestrict, |
| 2809 core.String maxAllowedMaturityRating, |
| 2810 core.int maxResults, |
| 2811 core.String orderBy, |
| 2812 core.String partner, |
| 2813 core.String printType, |
| 2814 core.String projection, |
| 2815 core.bool showPreorders, |
| 2816 core.String source, |
| 2817 core.int startIndex}) { |
2783 var _url = null; | 2818 var _url = null; |
2784 var _queryParams = new core.Map(); | 2819 var _queryParams = new core.Map(); |
2785 var _uploadMedia = null; | 2820 var _uploadMedia = null; |
2786 var _uploadOptions = null; | 2821 var _uploadOptions = null; |
2787 var _downloadOptions = commons.DownloadOptions.Metadata; | 2822 var _downloadOptions = commons.DownloadOptions.Metadata; |
2788 var _body = null; | 2823 var _body = null; |
2789 | 2824 |
2790 if (q == null) { | 2825 if (q == null) { |
2791 throw new core.ArgumentError("Parameter q is required."); | 2826 throw new core.ArgumentError("Parameter q is required."); |
2792 } | 2827 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2826 } | 2861 } |
2827 if (source != null) { | 2862 if (source != null) { |
2828 _queryParams["source"] = [source]; | 2863 _queryParams["source"] = [source]; |
2829 } | 2864 } |
2830 if (startIndex != null) { | 2865 if (startIndex != null) { |
2831 _queryParams["startIndex"] = ["${startIndex}"]; | 2866 _queryParams["startIndex"] = ["${startIndex}"]; |
2832 } | 2867 } |
2833 | 2868 |
2834 _url = 'volumes'; | 2869 _url = 'volumes'; |
2835 | 2870 |
2836 var _response = _requester.request(_url, | 2871 var _response = _requester.request(_url, "GET", |
2837 "GET", | 2872 body: _body, |
2838 body: _body, | 2873 queryParams: _queryParams, |
2839 queryParams: _queryParams, | 2874 uploadOptions: _uploadOptions, |
2840 uploadOptions: _uploadOptions, | 2875 uploadMedia: _uploadMedia, |
2841 uploadMedia: _uploadMedia, | 2876 downloadOptions: _downloadOptions); |
2842 downloadOptions: _downloadOptions); | |
2843 return _response.then((data) => new Volumes.fromJson(data)); | 2877 return _response.then((data) => new Volumes.fromJson(data)); |
2844 } | 2878 } |
2845 | |
2846 } | 2879 } |
2847 | 2880 |
2848 | |
2849 class VolumesAssociatedResourceApi { | 2881 class VolumesAssociatedResourceApi { |
2850 final commons.ApiRequester _requester; | 2882 final commons.ApiRequester _requester; |
2851 | 2883 |
2852 VolumesAssociatedResourceApi(commons.ApiRequester client) : | 2884 VolumesAssociatedResourceApi(commons.ApiRequester client) |
2853 _requester = client; | 2885 : _requester = client; |
2854 | 2886 |
2855 /** | 2887 /// Return a list of associated books. |
2856 * Return a list of associated books. | 2888 /// |
2857 * | 2889 /// Request parameters: |
2858 * Request parameters: | 2890 /// |
2859 * | 2891 /// [volumeId] - ID of the source volume. |
2860 * [volumeId] - ID of the source volume. | 2892 /// |
2861 * | 2893 /// [association] - Association type. |
2862 * [association] - Association type. | 2894 /// Possible string values are: |
2863 * Possible string values are: | 2895 /// - "end-of-sample" : Recommendations for display end-of-sample. |
2864 * - "end-of-sample" : Recommendations for display end-of-sample. | 2896 /// - "end-of-volume" : Recommendations for display end-of-volume. |
2865 * - "end-of-volume" : Recommendations for display end-of-volume. | 2897 /// - "related-for-play" : Related volumes for Play Store. |
2866 * - "related-for-play" : Related volumes for Play Store. | 2898 /// |
2867 * | 2899 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
2868 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 2900 /// Used for generating recommendations. |
2869 * Used for generating recommendations. | 2901 /// |
2870 * | 2902 /// [maxAllowedMaturityRating] - The maximum allowed maturity rating of |
2871 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of | 2903 /// returned recommendations. Books with a higher maturity rating are |
2872 * returned recommendations. Books with a higher maturity rating are filtered | 2904 /// filtered out. |
2873 * out. | 2905 /// Possible string values are: |
2874 * Possible string values are: | 2906 /// - "mature" : Show books which are rated mature or lower. |
2875 * - "mature" : Show books which are rated mature or lower. | 2907 /// - "not-mature" : Show books which are rated not mature. |
2876 * - "not-mature" : Show books which are rated not mature. | 2908 /// |
2877 * | 2909 /// [source] - String to identify the originator of this request. |
2878 * [source] - String to identify the originator of this request. | 2910 /// |
2879 * | 2911 /// Completes with a [Volumes]. |
2880 * Completes with a [Volumes]. | 2912 /// |
2881 * | 2913 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2882 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2914 /// an error. |
2883 * error. | 2915 /// |
2884 * | 2916 /// If the used [http.Client] completes with an error when making a REST |
2885 * If the used [http.Client] completes with an error when making a REST call, | 2917 /// call, this method will complete with the same error. |
2886 * this method will complete with the same error. | 2918 async.Future<Volumes> list(core.String volumeId, |
2887 */ | 2919 {core.String association, |
2888 async.Future<Volumes> list(core.String volumeId, {core.String association, cor
e.String locale, core.String maxAllowedMaturityRating, core.String source}) { | 2920 core.String locale, |
| 2921 core.String maxAllowedMaturityRating, |
| 2922 core.String source}) { |
2889 var _url = null; | 2923 var _url = null; |
2890 var _queryParams = new core.Map(); | 2924 var _queryParams = new core.Map(); |
2891 var _uploadMedia = null; | 2925 var _uploadMedia = null; |
2892 var _uploadOptions = null; | 2926 var _uploadOptions = null; |
2893 var _downloadOptions = commons.DownloadOptions.Metadata; | 2927 var _downloadOptions = commons.DownloadOptions.Metadata; |
2894 var _body = null; | 2928 var _body = null; |
2895 | 2929 |
2896 if (volumeId == null) { | 2930 if (volumeId == null) { |
2897 throw new core.ArgumentError("Parameter volumeId is required."); | 2931 throw new core.ArgumentError("Parameter volumeId is required."); |
2898 } | 2932 } |
2899 if (association != null) { | 2933 if (association != null) { |
2900 _queryParams["association"] = [association]; | 2934 _queryParams["association"] = [association]; |
2901 } | 2935 } |
2902 if (locale != null) { | 2936 if (locale != null) { |
2903 _queryParams["locale"] = [locale]; | 2937 _queryParams["locale"] = [locale]; |
2904 } | 2938 } |
2905 if (maxAllowedMaturityRating != null) { | 2939 if (maxAllowedMaturityRating != null) { |
2906 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; | 2940 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; |
2907 } | 2941 } |
2908 if (source != null) { | 2942 if (source != null) { |
2909 _queryParams["source"] = [source]; | 2943 _queryParams["source"] = [source]; |
2910 } | 2944 } |
2911 | 2945 |
2912 _url = 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/associate
d'; | 2946 _url = |
| 2947 'volumes/' + commons.Escaper.ecapeVariable('$volumeId') + '/associated'; |
2913 | 2948 |
2914 var _response = _requester.request(_url, | 2949 var _response = _requester.request(_url, "GET", |
2915 "GET", | 2950 body: _body, |
2916 body: _body, | 2951 queryParams: _queryParams, |
2917 queryParams: _queryParams, | 2952 uploadOptions: _uploadOptions, |
2918 uploadOptions: _uploadOptions, | 2953 uploadMedia: _uploadMedia, |
2919 uploadMedia: _uploadMedia, | 2954 downloadOptions: _downloadOptions); |
2920 downloadOptions: _downloadOptions); | |
2921 return _response.then((data) => new Volumes.fromJson(data)); | 2955 return _response.then((data) => new Volumes.fromJson(data)); |
2922 } | 2956 } |
2923 | |
2924 } | 2957 } |
2925 | 2958 |
2926 | |
2927 class VolumesMybooksResourceApi { | 2959 class VolumesMybooksResourceApi { |
2928 final commons.ApiRequester _requester; | 2960 final commons.ApiRequester _requester; |
2929 | 2961 |
2930 VolumesMybooksResourceApi(commons.ApiRequester client) : | 2962 VolumesMybooksResourceApi(commons.ApiRequester client) : _requester = client; |
2931 _requester = client; | |
2932 | 2963 |
2933 /** | 2964 /// Return a list of books in My Library. |
2934 * Return a list of books in My Library. | 2965 /// |
2935 * | 2966 /// Request parameters: |
2936 * Request parameters: | 2967 /// |
2937 * | 2968 /// [acquireMethod] - How the book was acquired |
2938 * [acquireMethod] - How the book was acquired | 2969 /// |
2939 * | 2970 /// [country] - ISO-3166-1 code to override the IP-based location. |
2940 * [country] - ISO-3166-1 code to override the IP-based location. | 2971 /// |
2941 * | 2972 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. |
2942 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used | 2973 /// Used for generating recommendations. |
2943 * for generating recommendations. | 2974 /// |
2944 * | 2975 /// [maxResults] - Maximum number of results to return. |
2945 * [maxResults] - Maximum number of results to return. | 2976 /// Value must be between "0" and "100". |
2946 * Value must be between "0" and "100". | 2977 /// |
2947 * | 2978 /// [processingState] - The processing state of the user uploaded volumes to |
2948 * [processingState] - The processing state of the user uploaded volumes to be | 2979 /// be returned. Applicable only if the UPLOADED is specified in the |
2949 * returned. Applicable only if the UPLOADED is specified in the | 2980 /// acquireMethod. |
2950 * acquireMethod. | 2981 /// |
2951 * | 2982 /// [source] - String to identify the originator of this request. |
2952 * [source] - String to identify the originator of this request. | 2983 /// |
2953 * | 2984 /// [startIndex] - Index of the first result to return (starts at 0) |
2954 * [startIndex] - Index of the first result to return (starts at 0) | 2985 /// |
2955 * | 2986 /// Completes with a [Volumes]. |
2956 * Completes with a [Volumes]. | 2987 /// |
2957 * | 2988 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
2958 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2989 /// an error. |
2959 * error. | 2990 /// |
2960 * | 2991 /// If the used [http.Client] completes with an error when making a REST |
2961 * If the used [http.Client] completes with an error when making a REST call, | 2992 /// call, this method will complete with the same error. |
2962 * this method will complete with the same error. | 2993 async.Future<Volumes> list( |
2963 */ | 2994 {core.List<core.String> acquireMethod, |
2964 async.Future<Volumes> list({core.List<core.String> acquireMethod, core.String
country, core.String locale, core.int maxResults, core.List<core.String> process
ingState, core.String source, core.int startIndex}) { | 2995 core.String country, |
| 2996 core.String locale, |
| 2997 core.int maxResults, |
| 2998 core.List<core.String> processingState, |
| 2999 core.String source, |
| 3000 core.int startIndex}) { |
2965 var _url = null; | 3001 var _url = null; |
2966 var _queryParams = new core.Map(); | 3002 var _queryParams = new core.Map(); |
2967 var _uploadMedia = null; | 3003 var _uploadMedia = null; |
2968 var _uploadOptions = null; | 3004 var _uploadOptions = null; |
2969 var _downloadOptions = commons.DownloadOptions.Metadata; | 3005 var _downloadOptions = commons.DownloadOptions.Metadata; |
2970 var _body = null; | 3006 var _body = null; |
2971 | 3007 |
2972 if (acquireMethod != null) { | 3008 if (acquireMethod != null) { |
2973 _queryParams["acquireMethod"] = acquireMethod; | 3009 _queryParams["acquireMethod"] = acquireMethod; |
2974 } | 3010 } |
(...skipping 11 matching lines...) Expand all Loading... |
2986 } | 3022 } |
2987 if (source != null) { | 3023 if (source != null) { |
2988 _queryParams["source"] = [source]; | 3024 _queryParams["source"] = [source]; |
2989 } | 3025 } |
2990 if (startIndex != null) { | 3026 if (startIndex != null) { |
2991 _queryParams["startIndex"] = ["${startIndex}"]; | 3027 _queryParams["startIndex"] = ["${startIndex}"]; |
2992 } | 3028 } |
2993 | 3029 |
2994 _url = 'volumes/mybooks'; | 3030 _url = 'volumes/mybooks'; |
2995 | 3031 |
2996 var _response = _requester.request(_url, | 3032 var _response = _requester.request(_url, "GET", |
2997 "GET", | 3033 body: _body, |
2998 body: _body, | 3034 queryParams: _queryParams, |
2999 queryParams: _queryParams, | 3035 uploadOptions: _uploadOptions, |
3000 uploadOptions: _uploadOptions, | 3036 uploadMedia: _uploadMedia, |
3001 uploadMedia: _uploadMedia, | 3037 downloadOptions: _downloadOptions); |
3002 downloadOptions: _downloadOptions); | |
3003 return _response.then((data) => new Volumes.fromJson(data)); | 3038 return _response.then((data) => new Volumes.fromJson(data)); |
3004 } | 3039 } |
3005 | |
3006 } | 3040 } |
3007 | 3041 |
3008 | |
3009 class VolumesRecommendedResourceApi { | 3042 class VolumesRecommendedResourceApi { |
3010 final commons.ApiRequester _requester; | 3043 final commons.ApiRequester _requester; |
3011 | 3044 |
3012 VolumesRecommendedResourceApi(commons.ApiRequester client) : | 3045 VolumesRecommendedResourceApi(commons.ApiRequester client) |
3013 _requester = client; | 3046 : _requester = client; |
3014 | 3047 |
3015 /** | 3048 /// Return a list of recommended books for the current user. |
3016 * Return a list of recommended books for the current user. | 3049 /// |
3017 * | 3050 /// Request parameters: |
3018 * Request parameters: | 3051 /// |
3019 * | 3052 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
3020 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 3053 /// Used for generating recommendations. |
3021 * Used for generating recommendations. | 3054 /// |
3022 * | 3055 /// [maxAllowedMaturityRating] - The maximum allowed maturity rating of |
3023 * [maxAllowedMaturityRating] - The maximum allowed maturity rating of | 3056 /// returned recommendations. Books with a higher maturity rating are |
3024 * returned recommendations. Books with a higher maturity rating are filtered | 3057 /// filtered out. |
3025 * out. | 3058 /// Possible string values are: |
3026 * Possible string values are: | 3059 /// - "mature" : Show books which are rated mature or lower. |
3027 * - "mature" : Show books which are rated mature or lower. | 3060 /// - "not-mature" : Show books which are rated not mature. |
3028 * - "not-mature" : Show books which are rated not mature. | 3061 /// |
3029 * | 3062 /// [source] - String to identify the originator of this request. |
3030 * [source] - String to identify the originator of this request. | 3063 /// |
3031 * | 3064 /// Completes with a [Volumes]. |
3032 * Completes with a [Volumes]. | 3065 /// |
3033 * | 3066 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3034 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3067 /// an error. |
3035 * error. | 3068 /// |
3036 * | 3069 /// If the used [http.Client] completes with an error when making a REST |
3037 * If the used [http.Client] completes with an error when making a REST call, | 3070 /// call, this method will complete with the same error. |
3038 * this method will complete with the same error. | 3071 async.Future<Volumes> list( |
3039 */ | 3072 {core.String locale, |
3040 async.Future<Volumes> list({core.String locale, core.String maxAllowedMaturity
Rating, core.String source}) { | 3073 core.String maxAllowedMaturityRating, |
| 3074 core.String source}) { |
3041 var _url = null; | 3075 var _url = null; |
3042 var _queryParams = new core.Map(); | 3076 var _queryParams = new core.Map(); |
3043 var _uploadMedia = null; | 3077 var _uploadMedia = null; |
3044 var _uploadOptions = null; | 3078 var _uploadOptions = null; |
3045 var _downloadOptions = commons.DownloadOptions.Metadata; | 3079 var _downloadOptions = commons.DownloadOptions.Metadata; |
3046 var _body = null; | 3080 var _body = null; |
3047 | 3081 |
3048 if (locale != null) { | 3082 if (locale != null) { |
3049 _queryParams["locale"] = [locale]; | 3083 _queryParams["locale"] = [locale]; |
3050 } | 3084 } |
3051 if (maxAllowedMaturityRating != null) { | 3085 if (maxAllowedMaturityRating != null) { |
3052 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; | 3086 _queryParams["maxAllowedMaturityRating"] = [maxAllowedMaturityRating]; |
3053 } | 3087 } |
3054 if (source != null) { | 3088 if (source != null) { |
3055 _queryParams["source"] = [source]; | 3089 _queryParams["source"] = [source]; |
3056 } | 3090 } |
3057 | 3091 |
3058 _url = 'volumes/recommended'; | 3092 _url = 'volumes/recommended'; |
3059 | 3093 |
3060 var _response = _requester.request(_url, | 3094 var _response = _requester.request(_url, "GET", |
3061 "GET", | 3095 body: _body, |
3062 body: _body, | 3096 queryParams: _queryParams, |
3063 queryParams: _queryParams, | 3097 uploadOptions: _uploadOptions, |
3064 uploadOptions: _uploadOptions, | 3098 uploadMedia: _uploadMedia, |
3065 uploadMedia: _uploadMedia, | 3099 downloadOptions: _downloadOptions); |
3066 downloadOptions: _downloadOptions); | |
3067 return _response.then((data) => new Volumes.fromJson(data)); | 3100 return _response.then((data) => new Volumes.fromJson(data)); |
3068 } | 3101 } |
3069 | 3102 |
3070 /** | 3103 /// Rate a recommended book for the current user. |
3071 * Rate a recommended book for the current user. | 3104 /// |
3072 * | 3105 /// Request parameters: |
3073 * Request parameters: | 3106 /// |
3074 * | 3107 /// [rating] - Rating to be given to the volume. |
3075 * [rating] - Rating to be given to the volume. | 3108 /// Possible string values are: |
3076 * Possible string values are: | 3109 /// - "HAVE_IT" : Rating indicating a dismissal due to ownership. |
3077 * - "HAVE_IT" : Rating indicating a dismissal due to ownership. | 3110 /// - "NOT_INTERESTED" : Rating indicating a negative dismissal of a volume. |
3078 * - "NOT_INTERESTED" : Rating indicating a negative dismissal of a volume. | 3111 /// |
3079 * | 3112 /// [volumeId] - ID of the source volume. |
3080 * [volumeId] - ID of the source volume. | 3113 /// |
3081 * | 3114 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
3082 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 3115 /// Used for generating recommendations. |
3083 * Used for generating recommendations. | 3116 /// |
3084 * | 3117 /// [source] - String to identify the originator of this request. |
3085 * [source] - String to identify the originator of this request. | 3118 /// |
3086 * | 3119 /// Completes with a [BooksVolumesRecommendedRateResponse]. |
3087 * Completes with a [BooksVolumesRecommendedRateResponse]. | 3120 /// |
3088 * | 3121 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3089 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3122 /// an error. |
3090 * error. | 3123 /// |
3091 * | 3124 /// If the used [http.Client] completes with an error when making a REST |
3092 * If the used [http.Client] completes with an error when making a REST call, | 3125 /// call, this method will complete with the same error. |
3093 * this method will complete with the same error. | 3126 async.Future<BooksVolumesRecommendedRateResponse> rate( |
3094 */ | 3127 core.String rating, core.String volumeId, |
3095 async.Future<BooksVolumesRecommendedRateResponse> rate(core.String rating, cor
e.String volumeId, {core.String locale, core.String source}) { | 3128 {core.String locale, core.String source}) { |
3096 var _url = null; | 3129 var _url = null; |
3097 var _queryParams = new core.Map(); | 3130 var _queryParams = new core.Map(); |
3098 var _uploadMedia = null; | 3131 var _uploadMedia = null; |
3099 var _uploadOptions = null; | 3132 var _uploadOptions = null; |
3100 var _downloadOptions = commons.DownloadOptions.Metadata; | 3133 var _downloadOptions = commons.DownloadOptions.Metadata; |
3101 var _body = null; | 3134 var _body = null; |
3102 | 3135 |
3103 if (rating == null) { | 3136 if (rating == null) { |
3104 throw new core.ArgumentError("Parameter rating is required."); | 3137 throw new core.ArgumentError("Parameter rating is required."); |
3105 } | 3138 } |
3106 _queryParams["rating"] = [rating]; | 3139 _queryParams["rating"] = [rating]; |
3107 if (volumeId == null) { | 3140 if (volumeId == null) { |
3108 throw new core.ArgumentError("Parameter volumeId is required."); | 3141 throw new core.ArgumentError("Parameter volumeId is required."); |
3109 } | 3142 } |
3110 _queryParams["volumeId"] = [volumeId]; | 3143 _queryParams["volumeId"] = [volumeId]; |
3111 if (locale != null) { | 3144 if (locale != null) { |
3112 _queryParams["locale"] = [locale]; | 3145 _queryParams["locale"] = [locale]; |
3113 } | 3146 } |
3114 if (source != null) { | 3147 if (source != null) { |
3115 _queryParams["source"] = [source]; | 3148 _queryParams["source"] = [source]; |
3116 } | 3149 } |
3117 | 3150 |
3118 _url = 'volumes/recommended/rate'; | 3151 _url = 'volumes/recommended/rate'; |
3119 | 3152 |
3120 var _response = _requester.request(_url, | 3153 var _response = _requester.request(_url, "POST", |
3121 "POST", | 3154 body: _body, |
3122 body: _body, | 3155 queryParams: _queryParams, |
3123 queryParams: _queryParams, | 3156 uploadOptions: _uploadOptions, |
3124 uploadOptions: _uploadOptions, | 3157 uploadMedia: _uploadMedia, |
3125 uploadMedia: _uploadMedia, | 3158 downloadOptions: _downloadOptions); |
3126 downloadOptions: _downloadOptions); | 3159 return _response |
3127 return _response.then((data) => new BooksVolumesRecommendedRateResponse.from
Json(data)); | 3160 .then((data) => new BooksVolumesRecommendedRateResponse.fromJson(data)); |
3128 } | 3161 } |
3129 | |
3130 } | 3162 } |
3131 | 3163 |
3132 | |
3133 class VolumesUseruploadedResourceApi { | 3164 class VolumesUseruploadedResourceApi { |
3134 final commons.ApiRequester _requester; | 3165 final commons.ApiRequester _requester; |
3135 | 3166 |
3136 VolumesUseruploadedResourceApi(commons.ApiRequester client) : | 3167 VolumesUseruploadedResourceApi(commons.ApiRequester client) |
3137 _requester = client; | 3168 : _requester = client; |
3138 | 3169 |
3139 /** | 3170 /// Return a list of books uploaded by the current user. |
3140 * Return a list of books uploaded by the current user. | 3171 /// |
3141 * | 3172 /// Request parameters: |
3142 * Request parameters: | 3173 /// |
3143 * | 3174 /// [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. |
3144 * [locale] - ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. | 3175 /// Used for generating recommendations. |
3145 * Used for generating recommendations. | 3176 /// |
3146 * | 3177 /// [maxResults] - Maximum number of results to return. |
3147 * [maxResults] - Maximum number of results to return. | 3178 /// Value must be between "0" and "40". |
3148 * Value must be between "0" and "40". | 3179 /// |
3149 * | 3180 /// [processingState] - The processing state of the user uploaded volumes to |
3150 * [processingState] - The processing state of the user uploaded volumes to be | 3181 /// be returned. |
3151 * returned. | 3182 /// |
3152 * | 3183 /// [source] - String to identify the originator of this request. |
3153 * [source] - String to identify the originator of this request. | 3184 /// |
3154 * | 3185 /// [startIndex] - Index of the first result to return (starts at 0) |
3155 * [startIndex] - Index of the first result to return (starts at 0) | 3186 /// |
3156 * | 3187 /// [volumeId] - The ids of the volumes to be returned. If not specified all |
3157 * [volumeId] - The ids of the volumes to be returned. If not specified all | 3188 /// that match the processingState are returned. |
3158 * that match the processingState are returned. | 3189 /// |
3159 * | 3190 /// Completes with a [Volumes]. |
3160 * Completes with a [Volumes]. | 3191 /// |
3161 * | 3192 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
3162 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3193 /// an error. |
3163 * error. | 3194 /// |
3164 * | 3195 /// If the used [http.Client] completes with an error when making a REST |
3165 * If the used [http.Client] completes with an error when making a REST call, | 3196 /// call, this method will complete with the same error. |
3166 * this method will complete with the same error. | 3197 async.Future<Volumes> list( |
3167 */ | 3198 {core.String locale, |
3168 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}) { | 3199 core.int maxResults, |
| 3200 core.List<core.String> processingState, |
| 3201 core.String source, |
| 3202 core.int startIndex, |
| 3203 core.List<core.String> volumeId}) { |
3169 var _url = null; | 3204 var _url = null; |
3170 var _queryParams = new core.Map(); | 3205 var _queryParams = new core.Map(); |
3171 var _uploadMedia = null; | 3206 var _uploadMedia = null; |
3172 var _uploadOptions = null; | 3207 var _uploadOptions = null; |
3173 var _downloadOptions = commons.DownloadOptions.Metadata; | 3208 var _downloadOptions = commons.DownloadOptions.Metadata; |
3174 var _body = null; | 3209 var _body = null; |
3175 | 3210 |
3176 if (locale != null) { | 3211 if (locale != null) { |
3177 _queryParams["locale"] = [locale]; | 3212 _queryParams["locale"] = [locale]; |
3178 } | 3213 } |
3179 if (maxResults != null) { | 3214 if (maxResults != null) { |
3180 _queryParams["maxResults"] = ["${maxResults}"]; | 3215 _queryParams["maxResults"] = ["${maxResults}"]; |
3181 } | 3216 } |
3182 if (processingState != null) { | 3217 if (processingState != null) { |
3183 _queryParams["processingState"] = processingState; | 3218 _queryParams["processingState"] = processingState; |
3184 } | 3219 } |
3185 if (source != null) { | 3220 if (source != null) { |
3186 _queryParams["source"] = [source]; | 3221 _queryParams["source"] = [source]; |
3187 } | 3222 } |
3188 if (startIndex != null) { | 3223 if (startIndex != null) { |
3189 _queryParams["startIndex"] = ["${startIndex}"]; | 3224 _queryParams["startIndex"] = ["${startIndex}"]; |
3190 } | 3225 } |
3191 if (volumeId != null) { | 3226 if (volumeId != null) { |
3192 _queryParams["volumeId"] = volumeId; | 3227 _queryParams["volumeId"] = volumeId; |
3193 } | 3228 } |
3194 | 3229 |
3195 _url = 'volumes/useruploaded'; | 3230 _url = 'volumes/useruploaded'; |
3196 | 3231 |
3197 var _response = _requester.request(_url, | 3232 var _response = _requester.request(_url, "GET", |
3198 "GET", | 3233 body: _body, |
3199 body: _body, | 3234 queryParams: _queryParams, |
3200 queryParams: _queryParams, | 3235 uploadOptions: _uploadOptions, |
3201 uploadOptions: _uploadOptions, | 3236 uploadMedia: _uploadMedia, |
3202 uploadMedia: _uploadMedia, | 3237 downloadOptions: _downloadOptions); |
3203 downloadOptions: _downloadOptions); | |
3204 return _response.then((data) => new Volumes.fromJson(data)); | 3238 return _response.then((data) => new Volumes.fromJson(data)); |
3205 } | 3239 } |
3206 | |
3207 } | 3240 } |
3208 | 3241 |
| 3242 /// Selection ranges sent from the client. |
| 3243 class AnnotationClientVersionRanges { |
| 3244 /// Range in CFI format for this annotation sent by client. |
| 3245 BooksAnnotationsRange cfiRange; |
3209 | 3246 |
| 3247 /// Content version the client sent in. |
| 3248 core.String contentVersion; |
3210 | 3249 |
3211 /** Selection ranges sent from the client. */ | 3250 /// Range in GB image format for this annotation sent by client. |
3212 class AnnotationClientVersionRanges { | |
3213 /** Range in CFI format for this annotation sent by client. */ | |
3214 BooksAnnotationsRange cfiRange; | |
3215 /** Content version the client sent in. */ | |
3216 core.String contentVersion; | |
3217 /** Range in GB image format for this annotation sent by client. */ | |
3218 BooksAnnotationsRange gbImageRange; | 3251 BooksAnnotationsRange gbImageRange; |
3219 /** Range in GB text format for this annotation sent by client. */ | 3252 |
| 3253 /// Range in GB text format for this annotation sent by client. |
3220 BooksAnnotationsRange gbTextRange; | 3254 BooksAnnotationsRange gbTextRange; |
3221 /** Range in image CFI format for this annotation sent by client. */ | 3255 |
| 3256 /// Range in image CFI format for this annotation sent by client. |
3222 BooksAnnotationsRange imageCfiRange; | 3257 BooksAnnotationsRange imageCfiRange; |
3223 | 3258 |
3224 AnnotationClientVersionRanges(); | 3259 AnnotationClientVersionRanges(); |
3225 | 3260 |
3226 AnnotationClientVersionRanges.fromJson(core.Map _json) { | 3261 AnnotationClientVersionRanges.fromJson(core.Map _json) { |
3227 if (_json.containsKey("cfiRange")) { | 3262 if (_json.containsKey("cfiRange")) { |
3228 cfiRange = new BooksAnnotationsRange.fromJson(_json["cfiRange"]); | 3263 cfiRange = new BooksAnnotationsRange.fromJson(_json["cfiRange"]); |
3229 } | 3264 } |
3230 if (_json.containsKey("contentVersion")) { | 3265 if (_json.containsKey("contentVersion")) { |
3231 contentVersion = _json["contentVersion"]; | 3266 contentVersion = _json["contentVersion"]; |
3232 } | 3267 } |
3233 if (_json.containsKey("gbImageRange")) { | 3268 if (_json.containsKey("gbImageRange")) { |
3234 gbImageRange = new BooksAnnotationsRange.fromJson(_json["gbImageRange"]); | 3269 gbImageRange = new BooksAnnotationsRange.fromJson(_json["gbImageRange"]); |
3235 } | 3270 } |
3236 if (_json.containsKey("gbTextRange")) { | 3271 if (_json.containsKey("gbTextRange")) { |
3237 gbTextRange = new BooksAnnotationsRange.fromJson(_json["gbTextRange"]); | 3272 gbTextRange = new BooksAnnotationsRange.fromJson(_json["gbTextRange"]); |
3238 } | 3273 } |
3239 if (_json.containsKey("imageCfiRange")) { | 3274 if (_json.containsKey("imageCfiRange")) { |
3240 imageCfiRange = new BooksAnnotationsRange.fromJson(_json["imageCfiRange"])
; | 3275 imageCfiRange = |
| 3276 new BooksAnnotationsRange.fromJson(_json["imageCfiRange"]); |
3241 } | 3277 } |
3242 } | 3278 } |
3243 | 3279 |
3244 core.Map<core.String, core.Object> toJson() { | 3280 core.Map<core.String, core.Object> toJson() { |
3245 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3281 final core.Map<core.String, core.Object> _json = |
| 3282 new core.Map<core.String, core.Object>(); |
3246 if (cfiRange != null) { | 3283 if (cfiRange != null) { |
3247 _json["cfiRange"] = (cfiRange).toJson(); | 3284 _json["cfiRange"] = (cfiRange).toJson(); |
3248 } | 3285 } |
3249 if (contentVersion != null) { | 3286 if (contentVersion != null) { |
3250 _json["contentVersion"] = contentVersion; | 3287 _json["contentVersion"] = contentVersion; |
3251 } | 3288 } |
3252 if (gbImageRange != null) { | 3289 if (gbImageRange != null) { |
3253 _json["gbImageRange"] = (gbImageRange).toJson(); | 3290 _json["gbImageRange"] = (gbImageRange).toJson(); |
3254 } | 3291 } |
3255 if (gbTextRange != null) { | 3292 if (gbTextRange != null) { |
3256 _json["gbTextRange"] = (gbTextRange).toJson(); | 3293 _json["gbTextRange"] = (gbTextRange).toJson(); |
3257 } | 3294 } |
3258 if (imageCfiRange != null) { | 3295 if (imageCfiRange != null) { |
3259 _json["imageCfiRange"] = (imageCfiRange).toJson(); | 3296 _json["imageCfiRange"] = (imageCfiRange).toJson(); |
3260 } | 3297 } |
3261 return _json; | 3298 return _json; |
3262 } | 3299 } |
3263 } | 3300 } |
3264 | 3301 |
3265 /** Selection ranges for the most recent content version. */ | 3302 /// Selection ranges for the most recent content version. |
3266 class AnnotationCurrentVersionRanges { | 3303 class AnnotationCurrentVersionRanges { |
3267 /** Range in CFI format for this annotation for version above. */ | 3304 /// Range in CFI format for this annotation for version above. |
3268 BooksAnnotationsRange cfiRange; | 3305 BooksAnnotationsRange cfiRange; |
3269 /** Content version applicable to ranges below. */ | 3306 |
| 3307 /// Content version applicable to ranges below. |
3270 core.String contentVersion; | 3308 core.String contentVersion; |
3271 /** Range in GB image format for this annotation for version above. */ | 3309 |
| 3310 /// Range in GB image format for this annotation for version above. |
3272 BooksAnnotationsRange gbImageRange; | 3311 BooksAnnotationsRange gbImageRange; |
3273 /** Range in GB text format for this annotation for version above. */ | 3312 |
| 3313 /// Range in GB text format for this annotation for version above. |
3274 BooksAnnotationsRange gbTextRange; | 3314 BooksAnnotationsRange gbTextRange; |
3275 /** Range in image CFI format for this annotation for version above. */ | 3315 |
| 3316 /// Range in image CFI format for this annotation for version above. |
3276 BooksAnnotationsRange imageCfiRange; | 3317 BooksAnnotationsRange imageCfiRange; |
3277 | 3318 |
3278 AnnotationCurrentVersionRanges(); | 3319 AnnotationCurrentVersionRanges(); |
3279 | 3320 |
3280 AnnotationCurrentVersionRanges.fromJson(core.Map _json) { | 3321 AnnotationCurrentVersionRanges.fromJson(core.Map _json) { |
3281 if (_json.containsKey("cfiRange")) { | 3322 if (_json.containsKey("cfiRange")) { |
3282 cfiRange = new BooksAnnotationsRange.fromJson(_json["cfiRange"]); | 3323 cfiRange = new BooksAnnotationsRange.fromJson(_json["cfiRange"]); |
3283 } | 3324 } |
3284 if (_json.containsKey("contentVersion")) { | 3325 if (_json.containsKey("contentVersion")) { |
3285 contentVersion = _json["contentVersion"]; | 3326 contentVersion = _json["contentVersion"]; |
3286 } | 3327 } |
3287 if (_json.containsKey("gbImageRange")) { | 3328 if (_json.containsKey("gbImageRange")) { |
3288 gbImageRange = new BooksAnnotationsRange.fromJson(_json["gbImageRange"]); | 3329 gbImageRange = new BooksAnnotationsRange.fromJson(_json["gbImageRange"]); |
3289 } | 3330 } |
3290 if (_json.containsKey("gbTextRange")) { | 3331 if (_json.containsKey("gbTextRange")) { |
3291 gbTextRange = new BooksAnnotationsRange.fromJson(_json["gbTextRange"]); | 3332 gbTextRange = new BooksAnnotationsRange.fromJson(_json["gbTextRange"]); |
3292 } | 3333 } |
3293 if (_json.containsKey("imageCfiRange")) { | 3334 if (_json.containsKey("imageCfiRange")) { |
3294 imageCfiRange = new BooksAnnotationsRange.fromJson(_json["imageCfiRange"])
; | 3335 imageCfiRange = |
| 3336 new BooksAnnotationsRange.fromJson(_json["imageCfiRange"]); |
3295 } | 3337 } |
3296 } | 3338 } |
3297 | 3339 |
3298 core.Map<core.String, core.Object> toJson() { | 3340 core.Map<core.String, core.Object> toJson() { |
3299 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3341 final core.Map<core.String, core.Object> _json = |
| 3342 new core.Map<core.String, core.Object>(); |
3300 if (cfiRange != null) { | 3343 if (cfiRange != null) { |
3301 _json["cfiRange"] = (cfiRange).toJson(); | 3344 _json["cfiRange"] = (cfiRange).toJson(); |
3302 } | 3345 } |
3303 if (contentVersion != null) { | 3346 if (contentVersion != null) { |
3304 _json["contentVersion"] = contentVersion; | 3347 _json["contentVersion"] = contentVersion; |
3305 } | 3348 } |
3306 if (gbImageRange != null) { | 3349 if (gbImageRange != null) { |
3307 _json["gbImageRange"] = (gbImageRange).toJson(); | 3350 _json["gbImageRange"] = (gbImageRange).toJson(); |
3308 } | 3351 } |
3309 if (gbTextRange != null) { | 3352 if (gbTextRange != null) { |
3310 _json["gbTextRange"] = (gbTextRange).toJson(); | 3353 _json["gbTextRange"] = (gbTextRange).toJson(); |
3311 } | 3354 } |
3312 if (imageCfiRange != null) { | 3355 if (imageCfiRange != null) { |
3313 _json["imageCfiRange"] = (imageCfiRange).toJson(); | 3356 _json["imageCfiRange"] = (imageCfiRange).toJson(); |
3314 } | 3357 } |
3315 return _json; | 3358 return _json; |
3316 } | 3359 } |
3317 } | 3360 } |
3318 | 3361 |
3319 class AnnotationLayerSummary { | 3362 class AnnotationLayerSummary { |
3320 /** | 3363 /// Maximum allowed characters on this layer, especially for the "copy" |
3321 * Maximum allowed characters on this layer, especially for the "copy" layer. | 3364 /// layer. |
3322 */ | |
3323 core.int allowedCharacterCount; | 3365 core.int allowedCharacterCount; |
3324 /** | 3366 |
3325 * Type of limitation on this layer. "limited" or "unlimited" for the "copy" | 3367 /// Type of limitation on this layer. "limited" or "unlimited" for the "copy" |
3326 * layer. | 3368 /// layer. |
3327 */ | |
3328 core.String limitType; | 3369 core.String limitType; |
3329 /** | 3370 |
3330 * Remaining allowed characters on this layer, especially for the "copy" | 3371 /// Remaining allowed characters on this layer, especially for the "copy" |
3331 * layer. | 3372 /// layer. |
3332 */ | |
3333 core.int remainingCharacterCount; | 3373 core.int remainingCharacterCount; |
3334 | 3374 |
3335 AnnotationLayerSummary(); | 3375 AnnotationLayerSummary(); |
3336 | 3376 |
3337 AnnotationLayerSummary.fromJson(core.Map _json) { | 3377 AnnotationLayerSummary.fromJson(core.Map _json) { |
3338 if (_json.containsKey("allowedCharacterCount")) { | 3378 if (_json.containsKey("allowedCharacterCount")) { |
3339 allowedCharacterCount = _json["allowedCharacterCount"]; | 3379 allowedCharacterCount = _json["allowedCharacterCount"]; |
3340 } | 3380 } |
3341 if (_json.containsKey("limitType")) { | 3381 if (_json.containsKey("limitType")) { |
3342 limitType = _json["limitType"]; | 3382 limitType = _json["limitType"]; |
3343 } | 3383 } |
3344 if (_json.containsKey("remainingCharacterCount")) { | 3384 if (_json.containsKey("remainingCharacterCount")) { |
3345 remainingCharacterCount = _json["remainingCharacterCount"]; | 3385 remainingCharacterCount = _json["remainingCharacterCount"]; |
3346 } | 3386 } |
3347 } | 3387 } |
3348 | 3388 |
3349 core.Map<core.String, core.Object> toJson() { | 3389 core.Map<core.String, core.Object> toJson() { |
3350 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3390 final core.Map<core.String, core.Object> _json = |
| 3391 new core.Map<core.String, core.Object>(); |
3351 if (allowedCharacterCount != null) { | 3392 if (allowedCharacterCount != null) { |
3352 _json["allowedCharacterCount"] = allowedCharacterCount; | 3393 _json["allowedCharacterCount"] = allowedCharacterCount; |
3353 } | 3394 } |
3354 if (limitType != null) { | 3395 if (limitType != null) { |
3355 _json["limitType"] = limitType; | 3396 _json["limitType"] = limitType; |
3356 } | 3397 } |
3357 if (remainingCharacterCount != null) { | 3398 if (remainingCharacterCount != null) { |
3358 _json["remainingCharacterCount"] = remainingCharacterCount; | 3399 _json["remainingCharacterCount"] = remainingCharacterCount; |
3359 } | 3400 } |
3360 return _json; | 3401 return _json; |
3361 } | 3402 } |
3362 } | 3403 } |
3363 | 3404 |
3364 class Annotation { | 3405 class Annotation { |
3365 /** | 3406 /// Anchor text after excerpt. For requests, if the user bookmarked a screen |
3366 * Anchor text after excerpt. For requests, if the user bookmarked a screen | 3407 /// that has no flowing text on it, then this field should be empty. |
3367 * that has no flowing text on it, then this field should be empty. | |
3368 */ | |
3369 core.String afterSelectedText; | 3408 core.String afterSelectedText; |
3370 /** | 3409 |
3371 * Anchor text before excerpt. For requests, if the user bookmarked a screen | 3410 /// Anchor text before excerpt. For requests, if the user bookmarked a screen |
3372 * that has no flowing text on it, then this field should be empty. | 3411 /// that has no flowing text on it, then this field should be empty. |
3373 */ | |
3374 core.String beforeSelectedText; | 3412 core.String beforeSelectedText; |
3375 /** Selection ranges sent from the client. */ | 3413 |
| 3414 /// Selection ranges sent from the client. |
3376 AnnotationClientVersionRanges clientVersionRanges; | 3415 AnnotationClientVersionRanges clientVersionRanges; |
3377 /** Timestamp for the created time of this annotation. */ | 3416 |
| 3417 /// Timestamp for the created time of this annotation. |
3378 core.DateTime created; | 3418 core.DateTime created; |
3379 /** Selection ranges for the most recent content version. */ | 3419 |
| 3420 /// Selection ranges for the most recent content version. |
3380 AnnotationCurrentVersionRanges currentVersionRanges; | 3421 AnnotationCurrentVersionRanges currentVersionRanges; |
3381 /** User-created data for this annotation. */ | 3422 |
| 3423 /// User-created data for this annotation. |
3382 core.String data; | 3424 core.String data; |
3383 /** Indicates that this annotation is deleted. */ | 3425 |
| 3426 /// Indicates that this annotation is deleted. |
3384 core.bool deleted; | 3427 core.bool deleted; |
3385 /** The highlight style for this annotation. */ | 3428 |
| 3429 /// The highlight style for this annotation. |
3386 core.String highlightStyle; | 3430 core.String highlightStyle; |
3387 /** Id of this annotation, in the form of a GUID. */ | 3431 |
| 3432 /// Id of this annotation, in the form of a GUID. |
3388 core.String id; | 3433 core.String id; |
3389 /** Resource type. */ | 3434 |
| 3435 /// Resource type. |
3390 core.String kind; | 3436 core.String kind; |
3391 /** The layer this annotation is for. */ | 3437 |
| 3438 /// The layer this annotation is for. |
3392 core.String layerId; | 3439 core.String layerId; |
3393 AnnotationLayerSummary layerSummary; | 3440 AnnotationLayerSummary layerSummary; |
3394 /** Pages that this annotation spans. */ | 3441 |
| 3442 /// Pages that this annotation spans. |
3395 core.List<core.String> pageIds; | 3443 core.List<core.String> pageIds; |
3396 /** Excerpt from the volume. */ | 3444 |
| 3445 /// Excerpt from the volume. |
3397 core.String selectedText; | 3446 core.String selectedText; |
3398 /** URL to this resource. */ | 3447 |
| 3448 /// URL to this resource. |
3399 core.String selfLink; | 3449 core.String selfLink; |
3400 /** Timestamp for the last time this annotation was modified. */ | 3450 |
| 3451 /// Timestamp for the last time this annotation was modified. |
3401 core.DateTime updated; | 3452 core.DateTime updated; |
3402 /** The volume that this annotation belongs to. */ | 3453 |
| 3454 /// The volume that this annotation belongs to. |
3403 core.String volumeId; | 3455 core.String volumeId; |
3404 | 3456 |
3405 Annotation(); | 3457 Annotation(); |
3406 | 3458 |
3407 Annotation.fromJson(core.Map _json) { | 3459 Annotation.fromJson(core.Map _json) { |
3408 if (_json.containsKey("afterSelectedText")) { | 3460 if (_json.containsKey("afterSelectedText")) { |
3409 afterSelectedText = _json["afterSelectedText"]; | 3461 afterSelectedText = _json["afterSelectedText"]; |
3410 } | 3462 } |
3411 if (_json.containsKey("beforeSelectedText")) { | 3463 if (_json.containsKey("beforeSelectedText")) { |
3412 beforeSelectedText = _json["beforeSelectedText"]; | 3464 beforeSelectedText = _json["beforeSelectedText"]; |
3413 } | 3465 } |
3414 if (_json.containsKey("clientVersionRanges")) { | 3466 if (_json.containsKey("clientVersionRanges")) { |
3415 clientVersionRanges = new AnnotationClientVersionRanges.fromJson(_json["cl
ientVersionRanges"]); | 3467 clientVersionRanges = new AnnotationClientVersionRanges.fromJson( |
| 3468 _json["clientVersionRanges"]); |
3416 } | 3469 } |
3417 if (_json.containsKey("created")) { | 3470 if (_json.containsKey("created")) { |
3418 created = core.DateTime.parse(_json["created"]); | 3471 created = core.DateTime.parse(_json["created"]); |
3419 } | 3472 } |
3420 if (_json.containsKey("currentVersionRanges")) { | 3473 if (_json.containsKey("currentVersionRanges")) { |
3421 currentVersionRanges = new AnnotationCurrentVersionRanges.fromJson(_json["
currentVersionRanges"]); | 3474 currentVersionRanges = new AnnotationCurrentVersionRanges.fromJson( |
| 3475 _json["currentVersionRanges"]); |
3422 } | 3476 } |
3423 if (_json.containsKey("data")) { | 3477 if (_json.containsKey("data")) { |
3424 data = _json["data"]; | 3478 data = _json["data"]; |
3425 } | 3479 } |
3426 if (_json.containsKey("deleted")) { | 3480 if (_json.containsKey("deleted")) { |
3427 deleted = _json["deleted"]; | 3481 deleted = _json["deleted"]; |
3428 } | 3482 } |
3429 if (_json.containsKey("highlightStyle")) { | 3483 if (_json.containsKey("highlightStyle")) { |
3430 highlightStyle = _json["highlightStyle"]; | 3484 highlightStyle = _json["highlightStyle"]; |
3431 } | 3485 } |
(...skipping 20 matching lines...) Expand all Loading... |
3452 } | 3506 } |
3453 if (_json.containsKey("updated")) { | 3507 if (_json.containsKey("updated")) { |
3454 updated = core.DateTime.parse(_json["updated"]); | 3508 updated = core.DateTime.parse(_json["updated"]); |
3455 } | 3509 } |
3456 if (_json.containsKey("volumeId")) { | 3510 if (_json.containsKey("volumeId")) { |
3457 volumeId = _json["volumeId"]; | 3511 volumeId = _json["volumeId"]; |
3458 } | 3512 } |
3459 } | 3513 } |
3460 | 3514 |
3461 core.Map<core.String, core.Object> toJson() { | 3515 core.Map<core.String, core.Object> toJson() { |
3462 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3516 final core.Map<core.String, core.Object> _json = |
| 3517 new core.Map<core.String, core.Object>(); |
3463 if (afterSelectedText != null) { | 3518 if (afterSelectedText != null) { |
3464 _json["afterSelectedText"] = afterSelectedText; | 3519 _json["afterSelectedText"] = afterSelectedText; |
3465 } | 3520 } |
3466 if (beforeSelectedText != null) { | 3521 if (beforeSelectedText != null) { |
3467 _json["beforeSelectedText"] = beforeSelectedText; | 3522 _json["beforeSelectedText"] = beforeSelectedText; |
3468 } | 3523 } |
3469 if (clientVersionRanges != null) { | 3524 if (clientVersionRanges != null) { |
3470 _json["clientVersionRanges"] = (clientVersionRanges).toJson(); | 3525 _json["clientVersionRanges"] = (clientVersionRanges).toJson(); |
3471 } | 3526 } |
3472 if (created != null) { | 3527 if (created != null) { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3509 _json["updated"] = (updated).toIso8601String(); | 3564 _json["updated"] = (updated).toIso8601String(); |
3510 } | 3565 } |
3511 if (volumeId != null) { | 3566 if (volumeId != null) { |
3512 _json["volumeId"] = volumeId; | 3567 _json["volumeId"] = volumeId; |
3513 } | 3568 } |
3514 return _json; | 3569 return _json; |
3515 } | 3570 } |
3516 } | 3571 } |
3517 | 3572 |
3518 class Annotationdata { | 3573 class Annotationdata { |
3519 /** The type of annotation this data is for. */ | 3574 /// The type of annotation this data is for. |
3520 core.String annotationType; | 3575 core.String annotationType; |
3521 /** | 3576 |
3522 * | 3577 /// |
3523 * | 3578 /// |
3524 * The values for Object must be JSON objects. It can consist of `num`, | 3579 /// The values for Object must be JSON objects. It can consist of `num`, |
3525 * `String`, `bool` and `null` as well as `Map` and `List` values. | 3580 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
3526 */ | |
3527 core.Object data; | 3581 core.Object data; |
3528 /** Base64 encoded data for this annotation data. */ | 3582 |
| 3583 /// Base64 encoded data for this annotation data. |
3529 core.String encodedData; | 3584 core.String encodedData; |
3530 core.List<core.int> get encodedDataAsBytes { | 3585 core.List<core.int> get encodedDataAsBytes { |
3531 return convert.BASE64.decode(encodedData); | 3586 return convert.BASE64.decode(encodedData); |
3532 } | 3587 } |
3533 | 3588 |
3534 void set encodedDataAsBytes(core.List<core.int> _bytes) { | 3589 void set encodedDataAsBytes(core.List<core.int> _bytes) { |
3535 encodedData = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll(
"+", "-"); | 3590 encodedData = |
| 3591 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
3536 } | 3592 } |
3537 /** Unique id for this annotation data. */ | 3593 |
| 3594 /// Unique id for this annotation data. |
3538 core.String id; | 3595 core.String id; |
3539 /** Resource Type */ | 3596 |
| 3597 /// Resource Type |
3540 core.String kind; | 3598 core.String kind; |
3541 /** The Layer id for this data. * */ | 3599 |
| 3600 /// The Layer id for this data. * |
3542 core.String layerId; | 3601 core.String layerId; |
3543 /** URL for this resource. * */ | 3602 |
| 3603 /// URL for this resource. * |
3544 core.String selfLink; | 3604 core.String selfLink; |
3545 /** | 3605 |
3546 * Timestamp for the last time this data was updated. (RFC 3339 UTC date-time | 3606 /// Timestamp for the last time this data was updated. (RFC 3339 UTC |
3547 * format). | 3607 /// date-time format). |
3548 */ | |
3549 core.DateTime updated; | 3608 core.DateTime updated; |
3550 /** The volume id for this data. * */ | 3609 |
| 3610 /// The volume id for this data. * |
3551 core.String volumeId; | 3611 core.String volumeId; |
3552 | 3612 |
3553 Annotationdata(); | 3613 Annotationdata(); |
3554 | 3614 |
3555 Annotationdata.fromJson(core.Map _json) { | 3615 Annotationdata.fromJson(core.Map _json) { |
3556 if (_json.containsKey("annotationType")) { | 3616 if (_json.containsKey("annotationType")) { |
3557 annotationType = _json["annotationType"]; | 3617 annotationType = _json["annotationType"]; |
3558 } | 3618 } |
3559 if (_json.containsKey("data")) { | 3619 if (_json.containsKey("data")) { |
3560 data = _json["data"]; | 3620 data = _json["data"]; |
(...skipping 15 matching lines...) Expand all Loading... |
3576 } | 3636 } |
3577 if (_json.containsKey("updated")) { | 3637 if (_json.containsKey("updated")) { |
3578 updated = core.DateTime.parse(_json["updated"]); | 3638 updated = core.DateTime.parse(_json["updated"]); |
3579 } | 3639 } |
3580 if (_json.containsKey("volumeId")) { | 3640 if (_json.containsKey("volumeId")) { |
3581 volumeId = _json["volumeId"]; | 3641 volumeId = _json["volumeId"]; |
3582 } | 3642 } |
3583 } | 3643 } |
3584 | 3644 |
3585 core.Map<core.String, core.Object> toJson() { | 3645 core.Map<core.String, core.Object> toJson() { |
3586 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3646 final core.Map<core.String, core.Object> _json = |
| 3647 new core.Map<core.String, core.Object>(); |
3587 if (annotationType != null) { | 3648 if (annotationType != null) { |
3588 _json["annotationType"] = annotationType; | 3649 _json["annotationType"] = annotationType; |
3589 } | 3650 } |
3590 if (data != null) { | 3651 if (data != null) { |
3591 _json["data"] = data; | 3652 _json["data"] = data; |
3592 } | 3653 } |
3593 if (encodedData != null) { | 3654 if (encodedData != null) { |
3594 _json["encoded_data"] = encodedData; | 3655 _json["encoded_data"] = encodedData; |
3595 } | 3656 } |
3596 if (id != null) { | 3657 if (id != null) { |
(...skipping 12 matching lines...) Expand all Loading... |
3609 _json["updated"] = (updated).toIso8601String(); | 3670 _json["updated"] = (updated).toIso8601String(); |
3610 } | 3671 } |
3611 if (volumeId != null) { | 3672 if (volumeId != null) { |
3612 _json["volumeId"] = volumeId; | 3673 _json["volumeId"] = volumeId; |
3613 } | 3674 } |
3614 return _json; | 3675 return _json; |
3615 } | 3676 } |
3616 } | 3677 } |
3617 | 3678 |
3618 class Annotations { | 3679 class Annotations { |
3619 /** A list of annotations. */ | 3680 /// A list of annotations. |
3620 core.List<Annotation> items; | 3681 core.List<Annotation> items; |
3621 /** Resource type. */ | 3682 |
| 3683 /// Resource type. |
3622 core.String kind; | 3684 core.String kind; |
3623 /** | 3685 |
3624 * Token to pass in for pagination for the next page. This will not be present | 3686 /// Token to pass in for pagination for the next page. This will not be |
3625 * if this request does not have more results. | 3687 /// present if this request does not have more results. |
3626 */ | |
3627 core.String nextPageToken; | 3688 core.String nextPageToken; |
3628 /** | 3689 |
3629 * Total number of annotations found. This may be greater than the number of | 3690 /// Total number of annotations found. This may be greater than the number of |
3630 * notes returned in this response if results have been paginated. | 3691 /// notes returned in this response if results have been paginated. |
3631 */ | |
3632 core.int totalItems; | 3692 core.int totalItems; |
3633 | 3693 |
3634 Annotations(); | 3694 Annotations(); |
3635 | 3695 |
3636 Annotations.fromJson(core.Map _json) { | 3696 Annotations.fromJson(core.Map _json) { |
3637 if (_json.containsKey("items")) { | 3697 if (_json.containsKey("items")) { |
3638 items = _json["items"].map((value) => new Annotation.fromJson(value)).toLi
st(); | 3698 items = _json["items"] |
| 3699 .map((value) => new Annotation.fromJson(value)) |
| 3700 .toList(); |
3639 } | 3701 } |
3640 if (_json.containsKey("kind")) { | 3702 if (_json.containsKey("kind")) { |
3641 kind = _json["kind"]; | 3703 kind = _json["kind"]; |
3642 } | 3704 } |
3643 if (_json.containsKey("nextPageToken")) { | 3705 if (_json.containsKey("nextPageToken")) { |
3644 nextPageToken = _json["nextPageToken"]; | 3706 nextPageToken = _json["nextPageToken"]; |
3645 } | 3707 } |
3646 if (_json.containsKey("totalItems")) { | 3708 if (_json.containsKey("totalItems")) { |
3647 totalItems = _json["totalItems"]; | 3709 totalItems = _json["totalItems"]; |
3648 } | 3710 } |
3649 } | 3711 } |
3650 | 3712 |
3651 core.Map<core.String, core.Object> toJson() { | 3713 core.Map<core.String, core.Object> toJson() { |
3652 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3714 final core.Map<core.String, core.Object> _json = |
| 3715 new core.Map<core.String, core.Object>(); |
3653 if (items != null) { | 3716 if (items != null) { |
3654 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3717 _json["items"] = items.map((value) => (value).toJson()).toList(); |
3655 } | 3718 } |
3656 if (kind != null) { | 3719 if (kind != null) { |
3657 _json["kind"] = kind; | 3720 _json["kind"] = kind; |
3658 } | 3721 } |
3659 if (nextPageToken != null) { | 3722 if (nextPageToken != null) { |
3660 _json["nextPageToken"] = nextPageToken; | 3723 _json["nextPageToken"] = nextPageToken; |
3661 } | 3724 } |
3662 if (totalItems != null) { | 3725 if (totalItems != null) { |
(...skipping 24 matching lines...) Expand all Loading... |
3687 } | 3750 } |
3688 if (_json.containsKey("remainingCharacterCount")) { | 3751 if (_json.containsKey("remainingCharacterCount")) { |
3689 remainingCharacterCount = _json["remainingCharacterCount"]; | 3752 remainingCharacterCount = _json["remainingCharacterCount"]; |
3690 } | 3753 } |
3691 if (_json.containsKey("updated")) { | 3754 if (_json.containsKey("updated")) { |
3692 updated = core.DateTime.parse(_json["updated"]); | 3755 updated = core.DateTime.parse(_json["updated"]); |
3693 } | 3756 } |
3694 } | 3757 } |
3695 | 3758 |
3696 core.Map<core.String, core.Object> toJson() { | 3759 core.Map<core.String, core.Object> toJson() { |
3697 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3760 final core.Map<core.String, core.Object> _json = |
| 3761 new core.Map<core.String, core.Object>(); |
3698 if (allowedCharacterCount != null) { | 3762 if (allowedCharacterCount != null) { |
3699 _json["allowedCharacterCount"] = allowedCharacterCount; | 3763 _json["allowedCharacterCount"] = allowedCharacterCount; |
3700 } | 3764 } |
3701 if (layerId != null) { | 3765 if (layerId != null) { |
3702 _json["layerId"] = layerId; | 3766 _json["layerId"] = layerId; |
3703 } | 3767 } |
3704 if (limitType != null) { | 3768 if (limitType != null) { |
3705 _json["limitType"] = limitType; | 3769 _json["limitType"] = limitType; |
3706 } | 3770 } |
3707 if (remainingCharacterCount != null) { | 3771 if (remainingCharacterCount != null) { |
(...skipping 10 matching lines...) Expand all Loading... |
3718 core.String kind; | 3782 core.String kind; |
3719 core.List<AnnotationsSummaryLayers> layers; | 3783 core.List<AnnotationsSummaryLayers> layers; |
3720 | 3784 |
3721 AnnotationsSummary(); | 3785 AnnotationsSummary(); |
3722 | 3786 |
3723 AnnotationsSummary.fromJson(core.Map _json) { | 3787 AnnotationsSummary.fromJson(core.Map _json) { |
3724 if (_json.containsKey("kind")) { | 3788 if (_json.containsKey("kind")) { |
3725 kind = _json["kind"]; | 3789 kind = _json["kind"]; |
3726 } | 3790 } |
3727 if (_json.containsKey("layers")) { | 3791 if (_json.containsKey("layers")) { |
3728 layers = _json["layers"].map((value) => new AnnotationsSummaryLayers.fromJ
son(value)).toList(); | 3792 layers = _json["layers"] |
| 3793 .map((value) => new AnnotationsSummaryLayers.fromJson(value)) |
| 3794 .toList(); |
3729 } | 3795 } |
3730 } | 3796 } |
3731 | 3797 |
3732 core.Map<core.String, core.Object> toJson() { | 3798 core.Map<core.String, core.Object> toJson() { |
3733 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3799 final core.Map<core.String, core.Object> _json = |
| 3800 new core.Map<core.String, core.Object>(); |
3734 if (kind != null) { | 3801 if (kind != null) { |
3735 _json["kind"] = kind; | 3802 _json["kind"] = kind; |
3736 } | 3803 } |
3737 if (layers != null) { | 3804 if (layers != null) { |
3738 _json["layers"] = layers.map((value) => (value).toJson()).toList(); | 3805 _json["layers"] = layers.map((value) => (value).toJson()).toList(); |
3739 } | 3806 } |
3740 return _json; | 3807 return _json; |
3741 } | 3808 } |
3742 } | 3809 } |
3743 | 3810 |
3744 class Annotationsdata { | 3811 class Annotationsdata { |
3745 /** A list of Annotation Data. */ | 3812 /// A list of Annotation Data. |
3746 core.List<Annotationdata> items; | 3813 core.List<Annotationdata> items; |
3747 /** Resource type */ | 3814 |
| 3815 /// Resource type |
3748 core.String kind; | 3816 core.String kind; |
3749 /** | 3817 |
3750 * Token to pass in for pagination for the next page. This will not be present | 3818 /// Token to pass in for pagination for the next page. This will not be |
3751 * if this request does not have more results. | 3819 /// present if this request does not have more results. |
3752 */ | |
3753 core.String nextPageToken; | 3820 core.String nextPageToken; |
3754 /** The total number of volume annotations found. */ | 3821 |
| 3822 /// The total number of volume annotations found. |
3755 core.int totalItems; | 3823 core.int totalItems; |
3756 | 3824 |
3757 Annotationsdata(); | 3825 Annotationsdata(); |
3758 | 3826 |
3759 Annotationsdata.fromJson(core.Map _json) { | 3827 Annotationsdata.fromJson(core.Map _json) { |
3760 if (_json.containsKey("items")) { | 3828 if (_json.containsKey("items")) { |
3761 items = _json["items"].map((value) => new Annotationdata.fromJson(value)).
toList(); | 3829 items = _json["items"] |
| 3830 .map((value) => new Annotationdata.fromJson(value)) |
| 3831 .toList(); |
3762 } | 3832 } |
3763 if (_json.containsKey("kind")) { | 3833 if (_json.containsKey("kind")) { |
3764 kind = _json["kind"]; | 3834 kind = _json["kind"]; |
3765 } | 3835 } |
3766 if (_json.containsKey("nextPageToken")) { | 3836 if (_json.containsKey("nextPageToken")) { |
3767 nextPageToken = _json["nextPageToken"]; | 3837 nextPageToken = _json["nextPageToken"]; |
3768 } | 3838 } |
3769 if (_json.containsKey("totalItems")) { | 3839 if (_json.containsKey("totalItems")) { |
3770 totalItems = _json["totalItems"]; | 3840 totalItems = _json["totalItems"]; |
3771 } | 3841 } |
3772 } | 3842 } |
3773 | 3843 |
3774 core.Map<core.String, core.Object> toJson() { | 3844 core.Map<core.String, core.Object> toJson() { |
3775 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3845 final core.Map<core.String, core.Object> _json = |
| 3846 new core.Map<core.String, core.Object>(); |
3776 if (items != null) { | 3847 if (items != null) { |
3777 _json["items"] = items.map((value) => (value).toJson()).toList(); | 3848 _json["items"] = items.map((value) => (value).toJson()).toList(); |
3778 } | 3849 } |
3779 if (kind != null) { | 3850 if (kind != null) { |
3780 _json["kind"] = kind; | 3851 _json["kind"] = kind; |
3781 } | 3852 } |
3782 if (nextPageToken != null) { | 3853 if (nextPageToken != null) { |
3783 _json["nextPageToken"] = nextPageToken; | 3854 _json["nextPageToken"] = nextPageToken; |
3784 } | 3855 } |
3785 if (totalItems != null) { | 3856 if (totalItems != null) { |
3786 _json["totalItems"] = totalItems; | 3857 _json["totalItems"] = totalItems; |
3787 } | 3858 } |
3788 return _json; | 3859 return _json; |
3789 } | 3860 } |
3790 } | 3861 } |
3791 | 3862 |
3792 class BooksAnnotationsRange { | 3863 class BooksAnnotationsRange { |
3793 /** The offset from the ending position. */ | 3864 /// The offset from the ending position. |
3794 core.String endOffset; | 3865 core.String endOffset; |
3795 /** The ending position for the range. */ | 3866 |
| 3867 /// The ending position for the range. |
3796 core.String endPosition; | 3868 core.String endPosition; |
3797 /** The offset from the starting position. */ | 3869 |
| 3870 /// The offset from the starting position. |
3798 core.String startOffset; | 3871 core.String startOffset; |
3799 /** The starting position for the range. */ | 3872 |
| 3873 /// The starting position for the range. |
3800 core.String startPosition; | 3874 core.String startPosition; |
3801 | 3875 |
3802 BooksAnnotationsRange(); | 3876 BooksAnnotationsRange(); |
3803 | 3877 |
3804 BooksAnnotationsRange.fromJson(core.Map _json) { | 3878 BooksAnnotationsRange.fromJson(core.Map _json) { |
3805 if (_json.containsKey("endOffset")) { | 3879 if (_json.containsKey("endOffset")) { |
3806 endOffset = _json["endOffset"]; | 3880 endOffset = _json["endOffset"]; |
3807 } | 3881 } |
3808 if (_json.containsKey("endPosition")) { | 3882 if (_json.containsKey("endPosition")) { |
3809 endPosition = _json["endPosition"]; | 3883 endPosition = _json["endPosition"]; |
3810 } | 3884 } |
3811 if (_json.containsKey("startOffset")) { | 3885 if (_json.containsKey("startOffset")) { |
3812 startOffset = _json["startOffset"]; | 3886 startOffset = _json["startOffset"]; |
3813 } | 3887 } |
3814 if (_json.containsKey("startPosition")) { | 3888 if (_json.containsKey("startPosition")) { |
3815 startPosition = _json["startPosition"]; | 3889 startPosition = _json["startPosition"]; |
3816 } | 3890 } |
3817 } | 3891 } |
3818 | 3892 |
3819 core.Map<core.String, core.Object> toJson() { | 3893 core.Map<core.String, core.Object> toJson() { |
3820 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3894 final core.Map<core.String, core.Object> _json = |
| 3895 new core.Map<core.String, core.Object>(); |
3821 if (endOffset != null) { | 3896 if (endOffset != null) { |
3822 _json["endOffset"] = endOffset; | 3897 _json["endOffset"] = endOffset; |
3823 } | 3898 } |
3824 if (endPosition != null) { | 3899 if (endPosition != null) { |
3825 _json["endPosition"] = endPosition; | 3900 _json["endPosition"] = endPosition; |
3826 } | 3901 } |
3827 if (startOffset != null) { | 3902 if (startOffset != null) { |
3828 _json["startOffset"] = startOffset; | 3903 _json["startOffset"] = startOffset; |
3829 } | 3904 } |
3830 if (startPosition != null) { | 3905 if (startPosition != null) { |
(...skipping 20 matching lines...) Expand all Loading... |
3851 } | 3926 } |
3852 if (_json.containsKey("title")) { | 3927 if (_json.containsKey("title")) { |
3853 title = _json["title"]; | 3928 title = _json["title"]; |
3854 } | 3929 } |
3855 if (_json.containsKey("volumeId")) { | 3930 if (_json.containsKey("volumeId")) { |
3856 volumeId = _json["volumeId"]; | 3931 volumeId = _json["volumeId"]; |
3857 } | 3932 } |
3858 } | 3933 } |
3859 | 3934 |
3860 core.Map<core.String, core.Object> toJson() { | 3935 core.Map<core.String, core.Object> toJson() { |
3861 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3936 final core.Map<core.String, core.Object> _json = |
| 3937 new core.Map<core.String, core.Object>(); |
3862 if (author != null) { | 3938 if (author != null) { |
3863 _json["author"] = author; | 3939 _json["author"] = author; |
3864 } | 3940 } |
3865 if (processingState != null) { | 3941 if (processingState != null) { |
3866 _json["processingState"] = processingState; | 3942 _json["processingState"] = processingState; |
3867 } | 3943 } |
3868 if (title != null) { | 3944 if (title != null) { |
3869 _json["title"] = title; | 3945 _json["title"] = title; |
3870 } | 3946 } |
3871 if (volumeId != null) { | 3947 if (volumeId != null) { |
3872 _json["volumeId"] = volumeId; | 3948 _json["volumeId"] = volumeId; |
3873 } | 3949 } |
3874 return _json; | 3950 return _json; |
3875 } | 3951 } |
3876 } | 3952 } |
3877 | 3953 |
3878 class BooksVolumesRecommendedRateResponse { | 3954 class BooksVolumesRecommendedRateResponse { |
3879 core.String consistencyToken; | 3955 core.String consistencyToken; |
3880 | 3956 |
3881 BooksVolumesRecommendedRateResponse(); | 3957 BooksVolumesRecommendedRateResponse(); |
3882 | 3958 |
3883 BooksVolumesRecommendedRateResponse.fromJson(core.Map _json) { | 3959 BooksVolumesRecommendedRateResponse.fromJson(core.Map _json) { |
3884 if (_json.containsKey("consistency_token")) { | 3960 if (_json.containsKey("consistency_token")) { |
3885 consistencyToken = _json["consistency_token"]; | 3961 consistencyToken = _json["consistency_token"]; |
3886 } | 3962 } |
3887 } | 3963 } |
3888 | 3964 |
3889 core.Map<core.String, core.Object> toJson() { | 3965 core.Map<core.String, core.Object> toJson() { |
3890 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 3966 final core.Map<core.String, core.Object> _json = |
| 3967 new core.Map<core.String, core.Object>(); |
3891 if (consistencyToken != null) { | 3968 if (consistencyToken != null) { |
3892 _json["consistency_token"] = consistencyToken; | 3969 _json["consistency_token"] = consistencyToken; |
3893 } | 3970 } |
3894 return _json; | 3971 return _json; |
3895 } | 3972 } |
3896 } | 3973 } |
3897 | 3974 |
3898 class Bookshelf { | 3975 class Bookshelf { |
3899 /** Whether this bookshelf is PUBLIC or PRIVATE. */ | 3976 /// Whether this bookshelf is PUBLIC or PRIVATE. |
3900 core.String access; | 3977 core.String access; |
3901 /** | 3978 |
3902 * Created time for this bookshelf (formatted UTC timestamp with millisecond | 3979 /// Created time for this bookshelf (formatted UTC timestamp with millisecond |
3903 * resolution). | 3980 /// resolution). |
3904 */ | |
3905 core.DateTime created; | 3981 core.DateTime created; |
3906 /** Description of this bookshelf. */ | 3982 |
| 3983 /// Description of this bookshelf. |
3907 core.String description; | 3984 core.String description; |
3908 /** Id of this bookshelf, only unique by user. */ | 3985 |
| 3986 /// Id of this bookshelf, only unique by user. |
3909 core.int id; | 3987 core.int id; |
3910 /** Resource type for bookshelf metadata. */ | 3988 |
| 3989 /// Resource type for bookshelf metadata. |
3911 core.String kind; | 3990 core.String kind; |
3912 /** URL to this resource. */ | 3991 |
| 3992 /// URL to this resource. |
3913 core.String selfLink; | 3993 core.String selfLink; |
3914 /** Title of this bookshelf. */ | 3994 |
| 3995 /// Title of this bookshelf. |
3915 core.String title; | 3996 core.String title; |
3916 /** | 3997 |
3917 * Last modified time of this bookshelf (formatted UTC timestamp with | 3998 /// Last modified time of this bookshelf (formatted UTC timestamp with |
3918 * millisecond resolution). | 3999 /// millisecond resolution). |
3919 */ | |
3920 core.DateTime updated; | 4000 core.DateTime updated; |
3921 /** Number of volumes in this bookshelf. */ | 4001 |
| 4002 /// Number of volumes in this bookshelf. |
3922 core.int volumeCount; | 4003 core.int volumeCount; |
3923 /** | 4004 |
3924 * Last time a volume was added or removed from this bookshelf (formatted UTC | 4005 /// Last time a volume was added or removed from this bookshelf (formatted |
3925 * timestamp with millisecond resolution). | 4006 /// UTC timestamp with millisecond resolution). |
3926 */ | |
3927 core.DateTime volumesLastUpdated; | 4007 core.DateTime volumesLastUpdated; |
3928 | 4008 |
3929 Bookshelf(); | 4009 Bookshelf(); |
3930 | 4010 |
3931 Bookshelf.fromJson(core.Map _json) { | 4011 Bookshelf.fromJson(core.Map _json) { |
3932 if (_json.containsKey("access")) { | 4012 if (_json.containsKey("access")) { |
3933 access = _json["access"]; | 4013 access = _json["access"]; |
3934 } | 4014 } |
3935 if (_json.containsKey("created")) { | 4015 if (_json.containsKey("created")) { |
3936 created = core.DateTime.parse(_json["created"]); | 4016 created = core.DateTime.parse(_json["created"]); |
(...skipping 18 matching lines...) Expand all Loading... |
3955 } | 4035 } |
3956 if (_json.containsKey("volumeCount")) { | 4036 if (_json.containsKey("volumeCount")) { |
3957 volumeCount = _json["volumeCount"]; | 4037 volumeCount = _json["volumeCount"]; |
3958 } | 4038 } |
3959 if (_json.containsKey("volumesLastUpdated")) { | 4039 if (_json.containsKey("volumesLastUpdated")) { |
3960 volumesLastUpdated = core.DateTime.parse(_json["volumesLastUpdated"]); | 4040 volumesLastUpdated = core.DateTime.parse(_json["volumesLastUpdated"]); |
3961 } | 4041 } |
3962 } | 4042 } |
3963 | 4043 |
3964 core.Map<core.String, core.Object> toJson() { | 4044 core.Map<core.String, core.Object> toJson() { |
3965 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4045 final core.Map<core.String, core.Object> _json = |
| 4046 new core.Map<core.String, core.Object>(); |
3966 if (access != null) { | 4047 if (access != null) { |
3967 _json["access"] = access; | 4048 _json["access"] = access; |
3968 } | 4049 } |
3969 if (created != null) { | 4050 if (created != null) { |
3970 _json["created"] = (created).toIso8601String(); | 4051 _json["created"] = (created).toIso8601String(); |
3971 } | 4052 } |
3972 if (description != null) { | 4053 if (description != null) { |
3973 _json["description"] = description; | 4054 _json["description"] = description; |
3974 } | 4055 } |
3975 if (id != null) { | 4056 if (id != null) { |
(...skipping 15 matching lines...) Expand all Loading... |
3991 _json["volumeCount"] = volumeCount; | 4072 _json["volumeCount"] = volumeCount; |
3992 } | 4073 } |
3993 if (volumesLastUpdated != null) { | 4074 if (volumesLastUpdated != null) { |
3994 _json["volumesLastUpdated"] = (volumesLastUpdated).toIso8601String(); | 4075 _json["volumesLastUpdated"] = (volumesLastUpdated).toIso8601String(); |
3995 } | 4076 } |
3996 return _json; | 4077 return _json; |
3997 } | 4078 } |
3998 } | 4079 } |
3999 | 4080 |
4000 class Bookshelves { | 4081 class Bookshelves { |
4001 /** A list of bookshelves. */ | 4082 /// A list of bookshelves. |
4002 core.List<Bookshelf> items; | 4083 core.List<Bookshelf> items; |
4003 /** Resource type. */ | 4084 |
| 4085 /// Resource type. |
4004 core.String kind; | 4086 core.String kind; |
4005 | 4087 |
4006 Bookshelves(); | 4088 Bookshelves(); |
4007 | 4089 |
4008 Bookshelves.fromJson(core.Map _json) { | 4090 Bookshelves.fromJson(core.Map _json) { |
4009 if (_json.containsKey("items")) { | 4091 if (_json.containsKey("items")) { |
4010 items = _json["items"].map((value) => new Bookshelf.fromJson(value)).toLis
t(); | 4092 items = |
| 4093 _json["items"].map((value) => new Bookshelf.fromJson(value)).toList(); |
4011 } | 4094 } |
4012 if (_json.containsKey("kind")) { | 4095 if (_json.containsKey("kind")) { |
4013 kind = _json["kind"]; | 4096 kind = _json["kind"]; |
4014 } | 4097 } |
4015 } | 4098 } |
4016 | 4099 |
4017 core.Map<core.String, core.Object> toJson() { | 4100 core.Map<core.String, core.Object> toJson() { |
4018 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4101 final core.Map<core.String, core.Object> _json = |
| 4102 new core.Map<core.String, core.Object>(); |
4019 if (items != null) { | 4103 if (items != null) { |
4020 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4104 _json["items"] = items.map((value) => (value).toJson()).toList(); |
4021 } | 4105 } |
4022 if (kind != null) { | 4106 if (kind != null) { |
4023 _json["kind"] = kind; | 4107 _json["kind"] = kind; |
4024 } | 4108 } |
4025 return _json; | 4109 return _json; |
4026 } | 4110 } |
4027 } | 4111 } |
4028 | 4112 |
(...skipping 10 matching lines...) Expand all Loading... |
4039 } | 4123 } |
4040 if (_json.containsKey("categoryId")) { | 4124 if (_json.containsKey("categoryId")) { |
4041 categoryId = _json["categoryId"]; | 4125 categoryId = _json["categoryId"]; |
4042 } | 4126 } |
4043 if (_json.containsKey("name")) { | 4127 if (_json.containsKey("name")) { |
4044 name = _json["name"]; | 4128 name = _json["name"]; |
4045 } | 4129 } |
4046 } | 4130 } |
4047 | 4131 |
4048 core.Map<core.String, core.Object> toJson() { | 4132 core.Map<core.String, core.Object> toJson() { |
4049 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4133 final core.Map<core.String, core.Object> _json = |
| 4134 new core.Map<core.String, core.Object>(); |
4050 if (badgeUrl != null) { | 4135 if (badgeUrl != null) { |
4051 _json["badgeUrl"] = badgeUrl; | 4136 _json["badgeUrl"] = badgeUrl; |
4052 } | 4137 } |
4053 if (categoryId != null) { | 4138 if (categoryId != null) { |
4054 _json["categoryId"] = categoryId; | 4139 _json["categoryId"] = categoryId; |
4055 } | 4140 } |
4056 if (name != null) { | 4141 if (name != null) { |
4057 _json["name"] = name; | 4142 _json["name"] = name; |
4058 } | 4143 } |
4059 return _json; | 4144 return _json; |
4060 } | 4145 } |
4061 } | 4146 } |
4062 | 4147 |
4063 class Category { | 4148 class Category { |
4064 /** A list of onboarding categories. */ | 4149 /// A list of onboarding categories. |
4065 core.List<CategoryItems> items; | 4150 core.List<CategoryItems> items; |
4066 /** Resource type. */ | 4151 |
| 4152 /// Resource type. |
4067 core.String kind; | 4153 core.String kind; |
4068 | 4154 |
4069 Category(); | 4155 Category(); |
4070 | 4156 |
4071 Category.fromJson(core.Map _json) { | 4157 Category.fromJson(core.Map _json) { |
4072 if (_json.containsKey("items")) { | 4158 if (_json.containsKey("items")) { |
4073 items = _json["items"].map((value) => new CategoryItems.fromJson(value)).t
oList(); | 4159 items = _json["items"] |
| 4160 .map((value) => new CategoryItems.fromJson(value)) |
| 4161 .toList(); |
4074 } | 4162 } |
4075 if (_json.containsKey("kind")) { | 4163 if (_json.containsKey("kind")) { |
4076 kind = _json["kind"]; | 4164 kind = _json["kind"]; |
4077 } | 4165 } |
4078 } | 4166 } |
4079 | 4167 |
4080 core.Map<core.String, core.Object> toJson() { | 4168 core.Map<core.String, core.Object> toJson() { |
4081 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4169 final core.Map<core.String, core.Object> _json = |
| 4170 new core.Map<core.String, core.Object>(); |
4082 if (items != null) { | 4171 if (items != null) { |
4083 _json["items"] = items.map((value) => (value).toJson()).toList(); | 4172 _json["items"] = items.map((value) => (value).toJson()).toList(); |
4084 } | 4173 } |
4085 if (kind != null) { | 4174 if (kind != null) { |
4086 _json["kind"] = kind; | 4175 _json["kind"] = kind; |
4087 } | 4176 } |
4088 return _json; | 4177 return _json; |
4089 } | 4178 } |
4090 } | 4179 } |
4091 | 4180 |
4092 class ConcurrentAccessRestriction { | 4181 class ConcurrentAccessRestriction { |
4093 /** Whether access is granted for this (user, device, volume). */ | 4182 /// Whether access is granted for this (user, device, volume). |
4094 core.bool deviceAllowed; | 4183 core.bool deviceAllowed; |
4095 /** Resource type. */ | 4184 |
| 4185 /// Resource type. |
4096 core.String kind; | 4186 core.String kind; |
4097 /** The maximum number of concurrent access licenses for this volume. */ | 4187 |
| 4188 /// The maximum number of concurrent access licenses for this volume. |
4098 core.int maxConcurrentDevices; | 4189 core.int maxConcurrentDevices; |
4099 /** Error/warning message. */ | 4190 |
| 4191 /// Error/warning message. |
4100 core.String message; | 4192 core.String message; |
4101 /** | 4193 |
4102 * Client nonce for verification. Download access and client-validation only. | 4194 /// Client nonce for verification. Download access and client-validation |
4103 */ | 4195 /// only. |
4104 core.String nonce; | 4196 core.String nonce; |
4105 /** Error/warning reason code. */ | 4197 |
| 4198 /// Error/warning reason code. |
4106 core.String reasonCode; | 4199 core.String reasonCode; |
4107 /** Whether this volume has any concurrent access restrictions. */ | 4200 |
| 4201 /// Whether this volume has any concurrent access restrictions. |
4108 core.bool restricted; | 4202 core.bool restricted; |
4109 /** Response signature. */ | 4203 |
| 4204 /// Response signature. |
4110 core.String signature; | 4205 core.String signature; |
4111 /** | 4206 |
4112 * Client app identifier for verification. Download access and | 4207 /// Client app identifier for verification. Download access and |
4113 * client-validation only. | 4208 /// client-validation only. |
4114 */ | |
4115 core.String source; | 4209 core.String source; |
4116 /** Time in seconds for license auto-expiration. */ | 4210 |
| 4211 /// Time in seconds for license auto-expiration. |
4117 core.int timeWindowSeconds; | 4212 core.int timeWindowSeconds; |
4118 /** Identifies the volume for which this entry applies. */ | 4213 |
| 4214 /// Identifies the volume for which this entry applies. |
4119 core.String volumeId; | 4215 core.String volumeId; |
4120 | 4216 |
4121 ConcurrentAccessRestriction(); | 4217 ConcurrentAccessRestriction(); |
4122 | 4218 |
4123 ConcurrentAccessRestriction.fromJson(core.Map _json) { | 4219 ConcurrentAccessRestriction.fromJson(core.Map _json) { |
4124 if (_json.containsKey("deviceAllowed")) { | 4220 if (_json.containsKey("deviceAllowed")) { |
4125 deviceAllowed = _json["deviceAllowed"]; | 4221 deviceAllowed = _json["deviceAllowed"]; |
4126 } | 4222 } |
4127 if (_json.containsKey("kind")) { | 4223 if (_json.containsKey("kind")) { |
4128 kind = _json["kind"]; | 4224 kind = _json["kind"]; |
(...skipping 21 matching lines...) Expand all Loading... |
4150 } | 4246 } |
4151 if (_json.containsKey("timeWindowSeconds")) { | 4247 if (_json.containsKey("timeWindowSeconds")) { |
4152 timeWindowSeconds = _json["timeWindowSeconds"]; | 4248 timeWindowSeconds = _json["timeWindowSeconds"]; |
4153 } | 4249 } |
4154 if (_json.containsKey("volumeId")) { | 4250 if (_json.containsKey("volumeId")) { |
4155 volumeId = _json["volumeId"]; | 4251 volumeId = _json["volumeId"]; |
4156 } | 4252 } |
4157 } | 4253 } |
4158 | 4254 |
4159 core.Map<core.String, core.Object> toJson() { | 4255 core.Map<core.String, core.Object> toJson() { |
4160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4256 final core.Map<core.String, core.Object> _json = |
| 4257 new core.Map<core.String, core.Object>(); |
4161 if (deviceAllowed != null) { | 4258 if (deviceAllowed != null) { |
4162 _json["deviceAllowed"] = deviceAllowed; | 4259 _json["deviceAllowed"] = deviceAllowed; |
4163 } | 4260 } |
4164 if (kind != null) { | 4261 if (kind != null) { |
4165 _json["kind"] = kind; | 4262 _json["kind"] = kind; |
4166 } | 4263 } |
4167 if (maxConcurrentDevices != null) { | 4264 if (maxConcurrentDevices != null) { |
4168 _json["maxConcurrentDevices"] = maxConcurrentDevices; | 4265 _json["maxConcurrentDevices"] = maxConcurrentDevices; |
4169 } | 4266 } |
4170 if (message != null) { | 4267 if (message != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
4189 _json["timeWindowSeconds"] = timeWindowSeconds; | 4286 _json["timeWindowSeconds"] = timeWindowSeconds; |
4190 } | 4287 } |
4191 if (volumeId != null) { | 4288 if (volumeId != null) { |
4192 _json["volumeId"] = volumeId; | 4289 _json["volumeId"] = volumeId; |
4193 } | 4290 } |
4194 return _json; | 4291 return _json; |
4195 } | 4292 } |
4196 } | 4293 } |
4197 | 4294 |
4198 class DictlayerdataCommon { | 4295 class DictlayerdataCommon { |
4199 /** | 4296 /// The display title and localized canonical name to use when searching for |
4200 * The display title and localized canonical name to use when searching for | 4297 /// this entity on Google search. |
4201 * this entity on Google search. | |
4202 */ | |
4203 core.String title; | 4298 core.String title; |
4204 | 4299 |
4205 DictlayerdataCommon(); | 4300 DictlayerdataCommon(); |
4206 | 4301 |
4207 DictlayerdataCommon.fromJson(core.Map _json) { | 4302 DictlayerdataCommon.fromJson(core.Map _json) { |
4208 if (_json.containsKey("title")) { | 4303 if (_json.containsKey("title")) { |
4209 title = _json["title"]; | 4304 title = _json["title"]; |
4210 } | 4305 } |
4211 } | 4306 } |
4212 | 4307 |
4213 core.Map<core.String, core.Object> toJson() { | 4308 core.Map<core.String, core.Object> toJson() { |
4214 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4309 final core.Map<core.String, core.Object> _json = |
| 4310 new core.Map<core.String, core.Object>(); |
4215 if (title != null) { | 4311 if (title != null) { |
4216 _json["title"] = title; | 4312 _json["title"] = title; |
4217 } | 4313 } |
4218 return _json; | 4314 return _json; |
4219 } | 4315 } |
4220 } | 4316 } |
4221 | 4317 |
4222 /** The source, url and attribution for this dictionary data. */ | 4318 /// The source, url and attribution for this dictionary data. |
4223 class DictlayerdataDictSource { | 4319 class DictlayerdataDictSource { |
4224 core.String attribution; | 4320 core.String attribution; |
4225 core.String url; | 4321 core.String url; |
4226 | 4322 |
4227 DictlayerdataDictSource(); | 4323 DictlayerdataDictSource(); |
4228 | 4324 |
4229 DictlayerdataDictSource.fromJson(core.Map _json) { | 4325 DictlayerdataDictSource.fromJson(core.Map _json) { |
4230 if (_json.containsKey("attribution")) { | 4326 if (_json.containsKey("attribution")) { |
4231 attribution = _json["attribution"]; | 4327 attribution = _json["attribution"]; |
4232 } | 4328 } |
4233 if (_json.containsKey("url")) { | 4329 if (_json.containsKey("url")) { |
4234 url = _json["url"]; | 4330 url = _json["url"]; |
4235 } | 4331 } |
4236 } | 4332 } |
4237 | 4333 |
4238 core.Map<core.String, core.Object> toJson() { | 4334 core.Map<core.String, core.Object> toJson() { |
4239 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4335 final core.Map<core.String, core.Object> _json = |
| 4336 new core.Map<core.String, core.Object>(); |
4240 if (attribution != null) { | 4337 if (attribution != null) { |
4241 _json["attribution"] = attribution; | 4338 _json["attribution"] = attribution; |
4242 } | 4339 } |
4243 if (url != null) { | 4340 if (url != null) { |
4244 _json["url"] = url; | 4341 _json["url"] = url; |
4245 } | 4342 } |
4246 return _json; | 4343 return _json; |
4247 } | 4344 } |
4248 } | 4345 } |
4249 | 4346 |
4250 class DictlayerdataDictWordsDerivativesSource { | 4347 class DictlayerdataDictWordsDerivativesSource { |
4251 core.String attribution; | 4348 core.String attribution; |
4252 core.String url; | 4349 core.String url; |
4253 | 4350 |
4254 DictlayerdataDictWordsDerivativesSource(); | 4351 DictlayerdataDictWordsDerivativesSource(); |
4255 | 4352 |
4256 DictlayerdataDictWordsDerivativesSource.fromJson(core.Map _json) { | 4353 DictlayerdataDictWordsDerivativesSource.fromJson(core.Map _json) { |
4257 if (_json.containsKey("attribution")) { | 4354 if (_json.containsKey("attribution")) { |
4258 attribution = _json["attribution"]; | 4355 attribution = _json["attribution"]; |
4259 } | 4356 } |
4260 if (_json.containsKey("url")) { | 4357 if (_json.containsKey("url")) { |
4261 url = _json["url"]; | 4358 url = _json["url"]; |
4262 } | 4359 } |
4263 } | 4360 } |
4264 | 4361 |
4265 core.Map<core.String, core.Object> toJson() { | 4362 core.Map<core.String, core.Object> toJson() { |
4266 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4363 final core.Map<core.String, core.Object> _json = |
| 4364 new core.Map<core.String, core.Object>(); |
4267 if (attribution != null) { | 4365 if (attribution != null) { |
4268 _json["attribution"] = attribution; | 4366 _json["attribution"] = attribution; |
4269 } | 4367 } |
4270 if (url != null) { | 4368 if (url != null) { |
4271 _json["url"] = url; | 4369 _json["url"] = url; |
4272 } | 4370 } |
4273 return _json; | 4371 return _json; |
4274 } | 4372 } |
4275 } | 4373 } |
4276 | 4374 |
4277 class DictlayerdataDictWordsDerivatives { | 4375 class DictlayerdataDictWordsDerivatives { |
4278 DictlayerdataDictWordsDerivativesSource source; | 4376 DictlayerdataDictWordsDerivativesSource source; |
4279 core.String text; | 4377 core.String text; |
4280 | 4378 |
4281 DictlayerdataDictWordsDerivatives(); | 4379 DictlayerdataDictWordsDerivatives(); |
4282 | 4380 |
4283 DictlayerdataDictWordsDerivatives.fromJson(core.Map _json) { | 4381 DictlayerdataDictWordsDerivatives.fromJson(core.Map _json) { |
4284 if (_json.containsKey("source")) { | 4382 if (_json.containsKey("source")) { |
4285 source = new DictlayerdataDictWordsDerivativesSource.fromJson(_json["sourc
e"]); | 4383 source = |
| 4384 new DictlayerdataDictWordsDerivativesSource.fromJson(_json["source"]); |
4286 } | 4385 } |
4287 if (_json.containsKey("text")) { | 4386 if (_json.containsKey("text")) { |
4288 text = _json["text"]; | 4387 text = _json["text"]; |
4289 } | 4388 } |
4290 } | 4389 } |
4291 | 4390 |
4292 core.Map<core.String, core.Object> toJson() { | 4391 core.Map<core.String, core.Object> toJson() { |
4293 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4392 final core.Map<core.String, core.Object> _json = |
| 4393 new core.Map<core.String, core.Object>(); |
4294 if (source != null) { | 4394 if (source != null) { |
4295 _json["source"] = (source).toJson(); | 4395 _json["source"] = (source).toJson(); |
4296 } | 4396 } |
4297 if (text != null) { | 4397 if (text != null) { |
4298 _json["text"] = text; | 4398 _json["text"] = text; |
4299 } | 4399 } |
4300 return _json; | 4400 return _json; |
4301 } | 4401 } |
4302 } | 4402 } |
4303 | 4403 |
4304 class DictlayerdataDictWordsExamplesSource { | 4404 class DictlayerdataDictWordsExamplesSource { |
4305 core.String attribution; | 4405 core.String attribution; |
4306 core.String url; | 4406 core.String url; |
4307 | 4407 |
4308 DictlayerdataDictWordsExamplesSource(); | 4408 DictlayerdataDictWordsExamplesSource(); |
4309 | 4409 |
4310 DictlayerdataDictWordsExamplesSource.fromJson(core.Map _json) { | 4410 DictlayerdataDictWordsExamplesSource.fromJson(core.Map _json) { |
4311 if (_json.containsKey("attribution")) { | 4411 if (_json.containsKey("attribution")) { |
4312 attribution = _json["attribution"]; | 4412 attribution = _json["attribution"]; |
4313 } | 4413 } |
4314 if (_json.containsKey("url")) { | 4414 if (_json.containsKey("url")) { |
4315 url = _json["url"]; | 4415 url = _json["url"]; |
4316 } | 4416 } |
4317 } | 4417 } |
4318 | 4418 |
4319 core.Map<core.String, core.Object> toJson() { | 4419 core.Map<core.String, core.Object> toJson() { |
4320 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4420 final core.Map<core.String, core.Object> _json = |
| 4421 new core.Map<core.String, core.Object>(); |
4321 if (attribution != null) { | 4422 if (attribution != null) { |
4322 _json["attribution"] = attribution; | 4423 _json["attribution"] = attribution; |
4323 } | 4424 } |
4324 if (url != null) { | 4425 if (url != null) { |
4325 _json["url"] = url; | 4426 _json["url"] = url; |
4326 } | 4427 } |
4327 return _json; | 4428 return _json; |
4328 } | 4429 } |
4329 } | 4430 } |
4330 | 4431 |
4331 class DictlayerdataDictWordsExamples { | 4432 class DictlayerdataDictWordsExamples { |
4332 DictlayerdataDictWordsExamplesSource source; | 4433 DictlayerdataDictWordsExamplesSource source; |
4333 core.String text; | 4434 core.String text; |
4334 | 4435 |
4335 DictlayerdataDictWordsExamples(); | 4436 DictlayerdataDictWordsExamples(); |
4336 | 4437 |
4337 DictlayerdataDictWordsExamples.fromJson(core.Map _json) { | 4438 DictlayerdataDictWordsExamples.fromJson(core.Map _json) { |
4338 if (_json.containsKey("source")) { | 4439 if (_json.containsKey("source")) { |
4339 source = new DictlayerdataDictWordsExamplesSource.fromJson(_json["source"]
); | 4440 source = |
| 4441 new DictlayerdataDictWordsExamplesSource.fromJson(_json["source"]); |
4340 } | 4442 } |
4341 if (_json.containsKey("text")) { | 4443 if (_json.containsKey("text")) { |
4342 text = _json["text"]; | 4444 text = _json["text"]; |
4343 } | 4445 } |
4344 } | 4446 } |
4345 | 4447 |
4346 core.Map<core.String, core.Object> toJson() { | 4448 core.Map<core.String, core.Object> toJson() { |
4347 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4449 final core.Map<core.String, core.Object> _json = |
| 4450 new core.Map<core.String, core.Object>(); |
4348 if (source != null) { | 4451 if (source != null) { |
4349 _json["source"] = (source).toJson(); | 4452 _json["source"] = (source).toJson(); |
4350 } | 4453 } |
4351 if (text != null) { | 4454 if (text != null) { |
4352 _json["text"] = text; | 4455 _json["text"] = text; |
4353 } | 4456 } |
4354 return _json; | 4457 return _json; |
4355 } | 4458 } |
4356 } | 4459 } |
4357 | 4460 |
4358 class DictlayerdataDictWordsSensesConjugations { | 4461 class DictlayerdataDictWordsSensesConjugations { |
4359 core.String type; | 4462 core.String type; |
4360 core.String value; | 4463 core.String value; |
4361 | 4464 |
4362 DictlayerdataDictWordsSensesConjugations(); | 4465 DictlayerdataDictWordsSensesConjugations(); |
4363 | 4466 |
4364 DictlayerdataDictWordsSensesConjugations.fromJson(core.Map _json) { | 4467 DictlayerdataDictWordsSensesConjugations.fromJson(core.Map _json) { |
4365 if (_json.containsKey("type")) { | 4468 if (_json.containsKey("type")) { |
4366 type = _json["type"]; | 4469 type = _json["type"]; |
4367 } | 4470 } |
4368 if (_json.containsKey("value")) { | 4471 if (_json.containsKey("value")) { |
4369 value = _json["value"]; | 4472 value = _json["value"]; |
4370 } | 4473 } |
4371 } | 4474 } |
4372 | 4475 |
4373 core.Map<core.String, core.Object> toJson() { | 4476 core.Map<core.String, core.Object> toJson() { |
4374 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4477 final core.Map<core.String, core.Object> _json = |
| 4478 new core.Map<core.String, core.Object>(); |
4375 if (type != null) { | 4479 if (type != null) { |
4376 _json["type"] = type; | 4480 _json["type"] = type; |
4377 } | 4481 } |
4378 if (value != null) { | 4482 if (value != null) { |
4379 _json["value"] = value; | 4483 _json["value"] = value; |
4380 } | 4484 } |
4381 return _json; | 4485 return _json; |
4382 } | 4486 } |
4383 } | 4487 } |
4384 | 4488 |
4385 class DictlayerdataDictWordsSensesDefinitionsExamplesSource { | 4489 class DictlayerdataDictWordsSensesDefinitionsExamplesSource { |
4386 core.String attribution; | 4490 core.String attribution; |
4387 core.String url; | 4491 core.String url; |
4388 | 4492 |
4389 DictlayerdataDictWordsSensesDefinitionsExamplesSource(); | 4493 DictlayerdataDictWordsSensesDefinitionsExamplesSource(); |
4390 | 4494 |
4391 DictlayerdataDictWordsSensesDefinitionsExamplesSource.fromJson(core.Map _json)
{ | 4495 DictlayerdataDictWordsSensesDefinitionsExamplesSource.fromJson( |
| 4496 core.Map _json) { |
4392 if (_json.containsKey("attribution")) { | 4497 if (_json.containsKey("attribution")) { |
4393 attribution = _json["attribution"]; | 4498 attribution = _json["attribution"]; |
4394 } | 4499 } |
4395 if (_json.containsKey("url")) { | 4500 if (_json.containsKey("url")) { |
4396 url = _json["url"]; | 4501 url = _json["url"]; |
4397 } | 4502 } |
4398 } | 4503 } |
4399 | 4504 |
4400 core.Map<core.String, core.Object> toJson() { | 4505 core.Map<core.String, core.Object> toJson() { |
4401 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4506 final core.Map<core.String, core.Object> _json = |
| 4507 new core.Map<core.String, core.Object>(); |
4402 if (attribution != null) { | 4508 if (attribution != null) { |
4403 _json["attribution"] = attribution; | 4509 _json["attribution"] = attribution; |
4404 } | 4510 } |
4405 if (url != null) { | 4511 if (url != null) { |
4406 _json["url"] = url; | 4512 _json["url"] = url; |
4407 } | 4513 } |
4408 return _json; | 4514 return _json; |
4409 } | 4515 } |
4410 } | 4516 } |
4411 | 4517 |
4412 class DictlayerdataDictWordsSensesDefinitionsExamples { | 4518 class DictlayerdataDictWordsSensesDefinitionsExamples { |
4413 DictlayerdataDictWordsSensesDefinitionsExamplesSource source; | 4519 DictlayerdataDictWordsSensesDefinitionsExamplesSource source; |
4414 core.String text; | 4520 core.String text; |
4415 | 4521 |
4416 DictlayerdataDictWordsSensesDefinitionsExamples(); | 4522 DictlayerdataDictWordsSensesDefinitionsExamples(); |
4417 | 4523 |
4418 DictlayerdataDictWordsSensesDefinitionsExamples.fromJson(core.Map _json) { | 4524 DictlayerdataDictWordsSensesDefinitionsExamples.fromJson(core.Map _json) { |
4419 if (_json.containsKey("source")) { | 4525 if (_json.containsKey("source")) { |
4420 source = new DictlayerdataDictWordsSensesDefinitionsExamplesSource.fromJso
n(_json["source"]); | 4526 source = |
| 4527 new DictlayerdataDictWordsSensesDefinitionsExamplesSource.fromJson( |
| 4528 _json["source"]); |
4421 } | 4529 } |
4422 if (_json.containsKey("text")) { | 4530 if (_json.containsKey("text")) { |
4423 text = _json["text"]; | 4531 text = _json["text"]; |
4424 } | 4532 } |
4425 } | 4533 } |
4426 | 4534 |
4427 core.Map<core.String, core.Object> toJson() { | 4535 core.Map<core.String, core.Object> toJson() { |
4428 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4536 final core.Map<core.String, core.Object> _json = |
| 4537 new core.Map<core.String, core.Object>(); |
4429 if (source != null) { | 4538 if (source != null) { |
4430 _json["source"] = (source).toJson(); | 4539 _json["source"] = (source).toJson(); |
4431 } | 4540 } |
4432 if (text != null) { | 4541 if (text != null) { |
4433 _json["text"] = text; | 4542 _json["text"] = text; |
4434 } | 4543 } |
4435 return _json; | 4544 return _json; |
4436 } | 4545 } |
4437 } | 4546 } |
4438 | 4547 |
4439 class DictlayerdataDictWordsSensesDefinitions { | 4548 class DictlayerdataDictWordsSensesDefinitions { |
4440 core.String definition; | 4549 core.String definition; |
4441 core.List<DictlayerdataDictWordsSensesDefinitionsExamples> examples; | 4550 core.List<DictlayerdataDictWordsSensesDefinitionsExamples> examples; |
4442 | 4551 |
4443 DictlayerdataDictWordsSensesDefinitions(); | 4552 DictlayerdataDictWordsSensesDefinitions(); |
4444 | 4553 |
4445 DictlayerdataDictWordsSensesDefinitions.fromJson(core.Map _json) { | 4554 DictlayerdataDictWordsSensesDefinitions.fromJson(core.Map _json) { |
4446 if (_json.containsKey("definition")) { | 4555 if (_json.containsKey("definition")) { |
4447 definition = _json["definition"]; | 4556 definition = _json["definition"]; |
4448 } | 4557 } |
4449 if (_json.containsKey("examples")) { | 4558 if (_json.containsKey("examples")) { |
4450 examples = _json["examples"].map((value) => new DictlayerdataDictWordsSens
esDefinitionsExamples.fromJson(value)).toList(); | 4559 examples = _json["examples"] |
| 4560 .map((value) => |
| 4561 new DictlayerdataDictWordsSensesDefinitionsExamples.fromJson( |
| 4562 value)) |
| 4563 .toList(); |
4451 } | 4564 } |
4452 } | 4565 } |
4453 | 4566 |
4454 core.Map<core.String, core.Object> toJson() { | 4567 core.Map<core.String, core.Object> toJson() { |
4455 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4568 final core.Map<core.String, core.Object> _json = |
| 4569 new core.Map<core.String, core.Object>(); |
4456 if (definition != null) { | 4570 if (definition != null) { |
4457 _json["definition"] = definition; | 4571 _json["definition"] = definition; |
4458 } | 4572 } |
4459 if (examples != null) { | 4573 if (examples != null) { |
4460 _json["examples"] = examples.map((value) => (value).toJson()).toList(); | 4574 _json["examples"] = examples.map((value) => (value).toJson()).toList(); |
4461 } | 4575 } |
4462 return _json; | 4576 return _json; |
4463 } | 4577 } |
4464 } | 4578 } |
4465 | 4579 |
4466 class DictlayerdataDictWordsSensesSource { | 4580 class DictlayerdataDictWordsSensesSource { |
4467 core.String attribution; | 4581 core.String attribution; |
4468 core.String url; | 4582 core.String url; |
4469 | 4583 |
4470 DictlayerdataDictWordsSensesSource(); | 4584 DictlayerdataDictWordsSensesSource(); |
4471 | 4585 |
4472 DictlayerdataDictWordsSensesSource.fromJson(core.Map _json) { | 4586 DictlayerdataDictWordsSensesSource.fromJson(core.Map _json) { |
4473 if (_json.containsKey("attribution")) { | 4587 if (_json.containsKey("attribution")) { |
4474 attribution = _json["attribution"]; | 4588 attribution = _json["attribution"]; |
4475 } | 4589 } |
4476 if (_json.containsKey("url")) { | 4590 if (_json.containsKey("url")) { |
4477 url = _json["url"]; | 4591 url = _json["url"]; |
4478 } | 4592 } |
4479 } | 4593 } |
4480 | 4594 |
4481 core.Map<core.String, core.Object> toJson() { | 4595 core.Map<core.String, core.Object> toJson() { |
4482 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4596 final core.Map<core.String, core.Object> _json = |
| 4597 new core.Map<core.String, core.Object>(); |
4483 if (attribution != null) { | 4598 if (attribution != null) { |
4484 _json["attribution"] = attribution; | 4599 _json["attribution"] = attribution; |
4485 } | 4600 } |
4486 if (url != null) { | 4601 if (url != null) { |
4487 _json["url"] = url; | 4602 _json["url"] = url; |
4488 } | 4603 } |
4489 return _json; | 4604 return _json; |
4490 } | 4605 } |
4491 } | 4606 } |
4492 | 4607 |
4493 class DictlayerdataDictWordsSensesSynonymsSource { | 4608 class DictlayerdataDictWordsSensesSynonymsSource { |
4494 core.String attribution; | 4609 core.String attribution; |
4495 core.String url; | 4610 core.String url; |
4496 | 4611 |
4497 DictlayerdataDictWordsSensesSynonymsSource(); | 4612 DictlayerdataDictWordsSensesSynonymsSource(); |
4498 | 4613 |
4499 DictlayerdataDictWordsSensesSynonymsSource.fromJson(core.Map _json) { | 4614 DictlayerdataDictWordsSensesSynonymsSource.fromJson(core.Map _json) { |
4500 if (_json.containsKey("attribution")) { | 4615 if (_json.containsKey("attribution")) { |
4501 attribution = _json["attribution"]; | 4616 attribution = _json["attribution"]; |
4502 } | 4617 } |
4503 if (_json.containsKey("url")) { | 4618 if (_json.containsKey("url")) { |
4504 url = _json["url"]; | 4619 url = _json["url"]; |
4505 } | 4620 } |
4506 } | 4621 } |
4507 | 4622 |
4508 core.Map<core.String, core.Object> toJson() { | 4623 core.Map<core.String, core.Object> toJson() { |
4509 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4624 final core.Map<core.String, core.Object> _json = |
| 4625 new core.Map<core.String, core.Object>(); |
4510 if (attribution != null) { | 4626 if (attribution != null) { |
4511 _json["attribution"] = attribution; | 4627 _json["attribution"] = attribution; |
4512 } | 4628 } |
4513 if (url != null) { | 4629 if (url != null) { |
4514 _json["url"] = url; | 4630 _json["url"] = url; |
4515 } | 4631 } |
4516 return _json; | 4632 return _json; |
4517 } | 4633 } |
4518 } | 4634 } |
4519 | 4635 |
4520 class DictlayerdataDictWordsSensesSynonyms { | 4636 class DictlayerdataDictWordsSensesSynonyms { |
4521 DictlayerdataDictWordsSensesSynonymsSource source; | 4637 DictlayerdataDictWordsSensesSynonymsSource source; |
4522 core.String text; | 4638 core.String text; |
4523 | 4639 |
4524 DictlayerdataDictWordsSensesSynonyms(); | 4640 DictlayerdataDictWordsSensesSynonyms(); |
4525 | 4641 |
4526 DictlayerdataDictWordsSensesSynonyms.fromJson(core.Map _json) { | 4642 DictlayerdataDictWordsSensesSynonyms.fromJson(core.Map _json) { |
4527 if (_json.containsKey("source")) { | 4643 if (_json.containsKey("source")) { |
4528 source = new DictlayerdataDictWordsSensesSynonymsSource.fromJson(_json["so
urce"]); | 4644 source = new DictlayerdataDictWordsSensesSynonymsSource.fromJson( |
| 4645 _json["source"]); |
4529 } | 4646 } |
4530 if (_json.containsKey("text")) { | 4647 if (_json.containsKey("text")) { |
4531 text = _json["text"]; | 4648 text = _json["text"]; |
4532 } | 4649 } |
4533 } | 4650 } |
4534 | 4651 |
4535 core.Map<core.String, core.Object> toJson() { | 4652 core.Map<core.String, core.Object> toJson() { |
4536 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4653 final core.Map<core.String, core.Object> _json = |
| 4654 new core.Map<core.String, core.Object>(); |
4537 if (source != null) { | 4655 if (source != null) { |
4538 _json["source"] = (source).toJson(); | 4656 _json["source"] = (source).toJson(); |
4539 } | 4657 } |
4540 if (text != null) { | 4658 if (text != null) { |
4541 _json["text"] = text; | 4659 _json["text"] = text; |
4542 } | 4660 } |
4543 return _json; | 4661 return _json; |
4544 } | 4662 } |
4545 } | 4663 } |
4546 | 4664 |
4547 class DictlayerdataDictWordsSenses { | 4665 class DictlayerdataDictWordsSenses { |
4548 core.List<DictlayerdataDictWordsSensesConjugations> conjugations; | 4666 core.List<DictlayerdataDictWordsSensesConjugations> conjugations; |
4549 core.List<DictlayerdataDictWordsSensesDefinitions> definitions; | 4667 core.List<DictlayerdataDictWordsSensesDefinitions> definitions; |
4550 core.String partOfSpeech; | 4668 core.String partOfSpeech; |
4551 core.String pronunciation; | 4669 core.String pronunciation; |
4552 core.String pronunciationUrl; | 4670 core.String pronunciationUrl; |
4553 DictlayerdataDictWordsSensesSource source; | 4671 DictlayerdataDictWordsSensesSource source; |
4554 core.String syllabification; | 4672 core.String syllabification; |
4555 core.List<DictlayerdataDictWordsSensesSynonyms> synonyms; | 4673 core.List<DictlayerdataDictWordsSensesSynonyms> synonyms; |
4556 | 4674 |
4557 DictlayerdataDictWordsSenses(); | 4675 DictlayerdataDictWordsSenses(); |
4558 | 4676 |
4559 DictlayerdataDictWordsSenses.fromJson(core.Map _json) { | 4677 DictlayerdataDictWordsSenses.fromJson(core.Map _json) { |
4560 if (_json.containsKey("conjugations")) { | 4678 if (_json.containsKey("conjugations")) { |
4561 conjugations = _json["conjugations"].map((value) => new DictlayerdataDictW
ordsSensesConjugations.fromJson(value)).toList(); | 4679 conjugations = _json["conjugations"] |
| 4680 .map((value) => |
| 4681 new DictlayerdataDictWordsSensesConjugations.fromJson(value)) |
| 4682 .toList(); |
4562 } | 4683 } |
4563 if (_json.containsKey("definitions")) { | 4684 if (_json.containsKey("definitions")) { |
4564 definitions = _json["definitions"].map((value) => new DictlayerdataDictWor
dsSensesDefinitions.fromJson(value)).toList(); | 4685 definitions = _json["definitions"] |
| 4686 .map((value) => |
| 4687 new DictlayerdataDictWordsSensesDefinitions.fromJson(value)) |
| 4688 .toList(); |
4565 } | 4689 } |
4566 if (_json.containsKey("partOfSpeech")) { | 4690 if (_json.containsKey("partOfSpeech")) { |
4567 partOfSpeech = _json["partOfSpeech"]; | 4691 partOfSpeech = _json["partOfSpeech"]; |
4568 } | 4692 } |
4569 if (_json.containsKey("pronunciation")) { | 4693 if (_json.containsKey("pronunciation")) { |
4570 pronunciation = _json["pronunciation"]; | 4694 pronunciation = _json["pronunciation"]; |
4571 } | 4695 } |
4572 if (_json.containsKey("pronunciationUrl")) { | 4696 if (_json.containsKey("pronunciationUrl")) { |
4573 pronunciationUrl = _json["pronunciationUrl"]; | 4697 pronunciationUrl = _json["pronunciationUrl"]; |
4574 } | 4698 } |
4575 if (_json.containsKey("source")) { | 4699 if (_json.containsKey("source")) { |
4576 source = new DictlayerdataDictWordsSensesSource.fromJson(_json["source"]); | 4700 source = new DictlayerdataDictWordsSensesSource.fromJson(_json["source"]); |
4577 } | 4701 } |
4578 if (_json.containsKey("syllabification")) { | 4702 if (_json.containsKey("syllabification")) { |
4579 syllabification = _json["syllabification"]; | 4703 syllabification = _json["syllabification"]; |
4580 } | 4704 } |
4581 if (_json.containsKey("synonyms")) { | 4705 if (_json.containsKey("synonyms")) { |
4582 synonyms = _json["synonyms"].map((value) => new DictlayerdataDictWordsSens
esSynonyms.fromJson(value)).toList(); | 4706 synonyms = _json["synonyms"] |
| 4707 .map((value) => |
| 4708 new DictlayerdataDictWordsSensesSynonyms.fromJson(value)) |
| 4709 .toList(); |
4583 } | 4710 } |
4584 } | 4711 } |
4585 | 4712 |
4586 core.Map<core.String, core.Object> toJson() { | 4713 core.Map<core.String, core.Object> toJson() { |
4587 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4714 final core.Map<core.String, core.Object> _json = |
| 4715 new core.Map<core.String, core.Object>(); |
4588 if (conjugations != null) { | 4716 if (conjugations != null) { |
4589 _json["conjugations"] = conjugations.map((value) => (value).toJson()).toLi
st(); | 4717 _json["conjugations"] = |
| 4718 conjugations.map((value) => (value).toJson()).toList(); |
4590 } | 4719 } |
4591 if (definitions != null) { | 4720 if (definitions != null) { |
4592 _json["definitions"] = definitions.map((value) => (value).toJson()).toList
(); | 4721 _json["definitions"] = |
| 4722 definitions.map((value) => (value).toJson()).toList(); |
4593 } | 4723 } |
4594 if (partOfSpeech != null) { | 4724 if (partOfSpeech != null) { |
4595 _json["partOfSpeech"] = partOfSpeech; | 4725 _json["partOfSpeech"] = partOfSpeech; |
4596 } | 4726 } |
4597 if (pronunciation != null) { | 4727 if (pronunciation != null) { |
4598 _json["pronunciation"] = pronunciation; | 4728 _json["pronunciation"] = pronunciation; |
4599 } | 4729 } |
4600 if (pronunciationUrl != null) { | 4730 if (pronunciationUrl != null) { |
4601 _json["pronunciationUrl"] = pronunciationUrl; | 4731 _json["pronunciationUrl"] = pronunciationUrl; |
4602 } | 4732 } |
4603 if (source != null) { | 4733 if (source != null) { |
4604 _json["source"] = (source).toJson(); | 4734 _json["source"] = (source).toJson(); |
4605 } | 4735 } |
4606 if (syllabification != null) { | 4736 if (syllabification != null) { |
4607 _json["syllabification"] = syllabification; | 4737 _json["syllabification"] = syllabification; |
4608 } | 4738 } |
4609 if (synonyms != null) { | 4739 if (synonyms != null) { |
4610 _json["synonyms"] = synonyms.map((value) => (value).toJson()).toList(); | 4740 _json["synonyms"] = synonyms.map((value) => (value).toJson()).toList(); |
4611 } | 4741 } |
4612 return _json; | 4742 return _json; |
4613 } | 4743 } |
4614 } | 4744 } |
4615 | 4745 |
4616 /** | 4746 /// The words with different meanings but not related words, e.g. "go" (game) |
4617 * The words with different meanings but not related words, e.g. "go" (game) and | 4747 /// and "go" (verb). |
4618 * "go" (verb). | |
4619 */ | |
4620 class DictlayerdataDictWordsSource { | 4748 class DictlayerdataDictWordsSource { |
4621 core.String attribution; | 4749 core.String attribution; |
4622 core.String url; | 4750 core.String url; |
4623 | 4751 |
4624 DictlayerdataDictWordsSource(); | 4752 DictlayerdataDictWordsSource(); |
4625 | 4753 |
4626 DictlayerdataDictWordsSource.fromJson(core.Map _json) { | 4754 DictlayerdataDictWordsSource.fromJson(core.Map _json) { |
4627 if (_json.containsKey("attribution")) { | 4755 if (_json.containsKey("attribution")) { |
4628 attribution = _json["attribution"]; | 4756 attribution = _json["attribution"]; |
4629 } | 4757 } |
4630 if (_json.containsKey("url")) { | 4758 if (_json.containsKey("url")) { |
4631 url = _json["url"]; | 4759 url = _json["url"]; |
4632 } | 4760 } |
4633 } | 4761 } |
4634 | 4762 |
4635 core.Map<core.String, core.Object> toJson() { | 4763 core.Map<core.String, core.Object> toJson() { |
4636 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4764 final core.Map<core.String, core.Object> _json = |
| 4765 new core.Map<core.String, core.Object>(); |
4637 if (attribution != null) { | 4766 if (attribution != null) { |
4638 _json["attribution"] = attribution; | 4767 _json["attribution"] = attribution; |
4639 } | 4768 } |
4640 if (url != null) { | 4769 if (url != null) { |
4641 _json["url"] = url; | 4770 _json["url"] = url; |
4642 } | 4771 } |
4643 return _json; | 4772 return _json; |
4644 } | 4773 } |
4645 } | 4774 } |
4646 | 4775 |
4647 class DictlayerdataDictWords { | 4776 class DictlayerdataDictWords { |
4648 core.List<DictlayerdataDictWordsDerivatives> derivatives; | 4777 core.List<DictlayerdataDictWordsDerivatives> derivatives; |
4649 core.List<DictlayerdataDictWordsExamples> examples; | 4778 core.List<DictlayerdataDictWordsExamples> examples; |
4650 core.List<DictlayerdataDictWordsSenses> senses; | 4779 core.List<DictlayerdataDictWordsSenses> senses; |
4651 /** | 4780 |
4652 * The words with different meanings but not related words, e.g. "go" (game) | 4781 /// The words with different meanings but not related words, e.g. "go" (game) |
4653 * and "go" (verb). | 4782 /// and "go" (verb). |
4654 */ | |
4655 DictlayerdataDictWordsSource source; | 4783 DictlayerdataDictWordsSource source; |
4656 | 4784 |
4657 DictlayerdataDictWords(); | 4785 DictlayerdataDictWords(); |
4658 | 4786 |
4659 DictlayerdataDictWords.fromJson(core.Map _json) { | 4787 DictlayerdataDictWords.fromJson(core.Map _json) { |
4660 if (_json.containsKey("derivatives")) { | 4788 if (_json.containsKey("derivatives")) { |
4661 derivatives = _json["derivatives"].map((value) => new DictlayerdataDictWor
dsDerivatives.fromJson(value)).toList(); | 4789 derivatives = _json["derivatives"] |
| 4790 .map((value) => new DictlayerdataDictWordsDerivatives.fromJson(value)) |
| 4791 .toList(); |
4662 } | 4792 } |
4663 if (_json.containsKey("examples")) { | 4793 if (_json.containsKey("examples")) { |
4664 examples = _json["examples"].map((value) => new DictlayerdataDictWordsExam
ples.fromJson(value)).toList(); | 4794 examples = _json["examples"] |
| 4795 .map((value) => new DictlayerdataDictWordsExamples.fromJson(value)) |
| 4796 .toList(); |
4665 } | 4797 } |
4666 if (_json.containsKey("senses")) { | 4798 if (_json.containsKey("senses")) { |
4667 senses = _json["senses"].map((value) => new DictlayerdataDictWordsSenses.f
romJson(value)).toList(); | 4799 senses = _json["senses"] |
| 4800 .map((value) => new DictlayerdataDictWordsSenses.fromJson(value)) |
| 4801 .toList(); |
4668 } | 4802 } |
4669 if (_json.containsKey("source")) { | 4803 if (_json.containsKey("source")) { |
4670 source = new DictlayerdataDictWordsSource.fromJson(_json["source"]); | 4804 source = new DictlayerdataDictWordsSource.fromJson(_json["source"]); |
4671 } | 4805 } |
4672 } | 4806 } |
4673 | 4807 |
4674 core.Map<core.String, core.Object> toJson() { | 4808 core.Map<core.String, core.Object> toJson() { |
4675 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4809 final core.Map<core.String, core.Object> _json = |
| 4810 new core.Map<core.String, core.Object>(); |
4676 if (derivatives != null) { | 4811 if (derivatives != null) { |
4677 _json["derivatives"] = derivatives.map((value) => (value).toJson()).toList
(); | 4812 _json["derivatives"] = |
| 4813 derivatives.map((value) => (value).toJson()).toList(); |
4678 } | 4814 } |
4679 if (examples != null) { | 4815 if (examples != null) { |
4680 _json["examples"] = examples.map((value) => (value).toJson()).toList(); | 4816 _json["examples"] = examples.map((value) => (value).toJson()).toList(); |
4681 } | 4817 } |
4682 if (senses != null) { | 4818 if (senses != null) { |
4683 _json["senses"] = senses.map((value) => (value).toJson()).toList(); | 4819 _json["senses"] = senses.map((value) => (value).toJson()).toList(); |
4684 } | 4820 } |
4685 if (source != null) { | 4821 if (source != null) { |
4686 _json["source"] = (source).toJson(); | 4822 _json["source"] = (source).toJson(); |
4687 } | 4823 } |
4688 return _json; | 4824 return _json; |
4689 } | 4825 } |
4690 } | 4826 } |
4691 | 4827 |
4692 class DictlayerdataDict { | 4828 class DictlayerdataDict { |
4693 /** The source, url and attribution for this dictionary data. */ | 4829 /// The source, url and attribution for this dictionary data. |
4694 DictlayerdataDictSource source; | 4830 DictlayerdataDictSource source; |
4695 core.List<DictlayerdataDictWords> words; | 4831 core.List<DictlayerdataDictWords> words; |
4696 | 4832 |
4697 DictlayerdataDict(); | 4833 DictlayerdataDict(); |
4698 | 4834 |
4699 DictlayerdataDict.fromJson(core.Map _json) { | 4835 DictlayerdataDict.fromJson(core.Map _json) { |
4700 if (_json.containsKey("source")) { | 4836 if (_json.containsKey("source")) { |
4701 source = new DictlayerdataDictSource.fromJson(_json["source"]); | 4837 source = new DictlayerdataDictSource.fromJson(_json["source"]); |
4702 } | 4838 } |
4703 if (_json.containsKey("words")) { | 4839 if (_json.containsKey("words")) { |
4704 words = _json["words"].map((value) => new DictlayerdataDictWords.fromJson(
value)).toList(); | 4840 words = _json["words"] |
| 4841 .map((value) => new DictlayerdataDictWords.fromJson(value)) |
| 4842 .toList(); |
4705 } | 4843 } |
4706 } | 4844 } |
4707 | 4845 |
4708 core.Map<core.String, core.Object> toJson() { | 4846 core.Map<core.String, core.Object> toJson() { |
4709 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4847 final core.Map<core.String, core.Object> _json = |
| 4848 new core.Map<core.String, core.Object>(); |
4710 if (source != null) { | 4849 if (source != null) { |
4711 _json["source"] = (source).toJson(); | 4850 _json["source"] = (source).toJson(); |
4712 } | 4851 } |
4713 if (words != null) { | 4852 if (words != null) { |
4714 _json["words"] = words.map((value) => (value).toJson()).toList(); | 4853 _json["words"] = words.map((value) => (value).toJson()).toList(); |
4715 } | 4854 } |
4716 return _json; | 4855 return _json; |
4717 } | 4856 } |
4718 } | 4857 } |
4719 | 4858 |
(...skipping 10 matching lines...) Expand all Loading... |
4730 } | 4869 } |
4731 if (_json.containsKey("dict")) { | 4870 if (_json.containsKey("dict")) { |
4732 dict = new DictlayerdataDict.fromJson(_json["dict"]); | 4871 dict = new DictlayerdataDict.fromJson(_json["dict"]); |
4733 } | 4872 } |
4734 if (_json.containsKey("kind")) { | 4873 if (_json.containsKey("kind")) { |
4735 kind = _json["kind"]; | 4874 kind = _json["kind"]; |
4736 } | 4875 } |
4737 } | 4876 } |
4738 | 4877 |
4739 core.Map<core.String, core.Object> toJson() { | 4878 core.Map<core.String, core.Object> toJson() { |
4740 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4879 final core.Map<core.String, core.Object> _json = |
| 4880 new core.Map<core.String, core.Object>(); |
4741 if (common != null) { | 4881 if (common != null) { |
4742 _json["common"] = (common).toJson(); | 4882 _json["common"] = (common).toJson(); |
4743 } | 4883 } |
4744 if (dict != null) { | 4884 if (dict != null) { |
4745 _json["dict"] = (dict).toJson(); | 4885 _json["dict"] = (dict).toJson(); |
4746 } | 4886 } |
4747 if (kind != null) { | 4887 if (kind != null) { |
4748 _json["kind"] = kind; | 4888 _json["kind"] = kind; |
4749 } | 4889 } |
4750 return _json; | 4890 return _json; |
(...skipping 25 matching lines...) Expand all Loading... |
4776 } | 4916 } |
4777 if (_json.containsKey("moreButtonUrl")) { | 4917 if (_json.containsKey("moreButtonUrl")) { |
4778 moreButtonUrl = _json["moreButtonUrl"]; | 4918 moreButtonUrl = _json["moreButtonUrl"]; |
4779 } | 4919 } |
4780 if (_json.containsKey("textColorArgb")) { | 4920 if (_json.containsKey("textColorArgb")) { |
4781 textColorArgb = _json["textColorArgb"]; | 4921 textColorArgb = _json["textColorArgb"]; |
4782 } | 4922 } |
4783 } | 4923 } |
4784 | 4924 |
4785 core.Map<core.String, core.Object> toJson() { | 4925 core.Map<core.String, core.Object> toJson() { |
4786 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4926 final core.Map<core.String, core.Object> _json = |
| 4927 new core.Map<core.String, core.Object>(); |
4787 if (fillColorArgb != null) { | 4928 if (fillColorArgb != null) { |
4788 _json["fillColorArgb"] = fillColorArgb; | 4929 _json["fillColorArgb"] = fillColorArgb; |
4789 } | 4930 } |
4790 if (imageUrl != null) { | 4931 if (imageUrl != null) { |
4791 _json["imageUrl"] = imageUrl; | 4932 _json["imageUrl"] = imageUrl; |
4792 } | 4933 } |
4793 if (maskColorArgb != null) { | 4934 if (maskColorArgb != null) { |
4794 _json["maskColorArgb"] = maskColorArgb; | 4935 _json["maskColorArgb"] = maskColorArgb; |
4795 } | 4936 } |
4796 if (moreButtonText != null) { | 4937 if (moreButtonText != null) { |
4797 _json["moreButtonText"] = moreButtonText; | 4938 _json["moreButtonText"] = moreButtonText; |
4798 } | 4939 } |
4799 if (moreButtonUrl != null) { | 4940 if (moreButtonUrl != null) { |
4800 _json["moreButtonUrl"] = moreButtonUrl; | 4941 _json["moreButtonUrl"] = moreButtonUrl; |
4801 } | 4942 } |
4802 if (textColorArgb != null) { | 4943 if (textColorArgb != null) { |
4803 _json["textColorArgb"] = textColorArgb; | 4944 _json["textColorArgb"] = textColorArgb; |
4804 } | 4945 } |
4805 return _json; | 4946 return _json; |
4806 } | 4947 } |
4807 } | 4948 } |
4808 | 4949 |
4809 class DiscoveryclustersClusters { | 4950 class DiscoveryclustersClusters { |
4810 DiscoveryclustersClustersBannerWithContentContainer bannerWithContentContainer
; | 4951 DiscoveryclustersClustersBannerWithContentContainer |
| 4952 bannerWithContentContainer; |
4811 core.String subTitle; | 4953 core.String subTitle; |
4812 core.String title; | 4954 core.String title; |
4813 core.int totalVolumes; | 4955 core.int totalVolumes; |
4814 core.String uid; | 4956 core.String uid; |
4815 core.List<Volume> volumes; | 4957 core.List<Volume> volumes; |
4816 | 4958 |
4817 DiscoveryclustersClusters(); | 4959 DiscoveryclustersClusters(); |
4818 | 4960 |
4819 DiscoveryclustersClusters.fromJson(core.Map _json) { | 4961 DiscoveryclustersClusters.fromJson(core.Map _json) { |
4820 if (_json.containsKey("banner_with_content_container")) { | 4962 if (_json.containsKey("banner_with_content_container")) { |
4821 bannerWithContentContainer = new DiscoveryclustersClustersBannerWithConten
tContainer.fromJson(_json["banner_with_content_container"]); | 4963 bannerWithContentContainer = |
| 4964 new DiscoveryclustersClustersBannerWithContentContainer.fromJson( |
| 4965 _json["banner_with_content_container"]); |
4822 } | 4966 } |
4823 if (_json.containsKey("subTitle")) { | 4967 if (_json.containsKey("subTitle")) { |
4824 subTitle = _json["subTitle"]; | 4968 subTitle = _json["subTitle"]; |
4825 } | 4969 } |
4826 if (_json.containsKey("title")) { | 4970 if (_json.containsKey("title")) { |
4827 title = _json["title"]; | 4971 title = _json["title"]; |
4828 } | 4972 } |
4829 if (_json.containsKey("totalVolumes")) { | 4973 if (_json.containsKey("totalVolumes")) { |
4830 totalVolumes = _json["totalVolumes"]; | 4974 totalVolumes = _json["totalVolumes"]; |
4831 } | 4975 } |
4832 if (_json.containsKey("uid")) { | 4976 if (_json.containsKey("uid")) { |
4833 uid = _json["uid"]; | 4977 uid = _json["uid"]; |
4834 } | 4978 } |
4835 if (_json.containsKey("volumes")) { | 4979 if (_json.containsKey("volumes")) { |
4836 volumes = _json["volumes"].map((value) => new Volume.fromJson(value)).toLi
st(); | 4980 volumes = |
| 4981 _json["volumes"].map((value) => new Volume.fromJson(value)).toList(); |
4837 } | 4982 } |
4838 } | 4983 } |
4839 | 4984 |
4840 core.Map<core.String, core.Object> toJson() { | 4985 core.Map<core.String, core.Object> toJson() { |
4841 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 4986 final core.Map<core.String, core.Object> _json = |
| 4987 new core.Map<core.String, core.Object>(); |
4842 if (bannerWithContentContainer != null) { | 4988 if (bannerWithContentContainer != null) { |
4843 _json["banner_with_content_container"] = (bannerWithContentContainer).toJs
on(); | 4989 _json["banner_with_content_container"] = |
| 4990 (bannerWithContentContainer).toJson(); |
4844 } | 4991 } |
4845 if (subTitle != null) { | 4992 if (subTitle != null) { |
4846 _json["subTitle"] = subTitle; | 4993 _json["subTitle"] = subTitle; |
4847 } | 4994 } |
4848 if (title != null) { | 4995 if (title != null) { |
4849 _json["title"] = title; | 4996 _json["title"] = title; |
4850 } | 4997 } |
4851 if (totalVolumes != null) { | 4998 if (totalVolumes != null) { |
4852 _json["totalVolumes"] = totalVolumes; | 4999 _json["totalVolumes"] = totalVolumes; |
4853 } | 5000 } |
4854 if (uid != null) { | 5001 if (uid != null) { |
4855 _json["uid"] = uid; | 5002 _json["uid"] = uid; |
4856 } | 5003 } |
4857 if (volumes != null) { | 5004 if (volumes != null) { |
4858 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); | 5005 _json["volumes"] = volumes.map((value) => (value).toJson()).toList(); |
4859 } | 5006 } |
4860 return _json; | 5007 return _json; |
4861 } | 5008 } |
4862 } | 5009 } |
4863 | 5010 |
4864 class Discoveryclusters { | 5011 class Discoveryclusters { |
4865 core.List<DiscoveryclustersClusters> clusters; | 5012 core.List<DiscoveryclustersClusters> clusters; |
4866 /** Resorce type. */ | 5013 |
| 5014 /// Resorce type. |
4867 core.String kind; | 5015 core.String kind; |
4868 core.int totalClusters; | 5016 core.int totalClusters; |
4869 | 5017 |
4870 Discoveryclusters(); | 5018 Discoveryclusters(); |
4871 | 5019 |
4872 Discoveryclusters.fromJson(core.Map _json) { | 5020 Discoveryclusters.fromJson(core.Map _json) { |
4873 if (_json.containsKey("clusters")) { | 5021 if (_json.containsKey("clusters")) { |
4874 clusters = _json["clusters"].map((value) => new DiscoveryclustersClusters.
fromJson(value)).toList(); | 5022 clusters = _json["clusters"] |
| 5023 .map((value) => new DiscoveryclustersClusters.fromJson(value)) |
| 5024 .toList(); |
4875 } | 5025 } |
4876 if (_json.containsKey("kind")) { | 5026 if (_json.containsKey("kind")) { |
4877 kind = _json["kind"]; | 5027 kind = _json["kind"]; |
4878 } | 5028 } |
4879 if (_json.containsKey("totalClusters")) { | 5029 if (_json.containsKey("totalClusters")) { |
4880 totalClusters = _json["totalClusters"]; | 5030 totalClusters = _json["totalClusters"]; |
4881 } | 5031 } |
4882 } | 5032 } |
4883 | 5033 |
4884 core.Map<core.String, core.Object> toJson() { | 5034 core.Map<core.String, core.Object> toJson() { |
4885 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5035 final core.Map<core.String, core.Object> _json = |
| 5036 new core.Map<core.String, core.Object>(); |
4886 if (clusters != null) { | 5037 if (clusters != null) { |
4887 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); | 5038 _json["clusters"] = clusters.map((value) => (value).toJson()).toList(); |
4888 } | 5039 } |
4889 if (kind != null) { | 5040 if (kind != null) { |
4890 _json["kind"] = kind; | 5041 _json["kind"] = kind; |
4891 } | 5042 } |
4892 if (totalClusters != null) { | 5043 if (totalClusters != null) { |
4893 _json["totalClusters"] = totalClusters; | 5044 _json["totalClusters"] = totalClusters; |
4894 } | 5045 } |
4895 return _json; | 5046 return _json; |
4896 } | 5047 } |
4897 } | 5048 } |
4898 | 5049 |
4899 class DownloadAccessRestriction { | 5050 class DownloadAccessRestriction { |
4900 /** | 5051 /// If restricted, whether access is granted for this (user, device, volume). |
4901 * If restricted, whether access is granted for this (user, device, volume). | |
4902 */ | |
4903 core.bool deviceAllowed; | 5052 core.bool deviceAllowed; |
4904 /** | 5053 |
4905 * If restricted, the number of content download licenses already acquired | 5054 /// If restricted, the number of content download licenses already acquired |
4906 * (including the requesting client, if licensed). | 5055 /// (including the requesting client, if licensed). |
4907 */ | |
4908 core.int downloadsAcquired; | 5056 core.int downloadsAcquired; |
4909 /** If deviceAllowed, whether access was just acquired with this request. */ | 5057 |
| 5058 /// If deviceAllowed, whether access was just acquired with this request. |
4910 core.bool justAcquired; | 5059 core.bool justAcquired; |
4911 /** Resource type. */ | 5060 |
| 5061 /// Resource type. |
4912 core.String kind; | 5062 core.String kind; |
4913 /** | 5063 |
4914 * If restricted, the maximum number of content download licenses for this | 5064 /// If restricted, the maximum number of content download licenses for this |
4915 * volume. | 5065 /// volume. |
4916 */ | |
4917 core.int maxDownloadDevices; | 5066 core.int maxDownloadDevices; |
4918 /** Error/warning message. */ | 5067 |
| 5068 /// Error/warning message. |
4919 core.String message; | 5069 core.String message; |
4920 /** | 5070 |
4921 * Client nonce for verification. Download access and client-validation only. | 5071 /// Client nonce for verification. Download access and client-validation |
4922 */ | 5072 /// only. |
4923 core.String nonce; | 5073 core.String nonce; |
4924 /** | 5074 |
4925 * Error/warning reason code. Additional codes may be added in the future. 0 | 5075 /// Error/warning reason code. Additional codes may be added in the future. 0 |
4926 * OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 | 5076 /// OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 |
4927 * WARNING_USED_LAST_ACCESS | 5077 /// WARNING_USED_LAST_ACCESS |
4928 */ | |
4929 core.String reasonCode; | 5078 core.String reasonCode; |
4930 /** Whether this volume has any download access restrictions. */ | 5079 |
| 5080 /// Whether this volume has any download access restrictions. |
4931 core.bool restricted; | 5081 core.bool restricted; |
4932 /** Response signature. */ | 5082 |
| 5083 /// Response signature. |
4933 core.String signature; | 5084 core.String signature; |
4934 /** | 5085 |
4935 * Client app identifier for verification. Download access and | 5086 /// Client app identifier for verification. Download access and |
4936 * client-validation only. | 5087 /// client-validation only. |
4937 */ | |
4938 core.String source; | 5088 core.String source; |
4939 /** Identifies the volume for which this entry applies. */ | 5089 |
| 5090 /// Identifies the volume for which this entry applies. |
4940 core.String volumeId; | 5091 core.String volumeId; |
4941 | 5092 |
4942 DownloadAccessRestriction(); | 5093 DownloadAccessRestriction(); |
4943 | 5094 |
4944 DownloadAccessRestriction.fromJson(core.Map _json) { | 5095 DownloadAccessRestriction.fromJson(core.Map _json) { |
4945 if (_json.containsKey("deviceAllowed")) { | 5096 if (_json.containsKey("deviceAllowed")) { |
4946 deviceAllowed = _json["deviceAllowed"]; | 5097 deviceAllowed = _json["deviceAllowed"]; |
4947 } | 5098 } |
4948 if (_json.containsKey("downloadsAcquired")) { | 5099 if (_json.containsKey("downloadsAcquired")) { |
4949 downloadsAcquired = _json["downloadsAcquired"]; | 5100 downloadsAcquired = _json["downloadsAcquired"]; |
(...skipping 24 matching lines...) Expand all Loading... |
4974 } | 5125 } |
4975 if (_json.containsKey("source")) { | 5126 if (_json.containsKey("source")) { |
4976 source = _json["source"]; | 5127 source = _json["source"]; |
4977 } | 5128 } |
4978 if (_json.containsKey("volumeId")) { | 5129 if (_json.containsKey("volumeId")) { |
4979 volumeId = _json["volumeId"]; | 5130 volumeId = _json["volumeId"]; |
4980 } | 5131 } |
4981 } | 5132 } |
4982 | 5133 |
4983 core.Map<core.String, core.Object> toJson() { | 5134 core.Map<core.String, core.Object> toJson() { |
4984 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5135 final core.Map<core.String, core.Object> _json = |
| 5136 new core.Map<core.String, core.Object>(); |
4985 if (deviceAllowed != null) { | 5137 if (deviceAllowed != null) { |
4986 _json["deviceAllowed"] = deviceAllowed; | 5138 _json["deviceAllowed"] = deviceAllowed; |
4987 } | 5139 } |
4988 if (downloadsAcquired != null) { | 5140 if (downloadsAcquired != null) { |
4989 _json["downloadsAcquired"] = downloadsAcquired; | 5141 _json["downloadsAcquired"] = downloadsAcquired; |
4990 } | 5142 } |
4991 if (justAcquired != null) { | 5143 if (justAcquired != null) { |
4992 _json["justAcquired"] = justAcquired; | 5144 _json["justAcquired"] = justAcquired; |
4993 } | 5145 } |
4994 if (kind != null) { | 5146 if (kind != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
5016 _json["source"] = source; | 5168 _json["source"] = source; |
5017 } | 5169 } |
5018 if (volumeId != null) { | 5170 if (volumeId != null) { |
5019 _json["volumeId"] = volumeId; | 5171 _json["volumeId"] = volumeId; |
5020 } | 5172 } |
5021 return _json; | 5173 return _json; |
5022 } | 5174 } |
5023 } | 5175 } |
5024 | 5176 |
5025 class DownloadAccesses { | 5177 class DownloadAccesses { |
5026 /** A list of download access responses. */ | 5178 /// A list of download access responses. |
5027 core.List<DownloadAccessRestriction> downloadAccessList; | 5179 core.List<DownloadAccessRestriction> downloadAccessList; |
5028 /** Resource type. */ | 5180 |
| 5181 /// Resource type. |
5029 core.String kind; | 5182 core.String kind; |
5030 | 5183 |
5031 DownloadAccesses(); | 5184 DownloadAccesses(); |
5032 | 5185 |
5033 DownloadAccesses.fromJson(core.Map _json) { | 5186 DownloadAccesses.fromJson(core.Map _json) { |
5034 if (_json.containsKey("downloadAccessList")) { | 5187 if (_json.containsKey("downloadAccessList")) { |
5035 downloadAccessList = _json["downloadAccessList"].map((value) => new Downlo
adAccessRestriction.fromJson(value)).toList(); | 5188 downloadAccessList = _json["downloadAccessList"] |
| 5189 .map((value) => new DownloadAccessRestriction.fromJson(value)) |
| 5190 .toList(); |
5036 } | 5191 } |
5037 if (_json.containsKey("kind")) { | 5192 if (_json.containsKey("kind")) { |
5038 kind = _json["kind"]; | 5193 kind = _json["kind"]; |
5039 } | 5194 } |
5040 } | 5195 } |
5041 | 5196 |
5042 core.Map<core.String, core.Object> toJson() { | 5197 core.Map<core.String, core.Object> toJson() { |
5043 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5198 final core.Map<core.String, core.Object> _json = |
| 5199 new core.Map<core.String, core.Object>(); |
5044 if (downloadAccessList != null) { | 5200 if (downloadAccessList != null) { |
5045 _json["downloadAccessList"] = downloadAccessList.map((value) => (value).to
Json()).toList(); | 5201 _json["downloadAccessList"] = |
| 5202 downloadAccessList.map((value) => (value).toJson()).toList(); |
5046 } | 5203 } |
5047 if (kind != null) { | 5204 if (kind != null) { |
5048 _json["kind"] = kind; | 5205 _json["kind"] = kind; |
5049 } | 5206 } |
5050 return _json; | 5207 return _json; |
5051 } | 5208 } |
5052 } | 5209 } |
5053 | 5210 |
5054 class GeolayerdataCommon { | 5211 class GeolayerdataCommon { |
5055 /** The language of the information url and description. */ | 5212 /// The language of the information url and description. |
5056 core.String lang; | 5213 core.String lang; |
5057 /** The URL for the preview image information. */ | 5214 |
| 5215 /// The URL for the preview image information. |
5058 core.String previewImageUrl; | 5216 core.String previewImageUrl; |
5059 /** The description for this location. */ | 5217 |
| 5218 /// The description for this location. |
5060 core.String snippet; | 5219 core.String snippet; |
5061 /** The URL for information for this location. Ex: wikipedia link. */ | 5220 |
| 5221 /// The URL for information for this location. Ex: wikipedia link. |
5062 core.String snippetUrl; | 5222 core.String snippetUrl; |
5063 /** | 5223 |
5064 * The display title and localized canonical name to use when searching for | 5224 /// The display title and localized canonical name to use when searching for |
5065 * this entity on Google search. | 5225 /// this entity on Google search. |
5066 */ | |
5067 core.String title; | 5226 core.String title; |
5068 | 5227 |
5069 GeolayerdataCommon(); | 5228 GeolayerdataCommon(); |
5070 | 5229 |
5071 GeolayerdataCommon.fromJson(core.Map _json) { | 5230 GeolayerdataCommon.fromJson(core.Map _json) { |
5072 if (_json.containsKey("lang")) { | 5231 if (_json.containsKey("lang")) { |
5073 lang = _json["lang"]; | 5232 lang = _json["lang"]; |
5074 } | 5233 } |
5075 if (_json.containsKey("previewImageUrl")) { | 5234 if (_json.containsKey("previewImageUrl")) { |
5076 previewImageUrl = _json["previewImageUrl"]; | 5235 previewImageUrl = _json["previewImageUrl"]; |
5077 } | 5236 } |
5078 if (_json.containsKey("snippet")) { | 5237 if (_json.containsKey("snippet")) { |
5079 snippet = _json["snippet"]; | 5238 snippet = _json["snippet"]; |
5080 } | 5239 } |
5081 if (_json.containsKey("snippetUrl")) { | 5240 if (_json.containsKey("snippetUrl")) { |
5082 snippetUrl = _json["snippetUrl"]; | 5241 snippetUrl = _json["snippetUrl"]; |
5083 } | 5242 } |
5084 if (_json.containsKey("title")) { | 5243 if (_json.containsKey("title")) { |
5085 title = _json["title"]; | 5244 title = _json["title"]; |
5086 } | 5245 } |
5087 } | 5246 } |
5088 | 5247 |
5089 core.Map<core.String, core.Object> toJson() { | 5248 core.Map<core.String, core.Object> toJson() { |
5090 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5249 final core.Map<core.String, core.Object> _json = |
| 5250 new core.Map<core.String, core.Object>(); |
5091 if (lang != null) { | 5251 if (lang != null) { |
5092 _json["lang"] = lang; | 5252 _json["lang"] = lang; |
5093 } | 5253 } |
5094 if (previewImageUrl != null) { | 5254 if (previewImageUrl != null) { |
5095 _json["previewImageUrl"] = previewImageUrl; | 5255 _json["previewImageUrl"] = previewImageUrl; |
5096 } | 5256 } |
5097 if (snippet != null) { | 5257 if (snippet != null) { |
5098 _json["snippet"] = snippet; | 5258 _json["snippet"] = snippet; |
5099 } | 5259 } |
5100 if (snippetUrl != null) { | 5260 if (snippetUrl != null) { |
(...skipping 15 matching lines...) Expand all Loading... |
5116 GeolayerdataGeoBoundary.fromJson(core.Map _json) { | 5276 GeolayerdataGeoBoundary.fromJson(core.Map _json) { |
5117 if (_json.containsKey("latitude")) { | 5277 if (_json.containsKey("latitude")) { |
5118 latitude = _json["latitude"]; | 5278 latitude = _json["latitude"]; |
5119 } | 5279 } |
5120 if (_json.containsKey("longitude")) { | 5280 if (_json.containsKey("longitude")) { |
5121 longitude = _json["longitude"]; | 5281 longitude = _json["longitude"]; |
5122 } | 5282 } |
5123 } | 5283 } |
5124 | 5284 |
5125 core.Map<core.String, core.Object> toJson() { | 5285 core.Map<core.String, core.Object> toJson() { |
5126 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5286 final core.Map<core.String, core.Object> _json = |
| 5287 new core.Map<core.String, core.Object>(); |
5127 if (latitude != null) { | 5288 if (latitude != null) { |
5128 _json["latitude"] = latitude; | 5289 _json["latitude"] = latitude; |
5129 } | 5290 } |
5130 if (longitude != null) { | 5291 if (longitude != null) { |
5131 _json["longitude"] = longitude; | 5292 _json["longitude"] = longitude; |
5132 } | 5293 } |
5133 return _json; | 5294 return _json; |
5134 } | 5295 } |
5135 } | 5296 } |
5136 | 5297 |
5137 class GeolayerdataGeoViewportHi { | 5298 class GeolayerdataGeoViewportHi { |
5138 core.double latitude; | 5299 core.double latitude; |
5139 core.double longitude; | 5300 core.double longitude; |
5140 | 5301 |
5141 GeolayerdataGeoViewportHi(); | 5302 GeolayerdataGeoViewportHi(); |
5142 | 5303 |
5143 GeolayerdataGeoViewportHi.fromJson(core.Map _json) { | 5304 GeolayerdataGeoViewportHi.fromJson(core.Map _json) { |
5144 if (_json.containsKey("latitude")) { | 5305 if (_json.containsKey("latitude")) { |
5145 latitude = _json["latitude"]; | 5306 latitude = _json["latitude"]; |
5146 } | 5307 } |
5147 if (_json.containsKey("longitude")) { | 5308 if (_json.containsKey("longitude")) { |
5148 longitude = _json["longitude"]; | 5309 longitude = _json["longitude"]; |
5149 } | 5310 } |
5150 } | 5311 } |
5151 | 5312 |
5152 core.Map<core.String, core.Object> toJson() { | 5313 core.Map<core.String, core.Object> toJson() { |
5153 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5314 final core.Map<core.String, core.Object> _json = |
| 5315 new core.Map<core.String, core.Object>(); |
5154 if (latitude != null) { | 5316 if (latitude != null) { |
5155 _json["latitude"] = latitude; | 5317 _json["latitude"] = latitude; |
5156 } | 5318 } |
5157 if (longitude != null) { | 5319 if (longitude != null) { |
5158 _json["longitude"] = longitude; | 5320 _json["longitude"] = longitude; |
5159 } | 5321 } |
5160 return _json; | 5322 return _json; |
5161 } | 5323 } |
5162 } | 5324 } |
5163 | 5325 |
5164 class GeolayerdataGeoViewportLo { | 5326 class GeolayerdataGeoViewportLo { |
5165 core.double latitude; | 5327 core.double latitude; |
5166 core.double longitude; | 5328 core.double longitude; |
5167 | 5329 |
5168 GeolayerdataGeoViewportLo(); | 5330 GeolayerdataGeoViewportLo(); |
5169 | 5331 |
5170 GeolayerdataGeoViewportLo.fromJson(core.Map _json) { | 5332 GeolayerdataGeoViewportLo.fromJson(core.Map _json) { |
5171 if (_json.containsKey("latitude")) { | 5333 if (_json.containsKey("latitude")) { |
5172 latitude = _json["latitude"]; | 5334 latitude = _json["latitude"]; |
5173 } | 5335 } |
5174 if (_json.containsKey("longitude")) { | 5336 if (_json.containsKey("longitude")) { |
5175 longitude = _json["longitude"]; | 5337 longitude = _json["longitude"]; |
5176 } | 5338 } |
5177 } | 5339 } |
5178 | 5340 |
5179 core.Map<core.String, core.Object> toJson() { | 5341 core.Map<core.String, core.Object> toJson() { |
5180 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5342 final core.Map<core.String, core.Object> _json = |
| 5343 new core.Map<core.String, core.Object>(); |
5181 if (latitude != null) { | 5344 if (latitude != null) { |
5182 _json["latitude"] = latitude; | 5345 _json["latitude"] = latitude; |
5183 } | 5346 } |
5184 if (longitude != null) { | 5347 if (longitude != null) { |
5185 _json["longitude"] = longitude; | 5348 _json["longitude"] = longitude; |
5186 } | 5349 } |
5187 return _json; | 5350 return _json; |
5188 } | 5351 } |
5189 } | 5352 } |
5190 | 5353 |
5191 /** | 5354 /// The viewport for showing this location. This is a latitude, longitude |
5192 * The viewport for showing this location. This is a latitude, longitude | 5355 /// rectangle. |
5193 * rectangle. | |
5194 */ | |
5195 class GeolayerdataGeoViewport { | 5356 class GeolayerdataGeoViewport { |
5196 GeolayerdataGeoViewportHi hi; | 5357 GeolayerdataGeoViewportHi hi; |
5197 GeolayerdataGeoViewportLo lo; | 5358 GeolayerdataGeoViewportLo lo; |
5198 | 5359 |
5199 GeolayerdataGeoViewport(); | 5360 GeolayerdataGeoViewport(); |
5200 | 5361 |
5201 GeolayerdataGeoViewport.fromJson(core.Map _json) { | 5362 GeolayerdataGeoViewport.fromJson(core.Map _json) { |
5202 if (_json.containsKey("hi")) { | 5363 if (_json.containsKey("hi")) { |
5203 hi = new GeolayerdataGeoViewportHi.fromJson(_json["hi"]); | 5364 hi = new GeolayerdataGeoViewportHi.fromJson(_json["hi"]); |
5204 } | 5365 } |
5205 if (_json.containsKey("lo")) { | 5366 if (_json.containsKey("lo")) { |
5206 lo = new GeolayerdataGeoViewportLo.fromJson(_json["lo"]); | 5367 lo = new GeolayerdataGeoViewportLo.fromJson(_json["lo"]); |
5207 } | 5368 } |
5208 } | 5369 } |
5209 | 5370 |
5210 core.Map<core.String, core.Object> toJson() { | 5371 core.Map<core.String, core.Object> toJson() { |
5211 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5372 final core.Map<core.String, core.Object> _json = |
| 5373 new core.Map<core.String, core.Object>(); |
5212 if (hi != null) { | 5374 if (hi != null) { |
5213 _json["hi"] = (hi).toJson(); | 5375 _json["hi"] = (hi).toJson(); |
5214 } | 5376 } |
5215 if (lo != null) { | 5377 if (lo != null) { |
5216 _json["lo"] = (lo).toJson(); | 5378 _json["lo"] = (lo).toJson(); |
5217 } | 5379 } |
5218 return _json; | 5380 return _json; |
5219 } | 5381 } |
5220 } | 5382 } |
5221 | 5383 |
5222 class GeolayerdataGeo { | 5384 class GeolayerdataGeo { |
5223 /** | 5385 /// The boundary of the location as a set of loops containing pairs of |
5224 * The boundary of the location as a set of loops containing pairs of | 5386 /// latitude, longitude coordinates. |
5225 * latitude, longitude coordinates. | |
5226 */ | |
5227 core.List<core.List<GeolayerdataGeoBoundary>> boundary; | 5387 core.List<core.List<GeolayerdataGeoBoundary>> boundary; |
5228 /** | 5388 |
5229 * The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, NEVER | 5389 /// The cache policy active for this data. EX: UNRESTRICTED, RESTRICTED, |
5230 */ | 5390 /// NEVER |
5231 core.String cachePolicy; | 5391 core.String cachePolicy; |
5232 /** The country code of the location. */ | 5392 |
| 5393 /// The country code of the location. |
5233 core.String countryCode; | 5394 core.String countryCode; |
5234 /** The latitude of the location. */ | 5395 |
| 5396 /// The latitude of the location. |
5235 core.double latitude; | 5397 core.double latitude; |
5236 /** The longitude of the location. */ | 5398 |
| 5399 /// The longitude of the location. |
5237 core.double longitude; | 5400 core.double longitude; |
5238 /** | 5401 |
5239 * The type of map that should be used for this location. EX: HYBRID, ROADMAP, | 5402 /// The type of map that should be used for this location. EX: HYBRID, |
5240 * SATELLITE, TERRAIN | 5403 /// ROADMAP, SATELLITE, TERRAIN |
5241 */ | |
5242 core.String mapType; | 5404 core.String mapType; |
5243 /** | 5405 |
5244 * The viewport for showing this location. This is a latitude, longitude | 5406 /// The viewport for showing this location. This is a latitude, longitude |
5245 * rectangle. | 5407 /// rectangle. |
5246 */ | |
5247 GeolayerdataGeoViewport viewport; | 5408 GeolayerdataGeoViewport viewport; |
5248 /** | 5409 |
5249 * The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom | 5410 /// The Zoom level to use for the map. Zoom levels between 0 (the lowest zoom |
5250 * level, in which the entire world can be seen on one map) to 21+ (down to | 5411 /// level, in which the entire world can be seen on one map) to 21+ (down to |
5251 * individual buildings). See: | 5412 /// individual buildings). See: |
5252 * https://developers.google.com/maps/documentation/staticmaps/#Zoomlevels | 5413 /// https://developers.google.com/maps/documentation/staticmaps/#Zoomlevels |
5253 */ | |
5254 core.int zoom; | 5414 core.int zoom; |
5255 | 5415 |
5256 GeolayerdataGeo(); | 5416 GeolayerdataGeo(); |
5257 | 5417 |
5258 GeolayerdataGeo.fromJson(core.Map _json) { | 5418 GeolayerdataGeo.fromJson(core.Map _json) { |
5259 if (_json.containsKey("boundary")) { | 5419 if (_json.containsKey("boundary")) { |
5260 boundary = _json["boundary"].map((value) => value.map((value) => new Geola
yerdataGeoBoundary.fromJson(value)).toList()).toList(); | 5420 boundary = _json["boundary"] |
| 5421 .map((value) => value |
| 5422 .map((value) => new GeolayerdataGeoBoundary.fromJson(value)) |
| 5423 .toList()) |
| 5424 .toList(); |
5261 } | 5425 } |
5262 if (_json.containsKey("cachePolicy")) { | 5426 if (_json.containsKey("cachePolicy")) { |
5263 cachePolicy = _json["cachePolicy"]; | 5427 cachePolicy = _json["cachePolicy"]; |
5264 } | 5428 } |
5265 if (_json.containsKey("countryCode")) { | 5429 if (_json.containsKey("countryCode")) { |
5266 countryCode = _json["countryCode"]; | 5430 countryCode = _json["countryCode"]; |
5267 } | 5431 } |
5268 if (_json.containsKey("latitude")) { | 5432 if (_json.containsKey("latitude")) { |
5269 latitude = _json["latitude"]; | 5433 latitude = _json["latitude"]; |
5270 } | 5434 } |
5271 if (_json.containsKey("longitude")) { | 5435 if (_json.containsKey("longitude")) { |
5272 longitude = _json["longitude"]; | 5436 longitude = _json["longitude"]; |
5273 } | 5437 } |
5274 if (_json.containsKey("mapType")) { | 5438 if (_json.containsKey("mapType")) { |
5275 mapType = _json["mapType"]; | 5439 mapType = _json["mapType"]; |
5276 } | 5440 } |
5277 if (_json.containsKey("viewport")) { | 5441 if (_json.containsKey("viewport")) { |
5278 viewport = new GeolayerdataGeoViewport.fromJson(_json["viewport"]); | 5442 viewport = new GeolayerdataGeoViewport.fromJson(_json["viewport"]); |
5279 } | 5443 } |
5280 if (_json.containsKey("zoom")) { | 5444 if (_json.containsKey("zoom")) { |
5281 zoom = _json["zoom"]; | 5445 zoom = _json["zoom"]; |
5282 } | 5446 } |
5283 } | 5447 } |
5284 | 5448 |
5285 core.Map<core.String, core.Object> toJson() { | 5449 core.Map<core.String, core.Object> toJson() { |
5286 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5450 final core.Map<core.String, core.Object> _json = |
| 5451 new core.Map<core.String, core.Object>(); |
5287 if (boundary != null) { | 5452 if (boundary != null) { |
5288 _json["boundary"] = boundary.map((value) => value.map((value) => (value).t
oJson()).toList()).toList(); | 5453 _json["boundary"] = boundary |
| 5454 .map((value) => value.map((value) => (value).toJson()).toList()) |
| 5455 .toList(); |
5289 } | 5456 } |
5290 if (cachePolicy != null) { | 5457 if (cachePolicy != null) { |
5291 _json["cachePolicy"] = cachePolicy; | 5458 _json["cachePolicy"] = cachePolicy; |
5292 } | 5459 } |
5293 if (countryCode != null) { | 5460 if (countryCode != null) { |
5294 _json["countryCode"] = countryCode; | 5461 _json["countryCode"] = countryCode; |
5295 } | 5462 } |
5296 if (latitude != null) { | 5463 if (latitude != null) { |
5297 _json["latitude"] = latitude; | 5464 _json["latitude"] = latitude; |
5298 } | 5465 } |
(...skipping 26 matching lines...) Expand all Loading... |
5325 } | 5492 } |
5326 if (_json.containsKey("geo")) { | 5493 if (_json.containsKey("geo")) { |
5327 geo = new GeolayerdataGeo.fromJson(_json["geo"]); | 5494 geo = new GeolayerdataGeo.fromJson(_json["geo"]); |
5328 } | 5495 } |
5329 if (_json.containsKey("kind")) { | 5496 if (_json.containsKey("kind")) { |
5330 kind = _json["kind"]; | 5497 kind = _json["kind"]; |
5331 } | 5498 } |
5332 } | 5499 } |
5333 | 5500 |
5334 core.Map<core.String, core.Object> toJson() { | 5501 core.Map<core.String, core.Object> toJson() { |
5335 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5502 final core.Map<core.String, core.Object> _json = |
| 5503 new core.Map<core.String, core.Object>(); |
5336 if (common != null) { | 5504 if (common != null) { |
5337 _json["common"] = (common).toJson(); | 5505 _json["common"] = (common).toJson(); |
5338 } | 5506 } |
5339 if (geo != null) { | 5507 if (geo != null) { |
5340 _json["geo"] = (geo).toJson(); | 5508 _json["geo"] = (geo).toJson(); |
5341 } | 5509 } |
5342 if (kind != null) { | 5510 if (kind != null) { |
5343 _json["kind"] = kind; | 5511 _json["kind"] = kind; |
5344 } | 5512 } |
5345 return _json; | 5513 return _json; |
5346 } | 5514 } |
5347 } | 5515 } |
5348 | 5516 |
5349 class Layersummaries { | 5517 class Layersummaries { |
5350 /** A list of layer summary items. */ | 5518 /// A list of layer summary items. |
5351 core.List<Layersummary> items; | 5519 core.List<Layersummary> items; |
5352 /** Resource type. */ | 5520 |
| 5521 /// Resource type. |
5353 core.String kind; | 5522 core.String kind; |
5354 /** The total number of layer summaries found. */ | 5523 |
| 5524 /// The total number of layer summaries found. |
5355 core.int totalItems; | 5525 core.int totalItems; |
5356 | 5526 |
5357 Layersummaries(); | 5527 Layersummaries(); |
5358 | 5528 |
5359 Layersummaries.fromJson(core.Map _json) { | 5529 Layersummaries.fromJson(core.Map _json) { |
5360 if (_json.containsKey("items")) { | 5530 if (_json.containsKey("items")) { |
5361 items = _json["items"].map((value) => new Layersummary.fromJson(value)).to
List(); | 5531 items = _json["items"] |
| 5532 .map((value) => new Layersummary.fromJson(value)) |
| 5533 .toList(); |
5362 } | 5534 } |
5363 if (_json.containsKey("kind")) { | 5535 if (_json.containsKey("kind")) { |
5364 kind = _json["kind"]; | 5536 kind = _json["kind"]; |
5365 } | 5537 } |
5366 if (_json.containsKey("totalItems")) { | 5538 if (_json.containsKey("totalItems")) { |
5367 totalItems = _json["totalItems"]; | 5539 totalItems = _json["totalItems"]; |
5368 } | 5540 } |
5369 } | 5541 } |
5370 | 5542 |
5371 core.Map<core.String, core.Object> toJson() { | 5543 core.Map<core.String, core.Object> toJson() { |
5372 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5544 final core.Map<core.String, core.Object> _json = |
| 5545 new core.Map<core.String, core.Object>(); |
5373 if (items != null) { | 5546 if (items != null) { |
5374 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5547 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5375 } | 5548 } |
5376 if (kind != null) { | 5549 if (kind != null) { |
5377 _json["kind"] = kind; | 5550 _json["kind"] = kind; |
5378 } | 5551 } |
5379 if (totalItems != null) { | 5552 if (totalItems != null) { |
5380 _json["totalItems"] = totalItems; | 5553 _json["totalItems"] = totalItems; |
5381 } | 5554 } |
5382 return _json; | 5555 return _json; |
5383 } | 5556 } |
5384 } | 5557 } |
5385 | 5558 |
5386 class Layersummary { | 5559 class Layersummary { |
5387 /** The number of annotations for this layer. */ | 5560 /// The number of annotations for this layer. |
5388 core.int annotationCount; | 5561 core.int annotationCount; |
5389 /** The list of annotation types contained for this layer. */ | 5562 |
| 5563 /// The list of annotation types contained for this layer. |
5390 core.List<core.String> annotationTypes; | 5564 core.List<core.String> annotationTypes; |
5391 /** Link to get data for this annotation. */ | 5565 |
| 5566 /// Link to get data for this annotation. |
5392 core.String annotationsDataLink; | 5567 core.String annotationsDataLink; |
5393 /** The link to get the annotations for this layer. */ | 5568 |
| 5569 /// The link to get the annotations for this layer. |
5394 core.String annotationsLink; | 5570 core.String annotationsLink; |
5395 /** The content version this resource is for. */ | 5571 |
| 5572 /// The content version this resource is for. |
5396 core.String contentVersion; | 5573 core.String contentVersion; |
5397 /** The number of data items for this layer. */ | 5574 |
| 5575 /// The number of data items for this layer. |
5398 core.int dataCount; | 5576 core.int dataCount; |
5399 /** Unique id of this layer summary. */ | 5577 |
| 5578 /// Unique id of this layer summary. |
5400 core.String id; | 5579 core.String id; |
5401 /** Resource Type */ | 5580 |
| 5581 /// Resource Type |
5402 core.String kind; | 5582 core.String kind; |
5403 /** The layer id for this summary. */ | 5583 |
| 5584 /// The layer id for this summary. |
5404 core.String layerId; | 5585 core.String layerId; |
5405 /** URL to this resource. */ | 5586 |
| 5587 /// URL to this resource. |
5406 core.String selfLink; | 5588 core.String selfLink; |
5407 /** | 5589 |
5408 * Timestamp for the last time an item in this layer was updated. (RFC 3339 | 5590 /// Timestamp for the last time an item in this layer was updated. (RFC 3339 |
5409 * UTC date-time format). | 5591 /// UTC date-time format). |
5410 */ | |
5411 core.DateTime updated; | 5592 core.DateTime updated; |
5412 /** | 5593 |
5413 * The current version of this layer's volume annotations. Note that this | 5594 /// The current version of this layer's volume annotations. Note that this |
5414 * version applies only to the data in the books.layers.volumeAnnotations.* | 5595 /// version applies only to the data in the books.layers.volumeAnnotations.* |
5415 * responses. The actual annotation data is versioned separately. | 5596 /// responses. The actual annotation data is versioned separately. |
5416 */ | |
5417 core.String volumeAnnotationsVersion; | 5597 core.String volumeAnnotationsVersion; |
5418 /** The volume id this resource is for. */ | 5598 |
| 5599 /// The volume id this resource is for. |
5419 core.String volumeId; | 5600 core.String volumeId; |
5420 | 5601 |
5421 Layersummary(); | 5602 Layersummary(); |
5422 | 5603 |
5423 Layersummary.fromJson(core.Map _json) { | 5604 Layersummary.fromJson(core.Map _json) { |
5424 if (_json.containsKey("annotationCount")) { | 5605 if (_json.containsKey("annotationCount")) { |
5425 annotationCount = _json["annotationCount"]; | 5606 annotationCount = _json["annotationCount"]; |
5426 } | 5607 } |
5427 if (_json.containsKey("annotationTypes")) { | 5608 if (_json.containsKey("annotationTypes")) { |
5428 annotationTypes = _json["annotationTypes"]; | 5609 annotationTypes = _json["annotationTypes"]; |
(...skipping 27 matching lines...) Expand all Loading... |
5456 } | 5637 } |
5457 if (_json.containsKey("volumeAnnotationsVersion")) { | 5638 if (_json.containsKey("volumeAnnotationsVersion")) { |
5458 volumeAnnotationsVersion = _json["volumeAnnotationsVersion"]; | 5639 volumeAnnotationsVersion = _json["volumeAnnotationsVersion"]; |
5459 } | 5640 } |
5460 if (_json.containsKey("volumeId")) { | 5641 if (_json.containsKey("volumeId")) { |
5461 volumeId = _json["volumeId"]; | 5642 volumeId = _json["volumeId"]; |
5462 } | 5643 } |
5463 } | 5644 } |
5464 | 5645 |
5465 core.Map<core.String, core.Object> toJson() { | 5646 core.Map<core.String, core.Object> toJson() { |
5466 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5647 final core.Map<core.String, core.Object> _json = |
| 5648 new core.Map<core.String, core.Object>(); |
5467 if (annotationCount != null) { | 5649 if (annotationCount != null) { |
5468 _json["annotationCount"] = annotationCount; | 5650 _json["annotationCount"] = annotationCount; |
5469 } | 5651 } |
5470 if (annotationTypes != null) { | 5652 if (annotationTypes != null) { |
5471 _json["annotationTypes"] = annotationTypes; | 5653 _json["annotationTypes"] = annotationTypes; |
5472 } | 5654 } |
5473 if (annotationsDataLink != null) { | 5655 if (annotationsDataLink != null) { |
5474 _json["annotationsDataLink"] = annotationsDataLink; | 5656 _json["annotationsDataLink"] = annotationsDataLink; |
5475 } | 5657 } |
5476 if (annotationsLink != null) { | 5658 if (annotationsLink != null) { |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5528 } | 5710 } |
5529 if (_json.containsKey("size")) { | 5711 if (_json.containsKey("size")) { |
5530 size = _json["size"]; | 5712 size = _json["size"]; |
5531 } | 5713 } |
5532 if (_json.containsKey("version")) { | 5714 if (_json.containsKey("version")) { |
5533 version = _json["version"]; | 5715 version = _json["version"]; |
5534 } | 5716 } |
5535 } | 5717 } |
5536 | 5718 |
5537 core.Map<core.String, core.Object> toJson() { | 5719 core.Map<core.String, core.Object> toJson() { |
5538 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5720 final core.Map<core.String, core.Object> _json = |
| 5721 new core.Map<core.String, core.Object>(); |
5539 if (downloadUrl != null) { | 5722 if (downloadUrl != null) { |
5540 _json["download_url"] = downloadUrl; | 5723 _json["download_url"] = downloadUrl; |
5541 } | 5724 } |
5542 if (encryptedKey != null) { | 5725 if (encryptedKey != null) { |
5543 _json["encrypted_key"] = encryptedKey; | 5726 _json["encrypted_key"] = encryptedKey; |
5544 } | 5727 } |
5545 if (language != null) { | 5728 if (language != null) { |
5546 _json["language"] = language; | 5729 _json["language"] = language; |
5547 } | 5730 } |
5548 if (size != null) { | 5731 if (size != null) { |
5549 _json["size"] = size; | 5732 _json["size"] = size; |
5550 } | 5733 } |
5551 if (version != null) { | 5734 if (version != null) { |
5552 _json["version"] = version; | 5735 _json["version"] = version; |
5553 } | 5736 } |
5554 return _json; | 5737 return _json; |
5555 } | 5738 } |
5556 } | 5739 } |
5557 | 5740 |
5558 class Metadata { | 5741 class Metadata { |
5559 /** A list of offline dictionary metadata. */ | 5742 /// A list of offline dictionary metadata. |
5560 core.List<MetadataItems> items; | 5743 core.List<MetadataItems> items; |
5561 /** Resource type. */ | 5744 |
| 5745 /// Resource type. |
5562 core.String kind; | 5746 core.String kind; |
5563 | 5747 |
5564 Metadata(); | 5748 Metadata(); |
5565 | 5749 |
5566 Metadata.fromJson(core.Map _json) { | 5750 Metadata.fromJson(core.Map _json) { |
5567 if (_json.containsKey("items")) { | 5751 if (_json.containsKey("items")) { |
5568 items = _json["items"].map((value) => new MetadataItems.fromJson(value)).t
oList(); | 5752 items = _json["items"] |
| 5753 .map((value) => new MetadataItems.fromJson(value)) |
| 5754 .toList(); |
5569 } | 5755 } |
5570 if (_json.containsKey("kind")) { | 5756 if (_json.containsKey("kind")) { |
5571 kind = _json["kind"]; | 5757 kind = _json["kind"]; |
5572 } | 5758 } |
5573 } | 5759 } |
5574 | 5760 |
5575 core.Map<core.String, core.Object> toJson() { | 5761 core.Map<core.String, core.Object> toJson() { |
5576 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5762 final core.Map<core.String, core.Object> _json = |
| 5763 new core.Map<core.String, core.Object>(); |
5577 if (items != null) { | 5764 if (items != null) { |
5578 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5765 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5579 } | 5766 } |
5580 if (kind != null) { | 5767 if (kind != null) { |
5581 _json["kind"] = kind; | 5768 _json["kind"] = kind; |
5582 } | 5769 } |
5583 return _json; | 5770 return _json; |
5584 } | 5771 } |
5585 } | 5772 } |
5586 | 5773 |
5587 class Notification { | 5774 class Notification { |
5588 core.String body; | 5775 core.String body; |
5589 /** The list of crm experiment ids. */ | 5776 |
| 5777 /// The list of crm experiment ids. |
5590 core.List<core.String> crmExperimentIds; | 5778 core.List<core.String> crmExperimentIds; |
5591 core.String docId; | 5779 core.String docId; |
5592 core.String docType; | 5780 core.String docType; |
5593 core.bool dontShowNotification; | 5781 core.bool dontShowNotification; |
5594 core.String iconUrl; | 5782 core.String iconUrl; |
5595 /** Resource type. */ | 5783 |
| 5784 /// Resource type. |
5596 core.String kind; | 5785 core.String kind; |
5597 core.String notificationGroup; | 5786 core.String notificationGroup; |
5598 core.String notificationType; | 5787 core.String notificationType; |
5599 core.String pcampaignId; | 5788 core.String pcampaignId; |
5600 core.String reason; | 5789 core.String reason; |
5601 core.bool showNotificationSettingsAction; | 5790 core.bool showNotificationSettingsAction; |
5602 core.String targetUrl; | 5791 core.String targetUrl; |
5603 core.String title; | 5792 core.String title; |
5604 | 5793 |
5605 Notification(); | 5794 Notification(); |
(...skipping 26 matching lines...) Expand all Loading... |
5632 if (_json.containsKey("notification_type")) { | 5821 if (_json.containsKey("notification_type")) { |
5633 notificationType = _json["notification_type"]; | 5822 notificationType = _json["notification_type"]; |
5634 } | 5823 } |
5635 if (_json.containsKey("pcampaign_id")) { | 5824 if (_json.containsKey("pcampaign_id")) { |
5636 pcampaignId = _json["pcampaign_id"]; | 5825 pcampaignId = _json["pcampaign_id"]; |
5637 } | 5826 } |
5638 if (_json.containsKey("reason")) { | 5827 if (_json.containsKey("reason")) { |
5639 reason = _json["reason"]; | 5828 reason = _json["reason"]; |
5640 } | 5829 } |
5641 if (_json.containsKey("show_notification_settings_action")) { | 5830 if (_json.containsKey("show_notification_settings_action")) { |
5642 showNotificationSettingsAction = _json["show_notification_settings_action"
]; | 5831 showNotificationSettingsAction = |
| 5832 _json["show_notification_settings_action"]; |
5643 } | 5833 } |
5644 if (_json.containsKey("targetUrl")) { | 5834 if (_json.containsKey("targetUrl")) { |
5645 targetUrl = _json["targetUrl"]; | 5835 targetUrl = _json["targetUrl"]; |
5646 } | 5836 } |
5647 if (_json.containsKey("title")) { | 5837 if (_json.containsKey("title")) { |
5648 title = _json["title"]; | 5838 title = _json["title"]; |
5649 } | 5839 } |
5650 } | 5840 } |
5651 | 5841 |
5652 core.Map<core.String, core.Object> toJson() { | 5842 core.Map<core.String, core.Object> toJson() { |
5653 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5843 final core.Map<core.String, core.Object> _json = |
| 5844 new core.Map<core.String, core.Object>(); |
5654 if (body != null) { | 5845 if (body != null) { |
5655 _json["body"] = body; | 5846 _json["body"] = body; |
5656 } | 5847 } |
5657 if (crmExperimentIds != null) { | 5848 if (crmExperimentIds != null) { |
5658 _json["crmExperimentIds"] = crmExperimentIds; | 5849 _json["crmExperimentIds"] = crmExperimentIds; |
5659 } | 5850 } |
5660 if (docId != null) { | 5851 if (docId != null) { |
5661 _json["doc_id"] = docId; | 5852 _json["doc_id"] = docId; |
5662 } | 5853 } |
5663 if (docType != null) { | 5854 if (docType != null) { |
(...skipping 14 matching lines...) Expand all Loading... |
5678 if (notificationType != null) { | 5869 if (notificationType != null) { |
5679 _json["notification_type"] = notificationType; | 5870 _json["notification_type"] = notificationType; |
5680 } | 5871 } |
5681 if (pcampaignId != null) { | 5872 if (pcampaignId != null) { |
5682 _json["pcampaign_id"] = pcampaignId; | 5873 _json["pcampaign_id"] = pcampaignId; |
5683 } | 5874 } |
5684 if (reason != null) { | 5875 if (reason != null) { |
5685 _json["reason"] = reason; | 5876 _json["reason"] = reason; |
5686 } | 5877 } |
5687 if (showNotificationSettingsAction != null) { | 5878 if (showNotificationSettingsAction != null) { |
5688 _json["show_notification_settings_action"] = showNotificationSettingsActio
n; | 5879 _json["show_notification_settings_action"] = |
| 5880 showNotificationSettingsAction; |
5689 } | 5881 } |
5690 if (targetUrl != null) { | 5882 if (targetUrl != null) { |
5691 _json["targetUrl"] = targetUrl; | 5883 _json["targetUrl"] = targetUrl; |
5692 } | 5884 } |
5693 if (title != null) { | 5885 if (title != null) { |
5694 _json["title"] = title; | 5886 _json["title"] = title; |
5695 } | 5887 } |
5696 return _json; | 5888 return _json; |
5697 } | 5889 } |
5698 } | 5890 } |
(...skipping 23 matching lines...) Expand all Loading... |
5722 } | 5914 } |
5723 if (_json.containsKey("title")) { | 5915 if (_json.containsKey("title")) { |
5724 title = _json["title"]; | 5916 title = _json["title"]; |
5725 } | 5917 } |
5726 if (_json.containsKey("volumeId")) { | 5918 if (_json.containsKey("volumeId")) { |
5727 volumeId = _json["volumeId"]; | 5919 volumeId = _json["volumeId"]; |
5728 } | 5920 } |
5729 } | 5921 } |
5730 | 5922 |
5731 core.Map<core.String, core.Object> toJson() { | 5923 core.Map<core.String, core.Object> toJson() { |
5732 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5924 final core.Map<core.String, core.Object> _json = |
| 5925 new core.Map<core.String, core.Object>(); |
5733 if (author != null) { | 5926 if (author != null) { |
5734 _json["author"] = author; | 5927 _json["author"] = author; |
5735 } | 5928 } |
5736 if (canonicalVolumeLink != null) { | 5929 if (canonicalVolumeLink != null) { |
5737 _json["canonicalVolumeLink"] = canonicalVolumeLink; | 5930 _json["canonicalVolumeLink"] = canonicalVolumeLink; |
5738 } | 5931 } |
5739 if (coverUrl != null) { | 5932 if (coverUrl != null) { |
5740 _json["coverUrl"] = coverUrl; | 5933 _json["coverUrl"] = coverUrl; |
5741 } | 5934 } |
5742 if (description != null) { | 5935 if (description != null) { |
(...skipping 21 matching lines...) Expand all Loading... |
5764 if (_json.containsKey("artUrl")) { | 5957 if (_json.containsKey("artUrl")) { |
5765 artUrl = _json["artUrl"]; | 5958 artUrl = _json["artUrl"]; |
5766 } | 5959 } |
5767 if (_json.containsKey("gservicesKey")) { | 5960 if (_json.containsKey("gservicesKey")) { |
5768 gservicesKey = _json["gservicesKey"]; | 5961 gservicesKey = _json["gservicesKey"]; |
5769 } | 5962 } |
5770 if (_json.containsKey("id")) { | 5963 if (_json.containsKey("id")) { |
5771 id = _json["id"]; | 5964 id = _json["id"]; |
5772 } | 5965 } |
5773 if (_json.containsKey("items")) { | 5966 if (_json.containsKey("items")) { |
5774 items = _json["items"].map((value) => new OffersItemsItems.fromJson(value)
).toList(); | 5967 items = _json["items"] |
| 5968 .map((value) => new OffersItemsItems.fromJson(value)) |
| 5969 .toList(); |
5775 } | 5970 } |
5776 } | 5971 } |
5777 | 5972 |
5778 core.Map<core.String, core.Object> toJson() { | 5973 core.Map<core.String, core.Object> toJson() { |
5779 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 5974 final core.Map<core.String, core.Object> _json = |
| 5975 new core.Map<core.String, core.Object>(); |
5780 if (artUrl != null) { | 5976 if (artUrl != null) { |
5781 _json["artUrl"] = artUrl; | 5977 _json["artUrl"] = artUrl; |
5782 } | 5978 } |
5783 if (gservicesKey != null) { | 5979 if (gservicesKey != null) { |
5784 _json["gservicesKey"] = gservicesKey; | 5980 _json["gservicesKey"] = gservicesKey; |
5785 } | 5981 } |
5786 if (id != null) { | 5982 if (id != null) { |
5787 _json["id"] = id; | 5983 _json["id"] = id; |
5788 } | 5984 } |
5789 if (items != null) { | 5985 if (items != null) { |
5790 _json["items"] = items.map((value) => (value).toJson()).toList(); | 5986 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5791 } | 5987 } |
5792 return _json; | 5988 return _json; |
5793 } | 5989 } |
5794 } | 5990 } |
5795 | 5991 |
5796 class Offers { | 5992 class Offers { |
5797 /** A list of offers. */ | 5993 /// A list of offers. |
5798 core.List<OffersItems> items; | 5994 core.List<OffersItems> items; |
5799 /** Resource type. */ | 5995 |
| 5996 /// Resource type. |
5800 core.String kind; | 5997 core.String kind; |
5801 | 5998 |
5802 Offers(); | 5999 Offers(); |
5803 | 6000 |
5804 Offers.fromJson(core.Map _json) { | 6001 Offers.fromJson(core.Map _json) { |
5805 if (_json.containsKey("items")) { | 6002 if (_json.containsKey("items")) { |
5806 items = _json["items"].map((value) => new OffersItems.fromJson(value)).toL
ist(); | 6003 items = _json["items"] |
| 6004 .map((value) => new OffersItems.fromJson(value)) |
| 6005 .toList(); |
5807 } | 6006 } |
5808 if (_json.containsKey("kind")) { | 6007 if (_json.containsKey("kind")) { |
5809 kind = _json["kind"]; | 6008 kind = _json["kind"]; |
5810 } | 6009 } |
5811 } | 6010 } |
5812 | 6011 |
5813 core.Map<core.String, core.Object> toJson() { | 6012 core.Map<core.String, core.Object> toJson() { |
5814 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6013 final core.Map<core.String, core.Object> _json = |
| 6014 new core.Map<core.String, core.Object>(); |
5815 if (items != null) { | 6015 if (items != null) { |
5816 _json["items"] = items.map((value) => (value).toJson()).toList(); | 6016 _json["items"] = items.map((value) => (value).toJson()).toList(); |
5817 } | 6017 } |
5818 if (kind != null) { | 6018 if (kind != null) { |
5819 _json["kind"] = kind; | 6019 _json["kind"] = kind; |
5820 } | 6020 } |
5821 return _json; | 6021 return _json; |
5822 } | 6022 } |
5823 } | 6023 } |
5824 | 6024 |
5825 class ReadingPosition { | 6025 class ReadingPosition { |
5826 /** Position in an EPUB as a CFI. */ | 6026 /// Position in an EPUB as a CFI. |
5827 core.String epubCfiPosition; | 6027 core.String epubCfiPosition; |
5828 /** Position in a volume for image-based content. */ | 6028 |
| 6029 /// Position in a volume for image-based content. |
5829 core.String gbImagePosition; | 6030 core.String gbImagePosition; |
5830 /** Position in a volume for text-based content. */ | 6031 |
| 6032 /// Position in a volume for text-based content. |
5831 core.String gbTextPosition; | 6033 core.String gbTextPosition; |
5832 /** Resource type for a reading position. */ | 6034 |
| 6035 /// Resource type for a reading position. |
5833 core.String kind; | 6036 core.String kind; |
5834 /** Position in a PDF file. */ | 6037 |
| 6038 /// Position in a PDF file. |
5835 core.String pdfPosition; | 6039 core.String pdfPosition; |
5836 /** | 6040 |
5837 * Timestamp when this reading position was last updated (formatted UTC | 6041 /// Timestamp when this reading position was last updated (formatted UTC |
5838 * timestamp with millisecond resolution). | 6042 /// timestamp with millisecond resolution). |
5839 */ | |
5840 core.DateTime updated; | 6043 core.DateTime updated; |
5841 /** Volume id associated with this reading position. */ | 6044 |
| 6045 /// Volume id associated with this reading position. |
5842 core.String volumeId; | 6046 core.String volumeId; |
5843 | 6047 |
5844 ReadingPosition(); | 6048 ReadingPosition(); |
5845 | 6049 |
5846 ReadingPosition.fromJson(core.Map _json) { | 6050 ReadingPosition.fromJson(core.Map _json) { |
5847 if (_json.containsKey("epubCfiPosition")) { | 6051 if (_json.containsKey("epubCfiPosition")) { |
5848 epubCfiPosition = _json["epubCfiPosition"]; | 6052 epubCfiPosition = _json["epubCfiPosition"]; |
5849 } | 6053 } |
5850 if (_json.containsKey("gbImagePosition")) { | 6054 if (_json.containsKey("gbImagePosition")) { |
5851 gbImagePosition = _json["gbImagePosition"]; | 6055 gbImagePosition = _json["gbImagePosition"]; |
5852 } | 6056 } |
5853 if (_json.containsKey("gbTextPosition")) { | 6057 if (_json.containsKey("gbTextPosition")) { |
5854 gbTextPosition = _json["gbTextPosition"]; | 6058 gbTextPosition = _json["gbTextPosition"]; |
5855 } | 6059 } |
5856 if (_json.containsKey("kind")) { | 6060 if (_json.containsKey("kind")) { |
5857 kind = _json["kind"]; | 6061 kind = _json["kind"]; |
5858 } | 6062 } |
5859 if (_json.containsKey("pdfPosition")) { | 6063 if (_json.containsKey("pdfPosition")) { |
5860 pdfPosition = _json["pdfPosition"]; | 6064 pdfPosition = _json["pdfPosition"]; |
5861 } | 6065 } |
5862 if (_json.containsKey("updated")) { | 6066 if (_json.containsKey("updated")) { |
5863 updated = core.DateTime.parse(_json["updated"]); | 6067 updated = core.DateTime.parse(_json["updated"]); |
5864 } | 6068 } |
5865 if (_json.containsKey("volumeId")) { | 6069 if (_json.containsKey("volumeId")) { |
5866 volumeId = _json["volumeId"]; | 6070 volumeId = _json["volumeId"]; |
5867 } | 6071 } |
5868 } | 6072 } |
5869 | 6073 |
5870 core.Map<core.String, core.Object> toJson() { | 6074 core.Map<core.String, core.Object> toJson() { |
5871 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6075 final core.Map<core.String, core.Object> _json = |
| 6076 new core.Map<core.String, core.Object>(); |
5872 if (epubCfiPosition != null) { | 6077 if (epubCfiPosition != null) { |
5873 _json["epubCfiPosition"] = epubCfiPosition; | 6078 _json["epubCfiPosition"] = epubCfiPosition; |
5874 } | 6079 } |
5875 if (gbImagePosition != null) { | 6080 if (gbImagePosition != null) { |
5876 _json["gbImagePosition"] = gbImagePosition; | 6081 _json["gbImagePosition"] = gbImagePosition; |
5877 } | 6082 } |
5878 if (gbTextPosition != null) { | 6083 if (gbTextPosition != null) { |
5879 _json["gbTextPosition"] = gbTextPosition; | 6084 _json["gbTextPosition"] = gbTextPosition; |
5880 } | 6085 } |
5881 if (kind != null) { | 6086 if (kind != null) { |
5882 _json["kind"] = kind; | 6087 _json["kind"] = kind; |
5883 } | 6088 } |
5884 if (pdfPosition != null) { | 6089 if (pdfPosition != null) { |
5885 _json["pdfPosition"] = pdfPosition; | 6090 _json["pdfPosition"] = pdfPosition; |
5886 } | 6091 } |
5887 if (updated != null) { | 6092 if (updated != null) { |
5888 _json["updated"] = (updated).toIso8601String(); | 6093 _json["updated"] = (updated).toIso8601String(); |
5889 } | 6094 } |
5890 if (volumeId != null) { | 6095 if (volumeId != null) { |
5891 _json["volumeId"] = volumeId; | 6096 _json["volumeId"] = volumeId; |
5892 } | 6097 } |
5893 return _json; | 6098 return _json; |
5894 } | 6099 } |
5895 } | 6100 } |
5896 | 6101 |
5897 class RequestAccess { | 6102 class RequestAccess { |
5898 /** A concurrent access response. */ | 6103 /// A concurrent access response. |
5899 ConcurrentAccessRestriction concurrentAccess; | 6104 ConcurrentAccessRestriction concurrentAccess; |
5900 /** A download access response. */ | 6105 |
| 6106 /// A download access response. |
5901 DownloadAccessRestriction downloadAccess; | 6107 DownloadAccessRestriction downloadAccess; |
5902 /** Resource type. */ | 6108 |
| 6109 /// Resource type. |
5903 core.String kind; | 6110 core.String kind; |
5904 | 6111 |
5905 RequestAccess(); | 6112 RequestAccess(); |
5906 | 6113 |
5907 RequestAccess.fromJson(core.Map _json) { | 6114 RequestAccess.fromJson(core.Map _json) { |
5908 if (_json.containsKey("concurrentAccess")) { | 6115 if (_json.containsKey("concurrentAccess")) { |
5909 concurrentAccess = new ConcurrentAccessRestriction.fromJson(_json["concurr
entAccess"]); | 6116 concurrentAccess = |
| 6117 new ConcurrentAccessRestriction.fromJson(_json["concurrentAccess"]); |
5910 } | 6118 } |
5911 if (_json.containsKey("downloadAccess")) { | 6119 if (_json.containsKey("downloadAccess")) { |
5912 downloadAccess = new DownloadAccessRestriction.fromJson(_json["downloadAcc
ess"]); | 6120 downloadAccess = |
| 6121 new DownloadAccessRestriction.fromJson(_json["downloadAccess"]); |
5913 } | 6122 } |
5914 if (_json.containsKey("kind")) { | 6123 if (_json.containsKey("kind")) { |
5915 kind = _json["kind"]; | 6124 kind = _json["kind"]; |
5916 } | 6125 } |
5917 } | 6126 } |
5918 | 6127 |
5919 core.Map<core.String, core.Object> toJson() { | 6128 core.Map<core.String, core.Object> toJson() { |
5920 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6129 final core.Map<core.String, core.Object> _json = |
| 6130 new core.Map<core.String, core.Object>(); |
5921 if (concurrentAccess != null) { | 6131 if (concurrentAccess != null) { |
5922 _json["concurrentAccess"] = (concurrentAccess).toJson(); | 6132 _json["concurrentAccess"] = (concurrentAccess).toJson(); |
5923 } | 6133 } |
5924 if (downloadAccess != null) { | 6134 if (downloadAccess != null) { |
5925 _json["downloadAccess"] = (downloadAccess).toJson(); | 6135 _json["downloadAccess"] = (downloadAccess).toJson(); |
5926 } | 6136 } |
5927 if (kind != null) { | 6137 if (kind != null) { |
5928 _json["kind"] = kind; | 6138 _json["kind"] = kind; |
5929 } | 6139 } |
5930 return _json; | 6140 return _json; |
5931 } | 6141 } |
5932 } | 6142 } |
5933 | 6143 |
5934 /** Author of this review. */ | 6144 /// Author of this review. |
5935 class ReviewAuthor { | 6145 class ReviewAuthor { |
5936 /** Name of this person. */ | 6146 /// Name of this person. |
5937 core.String displayName; | 6147 core.String displayName; |
5938 | 6148 |
5939 ReviewAuthor(); | 6149 ReviewAuthor(); |
5940 | 6150 |
5941 ReviewAuthor.fromJson(core.Map _json) { | 6151 ReviewAuthor.fromJson(core.Map _json) { |
5942 if (_json.containsKey("displayName")) { | 6152 if (_json.containsKey("displayName")) { |
5943 displayName = _json["displayName"]; | 6153 displayName = _json["displayName"]; |
5944 } | 6154 } |
5945 } | 6155 } |
5946 | 6156 |
5947 core.Map<core.String, core.Object> toJson() { | 6157 core.Map<core.String, core.Object> toJson() { |
5948 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6158 final core.Map<core.String, core.Object> _json = |
| 6159 new core.Map<core.String, core.Object>(); |
5949 if (displayName != null) { | 6160 if (displayName != null) { |
5950 _json["displayName"] = displayName; | 6161 _json["displayName"] = displayName; |
5951 } | 6162 } |
5952 return _json; | 6163 return _json; |
5953 } | 6164 } |
5954 } | 6165 } |
5955 | 6166 |
5956 /** | 6167 /// Information regarding the source of this review, when the review is not |
5957 * Information regarding the source of this review, when the review is not from | 6168 /// from a Google Books user. |
5958 * a Google Books user. | |
5959 */ | |
5960 class ReviewSource { | 6169 class ReviewSource { |
5961 /** Name of the source. */ | 6170 /// Name of the source. |
5962 core.String description; | 6171 core.String description; |
5963 /** Extra text about the source of the review. */ | 6172 |
| 6173 /// Extra text about the source of the review. |
5964 core.String extraDescription; | 6174 core.String extraDescription; |
5965 /** URL of the source of the review. */ | 6175 |
| 6176 /// URL of the source of the review. |
5966 core.String url; | 6177 core.String url; |
5967 | 6178 |
5968 ReviewSource(); | 6179 ReviewSource(); |
5969 | 6180 |
5970 ReviewSource.fromJson(core.Map _json) { | 6181 ReviewSource.fromJson(core.Map _json) { |
5971 if (_json.containsKey("description")) { | 6182 if (_json.containsKey("description")) { |
5972 description = _json["description"]; | 6183 description = _json["description"]; |
5973 } | 6184 } |
5974 if (_json.containsKey("extraDescription")) { | 6185 if (_json.containsKey("extraDescription")) { |
5975 extraDescription = _json["extraDescription"]; | 6186 extraDescription = _json["extraDescription"]; |
5976 } | 6187 } |
5977 if (_json.containsKey("url")) { | 6188 if (_json.containsKey("url")) { |
5978 url = _json["url"]; | 6189 url = _json["url"]; |
5979 } | 6190 } |
5980 } | 6191 } |
5981 | 6192 |
5982 core.Map<core.String, core.Object> toJson() { | 6193 core.Map<core.String, core.Object> toJson() { |
5983 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6194 final core.Map<core.String, core.Object> _json = |
| 6195 new core.Map<core.String, core.Object>(); |
5984 if (description != null) { | 6196 if (description != null) { |
5985 _json["description"] = description; | 6197 _json["description"] = description; |
5986 } | 6198 } |
5987 if (extraDescription != null) { | 6199 if (extraDescription != null) { |
5988 _json["extraDescription"] = extraDescription; | 6200 _json["extraDescription"] = extraDescription; |
5989 } | 6201 } |
5990 if (url != null) { | 6202 if (url != null) { |
5991 _json["url"] = url; | 6203 _json["url"] = url; |
5992 } | 6204 } |
5993 return _json; | 6205 return _json; |
5994 } | 6206 } |
5995 } | 6207 } |
5996 | 6208 |
5997 class Review { | 6209 class Review { |
5998 /** Author of this review. */ | 6210 /// Author of this review. |
5999 ReviewAuthor author; | 6211 ReviewAuthor author; |
6000 /** Review text. */ | 6212 |
| 6213 /// Review text. |
6001 core.String content; | 6214 core.String content; |
6002 /** Date of this review. */ | 6215 |
| 6216 /// Date of this review. |
6003 core.String date; | 6217 core.String date; |
6004 /** URL for the full review text, for reviews gathered from the web. */ | 6218 |
| 6219 /// URL for the full review text, for reviews gathered from the web. |
6005 core.String fullTextUrl; | 6220 core.String fullTextUrl; |
6006 /** Resource type for a review. */ | 6221 |
| 6222 /// Resource type for a review. |
6007 core.String kind; | 6223 core.String kind; |
6008 /** | 6224 |
6009 * Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, | 6225 /// Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, |
6010 * FIVE or NOT_RATED. | 6226 /// FIVE or NOT_RATED. |
6011 */ | |
6012 core.String rating; | 6227 core.String rating; |
6013 /** | 6228 |
6014 * Information regarding the source of this review, when the review is not | 6229 /// Information regarding the source of this review, when the review is not |
6015 * from a Google Books user. | 6230 /// from a Google Books user. |
6016 */ | |
6017 ReviewSource source; | 6231 ReviewSource source; |
6018 /** Title for this review. */ | 6232 |
| 6233 /// Title for this review. |
6019 core.String title; | 6234 core.String title; |
6020 /** | 6235 |
6021 * Source type for this review. Possible values are EDITORIAL, WEB_USER or | 6236 /// Source type for this review. Possible values are EDITORIAL, WEB_USER or |
6022 * GOOGLE_USER. | 6237 /// GOOGLE_USER. |
6023 */ | |
6024 core.String type; | 6238 core.String type; |
6025 /** Volume that this review is for. */ | 6239 |
| 6240 /// Volume that this review is for. |
6026 core.String volumeId; | 6241 core.String volumeId; |
6027 | 6242 |
6028 Review(); | 6243 Review(); |
6029 | 6244 |
6030 Review.fromJson(core.Map _json) { | 6245 Review.fromJson(core.Map _json) { |
6031 if (_json.containsKey("author")) { | 6246 if (_json.containsKey("author")) { |
6032 author = new ReviewAuthor.fromJson(_json["author"]); | 6247 author = new ReviewAuthor.fromJson(_json["author"]); |
6033 } | 6248 } |
6034 if (_json.containsKey("content")) { | 6249 if (_json.containsKey("content")) { |
6035 content = _json["content"]; | 6250 content = _json["content"]; |
(...skipping 18 matching lines...) Expand all Loading... |
6054 } | 6269 } |
6055 if (_json.containsKey("type")) { | 6270 if (_json.containsKey("type")) { |
6056 type = _json["type"]; | 6271 type = _json["type"]; |
6057 } | 6272 } |
6058 if (_json.containsKey("volumeId")) { | 6273 if (_json.containsKey("volumeId")) { |
6059 volumeId = _json["volumeId"]; | 6274 volumeId = _json["volumeId"]; |
6060 } | 6275 } |
6061 } | 6276 } |
6062 | 6277 |
6063 core.Map<core.String, core.Object> toJson() { | 6278 core.Map<core.String, core.Object> toJson() { |
6064 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6279 final core.Map<core.String, core.Object> _json = |
| 6280 new core.Map<core.String, core.Object>(); |
6065 if (author != null) { | 6281 if (author != null) { |
6066 _json["author"] = (author).toJson(); | 6282 _json["author"] = (author).toJson(); |
6067 } | 6283 } |
6068 if (content != null) { | 6284 if (content != null) { |
6069 _json["content"] = content; | 6285 _json["content"] = content; |
6070 } | 6286 } |
6071 if (date != null) { | 6287 if (date != null) { |
6072 _json["date"] = date; | 6288 _json["date"] = date; |
6073 } | 6289 } |
6074 if (fullTextUrl != null) { | 6290 if (fullTextUrl != null) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6117 } | 6333 } |
6118 if (_json.containsKey("seriesType")) { | 6334 if (_json.containsKey("seriesType")) { |
6119 seriesType = _json["seriesType"]; | 6335 seriesType = _json["seriesType"]; |
6120 } | 6336 } |
6121 if (_json.containsKey("title")) { | 6337 if (_json.containsKey("title")) { |
6122 title = _json["title"]; | 6338 title = _json["title"]; |
6123 } | 6339 } |
6124 } | 6340 } |
6125 | 6341 |
6126 core.Map<core.String, core.Object> toJson() { | 6342 core.Map<core.String, core.Object> toJson() { |
6127 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6343 final core.Map<core.String, core.Object> _json = |
| 6344 new core.Map<core.String, core.Object>(); |
6128 if (bannerImageUrl != null) { | 6345 if (bannerImageUrl != null) { |
6129 _json["bannerImageUrl"] = bannerImageUrl; | 6346 _json["bannerImageUrl"] = bannerImageUrl; |
6130 } | 6347 } |
6131 if (imageUrl != null) { | 6348 if (imageUrl != null) { |
6132 _json["imageUrl"] = imageUrl; | 6349 _json["imageUrl"] = imageUrl; |
6133 } | 6350 } |
6134 if (seriesId != null) { | 6351 if (seriesId != null) { |
6135 _json["seriesId"] = seriesId; | 6352 _json["seriesId"] = seriesId; |
6136 } | 6353 } |
6137 if (seriesType != null) { | 6354 if (seriesType != null) { |
6138 _json["seriesType"] = seriesType; | 6355 _json["seriesType"] = seriesType; |
6139 } | 6356 } |
6140 if (title != null) { | 6357 if (title != null) { |
6141 _json["title"] = title; | 6358 _json["title"] = title; |
6142 } | 6359 } |
6143 return _json; | 6360 return _json; |
6144 } | 6361 } |
6145 } | 6362 } |
6146 | 6363 |
6147 class Series { | 6364 class Series { |
6148 /** Resource type. */ | 6365 /// Resource type. |
6149 core.String kind; | 6366 core.String kind; |
6150 core.List<SeriesSeries> series; | 6367 core.List<SeriesSeries> series; |
6151 | 6368 |
6152 Series(); | 6369 Series(); |
6153 | 6370 |
6154 Series.fromJson(core.Map _json) { | 6371 Series.fromJson(core.Map _json) { |
6155 if (_json.containsKey("kind")) { | 6372 if (_json.containsKey("kind")) { |
6156 kind = _json["kind"]; | 6373 kind = _json["kind"]; |
6157 } | 6374 } |
6158 if (_json.containsKey("series")) { | 6375 if (_json.containsKey("series")) { |
6159 series = _json["series"].map((value) => new SeriesSeries.fromJson(value)).
toList(); | 6376 series = _json["series"] |
| 6377 .map((value) => new SeriesSeries.fromJson(value)) |
| 6378 .toList(); |
6160 } | 6379 } |
6161 } | 6380 } |
6162 | 6381 |
6163 core.Map<core.String, core.Object> toJson() { | 6382 core.Map<core.String, core.Object> toJson() { |
6164 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6383 final core.Map<core.String, core.Object> _json = |
| 6384 new core.Map<core.String, core.Object>(); |
6165 if (kind != null) { | 6385 if (kind != null) { |
6166 _json["kind"] = kind; | 6386 _json["kind"] = kind; |
6167 } | 6387 } |
6168 if (series != null) { | 6388 if (series != null) { |
6169 _json["series"] = series.map((value) => (value).toJson()).toList(); | 6389 _json["series"] = series.map((value) => (value).toJson()).toList(); |
6170 } | 6390 } |
6171 return _json; | 6391 return _json; |
6172 } | 6392 } |
6173 } | 6393 } |
6174 | 6394 |
6175 class Seriesmembership { | 6395 class Seriesmembership { |
6176 /** Resorce type. */ | 6396 /// Resorce type. |
6177 core.String kind; | 6397 core.String kind; |
6178 core.List<Volume> member; | 6398 core.List<Volume> member; |
6179 core.String nextPageToken; | 6399 core.String nextPageToken; |
6180 | 6400 |
6181 Seriesmembership(); | 6401 Seriesmembership(); |
6182 | 6402 |
6183 Seriesmembership.fromJson(core.Map _json) { | 6403 Seriesmembership.fromJson(core.Map _json) { |
6184 if (_json.containsKey("kind")) { | 6404 if (_json.containsKey("kind")) { |
6185 kind = _json["kind"]; | 6405 kind = _json["kind"]; |
6186 } | 6406 } |
6187 if (_json.containsKey("member")) { | 6407 if (_json.containsKey("member")) { |
6188 member = _json["member"].map((value) => new Volume.fromJson(value)).toList
(); | 6408 member = |
| 6409 _json["member"].map((value) => new Volume.fromJson(value)).toList(); |
6189 } | 6410 } |
6190 if (_json.containsKey("nextPageToken")) { | 6411 if (_json.containsKey("nextPageToken")) { |
6191 nextPageToken = _json["nextPageToken"]; | 6412 nextPageToken = _json["nextPageToken"]; |
6192 } | 6413 } |
6193 } | 6414 } |
6194 | 6415 |
6195 core.Map<core.String, core.Object> toJson() { | 6416 core.Map<core.String, core.Object> toJson() { |
6196 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6417 final core.Map<core.String, core.Object> _json = |
| 6418 new core.Map<core.String, core.Object>(); |
6197 if (kind != null) { | 6419 if (kind != null) { |
6198 _json["kind"] = kind; | 6420 _json["kind"] = kind; |
6199 } | 6421 } |
6200 if (member != null) { | 6422 if (member != null) { |
6201 _json["member"] = member.map((value) => (value).toJson()).toList(); | 6423 _json["member"] = member.map((value) => (value).toJson()).toList(); |
6202 } | 6424 } |
6203 if (nextPageToken != null) { | 6425 if (nextPageToken != null) { |
6204 _json["nextPageToken"] = nextPageToken; | 6426 _json["nextPageToken"] = nextPageToken; |
6205 } | 6427 } |
6206 return _json; | 6428 return _json; |
6207 } | 6429 } |
6208 } | 6430 } |
6209 | 6431 |
6210 /** User settings in sub-objects, each for different purposes. */ | 6432 /// User settings in sub-objects, each for different purposes. |
6211 class UsersettingsNotesExport { | 6433 class UsersettingsNotesExport { |
6212 core.String folderName; | 6434 core.String folderName; |
6213 core.bool isEnabled; | 6435 core.bool isEnabled; |
6214 | 6436 |
6215 UsersettingsNotesExport(); | 6437 UsersettingsNotesExport(); |
6216 | 6438 |
6217 UsersettingsNotesExport.fromJson(core.Map _json) { | 6439 UsersettingsNotesExport.fromJson(core.Map _json) { |
6218 if (_json.containsKey("folderName")) { | 6440 if (_json.containsKey("folderName")) { |
6219 folderName = _json["folderName"]; | 6441 folderName = _json["folderName"]; |
6220 } | 6442 } |
6221 if (_json.containsKey("isEnabled")) { | 6443 if (_json.containsKey("isEnabled")) { |
6222 isEnabled = _json["isEnabled"]; | 6444 isEnabled = _json["isEnabled"]; |
6223 } | 6445 } |
6224 } | 6446 } |
6225 | 6447 |
6226 core.Map<core.String, core.Object> toJson() { | 6448 core.Map<core.String, core.Object> toJson() { |
6227 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6449 final core.Map<core.String, core.Object> _json = |
| 6450 new core.Map<core.String, core.Object>(); |
6228 if (folderName != null) { | 6451 if (folderName != null) { |
6229 _json["folderName"] = folderName; | 6452 _json["folderName"] = folderName; |
6230 } | 6453 } |
6231 if (isEnabled != null) { | 6454 if (isEnabled != null) { |
6232 _json["isEnabled"] = isEnabled; | 6455 _json["isEnabled"] = isEnabled; |
6233 } | 6456 } |
6234 return _json; | 6457 return _json; |
6235 } | 6458 } |
6236 } | 6459 } |
6237 | 6460 |
6238 class UsersettingsNotificationMoreFromAuthors { | 6461 class UsersettingsNotificationMoreFromAuthors { |
6239 core.String optedState; | 6462 core.String optedState; |
6240 | 6463 |
6241 UsersettingsNotificationMoreFromAuthors(); | 6464 UsersettingsNotificationMoreFromAuthors(); |
6242 | 6465 |
6243 UsersettingsNotificationMoreFromAuthors.fromJson(core.Map _json) { | 6466 UsersettingsNotificationMoreFromAuthors.fromJson(core.Map _json) { |
6244 if (_json.containsKey("opted_state")) { | 6467 if (_json.containsKey("opted_state")) { |
6245 optedState = _json["opted_state"]; | 6468 optedState = _json["opted_state"]; |
6246 } | 6469 } |
6247 } | 6470 } |
6248 | 6471 |
6249 core.Map<core.String, core.Object> toJson() { | 6472 core.Map<core.String, core.Object> toJson() { |
6250 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6473 final core.Map<core.String, core.Object> _json = |
| 6474 new core.Map<core.String, core.Object>(); |
6251 if (optedState != null) { | 6475 if (optedState != null) { |
6252 _json["opted_state"] = optedState; | 6476 _json["opted_state"] = optedState; |
6253 } | 6477 } |
6254 return _json; | 6478 return _json; |
6255 } | 6479 } |
6256 } | 6480 } |
6257 | 6481 |
6258 class UsersettingsNotificationMoreFromSeries { | 6482 class UsersettingsNotificationMoreFromSeries { |
6259 core.String optedState; | 6483 core.String optedState; |
6260 | 6484 |
6261 UsersettingsNotificationMoreFromSeries(); | 6485 UsersettingsNotificationMoreFromSeries(); |
6262 | 6486 |
6263 UsersettingsNotificationMoreFromSeries.fromJson(core.Map _json) { | 6487 UsersettingsNotificationMoreFromSeries.fromJson(core.Map _json) { |
6264 if (_json.containsKey("opted_state")) { | 6488 if (_json.containsKey("opted_state")) { |
6265 optedState = _json["opted_state"]; | 6489 optedState = _json["opted_state"]; |
6266 } | 6490 } |
6267 } | 6491 } |
6268 | 6492 |
6269 core.Map<core.String, core.Object> toJson() { | 6493 core.Map<core.String, core.Object> toJson() { |
6270 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6494 final core.Map<core.String, core.Object> _json = |
| 6495 new core.Map<core.String, core.Object>(); |
6271 if (optedState != null) { | 6496 if (optedState != null) { |
6272 _json["opted_state"] = optedState; | 6497 _json["opted_state"] = optedState; |
6273 } | 6498 } |
6274 return _json; | 6499 return _json; |
6275 } | 6500 } |
6276 } | 6501 } |
6277 | 6502 |
6278 class UsersettingsNotificationRewardExpirations { | 6503 class UsersettingsNotificationRewardExpirations { |
6279 core.String optedState; | 6504 core.String optedState; |
6280 | 6505 |
6281 UsersettingsNotificationRewardExpirations(); | 6506 UsersettingsNotificationRewardExpirations(); |
6282 | 6507 |
6283 UsersettingsNotificationRewardExpirations.fromJson(core.Map _json) { | 6508 UsersettingsNotificationRewardExpirations.fromJson(core.Map _json) { |
6284 if (_json.containsKey("opted_state")) { | 6509 if (_json.containsKey("opted_state")) { |
6285 optedState = _json["opted_state"]; | 6510 optedState = _json["opted_state"]; |
6286 } | 6511 } |
6287 } | 6512 } |
6288 | 6513 |
6289 core.Map<core.String, core.Object> toJson() { | 6514 core.Map<core.String, core.Object> toJson() { |
6290 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6515 final core.Map<core.String, core.Object> _json = |
| 6516 new core.Map<core.String, core.Object>(); |
6291 if (optedState != null) { | 6517 if (optedState != null) { |
6292 _json["opted_state"] = optedState; | 6518 _json["opted_state"] = optedState; |
6293 } | 6519 } |
6294 return _json; | 6520 return _json; |
6295 } | 6521 } |
6296 } | 6522 } |
6297 | 6523 |
6298 class UsersettingsNotification { | 6524 class UsersettingsNotification { |
6299 UsersettingsNotificationMoreFromAuthors moreFromAuthors; | 6525 UsersettingsNotificationMoreFromAuthors moreFromAuthors; |
6300 UsersettingsNotificationMoreFromSeries moreFromSeries; | 6526 UsersettingsNotificationMoreFromSeries moreFromSeries; |
6301 UsersettingsNotificationRewardExpirations rewardExpirations; | 6527 UsersettingsNotificationRewardExpirations rewardExpirations; |
6302 | 6528 |
6303 UsersettingsNotification(); | 6529 UsersettingsNotification(); |
6304 | 6530 |
6305 UsersettingsNotification.fromJson(core.Map _json) { | 6531 UsersettingsNotification.fromJson(core.Map _json) { |
6306 if (_json.containsKey("moreFromAuthors")) { | 6532 if (_json.containsKey("moreFromAuthors")) { |
6307 moreFromAuthors = new UsersettingsNotificationMoreFromAuthors.fromJson(_js
on["moreFromAuthors"]); | 6533 moreFromAuthors = new UsersettingsNotificationMoreFromAuthors.fromJson( |
| 6534 _json["moreFromAuthors"]); |
6308 } | 6535 } |
6309 if (_json.containsKey("moreFromSeries")) { | 6536 if (_json.containsKey("moreFromSeries")) { |
6310 moreFromSeries = new UsersettingsNotificationMoreFromSeries.fromJson(_json
["moreFromSeries"]); | 6537 moreFromSeries = new UsersettingsNotificationMoreFromSeries.fromJson( |
| 6538 _json["moreFromSeries"]); |
6311 } | 6539 } |
6312 if (_json.containsKey("rewardExpirations")) { | 6540 if (_json.containsKey("rewardExpirations")) { |
6313 rewardExpirations = new UsersettingsNotificationRewardExpirations.fromJson
(_json["rewardExpirations"]); | 6541 rewardExpirations = |
| 6542 new UsersettingsNotificationRewardExpirations.fromJson( |
| 6543 _json["rewardExpirations"]); |
6314 } | 6544 } |
6315 } | 6545 } |
6316 | 6546 |
6317 core.Map<core.String, core.Object> toJson() { | 6547 core.Map<core.String, core.Object> toJson() { |
6318 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6548 final core.Map<core.String, core.Object> _json = |
| 6549 new core.Map<core.String, core.Object>(); |
6319 if (moreFromAuthors != null) { | 6550 if (moreFromAuthors != null) { |
6320 _json["moreFromAuthors"] = (moreFromAuthors).toJson(); | 6551 _json["moreFromAuthors"] = (moreFromAuthors).toJson(); |
6321 } | 6552 } |
6322 if (moreFromSeries != null) { | 6553 if (moreFromSeries != null) { |
6323 _json["moreFromSeries"] = (moreFromSeries).toJson(); | 6554 _json["moreFromSeries"] = (moreFromSeries).toJson(); |
6324 } | 6555 } |
6325 if (rewardExpirations != null) { | 6556 if (rewardExpirations != null) { |
6326 _json["rewardExpirations"] = (rewardExpirations).toJson(); | 6557 _json["rewardExpirations"] = (rewardExpirations).toJson(); |
6327 } | 6558 } |
6328 return _json; | 6559 return _json; |
6329 } | 6560 } |
6330 } | 6561 } |
6331 | 6562 |
6332 class Usersettings { | 6563 class Usersettings { |
6333 /** Resource type. */ | 6564 /// Resource type. |
6334 core.String kind; | 6565 core.String kind; |
6335 /** User settings in sub-objects, each for different purposes. */ | 6566 |
| 6567 /// User settings in sub-objects, each for different purposes. |
6336 UsersettingsNotesExport notesExport; | 6568 UsersettingsNotesExport notesExport; |
6337 UsersettingsNotification notification; | 6569 UsersettingsNotification notification; |
6338 | 6570 |
6339 Usersettings(); | 6571 Usersettings(); |
6340 | 6572 |
6341 Usersettings.fromJson(core.Map _json) { | 6573 Usersettings.fromJson(core.Map _json) { |
6342 if (_json.containsKey("kind")) { | 6574 if (_json.containsKey("kind")) { |
6343 kind = _json["kind"]; | 6575 kind = _json["kind"]; |
6344 } | 6576 } |
6345 if (_json.containsKey("notesExport")) { | 6577 if (_json.containsKey("notesExport")) { |
6346 notesExport = new UsersettingsNotesExport.fromJson(_json["notesExport"]); | 6578 notesExport = new UsersettingsNotesExport.fromJson(_json["notesExport"]); |
6347 } | 6579 } |
6348 if (_json.containsKey("notification")) { | 6580 if (_json.containsKey("notification")) { |
6349 notification = new UsersettingsNotification.fromJson(_json["notification"]
); | 6581 notification = |
| 6582 new UsersettingsNotification.fromJson(_json["notification"]); |
6350 } | 6583 } |
6351 } | 6584 } |
6352 | 6585 |
6353 core.Map<core.String, core.Object> toJson() { | 6586 core.Map<core.String, core.Object> toJson() { |
6354 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6587 final core.Map<core.String, core.Object> _json = |
| 6588 new core.Map<core.String, core.Object>(); |
6355 if (kind != null) { | 6589 if (kind != null) { |
6356 _json["kind"] = kind; | 6590 _json["kind"] = kind; |
6357 } | 6591 } |
6358 if (notesExport != null) { | 6592 if (notesExport != null) { |
6359 _json["notesExport"] = (notesExport).toJson(); | 6593 _json["notesExport"] = (notesExport).toJson(); |
6360 } | 6594 } |
6361 if (notification != null) { | 6595 if (notification != null) { |
6362 _json["notification"] = (notification).toJson(); | 6596 _json["notification"] = (notification).toJson(); |
6363 } | 6597 } |
6364 return _json; | 6598 return _json; |
6365 } | 6599 } |
6366 } | 6600 } |
6367 | 6601 |
6368 /** Information about epub content. (In LITE projection.) */ | 6602 /// Information about epub content. (In LITE projection.) |
6369 class VolumeAccessInfoEpub { | 6603 class VolumeAccessInfoEpub { |
6370 /** URL to retrieve ACS token for epub download. (In LITE projection.) */ | 6604 /// URL to retrieve ACS token for epub download. (In LITE projection.) |
6371 core.String acsTokenLink; | 6605 core.String acsTokenLink; |
6372 /** URL to download epub. (In LITE projection.) */ | 6606 |
| 6607 /// URL to download epub. (In LITE projection.) |
6373 core.String downloadLink; | 6608 core.String downloadLink; |
6374 /** | 6609 |
6375 * Is a flowing text epub available either as public domain or for purchase. | 6610 /// Is a flowing text epub available either as public domain or for purchase. |
6376 * (In LITE projection.) | 6611 /// (In LITE projection.) |
6377 */ | |
6378 core.bool isAvailable; | 6612 core.bool isAvailable; |
6379 | 6613 |
6380 VolumeAccessInfoEpub(); | 6614 VolumeAccessInfoEpub(); |
6381 | 6615 |
6382 VolumeAccessInfoEpub.fromJson(core.Map _json) { | 6616 VolumeAccessInfoEpub.fromJson(core.Map _json) { |
6383 if (_json.containsKey("acsTokenLink")) { | 6617 if (_json.containsKey("acsTokenLink")) { |
6384 acsTokenLink = _json["acsTokenLink"]; | 6618 acsTokenLink = _json["acsTokenLink"]; |
6385 } | 6619 } |
6386 if (_json.containsKey("downloadLink")) { | 6620 if (_json.containsKey("downloadLink")) { |
6387 downloadLink = _json["downloadLink"]; | 6621 downloadLink = _json["downloadLink"]; |
6388 } | 6622 } |
6389 if (_json.containsKey("isAvailable")) { | 6623 if (_json.containsKey("isAvailable")) { |
6390 isAvailable = _json["isAvailable"]; | 6624 isAvailable = _json["isAvailable"]; |
6391 } | 6625 } |
6392 } | 6626 } |
6393 | 6627 |
6394 core.Map<core.String, core.Object> toJson() { | 6628 core.Map<core.String, core.Object> toJson() { |
6395 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6629 final core.Map<core.String, core.Object> _json = |
| 6630 new core.Map<core.String, core.Object>(); |
6396 if (acsTokenLink != null) { | 6631 if (acsTokenLink != null) { |
6397 _json["acsTokenLink"] = acsTokenLink; | 6632 _json["acsTokenLink"] = acsTokenLink; |
6398 } | 6633 } |
6399 if (downloadLink != null) { | 6634 if (downloadLink != null) { |
6400 _json["downloadLink"] = downloadLink; | 6635 _json["downloadLink"] = downloadLink; |
6401 } | 6636 } |
6402 if (isAvailable != null) { | 6637 if (isAvailable != null) { |
6403 _json["isAvailable"] = isAvailable; | 6638 _json["isAvailable"] = isAvailable; |
6404 } | 6639 } |
6405 return _json; | 6640 return _json; |
6406 } | 6641 } |
6407 } | 6642 } |
6408 | 6643 |
6409 /** Information about pdf content. (In LITE projection.) */ | 6644 /// Information about pdf content. (In LITE projection.) |
6410 class VolumeAccessInfoPdf { | 6645 class VolumeAccessInfoPdf { |
6411 /** URL to retrieve ACS token for pdf download. (In LITE projection.) */ | 6646 /// URL to retrieve ACS token for pdf download. (In LITE projection.) |
6412 core.String acsTokenLink; | 6647 core.String acsTokenLink; |
6413 /** URL to download pdf. (In LITE projection.) */ | 6648 |
| 6649 /// URL to download pdf. (In LITE projection.) |
6414 core.String downloadLink; | 6650 core.String downloadLink; |
6415 /** | 6651 |
6416 * Is a scanned image pdf available either as public domain or for purchase. | 6652 /// Is a scanned image pdf available either as public domain or for purchase. |
6417 * (In LITE projection.) | 6653 /// (In LITE projection.) |
6418 */ | |
6419 core.bool isAvailable; | 6654 core.bool isAvailable; |
6420 | 6655 |
6421 VolumeAccessInfoPdf(); | 6656 VolumeAccessInfoPdf(); |
6422 | 6657 |
6423 VolumeAccessInfoPdf.fromJson(core.Map _json) { | 6658 VolumeAccessInfoPdf.fromJson(core.Map _json) { |
6424 if (_json.containsKey("acsTokenLink")) { | 6659 if (_json.containsKey("acsTokenLink")) { |
6425 acsTokenLink = _json["acsTokenLink"]; | 6660 acsTokenLink = _json["acsTokenLink"]; |
6426 } | 6661 } |
6427 if (_json.containsKey("downloadLink")) { | 6662 if (_json.containsKey("downloadLink")) { |
6428 downloadLink = _json["downloadLink"]; | 6663 downloadLink = _json["downloadLink"]; |
6429 } | 6664 } |
6430 if (_json.containsKey("isAvailable")) { | 6665 if (_json.containsKey("isAvailable")) { |
6431 isAvailable = _json["isAvailable"]; | 6666 isAvailable = _json["isAvailable"]; |
6432 } | 6667 } |
6433 } | 6668 } |
6434 | 6669 |
6435 core.Map<core.String, core.Object> toJson() { | 6670 core.Map<core.String, core.Object> toJson() { |
6436 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6671 final core.Map<core.String, core.Object> _json = |
| 6672 new core.Map<core.String, core.Object>(); |
6437 if (acsTokenLink != null) { | 6673 if (acsTokenLink != null) { |
6438 _json["acsTokenLink"] = acsTokenLink; | 6674 _json["acsTokenLink"] = acsTokenLink; |
6439 } | 6675 } |
6440 if (downloadLink != null) { | 6676 if (downloadLink != null) { |
6441 _json["downloadLink"] = downloadLink; | 6677 _json["downloadLink"] = downloadLink; |
6442 } | 6678 } |
6443 if (isAvailable != null) { | 6679 if (isAvailable != null) { |
6444 _json["isAvailable"] = isAvailable; | 6680 _json["isAvailable"] = isAvailable; |
6445 } | 6681 } |
6446 return _json; | 6682 return _json; |
6447 } | 6683 } |
6448 } | 6684 } |
6449 | 6685 |
6450 /** | 6686 /// Any information about a volume related to reading or obtaining that volume |
6451 * Any information about a volume related to reading or obtaining that volume | 6687 /// text. This information can depend on country (books may be public domain in |
6452 * text. This information can depend on country (books may be public domain in | 6688 /// one country but not in another, e.g.). |
6453 * one country but not in another, e.g.). | |
6454 */ | |
6455 class VolumeAccessInfo { | 6689 class VolumeAccessInfo { |
6456 /** | 6690 /// Combines the access and viewability of this volume into a single status |
6457 * Combines the access and viewability of this volume into a single status | 6691 /// field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, |
6458 * field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, | 6692 /// SAMPLE or NONE. (In LITE projection.) |
6459 * SAMPLE or NONE. (In LITE projection.) | |
6460 */ | |
6461 core.String accessViewStatus; | 6693 core.String accessViewStatus; |
6462 /** | 6694 |
6463 * The two-letter ISO_3166-1 country code for which this access information is | 6695 /// The two-letter ISO_3166-1 country code for which this access information |
6464 * valid. (In LITE projection.) | 6696 /// is valid. (In LITE projection.) |
6465 */ | |
6466 core.String country; | 6697 core.String country; |
6467 /** Information about a volume's download license access restrictions. */ | 6698 |
| 6699 /// Information about a volume's download license access restrictions. |
6468 DownloadAccessRestriction downloadAccess; | 6700 DownloadAccessRestriction downloadAccess; |
6469 /** | 6701 |
6470 * URL to the Google Drive viewer if this volume is uploaded by the user by | 6702 /// URL to the Google Drive viewer if this volume is uploaded by the user by |
6471 * selecting the file from Google Drive. | 6703 /// selecting the file from Google Drive. |
6472 */ | |
6473 core.String driveImportedContentLink; | 6704 core.String driveImportedContentLink; |
6474 /** | 6705 |
6475 * Whether this volume can be embedded in a viewport using the Embedded Viewer | 6706 /// Whether this volume can be embedded in a viewport using the Embedded |
6476 * API. | 6707 /// Viewer API. |
6477 */ | |
6478 core.bool embeddable; | 6708 core.bool embeddable; |
6479 /** Information about epub content. (In LITE projection.) */ | 6709 |
| 6710 /// Information about epub content. (In LITE projection.) |
6480 VolumeAccessInfoEpub epub; | 6711 VolumeAccessInfoEpub epub; |
6481 /** | 6712 |
6482 * Whether this volume requires that the client explicitly request offline | 6713 /// Whether this volume requires that the client explicitly request offline |
6483 * download license rather than have it done automatically when loading the | 6714 /// download license rather than have it done automatically when loading the |
6484 * content, if the client supports it. | 6715 /// content, if the client supports it. |
6485 */ | |
6486 core.bool explicitOfflineLicenseManagement; | 6716 core.bool explicitOfflineLicenseManagement; |
6487 /** Information about pdf content. (In LITE projection.) */ | 6717 |
| 6718 /// Information about pdf content. (In LITE projection.) |
6488 VolumeAccessInfoPdf pdf; | 6719 VolumeAccessInfoPdf pdf; |
6489 /** Whether or not this book is public domain in the country listed above. */ | 6720 |
| 6721 /// Whether or not this book is public domain in the country listed above. |
6490 core.bool publicDomain; | 6722 core.bool publicDomain; |
6491 /** Whether quote sharing is allowed for this volume. */ | 6723 |
| 6724 /// Whether quote sharing is allowed for this volume. |
6492 core.bool quoteSharingAllowed; | 6725 core.bool quoteSharingAllowed; |
6493 /** | 6726 |
6494 * Whether text-to-speech is permitted for this volume. Values can be ALLOWED, | 6727 /// Whether text-to-speech is permitted for this volume. Values can be |
6495 * ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED. | 6728 /// ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED. |
6496 */ | |
6497 core.String textToSpeechPermission; | 6729 core.String textToSpeechPermission; |
6498 /** | 6730 |
6499 * For ordered but not yet processed orders, we give a URL that can be used to | 6731 /// For ordered but not yet processed orders, we give a URL that can be used |
6500 * go to the appropriate Google Wallet page. | 6732 /// to go to the appropriate Google Wallet page. |
6501 */ | |
6502 core.String viewOrderUrl; | 6733 core.String viewOrderUrl; |
6503 /** | 6734 |
6504 * The read access of a volume. Possible values are PARTIAL, ALL_PAGES, | 6735 /// The read access of a volume. Possible values are PARTIAL, ALL_PAGES, |
6505 * NO_PAGES or UNKNOWN. This value depends on the country listed above. A | 6736 /// NO_PAGES or UNKNOWN. This value depends on the country listed above. A |
6506 * value of PARTIAL means that the publisher has allowed some portion of the | 6737 /// value of PARTIAL means that the publisher has allowed some portion of the |
6507 * volume to be viewed publicly, without purchase. This can apply to eBooks as | 6738 /// volume to be viewed publicly, without purchase. This can apply to eBooks |
6508 * well as non-eBooks. Public domain books will always have a value of | 6739 /// as well as non-eBooks. Public domain books will always have a value of |
6509 * ALL_PAGES. | 6740 /// ALL_PAGES. |
6510 */ | |
6511 core.String viewability; | 6741 core.String viewability; |
6512 /** | 6742 |
6513 * URL to read this volume on the Google Books site. Link will not allow users | 6743 /// URL to read this volume on the Google Books site. Link will not allow |
6514 * to read non-viewable volumes. | 6744 /// users to read non-viewable volumes. |
6515 */ | |
6516 core.String webReaderLink; | 6745 core.String webReaderLink; |
6517 | 6746 |
6518 VolumeAccessInfo(); | 6747 VolumeAccessInfo(); |
6519 | 6748 |
6520 VolumeAccessInfo.fromJson(core.Map _json) { | 6749 VolumeAccessInfo.fromJson(core.Map _json) { |
6521 if (_json.containsKey("accessViewStatus")) { | 6750 if (_json.containsKey("accessViewStatus")) { |
6522 accessViewStatus = _json["accessViewStatus"]; | 6751 accessViewStatus = _json["accessViewStatus"]; |
6523 } | 6752 } |
6524 if (_json.containsKey("country")) { | 6753 if (_json.containsKey("country")) { |
6525 country = _json["country"]; | 6754 country = _json["country"]; |
6526 } | 6755 } |
6527 if (_json.containsKey("downloadAccess")) { | 6756 if (_json.containsKey("downloadAccess")) { |
6528 downloadAccess = new DownloadAccessRestriction.fromJson(_json["downloadAcc
ess"]); | 6757 downloadAccess = |
| 6758 new DownloadAccessRestriction.fromJson(_json["downloadAccess"]); |
6529 } | 6759 } |
6530 if (_json.containsKey("driveImportedContentLink")) { | 6760 if (_json.containsKey("driveImportedContentLink")) { |
6531 driveImportedContentLink = _json["driveImportedContentLink"]; | 6761 driveImportedContentLink = _json["driveImportedContentLink"]; |
6532 } | 6762 } |
6533 if (_json.containsKey("embeddable")) { | 6763 if (_json.containsKey("embeddable")) { |
6534 embeddable = _json["embeddable"]; | 6764 embeddable = _json["embeddable"]; |
6535 } | 6765 } |
6536 if (_json.containsKey("epub")) { | 6766 if (_json.containsKey("epub")) { |
6537 epub = new VolumeAccessInfoEpub.fromJson(_json["epub"]); | 6767 epub = new VolumeAccessInfoEpub.fromJson(_json["epub"]); |
6538 } | 6768 } |
6539 if (_json.containsKey("explicitOfflineLicenseManagement")) { | 6769 if (_json.containsKey("explicitOfflineLicenseManagement")) { |
6540 explicitOfflineLicenseManagement = _json["explicitOfflineLicenseManagement
"]; | 6770 explicitOfflineLicenseManagement = |
| 6771 _json["explicitOfflineLicenseManagement"]; |
6541 } | 6772 } |
6542 if (_json.containsKey("pdf")) { | 6773 if (_json.containsKey("pdf")) { |
6543 pdf = new VolumeAccessInfoPdf.fromJson(_json["pdf"]); | 6774 pdf = new VolumeAccessInfoPdf.fromJson(_json["pdf"]); |
6544 } | 6775 } |
6545 if (_json.containsKey("publicDomain")) { | 6776 if (_json.containsKey("publicDomain")) { |
6546 publicDomain = _json["publicDomain"]; | 6777 publicDomain = _json["publicDomain"]; |
6547 } | 6778 } |
6548 if (_json.containsKey("quoteSharingAllowed")) { | 6779 if (_json.containsKey("quoteSharingAllowed")) { |
6549 quoteSharingAllowed = _json["quoteSharingAllowed"]; | 6780 quoteSharingAllowed = _json["quoteSharingAllowed"]; |
6550 } | 6781 } |
6551 if (_json.containsKey("textToSpeechPermission")) { | 6782 if (_json.containsKey("textToSpeechPermission")) { |
6552 textToSpeechPermission = _json["textToSpeechPermission"]; | 6783 textToSpeechPermission = _json["textToSpeechPermission"]; |
6553 } | 6784 } |
6554 if (_json.containsKey("viewOrderUrl")) { | 6785 if (_json.containsKey("viewOrderUrl")) { |
6555 viewOrderUrl = _json["viewOrderUrl"]; | 6786 viewOrderUrl = _json["viewOrderUrl"]; |
6556 } | 6787 } |
6557 if (_json.containsKey("viewability")) { | 6788 if (_json.containsKey("viewability")) { |
6558 viewability = _json["viewability"]; | 6789 viewability = _json["viewability"]; |
6559 } | 6790 } |
6560 if (_json.containsKey("webReaderLink")) { | 6791 if (_json.containsKey("webReaderLink")) { |
6561 webReaderLink = _json["webReaderLink"]; | 6792 webReaderLink = _json["webReaderLink"]; |
6562 } | 6793 } |
6563 } | 6794 } |
6564 | 6795 |
6565 core.Map<core.String, core.Object> toJson() { | 6796 core.Map<core.String, core.Object> toJson() { |
6566 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6797 final core.Map<core.String, core.Object> _json = |
| 6798 new core.Map<core.String, core.Object>(); |
6567 if (accessViewStatus != null) { | 6799 if (accessViewStatus != null) { |
6568 _json["accessViewStatus"] = accessViewStatus; | 6800 _json["accessViewStatus"] = accessViewStatus; |
6569 } | 6801 } |
6570 if (country != null) { | 6802 if (country != null) { |
6571 _json["country"] = country; | 6803 _json["country"] = country; |
6572 } | 6804 } |
6573 if (downloadAccess != null) { | 6805 if (downloadAccess != null) { |
6574 _json["downloadAccess"] = (downloadAccess).toJson(); | 6806 _json["downloadAccess"] = (downloadAccess).toJson(); |
6575 } | 6807 } |
6576 if (driveImportedContentLink != null) { | 6808 if (driveImportedContentLink != null) { |
6577 _json["driveImportedContentLink"] = driveImportedContentLink; | 6809 _json["driveImportedContentLink"] = driveImportedContentLink; |
6578 } | 6810 } |
6579 if (embeddable != null) { | 6811 if (embeddable != null) { |
6580 _json["embeddable"] = embeddable; | 6812 _json["embeddable"] = embeddable; |
6581 } | 6813 } |
6582 if (epub != null) { | 6814 if (epub != null) { |
6583 _json["epub"] = (epub).toJson(); | 6815 _json["epub"] = (epub).toJson(); |
6584 } | 6816 } |
6585 if (explicitOfflineLicenseManagement != null) { | 6817 if (explicitOfflineLicenseManagement != null) { |
6586 _json["explicitOfflineLicenseManagement"] = explicitOfflineLicenseManageme
nt; | 6818 _json["explicitOfflineLicenseManagement"] = |
| 6819 explicitOfflineLicenseManagement; |
6587 } | 6820 } |
6588 if (pdf != null) { | 6821 if (pdf != null) { |
6589 _json["pdf"] = (pdf).toJson(); | 6822 _json["pdf"] = (pdf).toJson(); |
6590 } | 6823 } |
6591 if (publicDomain != null) { | 6824 if (publicDomain != null) { |
6592 _json["publicDomain"] = publicDomain; | 6825 _json["publicDomain"] = publicDomain; |
6593 } | 6826 } |
6594 if (quoteSharingAllowed != null) { | 6827 if (quoteSharingAllowed != null) { |
6595 _json["quoteSharingAllowed"] = quoteSharingAllowed; | 6828 _json["quoteSharingAllowed"] = quoteSharingAllowed; |
6596 } | 6829 } |
6597 if (textToSpeechPermission != null) { | 6830 if (textToSpeechPermission != null) { |
6598 _json["textToSpeechPermission"] = textToSpeechPermission; | 6831 _json["textToSpeechPermission"] = textToSpeechPermission; |
6599 } | 6832 } |
6600 if (viewOrderUrl != null) { | 6833 if (viewOrderUrl != null) { |
6601 _json["viewOrderUrl"] = viewOrderUrl; | 6834 _json["viewOrderUrl"] = viewOrderUrl; |
6602 } | 6835 } |
6603 if (viewability != null) { | 6836 if (viewability != null) { |
6604 _json["viewability"] = viewability; | 6837 _json["viewability"] = viewability; |
6605 } | 6838 } |
6606 if (webReaderLink != null) { | 6839 if (webReaderLink != null) { |
6607 _json["webReaderLink"] = webReaderLink; | 6840 _json["webReaderLink"] = webReaderLink; |
6608 } | 6841 } |
6609 return _json; | 6842 return _json; |
6610 } | 6843 } |
6611 } | 6844 } |
6612 | 6845 |
6613 class VolumeLayerInfoLayers { | 6846 class VolumeLayerInfoLayers { |
6614 /** The layer id of this layer (e.g. "geo"). */ | 6847 /// The layer id of this layer (e.g. "geo"). |
6615 core.String layerId; | 6848 core.String layerId; |
6616 /** | 6849 |
6617 * The current version of this layer's volume annotations. Note that this | 6850 /// The current version of this layer's volume annotations. Note that this |
6618 * version applies only to the data in the books.layers.volumeAnnotations.* | 6851 /// version applies only to the data in the books.layers.volumeAnnotations.* |
6619 * responses. The actual annotation data is versioned separately. | 6852 /// responses. The actual annotation data is versioned separately. |
6620 */ | |
6621 core.String volumeAnnotationsVersion; | 6853 core.String volumeAnnotationsVersion; |
6622 | 6854 |
6623 VolumeLayerInfoLayers(); | 6855 VolumeLayerInfoLayers(); |
6624 | 6856 |
6625 VolumeLayerInfoLayers.fromJson(core.Map _json) { | 6857 VolumeLayerInfoLayers.fromJson(core.Map _json) { |
6626 if (_json.containsKey("layerId")) { | 6858 if (_json.containsKey("layerId")) { |
6627 layerId = _json["layerId"]; | 6859 layerId = _json["layerId"]; |
6628 } | 6860 } |
6629 if (_json.containsKey("volumeAnnotationsVersion")) { | 6861 if (_json.containsKey("volumeAnnotationsVersion")) { |
6630 volumeAnnotationsVersion = _json["volumeAnnotationsVersion"]; | 6862 volumeAnnotationsVersion = _json["volumeAnnotationsVersion"]; |
6631 } | 6863 } |
6632 } | 6864 } |
6633 | 6865 |
6634 core.Map<core.String, core.Object> toJson() { | 6866 core.Map<core.String, core.Object> toJson() { |
6635 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6867 final core.Map<core.String, core.Object> _json = |
| 6868 new core.Map<core.String, core.Object>(); |
6636 if (layerId != null) { | 6869 if (layerId != null) { |
6637 _json["layerId"] = layerId; | 6870 _json["layerId"] = layerId; |
6638 } | 6871 } |
6639 if (volumeAnnotationsVersion != null) { | 6872 if (volumeAnnotationsVersion != null) { |
6640 _json["volumeAnnotationsVersion"] = volumeAnnotationsVersion; | 6873 _json["volumeAnnotationsVersion"] = volumeAnnotationsVersion; |
6641 } | 6874 } |
6642 return _json; | 6875 return _json; |
6643 } | 6876 } |
6644 } | 6877 } |
6645 | 6878 |
6646 /** What layers exist in this volume and high level information about them. */ | 6879 /// What layers exist in this volume and high level information about them. |
6647 class VolumeLayerInfo { | 6880 class VolumeLayerInfo { |
6648 /** | 6881 /// A layer should appear here if and only if the layer exists for this book. |
6649 * A layer should appear here if and only if the layer exists for this book. | |
6650 */ | |
6651 core.List<VolumeLayerInfoLayers> layers; | 6882 core.List<VolumeLayerInfoLayers> layers; |
6652 | 6883 |
6653 VolumeLayerInfo(); | 6884 VolumeLayerInfo(); |
6654 | 6885 |
6655 VolumeLayerInfo.fromJson(core.Map _json) { | 6886 VolumeLayerInfo.fromJson(core.Map _json) { |
6656 if (_json.containsKey("layers")) { | 6887 if (_json.containsKey("layers")) { |
6657 layers = _json["layers"].map((value) => new VolumeLayerInfoLayers.fromJson
(value)).toList(); | 6888 layers = _json["layers"] |
| 6889 .map((value) => new VolumeLayerInfoLayers.fromJson(value)) |
| 6890 .toList(); |
6658 } | 6891 } |
6659 } | 6892 } |
6660 | 6893 |
6661 core.Map<core.String, core.Object> toJson() { | 6894 core.Map<core.String, core.Object> toJson() { |
6662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6895 final core.Map<core.String, core.Object> _json = |
| 6896 new core.Map<core.String, core.Object>(); |
6663 if (layers != null) { | 6897 if (layers != null) { |
6664 _json["layers"] = layers.map((value) => (value).toJson()).toList(); | 6898 _json["layers"] = layers.map((value) => (value).toJson()).toList(); |
6665 } | 6899 } |
6666 return _json; | 6900 return _json; |
6667 } | 6901 } |
6668 } | 6902 } |
6669 | 6903 |
6670 /** Recommendation related information for this volume. */ | 6904 /// Recommendation related information for this volume. |
6671 class VolumeRecommendedInfo { | 6905 class VolumeRecommendedInfo { |
6672 /** A text explaining why this volume is recommended. */ | 6906 /// A text explaining why this volume is recommended. |
6673 core.String explanation; | 6907 core.String explanation; |
6674 | 6908 |
6675 VolumeRecommendedInfo(); | 6909 VolumeRecommendedInfo(); |
6676 | 6910 |
6677 VolumeRecommendedInfo.fromJson(core.Map _json) { | 6911 VolumeRecommendedInfo.fromJson(core.Map _json) { |
6678 if (_json.containsKey("explanation")) { | 6912 if (_json.containsKey("explanation")) { |
6679 explanation = _json["explanation"]; | 6913 explanation = _json["explanation"]; |
6680 } | 6914 } |
6681 } | 6915 } |
6682 | 6916 |
6683 core.Map<core.String, core.Object> toJson() { | 6917 core.Map<core.String, core.Object> toJson() { |
6684 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6918 final core.Map<core.String, core.Object> _json = |
| 6919 new core.Map<core.String, core.Object>(); |
6685 if (explanation != null) { | 6920 if (explanation != null) { |
6686 _json["explanation"] = explanation; | 6921 _json["explanation"] = explanation; |
6687 } | 6922 } |
6688 return _json; | 6923 return _json; |
6689 } | 6924 } |
6690 } | 6925 } |
6691 | 6926 |
6692 /** Suggested retail price. (In LITE projection.) */ | 6927 /// Suggested retail price. (In LITE projection.) |
6693 class VolumeSaleInfoListPrice { | 6928 class VolumeSaleInfoListPrice { |
6694 /** Amount in the currency listed below. (In LITE projection.) */ | 6929 /// Amount in the currency listed below. (In LITE projection.) |
6695 core.double amount; | 6930 core.double amount; |
6696 /** An ISO 4217, three-letter currency code. (In LITE projection.) */ | 6931 |
| 6932 /// An ISO 4217, three-letter currency code. (In LITE projection.) |
6697 core.String currencyCode; | 6933 core.String currencyCode; |
6698 | 6934 |
6699 VolumeSaleInfoListPrice(); | 6935 VolumeSaleInfoListPrice(); |
6700 | 6936 |
6701 VolumeSaleInfoListPrice.fromJson(core.Map _json) { | 6937 VolumeSaleInfoListPrice.fromJson(core.Map _json) { |
6702 if (_json.containsKey("amount")) { | 6938 if (_json.containsKey("amount")) { |
6703 amount = _json["amount"]; | 6939 amount = _json["amount"]; |
6704 } | 6940 } |
6705 if (_json.containsKey("currencyCode")) { | 6941 if (_json.containsKey("currencyCode")) { |
6706 currencyCode = _json["currencyCode"]; | 6942 currencyCode = _json["currencyCode"]; |
6707 } | 6943 } |
6708 } | 6944 } |
6709 | 6945 |
6710 core.Map<core.String, core.Object> toJson() { | 6946 core.Map<core.String, core.Object> toJson() { |
6711 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6947 final core.Map<core.String, core.Object> _json = |
| 6948 new core.Map<core.String, core.Object>(); |
6712 if (amount != null) { | 6949 if (amount != null) { |
6713 _json["amount"] = amount; | 6950 _json["amount"] = amount; |
6714 } | 6951 } |
6715 if (currencyCode != null) { | 6952 if (currencyCode != null) { |
6716 _json["currencyCode"] = currencyCode; | 6953 _json["currencyCode"] = currencyCode; |
6717 } | 6954 } |
6718 return _json; | 6955 return _json; |
6719 } | 6956 } |
6720 } | 6957 } |
6721 | 6958 |
6722 /** Offer list (=undiscounted) price in Micros. */ | 6959 /// Offer list (=undiscounted) price in Micros. |
6723 class VolumeSaleInfoOffersListPrice { | 6960 class VolumeSaleInfoOffersListPrice { |
6724 core.double amountInMicros; | 6961 core.double amountInMicros; |
6725 core.String currencyCode; | 6962 core.String currencyCode; |
6726 | 6963 |
6727 VolumeSaleInfoOffersListPrice(); | 6964 VolumeSaleInfoOffersListPrice(); |
6728 | 6965 |
6729 VolumeSaleInfoOffersListPrice.fromJson(core.Map _json) { | 6966 VolumeSaleInfoOffersListPrice.fromJson(core.Map _json) { |
6730 if (_json.containsKey("amountInMicros")) { | 6967 if (_json.containsKey("amountInMicros")) { |
6731 amountInMicros = _json["amountInMicros"]; | 6968 amountInMicros = _json["amountInMicros"]; |
6732 } | 6969 } |
6733 if (_json.containsKey("currencyCode")) { | 6970 if (_json.containsKey("currencyCode")) { |
6734 currencyCode = _json["currencyCode"]; | 6971 currencyCode = _json["currencyCode"]; |
6735 } | 6972 } |
6736 } | 6973 } |
6737 | 6974 |
6738 core.Map<core.String, core.Object> toJson() { | 6975 core.Map<core.String, core.Object> toJson() { |
6739 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6976 final core.Map<core.String, core.Object> _json = |
| 6977 new core.Map<core.String, core.Object>(); |
6740 if (amountInMicros != null) { | 6978 if (amountInMicros != null) { |
6741 _json["amountInMicros"] = amountInMicros; | 6979 _json["amountInMicros"] = amountInMicros; |
6742 } | 6980 } |
6743 if (currencyCode != null) { | 6981 if (currencyCode != null) { |
6744 _json["currencyCode"] = currencyCode; | 6982 _json["currencyCode"] = currencyCode; |
6745 } | 6983 } |
6746 return _json; | 6984 return _json; |
6747 } | 6985 } |
6748 } | 6986 } |
6749 | 6987 |
6750 /** The rental duration (for rental offers only). */ | 6988 /// The rental duration (for rental offers only). |
6751 class VolumeSaleInfoOffersRentalDuration { | 6989 class VolumeSaleInfoOffersRentalDuration { |
6752 core.double count; | 6990 core.double count; |
6753 core.String unit; | 6991 core.String unit; |
6754 | 6992 |
6755 VolumeSaleInfoOffersRentalDuration(); | 6993 VolumeSaleInfoOffersRentalDuration(); |
6756 | 6994 |
6757 VolumeSaleInfoOffersRentalDuration.fromJson(core.Map _json) { | 6995 VolumeSaleInfoOffersRentalDuration.fromJson(core.Map _json) { |
6758 if (_json.containsKey("count")) { | 6996 if (_json.containsKey("count")) { |
6759 count = _json["count"]; | 6997 count = _json["count"]; |
6760 } | 6998 } |
6761 if (_json.containsKey("unit")) { | 6999 if (_json.containsKey("unit")) { |
6762 unit = _json["unit"]; | 7000 unit = _json["unit"]; |
6763 } | 7001 } |
6764 } | 7002 } |
6765 | 7003 |
6766 core.Map<core.String, core.Object> toJson() { | 7004 core.Map<core.String, core.Object> toJson() { |
6767 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7005 final core.Map<core.String, core.Object> _json = |
| 7006 new core.Map<core.String, core.Object>(); |
6768 if (count != null) { | 7007 if (count != null) { |
6769 _json["count"] = count; | 7008 _json["count"] = count; |
6770 } | 7009 } |
6771 if (unit != null) { | 7010 if (unit != null) { |
6772 _json["unit"] = unit; | 7011 _json["unit"] = unit; |
6773 } | 7012 } |
6774 return _json; | 7013 return _json; |
6775 } | 7014 } |
6776 } | 7015 } |
6777 | 7016 |
6778 /** Offer retail (=discounted) price in Micros */ | 7017 /// Offer retail (=discounted) price in Micros |
6779 class VolumeSaleInfoOffersRetailPrice { | 7018 class VolumeSaleInfoOffersRetailPrice { |
6780 core.double amountInMicros; | 7019 core.double amountInMicros; |
6781 core.String currencyCode; | 7020 core.String currencyCode; |
6782 | 7021 |
6783 VolumeSaleInfoOffersRetailPrice(); | 7022 VolumeSaleInfoOffersRetailPrice(); |
6784 | 7023 |
6785 VolumeSaleInfoOffersRetailPrice.fromJson(core.Map _json) { | 7024 VolumeSaleInfoOffersRetailPrice.fromJson(core.Map _json) { |
6786 if (_json.containsKey("amountInMicros")) { | 7025 if (_json.containsKey("amountInMicros")) { |
6787 amountInMicros = _json["amountInMicros"]; | 7026 amountInMicros = _json["amountInMicros"]; |
6788 } | 7027 } |
6789 if (_json.containsKey("currencyCode")) { | 7028 if (_json.containsKey("currencyCode")) { |
6790 currencyCode = _json["currencyCode"]; | 7029 currencyCode = _json["currencyCode"]; |
6791 } | 7030 } |
6792 } | 7031 } |
6793 | 7032 |
6794 core.Map<core.String, core.Object> toJson() { | 7033 core.Map<core.String, core.Object> toJson() { |
6795 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7034 final core.Map<core.String, core.Object> _json = |
| 7035 new core.Map<core.String, core.Object>(); |
6796 if (amountInMicros != null) { | 7036 if (amountInMicros != null) { |
6797 _json["amountInMicros"] = amountInMicros; | 7037 _json["amountInMicros"] = amountInMicros; |
6798 } | 7038 } |
6799 if (currencyCode != null) { | 7039 if (currencyCode != null) { |
6800 _json["currencyCode"] = currencyCode; | 7040 _json["currencyCode"] = currencyCode; |
6801 } | 7041 } |
6802 return _json; | 7042 return _json; |
6803 } | 7043 } |
6804 } | 7044 } |
6805 | 7045 |
6806 class VolumeSaleInfoOffers { | 7046 class VolumeSaleInfoOffers { |
6807 /** The finsky offer type (e.g., PURCHASE=0 RENTAL=3) */ | 7047 /// The finsky offer type (e.g., PURCHASE=0 RENTAL=3) |
6808 core.int finskyOfferType; | 7048 core.int finskyOfferType; |
6809 /** Indicates whether the offer is giftable. */ | 7049 |
| 7050 /// Indicates whether the offer is giftable. |
6810 core.bool giftable; | 7051 core.bool giftable; |
6811 /** Offer list (=undiscounted) price in Micros. */ | 7052 |
| 7053 /// Offer list (=undiscounted) price in Micros. |
6812 VolumeSaleInfoOffersListPrice listPrice; | 7054 VolumeSaleInfoOffersListPrice listPrice; |
6813 /** The rental duration (for rental offers only). */ | 7055 |
| 7056 /// The rental duration (for rental offers only). |
6814 VolumeSaleInfoOffersRentalDuration rentalDuration; | 7057 VolumeSaleInfoOffersRentalDuration rentalDuration; |
6815 /** Offer retail (=discounted) price in Micros */ | 7058 |
| 7059 /// Offer retail (=discounted) price in Micros |
6816 VolumeSaleInfoOffersRetailPrice retailPrice; | 7060 VolumeSaleInfoOffersRetailPrice retailPrice; |
6817 | 7061 |
6818 VolumeSaleInfoOffers(); | 7062 VolumeSaleInfoOffers(); |
6819 | 7063 |
6820 VolumeSaleInfoOffers.fromJson(core.Map _json) { | 7064 VolumeSaleInfoOffers.fromJson(core.Map _json) { |
6821 if (_json.containsKey("finskyOfferType")) { | 7065 if (_json.containsKey("finskyOfferType")) { |
6822 finskyOfferType = _json["finskyOfferType"]; | 7066 finskyOfferType = _json["finskyOfferType"]; |
6823 } | 7067 } |
6824 if (_json.containsKey("giftable")) { | 7068 if (_json.containsKey("giftable")) { |
6825 giftable = _json["giftable"]; | 7069 giftable = _json["giftable"]; |
6826 } | 7070 } |
6827 if (_json.containsKey("listPrice")) { | 7071 if (_json.containsKey("listPrice")) { |
6828 listPrice = new VolumeSaleInfoOffersListPrice.fromJson(_json["listPrice"])
; | 7072 listPrice = |
| 7073 new VolumeSaleInfoOffersListPrice.fromJson(_json["listPrice"]); |
6829 } | 7074 } |
6830 if (_json.containsKey("rentalDuration")) { | 7075 if (_json.containsKey("rentalDuration")) { |
6831 rentalDuration = new VolumeSaleInfoOffersRentalDuration.fromJson(_json["re
ntalDuration"]); | 7076 rentalDuration = new VolumeSaleInfoOffersRentalDuration.fromJson( |
| 7077 _json["rentalDuration"]); |
6832 } | 7078 } |
6833 if (_json.containsKey("retailPrice")) { | 7079 if (_json.containsKey("retailPrice")) { |
6834 retailPrice = new VolumeSaleInfoOffersRetailPrice.fromJson(_json["retailPr
ice"]); | 7080 retailPrice = |
| 7081 new VolumeSaleInfoOffersRetailPrice.fromJson(_json["retailPrice"]); |
6835 } | 7082 } |
6836 } | 7083 } |
6837 | 7084 |
6838 core.Map<core.String, core.Object> toJson() { | 7085 core.Map<core.String, core.Object> toJson() { |
6839 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7086 final core.Map<core.String, core.Object> _json = |
| 7087 new core.Map<core.String, core.Object>(); |
6840 if (finskyOfferType != null) { | 7088 if (finskyOfferType != null) { |
6841 _json["finskyOfferType"] = finskyOfferType; | 7089 _json["finskyOfferType"] = finskyOfferType; |
6842 } | 7090 } |
6843 if (giftable != null) { | 7091 if (giftable != null) { |
6844 _json["giftable"] = giftable; | 7092 _json["giftable"] = giftable; |
6845 } | 7093 } |
6846 if (listPrice != null) { | 7094 if (listPrice != null) { |
6847 _json["listPrice"] = (listPrice).toJson(); | 7095 _json["listPrice"] = (listPrice).toJson(); |
6848 } | 7096 } |
6849 if (rentalDuration != null) { | 7097 if (rentalDuration != null) { |
6850 _json["rentalDuration"] = (rentalDuration).toJson(); | 7098 _json["rentalDuration"] = (rentalDuration).toJson(); |
6851 } | 7099 } |
6852 if (retailPrice != null) { | 7100 if (retailPrice != null) { |
6853 _json["retailPrice"] = (retailPrice).toJson(); | 7101 _json["retailPrice"] = (retailPrice).toJson(); |
6854 } | 7102 } |
6855 return _json; | 7103 return _json; |
6856 } | 7104 } |
6857 } | 7105 } |
6858 | 7106 |
6859 /** | 7107 /// The actual selling price of the book. This is the same as the suggested |
6860 * The actual selling price of the book. This is the same as the suggested | 7108 /// retail or list price unless there are offers or discounts on this volume. |
6861 * retail or list price unless there are offers or discounts on this volume. (In | 7109 /// (In LITE projection.) |
6862 * LITE projection.) | |
6863 */ | |
6864 class VolumeSaleInfoRetailPrice { | 7110 class VolumeSaleInfoRetailPrice { |
6865 /** Amount in the currency listed below. (In LITE projection.) */ | 7111 /// Amount in the currency listed below. (In LITE projection.) |
6866 core.double amount; | 7112 core.double amount; |
6867 /** An ISO 4217, three-letter currency code. (In LITE projection.) */ | 7113 |
| 7114 /// An ISO 4217, three-letter currency code. (In LITE projection.) |
6868 core.String currencyCode; | 7115 core.String currencyCode; |
6869 | 7116 |
6870 VolumeSaleInfoRetailPrice(); | 7117 VolumeSaleInfoRetailPrice(); |
6871 | 7118 |
6872 VolumeSaleInfoRetailPrice.fromJson(core.Map _json) { | 7119 VolumeSaleInfoRetailPrice.fromJson(core.Map _json) { |
6873 if (_json.containsKey("amount")) { | 7120 if (_json.containsKey("amount")) { |
6874 amount = _json["amount"]; | 7121 amount = _json["amount"]; |
6875 } | 7122 } |
6876 if (_json.containsKey("currencyCode")) { | 7123 if (_json.containsKey("currencyCode")) { |
6877 currencyCode = _json["currencyCode"]; | 7124 currencyCode = _json["currencyCode"]; |
6878 } | 7125 } |
6879 } | 7126 } |
6880 | 7127 |
6881 core.Map<core.String, core.Object> toJson() { | 7128 core.Map<core.String, core.Object> toJson() { |
6882 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7129 final core.Map<core.String, core.Object> _json = |
| 7130 new core.Map<core.String, core.Object>(); |
6883 if (amount != null) { | 7131 if (amount != null) { |
6884 _json["amount"] = amount; | 7132 _json["amount"] = amount; |
6885 } | 7133 } |
6886 if (currencyCode != null) { | 7134 if (currencyCode != null) { |
6887 _json["currencyCode"] = currencyCode; | 7135 _json["currencyCode"] = currencyCode; |
6888 } | 7136 } |
6889 return _json; | 7137 return _json; |
6890 } | 7138 } |
6891 } | 7139 } |
6892 | 7140 |
6893 /** | 7141 /// Any information about a volume related to the eBookstore and/or |
6894 * Any information about a volume related to the eBookstore and/or | 7142 /// purchaseability. This information can depend on the country where the |
6895 * purchaseability. This information can depend on the country where the request | 7143 /// request originates from (i.e. books may not be for sale in certain |
6896 * originates from (i.e. books may not be for sale in certain countries). | 7144 /// countries). |
6897 */ | |
6898 class VolumeSaleInfo { | 7145 class VolumeSaleInfo { |
6899 /** | 7146 /// URL to purchase this volume on the Google Books site. (In LITE |
6900 * URL to purchase this volume on the Google Books site. (In LITE projection) | 7147 /// projection) |
6901 */ | |
6902 core.String buyLink; | 7148 core.String buyLink; |
6903 /** | 7149 |
6904 * The two-letter ISO_3166-1 country code for which this sale information is | 7150 /// The two-letter ISO_3166-1 country code for which this sale information is |
6905 * valid. (In LITE projection.) | 7151 /// valid. (In LITE projection.) |
6906 */ | |
6907 core.String country; | 7152 core.String country; |
6908 /** | 7153 |
6909 * Whether or not this volume is an eBook (can be added to the My eBooks | 7154 /// Whether or not this volume is an eBook (can be added to the My eBooks |
6910 * shelf). | 7155 /// shelf). |
6911 */ | |
6912 core.bool isEbook; | 7156 core.bool isEbook; |
6913 /** Suggested retail price. (In LITE projection.) */ | 7157 |
| 7158 /// Suggested retail price. (In LITE projection.) |
6914 VolumeSaleInfoListPrice listPrice; | 7159 VolumeSaleInfoListPrice listPrice; |
6915 /** Offers available for this volume (sales and rentals). */ | 7160 |
| 7161 /// Offers available for this volume (sales and rentals). |
6916 core.List<VolumeSaleInfoOffers> offers; | 7162 core.List<VolumeSaleInfoOffers> offers; |
6917 /** The date on which this book is available for sale. */ | 7163 |
| 7164 /// The date on which this book is available for sale. |
6918 core.DateTime onSaleDate; | 7165 core.DateTime onSaleDate; |
6919 /** | 7166 |
6920 * The actual selling price of the book. This is the same as the suggested | 7167 /// The actual selling price of the book. This is the same as the suggested |
6921 * retail or list price unless there are offers or discounts on this volume. | 7168 /// retail or list price unless there are offers or discounts on this volume. |
6922 * (In LITE projection.) | 7169 /// (In LITE projection.) |
6923 */ | |
6924 VolumeSaleInfoRetailPrice retailPrice; | 7170 VolumeSaleInfoRetailPrice retailPrice; |
6925 /** | 7171 |
6926 * Whether or not this book is available for sale or offered for free in the | 7172 /// Whether or not this book is available for sale or offered for free in the |
6927 * Google eBookstore for the country listed above. Possible values are | 7173 /// Google eBookstore for the country listed above. Possible values are |
6928 * FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or | 7174 /// FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or |
6929 * FOR_PREORDER. | 7175 /// FOR_PREORDER. |
6930 */ | |
6931 core.String saleability; | 7176 core.String saleability; |
6932 | 7177 |
6933 VolumeSaleInfo(); | 7178 VolumeSaleInfo(); |
6934 | 7179 |
6935 VolumeSaleInfo.fromJson(core.Map _json) { | 7180 VolumeSaleInfo.fromJson(core.Map _json) { |
6936 if (_json.containsKey("buyLink")) { | 7181 if (_json.containsKey("buyLink")) { |
6937 buyLink = _json["buyLink"]; | 7182 buyLink = _json["buyLink"]; |
6938 } | 7183 } |
6939 if (_json.containsKey("country")) { | 7184 if (_json.containsKey("country")) { |
6940 country = _json["country"]; | 7185 country = _json["country"]; |
6941 } | 7186 } |
6942 if (_json.containsKey("isEbook")) { | 7187 if (_json.containsKey("isEbook")) { |
6943 isEbook = _json["isEbook"]; | 7188 isEbook = _json["isEbook"]; |
6944 } | 7189 } |
6945 if (_json.containsKey("listPrice")) { | 7190 if (_json.containsKey("listPrice")) { |
6946 listPrice = new VolumeSaleInfoListPrice.fromJson(_json["listPrice"]); | 7191 listPrice = new VolumeSaleInfoListPrice.fromJson(_json["listPrice"]); |
6947 } | 7192 } |
6948 if (_json.containsKey("offers")) { | 7193 if (_json.containsKey("offers")) { |
6949 offers = _json["offers"].map((value) => new VolumeSaleInfoOffers.fromJson(
value)).toList(); | 7194 offers = _json["offers"] |
| 7195 .map((value) => new VolumeSaleInfoOffers.fromJson(value)) |
| 7196 .toList(); |
6950 } | 7197 } |
6951 if (_json.containsKey("onSaleDate")) { | 7198 if (_json.containsKey("onSaleDate")) { |
6952 onSaleDate = core.DateTime.parse(_json["onSaleDate"]); | 7199 onSaleDate = core.DateTime.parse(_json["onSaleDate"]); |
6953 } | 7200 } |
6954 if (_json.containsKey("retailPrice")) { | 7201 if (_json.containsKey("retailPrice")) { |
6955 retailPrice = new VolumeSaleInfoRetailPrice.fromJson(_json["retailPrice"])
; | 7202 retailPrice = |
| 7203 new VolumeSaleInfoRetailPrice.fromJson(_json["retailPrice"]); |
6956 } | 7204 } |
6957 if (_json.containsKey("saleability")) { | 7205 if (_json.containsKey("saleability")) { |
6958 saleability = _json["saleability"]; | 7206 saleability = _json["saleability"]; |
6959 } | 7207 } |
6960 } | 7208 } |
6961 | 7209 |
6962 core.Map<core.String, core.Object> toJson() { | 7210 core.Map<core.String, core.Object> toJson() { |
6963 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7211 final core.Map<core.String, core.Object> _json = |
| 7212 new core.Map<core.String, core.Object>(); |
6964 if (buyLink != null) { | 7213 if (buyLink != null) { |
6965 _json["buyLink"] = buyLink; | 7214 _json["buyLink"] = buyLink; |
6966 } | 7215 } |
6967 if (country != null) { | 7216 if (country != null) { |
6968 _json["country"] = country; | 7217 _json["country"] = country; |
6969 } | 7218 } |
6970 if (isEbook != null) { | 7219 if (isEbook != null) { |
6971 _json["isEbook"] = isEbook; | 7220 _json["isEbook"] = isEbook; |
6972 } | 7221 } |
6973 if (listPrice != null) { | 7222 if (listPrice != null) { |
6974 _json["listPrice"] = (listPrice).toJson(); | 7223 _json["listPrice"] = (listPrice).toJson(); |
6975 } | 7224 } |
6976 if (offers != null) { | 7225 if (offers != null) { |
6977 _json["offers"] = offers.map((value) => (value).toJson()).toList(); | 7226 _json["offers"] = offers.map((value) => (value).toJson()).toList(); |
6978 } | 7227 } |
6979 if (onSaleDate != null) { | 7228 if (onSaleDate != null) { |
6980 _json["onSaleDate"] = (onSaleDate).toIso8601String(); | 7229 _json["onSaleDate"] = (onSaleDate).toIso8601String(); |
6981 } | 7230 } |
6982 if (retailPrice != null) { | 7231 if (retailPrice != null) { |
6983 _json["retailPrice"] = (retailPrice).toJson(); | 7232 _json["retailPrice"] = (retailPrice).toJson(); |
6984 } | 7233 } |
6985 if (saleability != null) { | 7234 if (saleability != null) { |
6986 _json["saleability"] = saleability; | 7235 _json["saleability"] = saleability; |
6987 } | 7236 } |
6988 return _json; | 7237 return _json; |
6989 } | 7238 } |
6990 } | 7239 } |
6991 | 7240 |
6992 /** Search result information related to this volume. */ | 7241 /// Search result information related to this volume. |
6993 class VolumeSearchInfo { | 7242 class VolumeSearchInfo { |
6994 /** A text snippet containing the search query. */ | 7243 /// A text snippet containing the search query. |
6995 core.String textSnippet; | 7244 core.String textSnippet; |
6996 | 7245 |
6997 VolumeSearchInfo(); | 7246 VolumeSearchInfo(); |
6998 | 7247 |
6999 VolumeSearchInfo.fromJson(core.Map _json) { | 7248 VolumeSearchInfo.fromJson(core.Map _json) { |
7000 if (_json.containsKey("textSnippet")) { | 7249 if (_json.containsKey("textSnippet")) { |
7001 textSnippet = _json["textSnippet"]; | 7250 textSnippet = _json["textSnippet"]; |
7002 } | 7251 } |
7003 } | 7252 } |
7004 | 7253 |
7005 core.Map<core.String, core.Object> toJson() { | 7254 core.Map<core.String, core.Object> toJson() { |
7006 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7255 final core.Map<core.String, core.Object> _json = |
| 7256 new core.Map<core.String, core.Object>(); |
7007 if (textSnippet != null) { | 7257 if (textSnippet != null) { |
7008 _json["textSnippet"] = textSnippet; | 7258 _json["textSnippet"] = textSnippet; |
7009 } | 7259 } |
7010 return _json; | 7260 return _json; |
7011 } | 7261 } |
7012 } | 7262 } |
7013 | 7263 |
7014 /** Copy/Paste accounting information. */ | 7264 /// Copy/Paste accounting information. |
7015 class VolumeUserInfoCopy { | 7265 class VolumeUserInfoCopy { |
7016 core.int allowedCharacterCount; | 7266 core.int allowedCharacterCount; |
7017 core.String limitType; | 7267 core.String limitType; |
7018 core.int remainingCharacterCount; | 7268 core.int remainingCharacterCount; |
7019 core.DateTime updated; | 7269 core.DateTime updated; |
7020 | 7270 |
7021 VolumeUserInfoCopy(); | 7271 VolumeUserInfoCopy(); |
7022 | 7272 |
7023 VolumeUserInfoCopy.fromJson(core.Map _json) { | 7273 VolumeUserInfoCopy.fromJson(core.Map _json) { |
7024 if (_json.containsKey("allowedCharacterCount")) { | 7274 if (_json.containsKey("allowedCharacterCount")) { |
7025 allowedCharacterCount = _json["allowedCharacterCount"]; | 7275 allowedCharacterCount = _json["allowedCharacterCount"]; |
7026 } | 7276 } |
7027 if (_json.containsKey("limitType")) { | 7277 if (_json.containsKey("limitType")) { |
7028 limitType = _json["limitType"]; | 7278 limitType = _json["limitType"]; |
7029 } | 7279 } |
7030 if (_json.containsKey("remainingCharacterCount")) { | 7280 if (_json.containsKey("remainingCharacterCount")) { |
7031 remainingCharacterCount = _json["remainingCharacterCount"]; | 7281 remainingCharacterCount = _json["remainingCharacterCount"]; |
7032 } | 7282 } |
7033 if (_json.containsKey("updated")) { | 7283 if (_json.containsKey("updated")) { |
7034 updated = core.DateTime.parse(_json["updated"]); | 7284 updated = core.DateTime.parse(_json["updated"]); |
7035 } | 7285 } |
7036 } | 7286 } |
7037 | 7287 |
7038 core.Map<core.String, core.Object> toJson() { | 7288 core.Map<core.String, core.Object> toJson() { |
7039 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7289 final core.Map<core.String, core.Object> _json = |
| 7290 new core.Map<core.String, core.Object>(); |
7040 if (allowedCharacterCount != null) { | 7291 if (allowedCharacterCount != null) { |
7041 _json["allowedCharacterCount"] = allowedCharacterCount; | 7292 _json["allowedCharacterCount"] = allowedCharacterCount; |
7042 } | 7293 } |
7043 if (limitType != null) { | 7294 if (limitType != null) { |
7044 _json["limitType"] = limitType; | 7295 _json["limitType"] = limitType; |
7045 } | 7296 } |
7046 if (remainingCharacterCount != null) { | 7297 if (remainingCharacterCount != null) { |
7047 _json["remainingCharacterCount"] = remainingCharacterCount; | 7298 _json["remainingCharacterCount"] = remainingCharacterCount; |
7048 } | 7299 } |
7049 if (updated != null) { | 7300 if (updated != null) { |
7050 _json["updated"] = (updated).toIso8601String(); | 7301 _json["updated"] = (updated).toIso8601String(); |
7051 } | 7302 } |
7052 return _json; | 7303 return _json; |
7053 } | 7304 } |
7054 } | 7305 } |
7055 | 7306 |
7056 /** Information on the ability to share with the family. */ | 7307 /// Information on the ability to share with the family. |
7057 class VolumeUserInfoFamilySharing { | 7308 class VolumeUserInfoFamilySharing { |
7058 /** The role of the user in the family. */ | 7309 /// The role of the user in the family. |
7059 core.String familyRole; | 7310 core.String familyRole; |
7060 /** | 7311 |
7061 * Whether or not this volume can be shared with the family by the user. This | 7312 /// Whether or not this volume can be shared with the family by the user. |
7062 * includes sharing eligibility of both the volume and the user. If the value | 7313 /// This includes sharing eligibility of both the volume and the user. If the |
7063 * is true, the user can initiate a family sharing action. | 7314 /// value is true, the user can initiate a family sharing action. |
7064 */ | |
7065 core.bool isSharingAllowed; | 7315 core.bool isSharingAllowed; |
7066 /** | 7316 |
7067 * Whether or not sharing this volume is temporarily disabled due to issues | 7317 /// Whether or not sharing this volume is temporarily disabled due to issues |
7068 * with the Family Wallet. | 7318 /// with the Family Wallet. |
7069 */ | |
7070 core.bool isSharingDisabledByFop; | 7319 core.bool isSharingDisabledByFop; |
7071 | 7320 |
7072 VolumeUserInfoFamilySharing(); | 7321 VolumeUserInfoFamilySharing(); |
7073 | 7322 |
7074 VolumeUserInfoFamilySharing.fromJson(core.Map _json) { | 7323 VolumeUserInfoFamilySharing.fromJson(core.Map _json) { |
7075 if (_json.containsKey("familyRole")) { | 7324 if (_json.containsKey("familyRole")) { |
7076 familyRole = _json["familyRole"]; | 7325 familyRole = _json["familyRole"]; |
7077 } | 7326 } |
7078 if (_json.containsKey("isSharingAllowed")) { | 7327 if (_json.containsKey("isSharingAllowed")) { |
7079 isSharingAllowed = _json["isSharingAllowed"]; | 7328 isSharingAllowed = _json["isSharingAllowed"]; |
7080 } | 7329 } |
7081 if (_json.containsKey("isSharingDisabledByFop")) { | 7330 if (_json.containsKey("isSharingDisabledByFop")) { |
7082 isSharingDisabledByFop = _json["isSharingDisabledByFop"]; | 7331 isSharingDisabledByFop = _json["isSharingDisabledByFop"]; |
7083 } | 7332 } |
7084 } | 7333 } |
7085 | 7334 |
7086 core.Map<core.String, core.Object> toJson() { | 7335 core.Map<core.String, core.Object> toJson() { |
7087 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7336 final core.Map<core.String, core.Object> _json = |
| 7337 new core.Map<core.String, core.Object>(); |
7088 if (familyRole != null) { | 7338 if (familyRole != null) { |
7089 _json["familyRole"] = familyRole; | 7339 _json["familyRole"] = familyRole; |
7090 } | 7340 } |
7091 if (isSharingAllowed != null) { | 7341 if (isSharingAllowed != null) { |
7092 _json["isSharingAllowed"] = isSharingAllowed; | 7342 _json["isSharingAllowed"] = isSharingAllowed; |
7093 } | 7343 } |
7094 if (isSharingDisabledByFop != null) { | 7344 if (isSharingDisabledByFop != null) { |
7095 _json["isSharingDisabledByFop"] = isSharingDisabledByFop; | 7345 _json["isSharingDisabledByFop"] = isSharingDisabledByFop; |
7096 } | 7346 } |
7097 return _json; | 7347 return _json; |
7098 } | 7348 } |
7099 } | 7349 } |
7100 | 7350 |
7101 /** Period during this book is/was a valid rental. */ | 7351 /// Period during this book is/was a valid rental. |
7102 class VolumeUserInfoRentalPeriod { | 7352 class VolumeUserInfoRentalPeriod { |
7103 core.String endUtcSec; | 7353 core.String endUtcSec; |
7104 core.String startUtcSec; | 7354 core.String startUtcSec; |
7105 | 7355 |
7106 VolumeUserInfoRentalPeriod(); | 7356 VolumeUserInfoRentalPeriod(); |
7107 | 7357 |
7108 VolumeUserInfoRentalPeriod.fromJson(core.Map _json) { | 7358 VolumeUserInfoRentalPeriod.fromJson(core.Map _json) { |
7109 if (_json.containsKey("endUtcSec")) { | 7359 if (_json.containsKey("endUtcSec")) { |
7110 endUtcSec = _json["endUtcSec"]; | 7360 endUtcSec = _json["endUtcSec"]; |
7111 } | 7361 } |
7112 if (_json.containsKey("startUtcSec")) { | 7362 if (_json.containsKey("startUtcSec")) { |
7113 startUtcSec = _json["startUtcSec"]; | 7363 startUtcSec = _json["startUtcSec"]; |
7114 } | 7364 } |
7115 } | 7365 } |
7116 | 7366 |
7117 core.Map<core.String, core.Object> toJson() { | 7367 core.Map<core.String, core.Object> toJson() { |
7118 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7368 final core.Map<core.String, core.Object> _json = |
| 7369 new core.Map<core.String, core.Object>(); |
7119 if (endUtcSec != null) { | 7370 if (endUtcSec != null) { |
7120 _json["endUtcSec"] = endUtcSec; | 7371 _json["endUtcSec"] = endUtcSec; |
7121 } | 7372 } |
7122 if (startUtcSec != null) { | 7373 if (startUtcSec != null) { |
7123 _json["startUtcSec"] = startUtcSec; | 7374 _json["startUtcSec"] = startUtcSec; |
7124 } | 7375 } |
7125 return _json; | 7376 return _json; |
7126 } | 7377 } |
7127 } | 7378 } |
7128 | 7379 |
7129 class VolumeUserInfoUserUploadedVolumeInfo { | 7380 class VolumeUserInfoUserUploadedVolumeInfo { |
7130 core.String processingState; | 7381 core.String processingState; |
7131 | 7382 |
7132 VolumeUserInfoUserUploadedVolumeInfo(); | 7383 VolumeUserInfoUserUploadedVolumeInfo(); |
7133 | 7384 |
7134 VolumeUserInfoUserUploadedVolumeInfo.fromJson(core.Map _json) { | 7385 VolumeUserInfoUserUploadedVolumeInfo.fromJson(core.Map _json) { |
7135 if (_json.containsKey("processingState")) { | 7386 if (_json.containsKey("processingState")) { |
7136 processingState = _json["processingState"]; | 7387 processingState = _json["processingState"]; |
7137 } | 7388 } |
7138 } | 7389 } |
7139 | 7390 |
7140 core.Map<core.String, core.Object> toJson() { | 7391 core.Map<core.String, core.Object> toJson() { |
7141 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7392 final core.Map<core.String, core.Object> _json = |
| 7393 new core.Map<core.String, core.Object>(); |
7142 if (processingState != null) { | 7394 if (processingState != null) { |
7143 _json["processingState"] = processingState; | 7395 _json["processingState"] = processingState; |
7144 } | 7396 } |
7145 return _json; | 7397 return _json; |
7146 } | 7398 } |
7147 } | 7399 } |
7148 | 7400 |
7149 /** | 7401 /// User specific information related to this volume. (e.g. page this user last |
7150 * User specific information related to this volume. (e.g. page this user last | 7402 /// read or whether they purchased this book) |
7151 * read or whether they purchased this book) | |
7152 */ | |
7153 class VolumeUserInfo { | 7403 class VolumeUserInfo { |
7154 /** | 7404 /// Timestamp when this volume was acquired by the user. (RFC 3339 UTC |
7155 * Timestamp when this volume was acquired by the user. (RFC 3339 UTC | 7405 /// date-time format) Acquiring includes purchase, user upload, receiving |
7156 * date-time format) Acquiring includes purchase, user upload, receiving | 7406 /// family sharing, etc. |
7157 * family sharing, etc. | |
7158 */ | |
7159 core.DateTime acquiredTime; | 7407 core.DateTime acquiredTime; |
7160 /** How this volume was acquired. */ | 7408 |
| 7409 /// How this volume was acquired. |
7161 core.int acquisitionType; | 7410 core.int acquisitionType; |
7162 /** Copy/Paste accounting information. */ | 7411 |
| 7412 /// Copy/Paste accounting information. |
7163 VolumeUserInfoCopy copy; | 7413 VolumeUserInfoCopy copy; |
7164 /** Whether this volume is purchased, sample, pd download etc. */ | 7414 |
| 7415 /// Whether this volume is purchased, sample, pd download etc. |
7165 core.int entitlementType; | 7416 core.int entitlementType; |
7166 /** Information on the ability to share with the family. */ | 7417 |
| 7418 /// Information on the ability to share with the family. |
7167 VolumeUserInfoFamilySharing familySharing; | 7419 VolumeUserInfoFamilySharing familySharing; |
7168 /** Whether or not the user shared this volume with the family. */ | 7420 |
| 7421 /// Whether or not the user shared this volume with the family. |
7169 core.bool isFamilySharedFromUser; | 7422 core.bool isFamilySharedFromUser; |
7170 /** Whether or not the user received this volume through family sharing. */ | 7423 |
| 7424 /// Whether or not the user received this volume through family sharing. |
7171 core.bool isFamilySharedToUser; | 7425 core.bool isFamilySharedToUser; |
7172 /** Deprecated: Replaced by familySharing. */ | 7426 |
| 7427 /// Deprecated: Replaced by familySharing. |
7173 core.bool isFamilySharingAllowed; | 7428 core.bool isFamilySharingAllowed; |
7174 /** Deprecated: Replaced by familySharing. */ | 7429 |
| 7430 /// Deprecated: Replaced by familySharing. |
7175 core.bool isFamilySharingDisabledByFop; | 7431 core.bool isFamilySharingDisabledByFop; |
7176 /** Whether or not this volume is currently in "my books." */ | 7432 |
| 7433 /// Whether or not this volume is currently in "my books." |
7177 core.bool isInMyBooks; | 7434 core.bool isInMyBooks; |
7178 /** | 7435 |
7179 * Whether or not this volume was pre-ordered by the authenticated user making | 7436 /// Whether or not this volume was pre-ordered by the authenticated user |
7180 * the request. (In LITE projection.) | 7437 /// making the request. (In LITE projection.) |
7181 */ | |
7182 core.bool isPreordered; | 7438 core.bool isPreordered; |
7183 /** | 7439 |
7184 * Whether or not this volume was purchased by the authenticated user making | 7440 /// Whether or not this volume was purchased by the authenticated user making |
7185 * the request. (In LITE projection.) | 7441 /// the request. (In LITE projection.) |
7186 */ | |
7187 core.bool isPurchased; | 7442 core.bool isPurchased; |
7188 /** Whether or not this volume was user uploaded. */ | 7443 |
| 7444 /// Whether or not this volume was user uploaded. |
7189 core.bool isUploaded; | 7445 core.bool isUploaded; |
7190 /** | 7446 |
7191 * The user's current reading position in the volume, if one is available. (In | 7447 /// The user's current reading position in the volume, if one is available. |
7192 * LITE projection.) | 7448 /// (In LITE projection.) |
7193 */ | |
7194 ReadingPosition readingPosition; | 7449 ReadingPosition readingPosition; |
7195 /** Period during this book is/was a valid rental. */ | 7450 |
| 7451 /// Period during this book is/was a valid rental. |
7196 VolumeUserInfoRentalPeriod rentalPeriod; | 7452 VolumeUserInfoRentalPeriod rentalPeriod; |
7197 /** Whether this book is an active or an expired rental. */ | 7453 |
| 7454 /// Whether this book is an active or an expired rental. |
7198 core.String rentalState; | 7455 core.String rentalState; |
7199 /** This user's review of this volume, if one exists. */ | 7456 |
| 7457 /// This user's review of this volume, if one exists. |
7200 Review review; | 7458 Review review; |
7201 /** | 7459 |
7202 * Timestamp when this volume was last modified by a user action, such as a | 7460 /// Timestamp when this volume was last modified by a user action, such as a |
7203 * reading position update, volume purchase or writing a review. (RFC 3339 UTC | 7461 /// reading position update, volume purchase or writing a review. (RFC 3339 |
7204 * date-time format). | 7462 /// UTC date-time format). |
7205 */ | |
7206 core.DateTime updated; | 7463 core.DateTime updated; |
7207 VolumeUserInfoUserUploadedVolumeInfo userUploadedVolumeInfo; | 7464 VolumeUserInfoUserUploadedVolumeInfo userUploadedVolumeInfo; |
7208 | 7465 |
7209 VolumeUserInfo(); | 7466 VolumeUserInfo(); |
7210 | 7467 |
7211 VolumeUserInfo.fromJson(core.Map _json) { | 7468 VolumeUserInfo.fromJson(core.Map _json) { |
7212 if (_json.containsKey("acquiredTime")) { | 7469 if (_json.containsKey("acquiredTime")) { |
7213 acquiredTime = core.DateTime.parse(_json["acquiredTime"]); | 7470 acquiredTime = core.DateTime.parse(_json["acquiredTime"]); |
7214 } | 7471 } |
7215 if (_json.containsKey("acquisitionType")) { | 7472 if (_json.containsKey("acquisitionType")) { |
7216 acquisitionType = _json["acquisitionType"]; | 7473 acquisitionType = _json["acquisitionType"]; |
7217 } | 7474 } |
7218 if (_json.containsKey("copy")) { | 7475 if (_json.containsKey("copy")) { |
7219 copy = new VolumeUserInfoCopy.fromJson(_json["copy"]); | 7476 copy = new VolumeUserInfoCopy.fromJson(_json["copy"]); |
7220 } | 7477 } |
7221 if (_json.containsKey("entitlementType")) { | 7478 if (_json.containsKey("entitlementType")) { |
7222 entitlementType = _json["entitlementType"]; | 7479 entitlementType = _json["entitlementType"]; |
7223 } | 7480 } |
7224 if (_json.containsKey("familySharing")) { | 7481 if (_json.containsKey("familySharing")) { |
7225 familySharing = new VolumeUserInfoFamilySharing.fromJson(_json["familyShar
ing"]); | 7482 familySharing = |
| 7483 new VolumeUserInfoFamilySharing.fromJson(_json["familySharing"]); |
7226 } | 7484 } |
7227 if (_json.containsKey("isFamilySharedFromUser")) { | 7485 if (_json.containsKey("isFamilySharedFromUser")) { |
7228 isFamilySharedFromUser = _json["isFamilySharedFromUser"]; | 7486 isFamilySharedFromUser = _json["isFamilySharedFromUser"]; |
7229 } | 7487 } |
7230 if (_json.containsKey("isFamilySharedToUser")) { | 7488 if (_json.containsKey("isFamilySharedToUser")) { |
7231 isFamilySharedToUser = _json["isFamilySharedToUser"]; | 7489 isFamilySharedToUser = _json["isFamilySharedToUser"]; |
7232 } | 7490 } |
7233 if (_json.containsKey("isFamilySharingAllowed")) { | 7491 if (_json.containsKey("isFamilySharingAllowed")) { |
7234 isFamilySharingAllowed = _json["isFamilySharingAllowed"]; | 7492 isFamilySharingAllowed = _json["isFamilySharingAllowed"]; |
7235 } | 7493 } |
7236 if (_json.containsKey("isFamilySharingDisabledByFop")) { | 7494 if (_json.containsKey("isFamilySharingDisabledByFop")) { |
7237 isFamilySharingDisabledByFop = _json["isFamilySharingDisabledByFop"]; | 7495 isFamilySharingDisabledByFop = _json["isFamilySharingDisabledByFop"]; |
7238 } | 7496 } |
7239 if (_json.containsKey("isInMyBooks")) { | 7497 if (_json.containsKey("isInMyBooks")) { |
7240 isInMyBooks = _json["isInMyBooks"]; | 7498 isInMyBooks = _json["isInMyBooks"]; |
7241 } | 7499 } |
7242 if (_json.containsKey("isPreordered")) { | 7500 if (_json.containsKey("isPreordered")) { |
7243 isPreordered = _json["isPreordered"]; | 7501 isPreordered = _json["isPreordered"]; |
7244 } | 7502 } |
7245 if (_json.containsKey("isPurchased")) { | 7503 if (_json.containsKey("isPurchased")) { |
7246 isPurchased = _json["isPurchased"]; | 7504 isPurchased = _json["isPurchased"]; |
7247 } | 7505 } |
7248 if (_json.containsKey("isUploaded")) { | 7506 if (_json.containsKey("isUploaded")) { |
7249 isUploaded = _json["isUploaded"]; | 7507 isUploaded = _json["isUploaded"]; |
7250 } | 7508 } |
7251 if (_json.containsKey("readingPosition")) { | 7509 if (_json.containsKey("readingPosition")) { |
7252 readingPosition = new ReadingPosition.fromJson(_json["readingPosition"]); | 7510 readingPosition = new ReadingPosition.fromJson(_json["readingPosition"]); |
7253 } | 7511 } |
7254 if (_json.containsKey("rentalPeriod")) { | 7512 if (_json.containsKey("rentalPeriod")) { |
7255 rentalPeriod = new VolumeUserInfoRentalPeriod.fromJson(_json["rentalPeriod
"]); | 7513 rentalPeriod = |
| 7514 new VolumeUserInfoRentalPeriod.fromJson(_json["rentalPeriod"]); |
7256 } | 7515 } |
7257 if (_json.containsKey("rentalState")) { | 7516 if (_json.containsKey("rentalState")) { |
7258 rentalState = _json["rentalState"]; | 7517 rentalState = _json["rentalState"]; |
7259 } | 7518 } |
7260 if (_json.containsKey("review")) { | 7519 if (_json.containsKey("review")) { |
7261 review = new Review.fromJson(_json["review"]); | 7520 review = new Review.fromJson(_json["review"]); |
7262 } | 7521 } |
7263 if (_json.containsKey("updated")) { | 7522 if (_json.containsKey("updated")) { |
7264 updated = core.DateTime.parse(_json["updated"]); | 7523 updated = core.DateTime.parse(_json["updated"]); |
7265 } | 7524 } |
7266 if (_json.containsKey("userUploadedVolumeInfo")) { | 7525 if (_json.containsKey("userUploadedVolumeInfo")) { |
7267 userUploadedVolumeInfo = new VolumeUserInfoUserUploadedVolumeInfo.fromJson
(_json["userUploadedVolumeInfo"]); | 7526 userUploadedVolumeInfo = |
| 7527 new VolumeUserInfoUserUploadedVolumeInfo.fromJson( |
| 7528 _json["userUploadedVolumeInfo"]); |
7268 } | 7529 } |
7269 } | 7530 } |
7270 | 7531 |
7271 core.Map<core.String, core.Object> toJson() { | 7532 core.Map<core.String, core.Object> toJson() { |
7272 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7533 final core.Map<core.String, core.Object> _json = |
| 7534 new core.Map<core.String, core.Object>(); |
7273 if (acquiredTime != null) { | 7535 if (acquiredTime != null) { |
7274 _json["acquiredTime"] = (acquiredTime).toIso8601String(); | 7536 _json["acquiredTime"] = (acquiredTime).toIso8601String(); |
7275 } | 7537 } |
7276 if (acquisitionType != null) { | 7538 if (acquisitionType != null) { |
7277 _json["acquisitionType"] = acquisitionType; | 7539 _json["acquisitionType"] = acquisitionType; |
7278 } | 7540 } |
7279 if (copy != null) { | 7541 if (copy != null) { |
7280 _json["copy"] = (copy).toJson(); | 7542 _json["copy"] = (copy).toJson(); |
7281 } | 7543 } |
7282 if (entitlementType != null) { | 7544 if (entitlementType != null) { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7324 if (updated != null) { | 7586 if (updated != null) { |
7325 _json["updated"] = (updated).toIso8601String(); | 7587 _json["updated"] = (updated).toIso8601String(); |
7326 } | 7588 } |
7327 if (userUploadedVolumeInfo != null) { | 7589 if (userUploadedVolumeInfo != null) { |
7328 _json["userUploadedVolumeInfo"] = (userUploadedVolumeInfo).toJson(); | 7590 _json["userUploadedVolumeInfo"] = (userUploadedVolumeInfo).toJson(); |
7329 } | 7591 } |
7330 return _json; | 7592 return _json; |
7331 } | 7593 } |
7332 } | 7594 } |
7333 | 7595 |
7334 /** Physical dimensions of this volume. */ | 7596 /// Physical dimensions of this volume. |
7335 class VolumeVolumeInfoDimensions { | 7597 class VolumeVolumeInfoDimensions { |
7336 /** Height or length of this volume (in cm). */ | 7598 /// Height or length of this volume (in cm). |
7337 core.String height; | 7599 core.String height; |
7338 /** Thickness of this volume (in cm). */ | 7600 |
| 7601 /// Thickness of this volume (in cm). |
7339 core.String thickness; | 7602 core.String thickness; |
7340 /** Width of this volume (in cm). */ | 7603 |
| 7604 /// Width of this volume (in cm). |
7341 core.String width; | 7605 core.String width; |
7342 | 7606 |
7343 VolumeVolumeInfoDimensions(); | 7607 VolumeVolumeInfoDimensions(); |
7344 | 7608 |
7345 VolumeVolumeInfoDimensions.fromJson(core.Map _json) { | 7609 VolumeVolumeInfoDimensions.fromJson(core.Map _json) { |
7346 if (_json.containsKey("height")) { | 7610 if (_json.containsKey("height")) { |
7347 height = _json["height"]; | 7611 height = _json["height"]; |
7348 } | 7612 } |
7349 if (_json.containsKey("thickness")) { | 7613 if (_json.containsKey("thickness")) { |
7350 thickness = _json["thickness"]; | 7614 thickness = _json["thickness"]; |
7351 } | 7615 } |
7352 if (_json.containsKey("width")) { | 7616 if (_json.containsKey("width")) { |
7353 width = _json["width"]; | 7617 width = _json["width"]; |
7354 } | 7618 } |
7355 } | 7619 } |
7356 | 7620 |
7357 core.Map<core.String, core.Object> toJson() { | 7621 core.Map<core.String, core.Object> toJson() { |
7358 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7622 final core.Map<core.String, core.Object> _json = |
| 7623 new core.Map<core.String, core.Object>(); |
7359 if (height != null) { | 7624 if (height != null) { |
7360 _json["height"] = height; | 7625 _json["height"] = height; |
7361 } | 7626 } |
7362 if (thickness != null) { | 7627 if (thickness != null) { |
7363 _json["thickness"] = thickness; | 7628 _json["thickness"] = thickness; |
7364 } | 7629 } |
7365 if (width != null) { | 7630 if (width != null) { |
7366 _json["width"] = width; | 7631 _json["width"] = width; |
7367 } | 7632 } |
7368 return _json; | 7633 return _json; |
7369 } | 7634 } |
7370 } | 7635 } |
7371 | 7636 |
7372 /** | 7637 /// A list of image links for all the sizes that are available. (In LITE |
7373 * A list of image links for all the sizes that are available. (In LITE | 7638 /// projection.) |
7374 * projection.) | |
7375 */ | |
7376 class VolumeVolumeInfoImageLinks { | 7639 class VolumeVolumeInfoImageLinks { |
7377 /** | 7640 /// Image link for extra large size (width of ~1280 pixels). (In LITE |
7378 * Image link for extra large size (width of ~1280 pixels). (In LITE | 7641 /// projection) |
7379 * projection) | |
7380 */ | |
7381 core.String extraLarge; | 7642 core.String extraLarge; |
7382 /** Image link for large size (width of ~800 pixels). (In LITE projection) */ | 7643 |
| 7644 /// Image link for large size (width of ~800 pixels). (In LITE projection) |
7383 core.String large; | 7645 core.String large; |
7384 /** | 7646 |
7385 * Image link for medium size (width of ~575 pixels). (In LITE projection) | 7647 /// Image link for medium size (width of ~575 pixels). (In LITE projection) |
7386 */ | |
7387 core.String medium; | 7648 core.String medium; |
7388 /** Image link for small size (width of ~300 pixels). (In LITE projection) */ | 7649 |
| 7650 /// Image link for small size (width of ~300 pixels). (In LITE projection) |
7389 core.String small; | 7651 core.String small; |
7390 /** | 7652 |
7391 * Image link for small thumbnail size (width of ~80 pixels). (In LITE | 7653 /// Image link for small thumbnail size (width of ~80 pixels). (In LITE |
7392 * projection) | 7654 /// projection) |
7393 */ | |
7394 core.String smallThumbnail; | 7655 core.String smallThumbnail; |
7395 /** | 7656 |
7396 * Image link for thumbnail size (width of ~128 pixels). (In LITE projection) | 7657 /// Image link for thumbnail size (width of ~128 pixels). (In LITE |
7397 */ | 7658 /// projection) |
7398 core.String thumbnail; | 7659 core.String thumbnail; |
7399 | 7660 |
7400 VolumeVolumeInfoImageLinks(); | 7661 VolumeVolumeInfoImageLinks(); |
7401 | 7662 |
7402 VolumeVolumeInfoImageLinks.fromJson(core.Map _json) { | 7663 VolumeVolumeInfoImageLinks.fromJson(core.Map _json) { |
7403 if (_json.containsKey("extraLarge")) { | 7664 if (_json.containsKey("extraLarge")) { |
7404 extraLarge = _json["extraLarge"]; | 7665 extraLarge = _json["extraLarge"]; |
7405 } | 7666 } |
7406 if (_json.containsKey("large")) { | 7667 if (_json.containsKey("large")) { |
7407 large = _json["large"]; | 7668 large = _json["large"]; |
7408 } | 7669 } |
7409 if (_json.containsKey("medium")) { | 7670 if (_json.containsKey("medium")) { |
7410 medium = _json["medium"]; | 7671 medium = _json["medium"]; |
7411 } | 7672 } |
7412 if (_json.containsKey("small")) { | 7673 if (_json.containsKey("small")) { |
7413 small = _json["small"]; | 7674 small = _json["small"]; |
7414 } | 7675 } |
7415 if (_json.containsKey("smallThumbnail")) { | 7676 if (_json.containsKey("smallThumbnail")) { |
7416 smallThumbnail = _json["smallThumbnail"]; | 7677 smallThumbnail = _json["smallThumbnail"]; |
7417 } | 7678 } |
7418 if (_json.containsKey("thumbnail")) { | 7679 if (_json.containsKey("thumbnail")) { |
7419 thumbnail = _json["thumbnail"]; | 7680 thumbnail = _json["thumbnail"]; |
7420 } | 7681 } |
7421 } | 7682 } |
7422 | 7683 |
7423 core.Map<core.String, core.Object> toJson() { | 7684 core.Map<core.String, core.Object> toJson() { |
7424 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7685 final core.Map<core.String, core.Object> _json = |
| 7686 new core.Map<core.String, core.Object>(); |
7425 if (extraLarge != null) { | 7687 if (extraLarge != null) { |
7426 _json["extraLarge"] = extraLarge; | 7688 _json["extraLarge"] = extraLarge; |
7427 } | 7689 } |
7428 if (large != null) { | 7690 if (large != null) { |
7429 _json["large"] = large; | 7691 _json["large"] = large; |
7430 } | 7692 } |
7431 if (medium != null) { | 7693 if (medium != null) { |
7432 _json["medium"] = medium; | 7694 _json["medium"] = medium; |
7433 } | 7695 } |
7434 if (small != null) { | 7696 if (small != null) { |
7435 _json["small"] = small; | 7697 _json["small"] = small; |
7436 } | 7698 } |
7437 if (smallThumbnail != null) { | 7699 if (smallThumbnail != null) { |
7438 _json["smallThumbnail"] = smallThumbnail; | 7700 _json["smallThumbnail"] = smallThumbnail; |
7439 } | 7701 } |
7440 if (thumbnail != null) { | 7702 if (thumbnail != null) { |
7441 _json["thumbnail"] = thumbnail; | 7703 _json["thumbnail"] = thumbnail; |
7442 } | 7704 } |
7443 return _json; | 7705 return _json; |
7444 } | 7706 } |
7445 } | 7707 } |
7446 | 7708 |
7447 class VolumeVolumeInfoIndustryIdentifiers { | 7709 class VolumeVolumeInfoIndustryIdentifiers { |
7448 /** Industry specific volume identifier. */ | 7710 /// Industry specific volume identifier. |
7449 core.String identifier; | 7711 core.String identifier; |
7450 /** Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER. */ | 7712 |
| 7713 /// Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER. |
7451 core.String type; | 7714 core.String type; |
7452 | 7715 |
7453 VolumeVolumeInfoIndustryIdentifiers(); | 7716 VolumeVolumeInfoIndustryIdentifiers(); |
7454 | 7717 |
7455 VolumeVolumeInfoIndustryIdentifiers.fromJson(core.Map _json) { | 7718 VolumeVolumeInfoIndustryIdentifiers.fromJson(core.Map _json) { |
7456 if (_json.containsKey("identifier")) { | 7719 if (_json.containsKey("identifier")) { |
7457 identifier = _json["identifier"]; | 7720 identifier = _json["identifier"]; |
7458 } | 7721 } |
7459 if (_json.containsKey("type")) { | 7722 if (_json.containsKey("type")) { |
7460 type = _json["type"]; | 7723 type = _json["type"]; |
7461 } | 7724 } |
7462 } | 7725 } |
7463 | 7726 |
7464 core.Map<core.String, core.Object> toJson() { | 7727 core.Map<core.String, core.Object> toJson() { |
7465 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7728 final core.Map<core.String, core.Object> _json = |
| 7729 new core.Map<core.String, core.Object>(); |
7466 if (identifier != null) { | 7730 if (identifier != null) { |
7467 _json["identifier"] = identifier; | 7731 _json["identifier"] = identifier; |
7468 } | 7732 } |
7469 if (type != null) { | 7733 if (type != null) { |
7470 _json["type"] = type; | 7734 _json["type"] = type; |
7471 } | 7735 } |
7472 return _json; | 7736 return _json; |
7473 } | 7737 } |
7474 } | 7738 } |
7475 | 7739 |
7476 /** A top-level summary of the panelization info in this volume. */ | 7740 /// A top-level summary of the panelization info in this volume. |
7477 class VolumeVolumeInfoPanelizationSummary { | 7741 class VolumeVolumeInfoPanelizationSummary { |
7478 core.bool containsEpubBubbles; | 7742 core.bool containsEpubBubbles; |
7479 core.bool containsImageBubbles; | 7743 core.bool containsImageBubbles; |
7480 core.String epubBubbleVersion; | 7744 core.String epubBubbleVersion; |
7481 core.String imageBubbleVersion; | 7745 core.String imageBubbleVersion; |
7482 | 7746 |
7483 VolumeVolumeInfoPanelizationSummary(); | 7747 VolumeVolumeInfoPanelizationSummary(); |
7484 | 7748 |
7485 VolumeVolumeInfoPanelizationSummary.fromJson(core.Map _json) { | 7749 VolumeVolumeInfoPanelizationSummary.fromJson(core.Map _json) { |
7486 if (_json.containsKey("containsEpubBubbles")) { | 7750 if (_json.containsKey("containsEpubBubbles")) { |
7487 containsEpubBubbles = _json["containsEpubBubbles"]; | 7751 containsEpubBubbles = _json["containsEpubBubbles"]; |
7488 } | 7752 } |
7489 if (_json.containsKey("containsImageBubbles")) { | 7753 if (_json.containsKey("containsImageBubbles")) { |
7490 containsImageBubbles = _json["containsImageBubbles"]; | 7754 containsImageBubbles = _json["containsImageBubbles"]; |
7491 } | 7755 } |
7492 if (_json.containsKey("epubBubbleVersion")) { | 7756 if (_json.containsKey("epubBubbleVersion")) { |
7493 epubBubbleVersion = _json["epubBubbleVersion"]; | 7757 epubBubbleVersion = _json["epubBubbleVersion"]; |
7494 } | 7758 } |
7495 if (_json.containsKey("imageBubbleVersion")) { | 7759 if (_json.containsKey("imageBubbleVersion")) { |
7496 imageBubbleVersion = _json["imageBubbleVersion"]; | 7760 imageBubbleVersion = _json["imageBubbleVersion"]; |
7497 } | 7761 } |
7498 } | 7762 } |
7499 | 7763 |
7500 core.Map<core.String, core.Object> toJson() { | 7764 core.Map<core.String, core.Object> toJson() { |
7501 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7765 final core.Map<core.String, core.Object> _json = |
| 7766 new core.Map<core.String, core.Object>(); |
7502 if (containsEpubBubbles != null) { | 7767 if (containsEpubBubbles != null) { |
7503 _json["containsEpubBubbles"] = containsEpubBubbles; | 7768 _json["containsEpubBubbles"] = containsEpubBubbles; |
7504 } | 7769 } |
7505 if (containsImageBubbles != null) { | 7770 if (containsImageBubbles != null) { |
7506 _json["containsImageBubbles"] = containsImageBubbles; | 7771 _json["containsImageBubbles"] = containsImageBubbles; |
7507 } | 7772 } |
7508 if (epubBubbleVersion != null) { | 7773 if (epubBubbleVersion != null) { |
7509 _json["epubBubbleVersion"] = epubBubbleVersion; | 7774 _json["epubBubbleVersion"] = epubBubbleVersion; |
7510 } | 7775 } |
7511 if (imageBubbleVersion != null) { | 7776 if (imageBubbleVersion != null) { |
7512 _json["imageBubbleVersion"] = imageBubbleVersion; | 7777 _json["imageBubbleVersion"] = imageBubbleVersion; |
7513 } | 7778 } |
7514 return _json; | 7779 return _json; |
7515 } | 7780 } |
7516 } | 7781 } |
7517 | 7782 |
7518 /** General volume information. */ | 7783 /// General volume information. |
7519 class VolumeVolumeInfo { | 7784 class VolumeVolumeInfo { |
7520 /** Whether anonymous logging should be allowed. */ | 7785 /// Whether anonymous logging should be allowed. |
7521 core.bool allowAnonLogging; | 7786 core.bool allowAnonLogging; |
7522 /** | 7787 |
7523 * The names of the authors and/or editors for this volume. (In LITE | 7788 /// The names of the authors and/or editors for this volume. (In LITE |
7524 * projection) | 7789 /// projection) |
7525 */ | |
7526 core.List<core.String> authors; | 7790 core.List<core.String> authors; |
7527 /** The mean review rating for this volume. (min = 1.0, max = 5.0) */ | 7791 |
| 7792 /// The mean review rating for this volume. (min = 1.0, max = 5.0) |
7528 core.double averageRating; | 7793 core.double averageRating; |
7529 /** Canonical URL for a volume. (In LITE projection.) */ | 7794 |
| 7795 /// Canonical URL for a volume. (In LITE projection.) |
7530 core.String canonicalVolumeLink; | 7796 core.String canonicalVolumeLink; |
7531 /** A list of subject categories, such as "Fiction", "Suspense", etc. */ | 7797 |
| 7798 /// A list of subject categories, such as "Fiction", "Suspense", etc. |
7532 core.List<core.String> categories; | 7799 core.List<core.String> categories; |
7533 /** | 7800 |
7534 * An identifier for the version of the volume content (text & images). (In | 7801 /// An identifier for the version of the volume content (text & images). (In |
7535 * LITE projection) | 7802 /// LITE projection) |
7536 */ | |
7537 core.String contentVersion; | 7803 core.String contentVersion; |
7538 /** | 7804 |
7539 * A synopsis of the volume. The text of the description is formatted in HTML | 7805 /// A synopsis of the volume. The text of the description is formatted in |
7540 * and includes simple formatting elements, such as b, i, and br tags. (In | 7806 /// HTML and includes simple formatting elements, such as b, i, and br tags. |
7541 * LITE projection.) | 7807 /// (In LITE projection.) |
7542 */ | |
7543 core.String description; | 7808 core.String description; |
7544 /** Physical dimensions of this volume. */ | 7809 |
| 7810 /// Physical dimensions of this volume. |
7545 VolumeVolumeInfoDimensions dimensions; | 7811 VolumeVolumeInfoDimensions dimensions; |
7546 /** | 7812 |
7547 * A list of image links for all the sizes that are available. (In LITE | 7813 /// A list of image links for all the sizes that are available. (In LITE |
7548 * projection.) | 7814 /// projection.) |
7549 */ | |
7550 VolumeVolumeInfoImageLinks imageLinks; | 7815 VolumeVolumeInfoImageLinks imageLinks; |
7551 /** Industry standard identifiers for this volume. */ | 7816 |
| 7817 /// Industry standard identifiers for this volume. |
7552 core.List<VolumeVolumeInfoIndustryIdentifiers> industryIdentifiers; | 7818 core.List<VolumeVolumeInfoIndustryIdentifiers> industryIdentifiers; |
7553 /** | 7819 |
7554 * URL to view information about this volume on the Google Books site. (In | 7820 /// URL to view information about this volume on the Google Books site. (In |
7555 * LITE projection) | 7821 /// LITE projection) |
7556 */ | |
7557 core.String infoLink; | 7822 core.String infoLink; |
7558 /** | 7823 |
7559 * Best language for this volume (based on content). It is the two-letter ISO | 7824 /// Best language for this volume (based on content). It is the two-letter |
7560 * 639-1 code such as 'fr', 'en', etc. | 7825 /// ISO 639-1 code such as 'fr', 'en', etc. |
7561 */ | |
7562 core.String language; | 7826 core.String language; |
7563 /** | 7827 |
7564 * The main category to which this volume belongs. It will be the category | 7828 /// The main category to which this volume belongs. It will be the category |
7565 * from the categories list returned below that has the highest weight. | 7829 /// from the categories list returned below that has the highest weight. |
7566 */ | |
7567 core.String mainCategory; | 7830 core.String mainCategory; |
7568 core.String maturityRating; | 7831 core.String maturityRating; |
7569 /** Total number of pages as per publisher metadata. */ | 7832 |
| 7833 /// Total number of pages as per publisher metadata. |
7570 core.int pageCount; | 7834 core.int pageCount; |
7571 /** A top-level summary of the panelization info in this volume. */ | 7835 |
| 7836 /// A top-level summary of the panelization info in this volume. |
7572 VolumeVolumeInfoPanelizationSummary panelizationSummary; | 7837 VolumeVolumeInfoPanelizationSummary panelizationSummary; |
7573 /** URL to preview this volume on the Google Books site. */ | 7838 |
| 7839 /// URL to preview this volume on the Google Books site. |
7574 core.String previewLink; | 7840 core.String previewLink; |
7575 /** | 7841 |
7576 * Type of publication of this volume. Possible values are BOOK or MAGAZINE. | 7842 /// Type of publication of this volume. Possible values are BOOK or MAGAZINE. |
7577 */ | |
7578 core.String printType; | 7843 core.String printType; |
7579 /** Total number of printed pages in generated pdf representation. */ | 7844 |
| 7845 /// Total number of printed pages in generated pdf representation. |
7580 core.int printedPageCount; | 7846 core.int printedPageCount; |
7581 /** Date of publication. (In LITE projection.) */ | 7847 |
| 7848 /// Date of publication. (In LITE projection.) |
7582 core.String publishedDate; | 7849 core.String publishedDate; |
7583 /** Publisher of this volume. (In LITE projection.) */ | 7850 |
| 7851 /// Publisher of this volume. (In LITE projection.) |
7584 core.String publisher; | 7852 core.String publisher; |
7585 /** The number of review ratings for this volume. */ | 7853 |
| 7854 /// The number of review ratings for this volume. |
7586 core.int ratingsCount; | 7855 core.int ratingsCount; |
7587 /** | 7856 |
7588 * The reading modes available for this volume. | 7857 /// The reading modes available for this volume. |
7589 * | 7858 /// |
7590 * The values for Object must be JSON objects. It can consist of `num`, | 7859 /// The values for Object must be JSON objects. It can consist of `num`, |
7591 * `String`, `bool` and `null` as well as `Map` and `List` values. | 7860 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
7592 */ | |
7593 core.Object readingModes; | 7861 core.Object readingModes; |
7594 /** Total number of sample pages as per publisher metadata. */ | 7862 |
| 7863 /// Total number of sample pages as per publisher metadata. |
7595 core.int samplePageCount; | 7864 core.int samplePageCount; |
7596 Volumeseriesinfo seriesInfo; | 7865 Volumeseriesinfo seriesInfo; |
7597 /** Volume subtitle. (In LITE projection.) */ | 7866 |
| 7867 /// Volume subtitle. (In LITE projection.) |
7598 core.String subtitle; | 7868 core.String subtitle; |
7599 /** Volume title. (In LITE projection.) */ | 7869 |
| 7870 /// Volume title. (In LITE projection.) |
7600 core.String title; | 7871 core.String title; |
7601 | 7872 |
7602 VolumeVolumeInfo(); | 7873 VolumeVolumeInfo(); |
7603 | 7874 |
7604 VolumeVolumeInfo.fromJson(core.Map _json) { | 7875 VolumeVolumeInfo.fromJson(core.Map _json) { |
7605 if (_json.containsKey("allowAnonLogging")) { | 7876 if (_json.containsKey("allowAnonLogging")) { |
7606 allowAnonLogging = _json["allowAnonLogging"]; | 7877 allowAnonLogging = _json["allowAnonLogging"]; |
7607 } | 7878 } |
7608 if (_json.containsKey("authors")) { | 7879 if (_json.containsKey("authors")) { |
7609 authors = _json["authors"]; | 7880 authors = _json["authors"]; |
(...skipping 13 matching lines...) Expand all Loading... |
7623 if (_json.containsKey("description")) { | 7894 if (_json.containsKey("description")) { |
7624 description = _json["description"]; | 7895 description = _json["description"]; |
7625 } | 7896 } |
7626 if (_json.containsKey("dimensions")) { | 7897 if (_json.containsKey("dimensions")) { |
7627 dimensions = new VolumeVolumeInfoDimensions.fromJson(_json["dimensions"]); | 7898 dimensions = new VolumeVolumeInfoDimensions.fromJson(_json["dimensions"]); |
7628 } | 7899 } |
7629 if (_json.containsKey("imageLinks")) { | 7900 if (_json.containsKey("imageLinks")) { |
7630 imageLinks = new VolumeVolumeInfoImageLinks.fromJson(_json["imageLinks"]); | 7901 imageLinks = new VolumeVolumeInfoImageLinks.fromJson(_json["imageLinks"]); |
7631 } | 7902 } |
7632 if (_json.containsKey("industryIdentifiers")) { | 7903 if (_json.containsKey("industryIdentifiers")) { |
7633 industryIdentifiers = _json["industryIdentifiers"].map((value) => new Volu
meVolumeInfoIndustryIdentifiers.fromJson(value)).toList(); | 7904 industryIdentifiers = _json["industryIdentifiers"] |
| 7905 .map((value) => |
| 7906 new VolumeVolumeInfoIndustryIdentifiers.fromJson(value)) |
| 7907 .toList(); |
7634 } | 7908 } |
7635 if (_json.containsKey("infoLink")) { | 7909 if (_json.containsKey("infoLink")) { |
7636 infoLink = _json["infoLink"]; | 7910 infoLink = _json["infoLink"]; |
7637 } | 7911 } |
7638 if (_json.containsKey("language")) { | 7912 if (_json.containsKey("language")) { |
7639 language = _json["language"]; | 7913 language = _json["language"]; |
7640 } | 7914 } |
7641 if (_json.containsKey("mainCategory")) { | 7915 if (_json.containsKey("mainCategory")) { |
7642 mainCategory = _json["mainCategory"]; | 7916 mainCategory = _json["mainCategory"]; |
7643 } | 7917 } |
7644 if (_json.containsKey("maturityRating")) { | 7918 if (_json.containsKey("maturityRating")) { |
7645 maturityRating = _json["maturityRating"]; | 7919 maturityRating = _json["maturityRating"]; |
7646 } | 7920 } |
7647 if (_json.containsKey("pageCount")) { | 7921 if (_json.containsKey("pageCount")) { |
7648 pageCount = _json["pageCount"]; | 7922 pageCount = _json["pageCount"]; |
7649 } | 7923 } |
7650 if (_json.containsKey("panelizationSummary")) { | 7924 if (_json.containsKey("panelizationSummary")) { |
7651 panelizationSummary = new VolumeVolumeInfoPanelizationSummary.fromJson(_js
on["panelizationSummary"]); | 7925 panelizationSummary = new VolumeVolumeInfoPanelizationSummary.fromJson( |
| 7926 _json["panelizationSummary"]); |
7652 } | 7927 } |
7653 if (_json.containsKey("previewLink")) { | 7928 if (_json.containsKey("previewLink")) { |
7654 previewLink = _json["previewLink"]; | 7929 previewLink = _json["previewLink"]; |
7655 } | 7930 } |
7656 if (_json.containsKey("printType")) { | 7931 if (_json.containsKey("printType")) { |
7657 printType = _json["printType"]; | 7932 printType = _json["printType"]; |
7658 } | 7933 } |
7659 if (_json.containsKey("printedPageCount")) { | 7934 if (_json.containsKey("printedPageCount")) { |
7660 printedPageCount = _json["printedPageCount"]; | 7935 printedPageCount = _json["printedPageCount"]; |
7661 } | 7936 } |
(...skipping 17 matching lines...) Expand all Loading... |
7679 } | 7954 } |
7680 if (_json.containsKey("subtitle")) { | 7955 if (_json.containsKey("subtitle")) { |
7681 subtitle = _json["subtitle"]; | 7956 subtitle = _json["subtitle"]; |
7682 } | 7957 } |
7683 if (_json.containsKey("title")) { | 7958 if (_json.containsKey("title")) { |
7684 title = _json["title"]; | 7959 title = _json["title"]; |
7685 } | 7960 } |
7686 } | 7961 } |
7687 | 7962 |
7688 core.Map<core.String, core.Object> toJson() { | 7963 core.Map<core.String, core.Object> toJson() { |
7689 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7964 final core.Map<core.String, core.Object> _json = |
| 7965 new core.Map<core.String, core.Object>(); |
7690 if (allowAnonLogging != null) { | 7966 if (allowAnonLogging != null) { |
7691 _json["allowAnonLogging"] = allowAnonLogging; | 7967 _json["allowAnonLogging"] = allowAnonLogging; |
7692 } | 7968 } |
7693 if (authors != null) { | 7969 if (authors != null) { |
7694 _json["authors"] = authors; | 7970 _json["authors"] = authors; |
7695 } | 7971 } |
7696 if (averageRating != null) { | 7972 if (averageRating != null) { |
7697 _json["averageRating"] = averageRating; | 7973 _json["averageRating"] = averageRating; |
7698 } | 7974 } |
7699 if (canonicalVolumeLink != null) { | 7975 if (canonicalVolumeLink != null) { |
7700 _json["canonicalVolumeLink"] = canonicalVolumeLink; | 7976 _json["canonicalVolumeLink"] = canonicalVolumeLink; |
7701 } | 7977 } |
7702 if (categories != null) { | 7978 if (categories != null) { |
7703 _json["categories"] = categories; | 7979 _json["categories"] = categories; |
7704 } | 7980 } |
7705 if (contentVersion != null) { | 7981 if (contentVersion != null) { |
7706 _json["contentVersion"] = contentVersion; | 7982 _json["contentVersion"] = contentVersion; |
7707 } | 7983 } |
7708 if (description != null) { | 7984 if (description != null) { |
7709 _json["description"] = description; | 7985 _json["description"] = description; |
7710 } | 7986 } |
7711 if (dimensions != null) { | 7987 if (dimensions != null) { |
7712 _json["dimensions"] = (dimensions).toJson(); | 7988 _json["dimensions"] = (dimensions).toJson(); |
7713 } | 7989 } |
7714 if (imageLinks != null) { | 7990 if (imageLinks != null) { |
7715 _json["imageLinks"] = (imageLinks).toJson(); | 7991 _json["imageLinks"] = (imageLinks).toJson(); |
7716 } | 7992 } |
7717 if (industryIdentifiers != null) { | 7993 if (industryIdentifiers != null) { |
7718 _json["industryIdentifiers"] = industryIdentifiers.map((value) => (value).
toJson()).toList(); | 7994 _json["industryIdentifiers"] = |
| 7995 industryIdentifiers.map((value) => (value).toJson()).toList(); |
7719 } | 7996 } |
7720 if (infoLink != null) { | 7997 if (infoLink != null) { |
7721 _json["infoLink"] = infoLink; | 7998 _json["infoLink"] = infoLink; |
7722 } | 7999 } |
7723 if (language != null) { | 8000 if (language != null) { |
7724 _json["language"] = language; | 8001 _json["language"] = language; |
7725 } | 8002 } |
7726 if (mainCategory != null) { | 8003 if (mainCategory != null) { |
7727 _json["mainCategory"] = mainCategory; | 8004 _json["mainCategory"] = mainCategory; |
7728 } | 8005 } |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7766 _json["subtitle"] = subtitle; | 8043 _json["subtitle"] = subtitle; |
7767 } | 8044 } |
7768 if (title != null) { | 8045 if (title != null) { |
7769 _json["title"] = title; | 8046 _json["title"] = title; |
7770 } | 8047 } |
7771 return _json; | 8048 return _json; |
7772 } | 8049 } |
7773 } | 8050 } |
7774 | 8051 |
7775 class Volume { | 8052 class Volume { |
7776 /** | 8053 /// Any information about a volume related to reading or obtaining that |
7777 * Any information about a volume related to reading or obtaining that volume | 8054 /// volume text. This information can depend on country (books may be public |
7778 * text. This information can depend on country (books may be public domain in | 8055 /// domain in one country but not in another, e.g.). |
7779 * one country but not in another, e.g.). | |
7780 */ | |
7781 VolumeAccessInfo accessInfo; | 8056 VolumeAccessInfo accessInfo; |
7782 /** | 8057 |
7783 * Opaque identifier for a specific version of a volume resource. (In LITE | 8058 /// Opaque identifier for a specific version of a volume resource. (In LITE |
7784 * projection) | 8059 /// projection) |
7785 */ | |
7786 core.String etag; | 8060 core.String etag; |
7787 /** Unique identifier for a volume. (In LITE projection.) */ | 8061 |
| 8062 /// Unique identifier for a volume. (In LITE projection.) |
7788 core.String id; | 8063 core.String id; |
7789 /** Resource type for a volume. (In LITE projection.) */ | 8064 |
| 8065 /// Resource type for a volume. (In LITE projection.) |
7790 core.String kind; | 8066 core.String kind; |
7791 /** | 8067 |
7792 * What layers exist in this volume and high level information about them. | 8068 /// What layers exist in this volume and high level information about them. |
7793 */ | |
7794 VolumeLayerInfo layerInfo; | 8069 VolumeLayerInfo layerInfo; |
7795 /** Recommendation related information for this volume. */ | 8070 |
| 8071 /// Recommendation related information for this volume. |
7796 VolumeRecommendedInfo recommendedInfo; | 8072 VolumeRecommendedInfo recommendedInfo; |
7797 /** | 8073 |
7798 * Any information about a volume related to the eBookstore and/or | 8074 /// Any information about a volume related to the eBookstore and/or |
7799 * purchaseability. This information can depend on the country where the | 8075 /// purchaseability. This information can depend on the country where the |
7800 * request originates from (i.e. books may not be for sale in certain | 8076 /// request originates from (i.e. books may not be for sale in certain |
7801 * countries). | 8077 /// countries). |
7802 */ | |
7803 VolumeSaleInfo saleInfo; | 8078 VolumeSaleInfo saleInfo; |
7804 /** Search result information related to this volume. */ | 8079 |
| 8080 /// Search result information related to this volume. |
7805 VolumeSearchInfo searchInfo; | 8081 VolumeSearchInfo searchInfo; |
7806 /** URL to this resource. (In LITE projection.) */ | 8082 |
| 8083 /// URL to this resource. (In LITE projection.) |
7807 core.String selfLink; | 8084 core.String selfLink; |
7808 /** | 8085 |
7809 * User specific information related to this volume. (e.g. page this user last | 8086 /// User specific information related to this volume. (e.g. page this user |
7810 * read or whether they purchased this book) | 8087 /// last read or whether they purchased this book) |
7811 */ | |
7812 VolumeUserInfo userInfo; | 8088 VolumeUserInfo userInfo; |
7813 /** General volume information. */ | 8089 |
| 8090 /// General volume information. |
7814 VolumeVolumeInfo volumeInfo; | 8091 VolumeVolumeInfo volumeInfo; |
7815 | 8092 |
7816 Volume(); | 8093 Volume(); |
7817 | 8094 |
7818 Volume.fromJson(core.Map _json) { | 8095 Volume.fromJson(core.Map _json) { |
7819 if (_json.containsKey("accessInfo")) { | 8096 if (_json.containsKey("accessInfo")) { |
7820 accessInfo = new VolumeAccessInfo.fromJson(_json["accessInfo"]); | 8097 accessInfo = new VolumeAccessInfo.fromJson(_json["accessInfo"]); |
7821 } | 8098 } |
7822 if (_json.containsKey("etag")) { | 8099 if (_json.containsKey("etag")) { |
7823 etag = _json["etag"]; | 8100 etag = _json["etag"]; |
7824 } | 8101 } |
7825 if (_json.containsKey("id")) { | 8102 if (_json.containsKey("id")) { |
7826 id = _json["id"]; | 8103 id = _json["id"]; |
7827 } | 8104 } |
7828 if (_json.containsKey("kind")) { | 8105 if (_json.containsKey("kind")) { |
7829 kind = _json["kind"]; | 8106 kind = _json["kind"]; |
7830 } | 8107 } |
7831 if (_json.containsKey("layerInfo")) { | 8108 if (_json.containsKey("layerInfo")) { |
7832 layerInfo = new VolumeLayerInfo.fromJson(_json["layerInfo"]); | 8109 layerInfo = new VolumeLayerInfo.fromJson(_json["layerInfo"]); |
7833 } | 8110 } |
7834 if (_json.containsKey("recommendedInfo")) { | 8111 if (_json.containsKey("recommendedInfo")) { |
7835 recommendedInfo = new VolumeRecommendedInfo.fromJson(_json["recommendedInf
o"]); | 8112 recommendedInfo = |
| 8113 new VolumeRecommendedInfo.fromJson(_json["recommendedInfo"]); |
7836 } | 8114 } |
7837 if (_json.containsKey("saleInfo")) { | 8115 if (_json.containsKey("saleInfo")) { |
7838 saleInfo = new VolumeSaleInfo.fromJson(_json["saleInfo"]); | 8116 saleInfo = new VolumeSaleInfo.fromJson(_json["saleInfo"]); |
7839 } | 8117 } |
7840 if (_json.containsKey("searchInfo")) { | 8118 if (_json.containsKey("searchInfo")) { |
7841 searchInfo = new VolumeSearchInfo.fromJson(_json["searchInfo"]); | 8119 searchInfo = new VolumeSearchInfo.fromJson(_json["searchInfo"]); |
7842 } | 8120 } |
7843 if (_json.containsKey("selfLink")) { | 8121 if (_json.containsKey("selfLink")) { |
7844 selfLink = _json["selfLink"]; | 8122 selfLink = _json["selfLink"]; |
7845 } | 8123 } |
7846 if (_json.containsKey("userInfo")) { | 8124 if (_json.containsKey("userInfo")) { |
7847 userInfo = new VolumeUserInfo.fromJson(_json["userInfo"]); | 8125 userInfo = new VolumeUserInfo.fromJson(_json["userInfo"]); |
7848 } | 8126 } |
7849 if (_json.containsKey("volumeInfo")) { | 8127 if (_json.containsKey("volumeInfo")) { |
7850 volumeInfo = new VolumeVolumeInfo.fromJson(_json["volumeInfo"]); | 8128 volumeInfo = new VolumeVolumeInfo.fromJson(_json["volumeInfo"]); |
7851 } | 8129 } |
7852 } | 8130 } |
7853 | 8131 |
7854 core.Map<core.String, core.Object> toJson() { | 8132 core.Map<core.String, core.Object> toJson() { |
7855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8133 final core.Map<core.String, core.Object> _json = |
| 8134 new core.Map<core.String, core.Object>(); |
7856 if (accessInfo != null) { | 8135 if (accessInfo != null) { |
7857 _json["accessInfo"] = (accessInfo).toJson(); | 8136 _json["accessInfo"] = (accessInfo).toJson(); |
7858 } | 8137 } |
7859 if (etag != null) { | 8138 if (etag != null) { |
7860 _json["etag"] = etag; | 8139 _json["etag"] = etag; |
7861 } | 8140 } |
7862 if (id != null) { | 8141 if (id != null) { |
7863 _json["id"] = id; | 8142 _json["id"] = id; |
7864 } | 8143 } |
7865 if (kind != null) { | 8144 if (kind != null) { |
(...skipping 18 matching lines...) Expand all Loading... |
7884 _json["userInfo"] = (userInfo).toJson(); | 8163 _json["userInfo"] = (userInfo).toJson(); |
7885 } | 8164 } |
7886 if (volumeInfo != null) { | 8165 if (volumeInfo != null) { |
7887 _json["volumeInfo"] = (volumeInfo).toJson(); | 8166 _json["volumeInfo"] = (volumeInfo).toJson(); |
7888 } | 8167 } |
7889 return _json; | 8168 return _json; |
7890 } | 8169 } |
7891 } | 8170 } |
7892 | 8171 |
7893 class Volume2 { | 8172 class Volume2 { |
7894 /** A list of volumes. */ | 8173 /// A list of volumes. |
7895 core.List<Volume> items; | 8174 core.List<Volume> items; |
7896 /** Resource type. */ | 8175 |
| 8176 /// Resource type. |
7897 core.String kind; | 8177 core.String kind; |
7898 core.String nextPageToken; | 8178 core.String nextPageToken; |
7899 | 8179 |
7900 Volume2(); | 8180 Volume2(); |
7901 | 8181 |
7902 Volume2.fromJson(core.Map _json) { | 8182 Volume2.fromJson(core.Map _json) { |
7903 if (_json.containsKey("items")) { | 8183 if (_json.containsKey("items")) { |
7904 items = _json["items"].map((value) => new Volume.fromJson(value)).toList()
; | 8184 items = |
| 8185 _json["items"].map((value) => new Volume.fromJson(value)).toList(); |
7905 } | 8186 } |
7906 if (_json.containsKey("kind")) { | 8187 if (_json.containsKey("kind")) { |
7907 kind = _json["kind"]; | 8188 kind = _json["kind"]; |
7908 } | 8189 } |
7909 if (_json.containsKey("nextPageToken")) { | 8190 if (_json.containsKey("nextPageToken")) { |
7910 nextPageToken = _json["nextPageToken"]; | 8191 nextPageToken = _json["nextPageToken"]; |
7911 } | 8192 } |
7912 } | 8193 } |
7913 | 8194 |
7914 core.Map<core.String, core.Object> toJson() { | 8195 core.Map<core.String, core.Object> toJson() { |
7915 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8196 final core.Map<core.String, core.Object> _json = |
| 8197 new core.Map<core.String, core.Object>(); |
7916 if (items != null) { | 8198 if (items != null) { |
7917 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8199 _json["items"] = items.map((value) => (value).toJson()).toList(); |
7918 } | 8200 } |
7919 if (kind != null) { | 8201 if (kind != null) { |
7920 _json["kind"] = kind; | 8202 _json["kind"] = kind; |
7921 } | 8203 } |
7922 if (nextPageToken != null) { | 8204 if (nextPageToken != null) { |
7923 _json["nextPageToken"] = nextPageToken; | 8205 _json["nextPageToken"] = nextPageToken; |
7924 } | 8206 } |
7925 return _json; | 8207 return _json; |
7926 } | 8208 } |
7927 } | 8209 } |
7928 | 8210 |
7929 /** The content ranges to identify the selected text. */ | 8211 /// The content ranges to identify the selected text. |
7930 class VolumeannotationContentRanges { | 8212 class VolumeannotationContentRanges { |
7931 /** Range in CFI format for this annotation for version above. */ | 8213 /// Range in CFI format for this annotation for version above. |
7932 BooksAnnotationsRange cfiRange; | 8214 BooksAnnotationsRange cfiRange; |
7933 /** Content version applicable to ranges below. */ | 8215 |
| 8216 /// Content version applicable to ranges below. |
7934 core.String contentVersion; | 8217 core.String contentVersion; |
7935 /** Range in GB image format for this annotation for version above. */ | 8218 |
| 8219 /// Range in GB image format for this annotation for version above. |
7936 BooksAnnotationsRange gbImageRange; | 8220 BooksAnnotationsRange gbImageRange; |
7937 /** Range in GB text format for this annotation for version above. */ | 8221 |
| 8222 /// Range in GB text format for this annotation for version above. |
7938 BooksAnnotationsRange gbTextRange; | 8223 BooksAnnotationsRange gbTextRange; |
7939 | 8224 |
7940 VolumeannotationContentRanges(); | 8225 VolumeannotationContentRanges(); |
7941 | 8226 |
7942 VolumeannotationContentRanges.fromJson(core.Map _json) { | 8227 VolumeannotationContentRanges.fromJson(core.Map _json) { |
7943 if (_json.containsKey("cfiRange")) { | 8228 if (_json.containsKey("cfiRange")) { |
7944 cfiRange = new BooksAnnotationsRange.fromJson(_json["cfiRange"]); | 8229 cfiRange = new BooksAnnotationsRange.fromJson(_json["cfiRange"]); |
7945 } | 8230 } |
7946 if (_json.containsKey("contentVersion")) { | 8231 if (_json.containsKey("contentVersion")) { |
7947 contentVersion = _json["contentVersion"]; | 8232 contentVersion = _json["contentVersion"]; |
7948 } | 8233 } |
7949 if (_json.containsKey("gbImageRange")) { | 8234 if (_json.containsKey("gbImageRange")) { |
7950 gbImageRange = new BooksAnnotationsRange.fromJson(_json["gbImageRange"]); | 8235 gbImageRange = new BooksAnnotationsRange.fromJson(_json["gbImageRange"]); |
7951 } | 8236 } |
7952 if (_json.containsKey("gbTextRange")) { | 8237 if (_json.containsKey("gbTextRange")) { |
7953 gbTextRange = new BooksAnnotationsRange.fromJson(_json["gbTextRange"]); | 8238 gbTextRange = new BooksAnnotationsRange.fromJson(_json["gbTextRange"]); |
7954 } | 8239 } |
7955 } | 8240 } |
7956 | 8241 |
7957 core.Map<core.String, core.Object> toJson() { | 8242 core.Map<core.String, core.Object> toJson() { |
7958 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8243 final core.Map<core.String, core.Object> _json = |
| 8244 new core.Map<core.String, core.Object>(); |
7959 if (cfiRange != null) { | 8245 if (cfiRange != null) { |
7960 _json["cfiRange"] = (cfiRange).toJson(); | 8246 _json["cfiRange"] = (cfiRange).toJson(); |
7961 } | 8247 } |
7962 if (contentVersion != null) { | 8248 if (contentVersion != null) { |
7963 _json["contentVersion"] = contentVersion; | 8249 _json["contentVersion"] = contentVersion; |
7964 } | 8250 } |
7965 if (gbImageRange != null) { | 8251 if (gbImageRange != null) { |
7966 _json["gbImageRange"] = (gbImageRange).toJson(); | 8252 _json["gbImageRange"] = (gbImageRange).toJson(); |
7967 } | 8253 } |
7968 if (gbTextRange != null) { | 8254 if (gbTextRange != null) { |
7969 _json["gbTextRange"] = (gbTextRange).toJson(); | 8255 _json["gbTextRange"] = (gbTextRange).toJson(); |
7970 } | 8256 } |
7971 return _json; | 8257 return _json; |
7972 } | 8258 } |
7973 } | 8259 } |
7974 | 8260 |
7975 class Volumeannotation { | 8261 class Volumeannotation { |
7976 /** The annotation data id for this volume annotation. */ | 8262 /// The annotation data id for this volume annotation. |
7977 core.String annotationDataId; | 8263 core.String annotationDataId; |
7978 /** Link to get data for this annotation. */ | 8264 |
| 8265 /// Link to get data for this annotation. |
7979 core.String annotationDataLink; | 8266 core.String annotationDataLink; |
7980 /** The type of annotation this is. */ | 8267 |
| 8268 /// The type of annotation this is. |
7981 core.String annotationType; | 8269 core.String annotationType; |
7982 /** The content ranges to identify the selected text. */ | 8270 |
| 8271 /// The content ranges to identify the selected text. |
7983 VolumeannotationContentRanges contentRanges; | 8272 VolumeannotationContentRanges contentRanges; |
7984 /** Data for this annotation. */ | 8273 |
| 8274 /// Data for this annotation. |
7985 core.String data; | 8275 core.String data; |
7986 /** Indicates that this annotation is deleted. */ | 8276 |
| 8277 /// Indicates that this annotation is deleted. |
7987 core.bool deleted; | 8278 core.bool deleted; |
7988 /** Unique id of this volume annotation. */ | 8279 |
| 8280 /// Unique id of this volume annotation. |
7989 core.String id; | 8281 core.String id; |
7990 /** Resource Type */ | 8282 |
| 8283 /// Resource Type |
7991 core.String kind; | 8284 core.String kind; |
7992 /** The Layer this annotation is for. */ | 8285 |
| 8286 /// The Layer this annotation is for. |
7993 core.String layerId; | 8287 core.String layerId; |
7994 /** Pages the annotation spans. */ | 8288 |
| 8289 /// Pages the annotation spans. |
7995 core.List<core.String> pageIds; | 8290 core.List<core.String> pageIds; |
7996 /** Excerpt from the volume. */ | 8291 |
| 8292 /// Excerpt from the volume. |
7997 core.String selectedText; | 8293 core.String selectedText; |
7998 /** URL to this resource. */ | 8294 |
| 8295 /// URL to this resource. |
7999 core.String selfLink; | 8296 core.String selfLink; |
8000 /** | 8297 |
8001 * Timestamp for the last time this anntoation was updated. (RFC 3339 UTC | 8298 /// Timestamp for the last time this anntoation was updated. (RFC 3339 UTC |
8002 * date-time format). | 8299 /// date-time format). |
8003 */ | |
8004 core.DateTime updated; | 8300 core.DateTime updated; |
8005 /** The Volume this annotation is for. */ | 8301 |
| 8302 /// The Volume this annotation is for. |
8006 core.String volumeId; | 8303 core.String volumeId; |
8007 | 8304 |
8008 Volumeannotation(); | 8305 Volumeannotation(); |
8009 | 8306 |
8010 Volumeannotation.fromJson(core.Map _json) { | 8307 Volumeannotation.fromJson(core.Map _json) { |
8011 if (_json.containsKey("annotationDataId")) { | 8308 if (_json.containsKey("annotationDataId")) { |
8012 annotationDataId = _json["annotationDataId"]; | 8309 annotationDataId = _json["annotationDataId"]; |
8013 } | 8310 } |
8014 if (_json.containsKey("annotationDataLink")) { | 8311 if (_json.containsKey("annotationDataLink")) { |
8015 annotationDataLink = _json["annotationDataLink"]; | 8312 annotationDataLink = _json["annotationDataLink"]; |
8016 } | 8313 } |
8017 if (_json.containsKey("annotationType")) { | 8314 if (_json.containsKey("annotationType")) { |
8018 annotationType = _json["annotationType"]; | 8315 annotationType = _json["annotationType"]; |
8019 } | 8316 } |
8020 if (_json.containsKey("contentRanges")) { | 8317 if (_json.containsKey("contentRanges")) { |
8021 contentRanges = new VolumeannotationContentRanges.fromJson(_json["contentR
anges"]); | 8318 contentRanges = |
| 8319 new VolumeannotationContentRanges.fromJson(_json["contentRanges"]); |
8022 } | 8320 } |
8023 if (_json.containsKey("data")) { | 8321 if (_json.containsKey("data")) { |
8024 data = _json["data"]; | 8322 data = _json["data"]; |
8025 } | 8323 } |
8026 if (_json.containsKey("deleted")) { | 8324 if (_json.containsKey("deleted")) { |
8027 deleted = _json["deleted"]; | 8325 deleted = _json["deleted"]; |
8028 } | 8326 } |
8029 if (_json.containsKey("id")) { | 8327 if (_json.containsKey("id")) { |
8030 id = _json["id"]; | 8328 id = _json["id"]; |
8031 } | 8329 } |
(...skipping 14 matching lines...) Expand all Loading... |
8046 } | 8344 } |
8047 if (_json.containsKey("updated")) { | 8345 if (_json.containsKey("updated")) { |
8048 updated = core.DateTime.parse(_json["updated"]); | 8346 updated = core.DateTime.parse(_json["updated"]); |
8049 } | 8347 } |
8050 if (_json.containsKey("volumeId")) { | 8348 if (_json.containsKey("volumeId")) { |
8051 volumeId = _json["volumeId"]; | 8349 volumeId = _json["volumeId"]; |
8052 } | 8350 } |
8053 } | 8351 } |
8054 | 8352 |
8055 core.Map<core.String, core.Object> toJson() { | 8353 core.Map<core.String, core.Object> toJson() { |
8056 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8354 final core.Map<core.String, core.Object> _json = |
| 8355 new core.Map<core.String, core.Object>(); |
8057 if (annotationDataId != null) { | 8356 if (annotationDataId != null) { |
8058 _json["annotationDataId"] = annotationDataId; | 8357 _json["annotationDataId"] = annotationDataId; |
8059 } | 8358 } |
8060 if (annotationDataLink != null) { | 8359 if (annotationDataLink != null) { |
8061 _json["annotationDataLink"] = annotationDataLink; | 8360 _json["annotationDataLink"] = annotationDataLink; |
8062 } | 8361 } |
8063 if (annotationType != null) { | 8362 if (annotationType != null) { |
8064 _json["annotationType"] = annotationType; | 8363 _json["annotationType"] = annotationType; |
8065 } | 8364 } |
8066 if (contentRanges != null) { | 8365 if (contentRanges != null) { |
(...skipping 27 matching lines...) Expand all Loading... |
8094 _json["updated"] = (updated).toIso8601String(); | 8393 _json["updated"] = (updated).toIso8601String(); |
8095 } | 8394 } |
8096 if (volumeId != null) { | 8395 if (volumeId != null) { |
8097 _json["volumeId"] = volumeId; | 8396 _json["volumeId"] = volumeId; |
8098 } | 8397 } |
8099 return _json; | 8398 return _json; |
8100 } | 8399 } |
8101 } | 8400 } |
8102 | 8401 |
8103 class Volumeannotations { | 8402 class Volumeannotations { |
8104 /** A list of volume annotations. */ | 8403 /// A list of volume annotations. |
8105 core.List<Volumeannotation> items; | 8404 core.List<Volumeannotation> items; |
8106 /** Resource type */ | 8405 |
| 8406 /// Resource type |
8107 core.String kind; | 8407 core.String kind; |
8108 /** | 8408 |
8109 * Token to pass in for pagination for the next page. This will not be present | 8409 /// Token to pass in for pagination for the next page. This will not be |
8110 * if this request does not have more results. | 8410 /// present if this request does not have more results. |
8111 */ | |
8112 core.String nextPageToken; | 8411 core.String nextPageToken; |
8113 /** The total number of volume annotations found. */ | 8412 |
| 8413 /// The total number of volume annotations found. |
8114 core.int totalItems; | 8414 core.int totalItems; |
8115 /** | 8415 |
8116 * The version string for all of the volume annotations in this layer (not | 8416 /// The version string for all of the volume annotations in this layer (not |
8117 * just the ones in this response). Note: the version string doesn't apply to | 8417 /// just the ones in this response). Note: the version string doesn't apply |
8118 * the annotation data, just the information in this response (e.g. the | 8418 /// to the annotation data, just the information in this response (e.g. the |
8119 * location of annotations in the book). | 8419 /// location of annotations in the book). |
8120 */ | |
8121 core.String version; | 8420 core.String version; |
8122 | 8421 |
8123 Volumeannotations(); | 8422 Volumeannotations(); |
8124 | 8423 |
8125 Volumeannotations.fromJson(core.Map _json) { | 8424 Volumeannotations.fromJson(core.Map _json) { |
8126 if (_json.containsKey("items")) { | 8425 if (_json.containsKey("items")) { |
8127 items = _json["items"].map((value) => new Volumeannotation.fromJson(value)
).toList(); | 8426 items = _json["items"] |
| 8427 .map((value) => new Volumeannotation.fromJson(value)) |
| 8428 .toList(); |
8128 } | 8429 } |
8129 if (_json.containsKey("kind")) { | 8430 if (_json.containsKey("kind")) { |
8130 kind = _json["kind"]; | 8431 kind = _json["kind"]; |
8131 } | 8432 } |
8132 if (_json.containsKey("nextPageToken")) { | 8433 if (_json.containsKey("nextPageToken")) { |
8133 nextPageToken = _json["nextPageToken"]; | 8434 nextPageToken = _json["nextPageToken"]; |
8134 } | 8435 } |
8135 if (_json.containsKey("totalItems")) { | 8436 if (_json.containsKey("totalItems")) { |
8136 totalItems = _json["totalItems"]; | 8437 totalItems = _json["totalItems"]; |
8137 } | 8438 } |
8138 if (_json.containsKey("version")) { | 8439 if (_json.containsKey("version")) { |
8139 version = _json["version"]; | 8440 version = _json["version"]; |
8140 } | 8441 } |
8141 } | 8442 } |
8142 | 8443 |
8143 core.Map<core.String, core.Object> toJson() { | 8444 core.Map<core.String, core.Object> toJson() { |
8144 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8445 final core.Map<core.String, core.Object> _json = |
| 8446 new core.Map<core.String, core.Object>(); |
8145 if (items != null) { | 8447 if (items != null) { |
8146 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8448 _json["items"] = items.map((value) => (value).toJson()).toList(); |
8147 } | 8449 } |
8148 if (kind != null) { | 8450 if (kind != null) { |
8149 _json["kind"] = kind; | 8451 _json["kind"] = kind; |
8150 } | 8452 } |
8151 if (nextPageToken != null) { | 8453 if (nextPageToken != null) { |
8152 _json["nextPageToken"] = nextPageToken; | 8454 _json["nextPageToken"] = nextPageToken; |
8153 } | 8455 } |
8154 if (totalItems != null) { | 8456 if (totalItems != null) { |
8155 _json["totalItems"] = totalItems; | 8457 _json["totalItems"] = totalItems; |
8156 } | 8458 } |
8157 if (version != null) { | 8459 if (version != null) { |
8158 _json["version"] = version; | 8460 _json["version"] = version; |
8159 } | 8461 } |
8160 return _json; | 8462 return _json; |
8161 } | 8463 } |
8162 } | 8464 } |
8163 | 8465 |
8164 class Volumes { | 8466 class Volumes { |
8165 /** A list of volumes. */ | 8467 /// A list of volumes. |
8166 core.List<Volume> items; | 8468 core.List<Volume> items; |
8167 /** Resource type. */ | 8469 |
| 8470 /// Resource type. |
8168 core.String kind; | 8471 core.String kind; |
8169 /** | 8472 |
8170 * Total number of volumes found. This might be greater than the number of | 8473 /// Total number of volumes found. This might be greater than the number of |
8171 * volumes returned in this response if results have been paginated. | 8474 /// volumes returned in this response if results have been paginated. |
8172 */ | |
8173 core.int totalItems; | 8475 core.int totalItems; |
8174 | 8476 |
8175 Volumes(); | 8477 Volumes(); |
8176 | 8478 |
8177 Volumes.fromJson(core.Map _json) { | 8479 Volumes.fromJson(core.Map _json) { |
8178 if (_json.containsKey("items")) { | 8480 if (_json.containsKey("items")) { |
8179 items = _json["items"].map((value) => new Volume.fromJson(value)).toList()
; | 8481 items = |
| 8482 _json["items"].map((value) => new Volume.fromJson(value)).toList(); |
8180 } | 8483 } |
8181 if (_json.containsKey("kind")) { | 8484 if (_json.containsKey("kind")) { |
8182 kind = _json["kind"]; | 8485 kind = _json["kind"]; |
8183 } | 8486 } |
8184 if (_json.containsKey("totalItems")) { | 8487 if (_json.containsKey("totalItems")) { |
8185 totalItems = _json["totalItems"]; | 8488 totalItems = _json["totalItems"]; |
8186 } | 8489 } |
8187 } | 8490 } |
8188 | 8491 |
8189 core.Map<core.String, core.Object> toJson() { | 8492 core.Map<core.String, core.Object> toJson() { |
8190 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8493 final core.Map<core.String, core.Object> _json = |
| 8494 new core.Map<core.String, core.Object>(); |
8191 if (items != null) { | 8495 if (items != null) { |
8192 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8496 _json["items"] = items.map((value) => (value).toJson()).toList(); |
8193 } | 8497 } |
8194 if (kind != null) { | 8498 if (kind != null) { |
8195 _json["kind"] = kind; | 8499 _json["kind"] = kind; |
8196 } | 8500 } |
8197 if (totalItems != null) { | 8501 if (totalItems != null) { |
8198 _json["totalItems"] = totalItems; | 8502 _json["totalItems"] = totalItems; |
8199 } | 8503 } |
8200 return _json; | 8504 return _json; |
8201 } | 8505 } |
8202 } | 8506 } |
8203 | 8507 |
8204 class VolumeseriesinfoVolumeSeriesIssue { | 8508 class VolumeseriesinfoVolumeSeriesIssue { |
8205 core.String issueDisplayNumber; | 8509 core.String issueDisplayNumber; |
8206 core.int issueOrderNumber; | 8510 core.int issueOrderNumber; |
8207 | 8511 |
8208 VolumeseriesinfoVolumeSeriesIssue(); | 8512 VolumeseriesinfoVolumeSeriesIssue(); |
8209 | 8513 |
8210 VolumeseriesinfoVolumeSeriesIssue.fromJson(core.Map _json) { | 8514 VolumeseriesinfoVolumeSeriesIssue.fromJson(core.Map _json) { |
8211 if (_json.containsKey("issueDisplayNumber")) { | 8515 if (_json.containsKey("issueDisplayNumber")) { |
8212 issueDisplayNumber = _json["issueDisplayNumber"]; | 8516 issueDisplayNumber = _json["issueDisplayNumber"]; |
8213 } | 8517 } |
8214 if (_json.containsKey("issueOrderNumber")) { | 8518 if (_json.containsKey("issueOrderNumber")) { |
8215 issueOrderNumber = _json["issueOrderNumber"]; | 8519 issueOrderNumber = _json["issueOrderNumber"]; |
8216 } | 8520 } |
8217 } | 8521 } |
8218 | 8522 |
8219 core.Map<core.String, core.Object> toJson() { | 8523 core.Map<core.String, core.Object> toJson() { |
8220 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8524 final core.Map<core.String, core.Object> _json = |
| 8525 new core.Map<core.String, core.Object>(); |
8221 if (issueDisplayNumber != null) { | 8526 if (issueDisplayNumber != null) { |
8222 _json["issueDisplayNumber"] = issueDisplayNumber; | 8527 _json["issueDisplayNumber"] = issueDisplayNumber; |
8223 } | 8528 } |
8224 if (issueOrderNumber != null) { | 8529 if (issueOrderNumber != null) { |
8225 _json["issueOrderNumber"] = issueOrderNumber; | 8530 _json["issueOrderNumber"] = issueOrderNumber; |
8226 } | 8531 } |
8227 return _json; | 8532 return _json; |
8228 } | 8533 } |
8229 } | 8534 } |
8230 | 8535 |
8231 class VolumeseriesinfoVolumeSeries { | 8536 class VolumeseriesinfoVolumeSeries { |
8232 /** List of issues. Applicable only for Collection Edition and Omnibus. */ | 8537 /// List of issues. Applicable only for Collection Edition and Omnibus. |
8233 core.List<VolumeseriesinfoVolumeSeriesIssue> issue; | 8538 core.List<VolumeseriesinfoVolumeSeriesIssue> issue; |
8234 /** The book order number in the series. */ | 8539 |
| 8540 /// The book order number in the series. |
8235 core.int orderNumber; | 8541 core.int orderNumber; |
8236 /** | 8542 |
8237 * The book type in the context of series. Examples - Single Issue, Collection | 8543 /// The book type in the context of series. Examples - Single Issue, |
8238 * Edition, etc. | 8544 /// Collection Edition, etc. |
8239 */ | |
8240 core.String seriesBookType; | 8545 core.String seriesBookType; |
8241 /** The series id. */ | 8546 |
| 8547 /// The series id. |
8242 core.String seriesId; | 8548 core.String seriesId; |
8243 | 8549 |
8244 VolumeseriesinfoVolumeSeries(); | 8550 VolumeseriesinfoVolumeSeries(); |
8245 | 8551 |
8246 VolumeseriesinfoVolumeSeries.fromJson(core.Map _json) { | 8552 VolumeseriesinfoVolumeSeries.fromJson(core.Map _json) { |
8247 if (_json.containsKey("issue")) { | 8553 if (_json.containsKey("issue")) { |
8248 issue = _json["issue"].map((value) => new VolumeseriesinfoVolumeSeriesIssu
e.fromJson(value)).toList(); | 8554 issue = _json["issue"] |
| 8555 .map((value) => new VolumeseriesinfoVolumeSeriesIssue.fromJson(value)) |
| 8556 .toList(); |
8249 } | 8557 } |
8250 if (_json.containsKey("orderNumber")) { | 8558 if (_json.containsKey("orderNumber")) { |
8251 orderNumber = _json["orderNumber"]; | 8559 orderNumber = _json["orderNumber"]; |
8252 } | 8560 } |
8253 if (_json.containsKey("seriesBookType")) { | 8561 if (_json.containsKey("seriesBookType")) { |
8254 seriesBookType = _json["seriesBookType"]; | 8562 seriesBookType = _json["seriesBookType"]; |
8255 } | 8563 } |
8256 if (_json.containsKey("seriesId")) { | 8564 if (_json.containsKey("seriesId")) { |
8257 seriesId = _json["seriesId"]; | 8565 seriesId = _json["seriesId"]; |
8258 } | 8566 } |
8259 } | 8567 } |
8260 | 8568 |
8261 core.Map<core.String, core.Object> toJson() { | 8569 core.Map<core.String, core.Object> toJson() { |
8262 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8570 final core.Map<core.String, core.Object> _json = |
| 8571 new core.Map<core.String, core.Object>(); |
8263 if (issue != null) { | 8572 if (issue != null) { |
8264 _json["issue"] = issue.map((value) => (value).toJson()).toList(); | 8573 _json["issue"] = issue.map((value) => (value).toJson()).toList(); |
8265 } | 8574 } |
8266 if (orderNumber != null) { | 8575 if (orderNumber != null) { |
8267 _json["orderNumber"] = orderNumber; | 8576 _json["orderNumber"] = orderNumber; |
8268 } | 8577 } |
8269 if (seriesBookType != null) { | 8578 if (seriesBookType != null) { |
8270 _json["seriesBookType"] = seriesBookType; | 8579 _json["seriesBookType"] = seriesBookType; |
8271 } | 8580 } |
8272 if (seriesId != null) { | 8581 if (seriesId != null) { |
8273 _json["seriesId"] = seriesId; | 8582 _json["seriesId"] = seriesId; |
8274 } | 8583 } |
8275 return _json; | 8584 return _json; |
8276 } | 8585 } |
8277 } | 8586 } |
8278 | 8587 |
8279 class Volumeseriesinfo { | 8588 class Volumeseriesinfo { |
8280 /** | 8589 /// The display number string. This should be used only for display purposes |
8281 * The display number string. This should be used only for display purposes | 8590 /// and the actual sequence should be inferred from the below orderNumber. |
8282 * and the actual sequence should be inferred from the below orderNumber. | |
8283 */ | |
8284 core.String bookDisplayNumber; | 8591 core.String bookDisplayNumber; |
8285 /** Resource type. */ | 8592 |
| 8593 /// Resource type. |
8286 core.String kind; | 8594 core.String kind; |
8287 /** Short book title in the context of the series. */ | 8595 |
| 8596 /// Short book title in the context of the series. |
8288 core.String shortSeriesBookTitle; | 8597 core.String shortSeriesBookTitle; |
8289 core.List<VolumeseriesinfoVolumeSeries> volumeSeries; | 8598 core.List<VolumeseriesinfoVolumeSeries> volumeSeries; |
8290 | 8599 |
8291 Volumeseriesinfo(); | 8600 Volumeseriesinfo(); |
8292 | 8601 |
8293 Volumeseriesinfo.fromJson(core.Map _json) { | 8602 Volumeseriesinfo.fromJson(core.Map _json) { |
8294 if (_json.containsKey("bookDisplayNumber")) { | 8603 if (_json.containsKey("bookDisplayNumber")) { |
8295 bookDisplayNumber = _json["bookDisplayNumber"]; | 8604 bookDisplayNumber = _json["bookDisplayNumber"]; |
8296 } | 8605 } |
8297 if (_json.containsKey("kind")) { | 8606 if (_json.containsKey("kind")) { |
8298 kind = _json["kind"]; | 8607 kind = _json["kind"]; |
8299 } | 8608 } |
8300 if (_json.containsKey("shortSeriesBookTitle")) { | 8609 if (_json.containsKey("shortSeriesBookTitle")) { |
8301 shortSeriesBookTitle = _json["shortSeriesBookTitle"]; | 8610 shortSeriesBookTitle = _json["shortSeriesBookTitle"]; |
8302 } | 8611 } |
8303 if (_json.containsKey("volumeSeries")) { | 8612 if (_json.containsKey("volumeSeries")) { |
8304 volumeSeries = _json["volumeSeries"].map((value) => new VolumeseriesinfoVo
lumeSeries.fromJson(value)).toList(); | 8613 volumeSeries = _json["volumeSeries"] |
| 8614 .map((value) => new VolumeseriesinfoVolumeSeries.fromJson(value)) |
| 8615 .toList(); |
8305 } | 8616 } |
8306 } | 8617 } |
8307 | 8618 |
8308 core.Map<core.String, core.Object> toJson() { | 8619 core.Map<core.String, core.Object> toJson() { |
8309 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8620 final core.Map<core.String, core.Object> _json = |
| 8621 new core.Map<core.String, core.Object>(); |
8310 if (bookDisplayNumber != null) { | 8622 if (bookDisplayNumber != null) { |
8311 _json["bookDisplayNumber"] = bookDisplayNumber; | 8623 _json["bookDisplayNumber"] = bookDisplayNumber; |
8312 } | 8624 } |
8313 if (kind != null) { | 8625 if (kind != null) { |
8314 _json["kind"] = kind; | 8626 _json["kind"] = kind; |
8315 } | 8627 } |
8316 if (shortSeriesBookTitle != null) { | 8628 if (shortSeriesBookTitle != null) { |
8317 _json["shortSeriesBookTitle"] = shortSeriesBookTitle; | 8629 _json["shortSeriesBookTitle"] = shortSeriesBookTitle; |
8318 } | 8630 } |
8319 if (volumeSeries != null) { | 8631 if (volumeSeries != null) { |
8320 _json["volumeSeries"] = volumeSeries.map((value) => (value).toJson()).toLi
st(); | 8632 _json["volumeSeries"] = |
| 8633 volumeSeries.map((value) => (value).toJson()).toList(); |
8321 } | 8634 } |
8322 return _json; | 8635 return _json; |
8323 } | 8636 } |
8324 } | 8637 } |
OLD | NEW |