Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(553)

Side by Side Diff: generated/googleapis/lib/plusdomains/v1.dart

Issue 559053002: Generate 0.1.0 version of googleapis/googleapis_beta (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 library googleapis.plusDomains.v1;
2
3 import "dart:core" as core;
4 import "dart:collection" as collection_1;
5 import "dart:async" as async;
6 import "dart:convert" as convert;
7
8 import "package:crypto/crypto.dart" as crypto;
9 import 'package:http/http.dart' as http;
10 import '../src/common_internal.dart' as common_internal;
11 import '../common/common.dart' as common;
12
13 export '../common/common.dart' show ApiRequestError;
14 export '../common/common.dart' show DetailedApiRequestError;
15
16 /**
17 * The Google+ API enables developers to build on top of the Google+ platform.
18 */
19 class PlusDomainsApi {
20 /** View your circles and the people and pages in them */
21 static const PlusCirclesReadScope = "https://www.googleapis.com/auth/plus.circ les.read";
22
23 /**
24 * Manage your circles and add people and pages. People and pages you add to
25 * your circles will be notified. Others may see this information publicly.
26 * People you add to circles can use Hangouts with you.
27 */
28 static const PlusCirclesWriteScope = "https://www.googleapis.com/auth/plus.cir cles.write";
29
30 /** Know your basic profile info and list of people in your circles. */
31 static const PlusLoginScope = "https://www.googleapis.com/auth/plus.login";
32
33 /** Know who you are on Google */
34 static const PlusMeScope = "https://www.googleapis.com/auth/plus.me";
35
36 /** Send your photos and videos to Google+ */
37 static const PlusMediaUploadScope = "https://www.googleapis.com/auth/plus.medi a.upload";
38
39 /** View your own Google+ profile and profiles visible to you */
40 static const PlusProfilesReadScope = "https://www.googleapis.com/auth/plus.pro files.read";
41
42 /** View your Google+ posts, comments, and stream */
43 static const PlusStreamReadScope = "https://www.googleapis.com/auth/plus.strea m.read";
44
45 /** Manage your Google+ posts, comments, and stream */
46 static const PlusStreamWriteScope = "https://www.googleapis.com/auth/plus.stre am.write";
47
48 /** View your email address */
49 static const UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.em ail";
50
51 /** View your basic profile info */
52 static const UserinfoProfileScope = "https://www.googleapis.com/auth/userinfo. profile";
53
54
55 final common_internal.ApiRequester _requester;
56
57 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester);
58 AudiencesResourceApi get audiences => new AudiencesResourceApi(_requester);
59 CirclesResourceApi get circles => new CirclesResourceApi(_requester);
60 CommentsResourceApi get comments => new CommentsResourceApi(_requester);
61 MediaResourceApi get media => new MediaResourceApi(_requester);
62 PeopleResourceApi get people => new PeopleResourceApi(_requester);
63
64 PlusDomainsApi(http.Client client) :
65 _requester = new common_internal.ApiRequester(client, "https://www.googlea pis.com/", "/plusDomains/v1/");
66 }
67
68
69 /** Not documented yet. */
70 class ActivitiesResourceApi {
71 final common_internal.ApiRequester _requester;
72
73 ActivitiesResourceApi(common_internal.ApiRequester client) :
74 _requester = client;
75
76 /**
77 * Get an activity.
78 *
79 * Request parameters:
80 *
81 * [activityId] - The ID of the activity to get.
82 *
83 * Completes with a [Activity].
84 *
85 * Completes with a [common.ApiRequestError] if the API endpoint returned an
86 * error.
87 *
88 * If the used [http.Client] completes with an error when making a REST call,
89 * this method will complete with the same error.
90 */
91 async.Future<Activity> get(core.String activityId) {
92 var _url = null;
93 var _queryParams = new core.Map();
94 var _uploadMedia = null;
95 var _uploadOptions = null;
96 var _downloadOptions = common.DownloadOptions.Metadata;
97 var _body = null;
98
99 if (activityId == null) {
100 throw new core.ArgumentError("Parameter activityId is required.");
101 }
102
103
104 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId');
105
106 var _response = _requester.request(_url,
107 "GET",
108 body: _body,
109 queryParams: _queryParams,
110 uploadOptions: _uploadOptions,
111 uploadMedia: _uploadMedia,
112 downloadOptions: _downloadOptions);
113 return _response.then((data) => new Activity.fromJson(data));
114 }
115
116 /**
117 * Create a new activity for the authenticated user.
118 *
119 * [request] - The metadata request object.
120 *
121 * Request parameters:
122 *
123 * [userId] - The ID of the user to create the activity on behalf of. Its
124 * value should be "me", to indicate the authenticated user.
125 *
126 * [preview] - If "true", extract the potential media attachments for a URL.
127 * The response will include all possible attachments for a URL, including
128 * video, photos, and articles based on the content of the page.
129 *
130 * Completes with a [Activity].
131 *
132 * Completes with a [common.ApiRequestError] if the API endpoint returned an
133 * error.
134 *
135 * If the used [http.Client] completes with an error when making a REST call,
136 * this method will complete with the same error.
137 */
138 async.Future<Activity> insert(Activity request, core.String userId, {core.bool preview}) {
139 var _url = null;
140 var _queryParams = new core.Map();
141 var _uploadMedia = null;
142 var _uploadOptions = null;
143 var _downloadOptions = common.DownloadOptions.Metadata;
144 var _body = null;
145
146 if (request != null) {
147 _body = convert.JSON.encode((request).toJson());
148 }
149 if (userId == null) {
150 throw new core.ArgumentError("Parameter userId is required.");
151 }
152 if (preview != null) {
153 _queryParams["preview"] = ["${preview}"];
154 }
155
156
157 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/acti vities';
158
159 var _response = _requester.request(_url,
160 "POST",
161 body: _body,
162 queryParams: _queryParams,
163 uploadOptions: _uploadOptions,
164 uploadMedia: _uploadMedia,
165 downloadOptions: _downloadOptions);
166 return _response.then((data) => new Activity.fromJson(data));
167 }
168
169 /**
170 * List all of the activities in the specified collection for a particular
171 * user.
172 *
173 * Request parameters:
174 *
175 * [userId] - The ID of the user to get activities for. The special value "me"
176 * can be used to indicate the authenticated user.
177 *
178 * [collection] - The collection of activities to list.
179 * Possible string values are:
180 * - "user" : All activities created by the specified user that the
181 * authenticated user is authorized to view.
182 *
183 * [maxResults] - The maximum number of activities to include in the response,
184 * which is used for paging. For any response, the actual number returned
185 * might be less than the specified maxResults.
186 * Value must be between "1" and "100".
187 *
188 * [pageToken] - The continuation token, which is used to page through large
189 * result sets. To get the next page of results, set this parameter to the
190 * value of "nextPageToken" from the previous response.
191 *
192 * Completes with a [ActivityFeed].
193 *
194 * Completes with a [common.ApiRequestError] if the API endpoint returned an
195 * error.
196 *
197 * If the used [http.Client] completes with an error when making a REST call,
198 * this method will complete with the same error.
199 */
200 async.Future<ActivityFeed> list(core.String userId, core.String collection, {c ore.int maxResults, core.String pageToken}) {
201 var _url = null;
202 var _queryParams = new core.Map();
203 var _uploadMedia = null;
204 var _uploadOptions = null;
205 var _downloadOptions = common.DownloadOptions.Metadata;
206 var _body = null;
207
208 if (userId == null) {
209 throw new core.ArgumentError("Parameter userId is required.");
210 }
211 if (collection == null) {
212 throw new core.ArgumentError("Parameter collection is required.");
213 }
214 if (maxResults != null) {
215 _queryParams["maxResults"] = ["${maxResults}"];
216 }
217 if (pageToken != null) {
218 _queryParams["pageToken"] = [pageToken];
219 }
220
221
222 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/acti vities/' + common_internal.Escaper.ecapeVariable('$collection');
223
224 var _response = _requester.request(_url,
225 "GET",
226 body: _body,
227 queryParams: _queryParams,
228 uploadOptions: _uploadOptions,
229 uploadMedia: _uploadMedia,
230 downloadOptions: _downloadOptions);
231 return _response.then((data) => new ActivityFeed.fromJson(data));
232 }
233
234 }
235
236
237 /** Not documented yet. */
238 class AudiencesResourceApi {
239 final common_internal.ApiRequester _requester;
240
241 AudiencesResourceApi(common_internal.ApiRequester client) :
242 _requester = client;
243
244 /**
245 * List all of the audiences to which a user can share.
246 *
247 * Request parameters:
248 *
249 * [userId] - The ID of the user to get audiences for. The special value "me"
250 * can be used to indicate the authenticated user.
251 *
252 * [maxResults] - The maximum number of circles to include in the response,
253 * which is used for paging. For any response, the actual number returned
254 * might be less than the specified maxResults.
255 * Value must be between "1" and "100".
256 *
257 * [pageToken] - The continuation token, which is used to page through large
258 * result sets. To get the next page of results, set this parameter to the
259 * value of "nextPageToken" from the previous response.
260 *
261 * Completes with a [AudiencesFeed].
262 *
263 * Completes with a [common.ApiRequestError] if the API endpoint returned an
264 * error.
265 *
266 * If the used [http.Client] completes with an error when making a REST call,
267 * this method will complete with the same error.
268 */
269 async.Future<AudiencesFeed> list(core.String userId, {core.int maxResults, cor e.String pageToken}) {
270 var _url = null;
271 var _queryParams = new core.Map();
272 var _uploadMedia = null;
273 var _uploadOptions = null;
274 var _downloadOptions = common.DownloadOptions.Metadata;
275 var _body = null;
276
277 if (userId == null) {
278 throw new core.ArgumentError("Parameter userId is required.");
279 }
280 if (maxResults != null) {
281 _queryParams["maxResults"] = ["${maxResults}"];
282 }
283 if (pageToken != null) {
284 _queryParams["pageToken"] = [pageToken];
285 }
286
287
288 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/audi ences';
289
290 var _response = _requester.request(_url,
291 "GET",
292 body: _body,
293 queryParams: _queryParams,
294 uploadOptions: _uploadOptions,
295 uploadMedia: _uploadMedia,
296 downloadOptions: _downloadOptions);
297 return _response.then((data) => new AudiencesFeed.fromJson(data));
298 }
299
300 }
301
302
303 /** Not documented yet. */
304 class CirclesResourceApi {
305 final common_internal.ApiRequester _requester;
306
307 CirclesResourceApi(common_internal.ApiRequester client) :
308 _requester = client;
309
310 /**
311 * Add a person to a circle. Google+ limits certain circle operations,
312 * including the number of circle adds. Learn More.
313 *
314 * Request parameters:
315 *
316 * [circleId] - The ID of the circle to add the person to.
317 *
318 * [email] - Email of the people to add to the circle. Optional, can be
319 * repeated.
320 *
321 * [userId] - IDs of the people to add to the circle. Optional, can be
322 * repeated.
323 *
324 * Completes with a [Circle].
325 *
326 * Completes with a [common.ApiRequestError] if the API endpoint returned an
327 * error.
328 *
329 * If the used [http.Client] completes with an error when making a REST call,
330 * this method will complete with the same error.
331 */
332 async.Future<Circle> addPeople(core.String circleId, {core.List<core.String> e mail, core.List<core.String> userId}) {
333 var _url = null;
334 var _queryParams = new core.Map();
335 var _uploadMedia = null;
336 var _uploadOptions = null;
337 var _downloadOptions = common.DownloadOptions.Metadata;
338 var _body = null;
339
340 if (circleId == null) {
341 throw new core.ArgumentError("Parameter circleId is required.");
342 }
343 if (email != null) {
344 _queryParams["email"] = email;
345 }
346 if (userId != null) {
347 _queryParams["userId"] = userId;
348 }
349
350
351 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId') + '/p eople';
352
353 var _response = _requester.request(_url,
354 "PUT",
355 body: _body,
356 queryParams: _queryParams,
357 uploadOptions: _uploadOptions,
358 uploadMedia: _uploadMedia,
359 downloadOptions: _downloadOptions);
360 return _response.then((data) => new Circle.fromJson(data));
361 }
362
363 /**
364 * Get a circle.
365 *
366 * Request parameters:
367 *
368 * [circleId] - The ID of the circle to get.
369 *
370 * Completes with a [Circle].
371 *
372 * Completes with a [common.ApiRequestError] if the API endpoint returned an
373 * error.
374 *
375 * If the used [http.Client] completes with an error when making a REST call,
376 * this method will complete with the same error.
377 */
378 async.Future<Circle> get(core.String circleId) {
379 var _url = null;
380 var _queryParams = new core.Map();
381 var _uploadMedia = null;
382 var _uploadOptions = null;
383 var _downloadOptions = common.DownloadOptions.Metadata;
384 var _body = null;
385
386 if (circleId == null) {
387 throw new core.ArgumentError("Parameter circleId is required.");
388 }
389
390
391 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId');
392
393 var _response = _requester.request(_url,
394 "GET",
395 body: _body,
396 queryParams: _queryParams,
397 uploadOptions: _uploadOptions,
398 uploadMedia: _uploadMedia,
399 downloadOptions: _downloadOptions);
400 return _response.then((data) => new Circle.fromJson(data));
401 }
402
403 /**
404 * Create a new circle for the authenticated user.
405 *
406 * [request] - The metadata request object.
407 *
408 * Request parameters:
409 *
410 * [userId] - The ID of the user to create the circle on behalf of. The value
411 * "me" can be used to indicate the authenticated user.
412 *
413 * Completes with a [Circle].
414 *
415 * Completes with a [common.ApiRequestError] if the API endpoint returned an
416 * error.
417 *
418 * If the used [http.Client] completes with an error when making a REST call,
419 * this method will complete with the same error.
420 */
421 async.Future<Circle> insert(Circle request, core.String userId) {
422 var _url = null;
423 var _queryParams = new core.Map();
424 var _uploadMedia = null;
425 var _uploadOptions = null;
426 var _downloadOptions = common.DownloadOptions.Metadata;
427 var _body = null;
428
429 if (request != null) {
430 _body = convert.JSON.encode((request).toJson());
431 }
432 if (userId == null) {
433 throw new core.ArgumentError("Parameter userId is required.");
434 }
435
436
437 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/circ les';
438
439 var _response = _requester.request(_url,
440 "POST",
441 body: _body,
442 queryParams: _queryParams,
443 uploadOptions: _uploadOptions,
444 uploadMedia: _uploadMedia,
445 downloadOptions: _downloadOptions);
446 return _response.then((data) => new Circle.fromJson(data));
447 }
448
449 /**
450 * List all of the circles for a user.
451 *
452 * Request parameters:
453 *
454 * [userId] - The ID of the user to get circles for. The special value "me"
455 * can be used to indicate the authenticated user.
456 *
457 * [maxResults] - The maximum number of circles to include in the response,
458 * which is used for paging. For any response, the actual number returned
459 * might be less than the specified maxResults.
460 * Value must be between "1" and "100".
461 *
462 * [pageToken] - The continuation token, which is used to page through large
463 * result sets. To get the next page of results, set this parameter to the
464 * value of "nextPageToken" from the previous response.
465 *
466 * Completes with a [CircleFeed].
467 *
468 * Completes with a [common.ApiRequestError] if the API endpoint returned an
469 * error.
470 *
471 * If the used [http.Client] completes with an error when making a REST call,
472 * this method will complete with the same error.
473 */
474 async.Future<CircleFeed> list(core.String userId, {core.int maxResults, core.S tring pageToken}) {
475 var _url = null;
476 var _queryParams = new core.Map();
477 var _uploadMedia = null;
478 var _uploadOptions = null;
479 var _downloadOptions = common.DownloadOptions.Metadata;
480 var _body = null;
481
482 if (userId == null) {
483 throw new core.ArgumentError("Parameter userId is required.");
484 }
485 if (maxResults != null) {
486 _queryParams["maxResults"] = ["${maxResults}"];
487 }
488 if (pageToken != null) {
489 _queryParams["pageToken"] = [pageToken];
490 }
491
492
493 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/circ les';
494
495 var _response = _requester.request(_url,
496 "GET",
497 body: _body,
498 queryParams: _queryParams,
499 uploadOptions: _uploadOptions,
500 uploadMedia: _uploadMedia,
501 downloadOptions: _downloadOptions);
502 return _response.then((data) => new CircleFeed.fromJson(data));
503 }
504
505 /**
506 * Update a circle's description. This method supports patch semantics.
507 *
508 * [request] - The metadata request object.
509 *
510 * Request parameters:
511 *
512 * [circleId] - The ID of the circle to update.
513 *
514 * Completes with a [Circle].
515 *
516 * Completes with a [common.ApiRequestError] if the API endpoint returned an
517 * error.
518 *
519 * If the used [http.Client] completes with an error when making a REST call,
520 * this method will complete with the same error.
521 */
522 async.Future<Circle> patch(Circle request, core.String circleId) {
523 var _url = null;
524 var _queryParams = new core.Map();
525 var _uploadMedia = null;
526 var _uploadOptions = null;
527 var _downloadOptions = common.DownloadOptions.Metadata;
528 var _body = null;
529
530 if (request != null) {
531 _body = convert.JSON.encode((request).toJson());
532 }
533 if (circleId == null) {
534 throw new core.ArgumentError("Parameter circleId is required.");
535 }
536
537
538 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId');
539
540 var _response = _requester.request(_url,
541 "PATCH",
542 body: _body,
543 queryParams: _queryParams,
544 uploadOptions: _uploadOptions,
545 uploadMedia: _uploadMedia,
546 downloadOptions: _downloadOptions);
547 return _response.then((data) => new Circle.fromJson(data));
548 }
549
550 /**
551 * Delete a circle.
552 *
553 * Request parameters:
554 *
555 * [circleId] - The ID of the circle to delete.
556 *
557 * Completes with a [common.ApiRequestError] if the API endpoint returned an
558 * error.
559 *
560 * If the used [http.Client] completes with an error when making a REST call,
561 * this method will complete with the same error.
562 */
563 async.Future remove(core.String circleId) {
564 var _url = null;
565 var _queryParams = new core.Map();
566 var _uploadMedia = null;
567 var _uploadOptions = null;
568 var _downloadOptions = common.DownloadOptions.Metadata;
569 var _body = null;
570
571 if (circleId == null) {
572 throw new core.ArgumentError("Parameter circleId is required.");
573 }
574
575 _downloadOptions = null;
576
577 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId');
578
579 var _response = _requester.request(_url,
580 "DELETE",
581 body: _body,
582 queryParams: _queryParams,
583 uploadOptions: _uploadOptions,
584 uploadMedia: _uploadMedia,
585 downloadOptions: _downloadOptions);
586 return _response.then((data) => null);
587 }
588
589 /**
590 * Remove a person from a circle.
591 *
592 * Request parameters:
593 *
594 * [circleId] - The ID of the circle to remove the person from.
595 *
596 * [email] - Email of the people to add to the circle. Optional, can be
597 * repeated.
598 *
599 * [userId] - IDs of the people to remove from the circle. Optional, can be
600 * repeated.
601 *
602 * Completes with a [common.ApiRequestError] if the API endpoint returned an
603 * error.
604 *
605 * If the used [http.Client] completes with an error when making a REST call,
606 * this method will complete with the same error.
607 */
608 async.Future removePeople(core.String circleId, {core.List<core.String> email, core.List<core.String> userId}) {
609 var _url = null;
610 var _queryParams = new core.Map();
611 var _uploadMedia = null;
612 var _uploadOptions = null;
613 var _downloadOptions = common.DownloadOptions.Metadata;
614 var _body = null;
615
616 if (circleId == null) {
617 throw new core.ArgumentError("Parameter circleId is required.");
618 }
619 if (email != null) {
620 _queryParams["email"] = email;
621 }
622 if (userId != null) {
623 _queryParams["userId"] = userId;
624 }
625
626 _downloadOptions = null;
627
628 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId') + '/p eople';
629
630 var _response = _requester.request(_url,
631 "DELETE",
632 body: _body,
633 queryParams: _queryParams,
634 uploadOptions: _uploadOptions,
635 uploadMedia: _uploadMedia,
636 downloadOptions: _downloadOptions);
637 return _response.then((data) => null);
638 }
639
640 /**
641 * Update a circle's description.
642 *
643 * [request] - The metadata request object.
644 *
645 * Request parameters:
646 *
647 * [circleId] - The ID of the circle to update.
648 *
649 * Completes with a [Circle].
650 *
651 * Completes with a [common.ApiRequestError] if the API endpoint returned an
652 * error.
653 *
654 * If the used [http.Client] completes with an error when making a REST call,
655 * this method will complete with the same error.
656 */
657 async.Future<Circle> update(Circle request, core.String circleId) {
658 var _url = null;
659 var _queryParams = new core.Map();
660 var _uploadMedia = null;
661 var _uploadOptions = null;
662 var _downloadOptions = common.DownloadOptions.Metadata;
663 var _body = null;
664
665 if (request != null) {
666 _body = convert.JSON.encode((request).toJson());
667 }
668 if (circleId == null) {
669 throw new core.ArgumentError("Parameter circleId is required.");
670 }
671
672
673 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId');
674
675 var _response = _requester.request(_url,
676 "PUT",
677 body: _body,
678 queryParams: _queryParams,
679 uploadOptions: _uploadOptions,
680 uploadMedia: _uploadMedia,
681 downloadOptions: _downloadOptions);
682 return _response.then((data) => new Circle.fromJson(data));
683 }
684
685 }
686
687
688 /** Not documented yet. */
689 class CommentsResourceApi {
690 final common_internal.ApiRequester _requester;
691
692 CommentsResourceApi(common_internal.ApiRequester client) :
693 _requester = client;
694
695 /**
696 * Get a comment.
697 *
698 * Request parameters:
699 *
700 * [commentId] - The ID of the comment to get.
701 *
702 * Completes with a [Comment].
703 *
704 * Completes with a [common.ApiRequestError] if the API endpoint returned an
705 * error.
706 *
707 * If the used [http.Client] completes with an error when making a REST call,
708 * this method will complete with the same error.
709 */
710 async.Future<Comment> get(core.String commentId) {
711 var _url = null;
712 var _queryParams = new core.Map();
713 var _uploadMedia = null;
714 var _uploadOptions = null;
715 var _downloadOptions = common.DownloadOptions.Metadata;
716 var _body = null;
717
718 if (commentId == null) {
719 throw new core.ArgumentError("Parameter commentId is required.");
720 }
721
722
723 _url = 'comments/' + common_internal.Escaper.ecapeVariable('$commentId');
724
725 var _response = _requester.request(_url,
726 "GET",
727 body: _body,
728 queryParams: _queryParams,
729 uploadOptions: _uploadOptions,
730 uploadMedia: _uploadMedia,
731 downloadOptions: _downloadOptions);
732 return _response.then((data) => new Comment.fromJson(data));
733 }
734
735 /**
736 * Create a new comment in reply to an activity.
737 *
738 * [request] - The metadata request object.
739 *
740 * Request parameters:
741 *
742 * [activityId] - The ID of the activity to reply to.
743 *
744 * Completes with a [Comment].
745 *
746 * Completes with a [common.ApiRequestError] if the API endpoint returned an
747 * error.
748 *
749 * If the used [http.Client] completes with an error when making a REST call,
750 * this method will complete with the same error.
751 */
752 async.Future<Comment> insert(Comment request, core.String activityId) {
753 var _url = null;
754 var _queryParams = new core.Map();
755 var _uploadMedia = null;
756 var _uploadOptions = null;
757 var _downloadOptions = common.DownloadOptions.Metadata;
758 var _body = null;
759
760 if (request != null) {
761 _body = convert.JSON.encode((request).toJson());
762 }
763 if (activityId == null) {
764 throw new core.ArgumentError("Parameter activityId is required.");
765 }
766
767
768 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId') + '/comments';
769
770 var _response = _requester.request(_url,
771 "POST",
772 body: _body,
773 queryParams: _queryParams,
774 uploadOptions: _uploadOptions,
775 uploadMedia: _uploadMedia,
776 downloadOptions: _downloadOptions);
777 return _response.then((data) => new Comment.fromJson(data));
778 }
779
780 /**
781 * List all of the comments for an activity.
782 *
783 * Request parameters:
784 *
785 * [activityId] - The ID of the activity to get comments for.
786 *
787 * [maxResults] - The maximum number of comments to include in the response,
788 * which is used for paging. For any response, the actual number returned
789 * might be less than the specified maxResults.
790 * Value must be between "0" and "500".
791 *
792 * [pageToken] - The continuation token, which is used to page through large
793 * result sets. To get the next page of results, set this parameter to the
794 * value of "nextPageToken" from the previous response.
795 *
796 * [sortOrder] - The order in which to sort the list of comments.
797 * Possible string values are:
798 * - "ascending" : Sort oldest comments first.
799 * - "descending" : Sort newest comments first.
800 *
801 * Completes with a [CommentFeed].
802 *
803 * Completes with a [common.ApiRequestError] if the API endpoint returned an
804 * error.
805 *
806 * If the used [http.Client] completes with an error when making a REST call,
807 * this method will complete with the same error.
808 */
809 async.Future<CommentFeed> list(core.String activityId, {core.int maxResults, c ore.String pageToken, core.String sortOrder}) {
810 var _url = null;
811 var _queryParams = new core.Map();
812 var _uploadMedia = null;
813 var _uploadOptions = null;
814 var _downloadOptions = common.DownloadOptions.Metadata;
815 var _body = null;
816
817 if (activityId == null) {
818 throw new core.ArgumentError("Parameter activityId is required.");
819 }
820 if (maxResults != null) {
821 _queryParams["maxResults"] = ["${maxResults}"];
822 }
823 if (pageToken != null) {
824 _queryParams["pageToken"] = [pageToken];
825 }
826 if (sortOrder != null) {
827 _queryParams["sortOrder"] = [sortOrder];
828 }
829
830
831 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId') + '/comments';
832
833 var _response = _requester.request(_url,
834 "GET",
835 body: _body,
836 queryParams: _queryParams,
837 uploadOptions: _uploadOptions,
838 uploadMedia: _uploadMedia,
839 downloadOptions: _downloadOptions);
840 return _response.then((data) => new CommentFeed.fromJson(data));
841 }
842
843 }
844
845
846 /** Not documented yet. */
847 class MediaResourceApi {
848 final common_internal.ApiRequester _requester;
849
850 MediaResourceApi(common_internal.ApiRequester client) :
851 _requester = client;
852
853 /**
854 * Add a new media item to an album. The current upload size limitations are
855 * 36MB for a photo and 1GB for a video. Uploads do not count against quota if
856 * photos are less than 2048 pixels on their longest side or videos are less
857 * than 15 minutes in length.
858 *
859 * [request] - The metadata request object.
860 *
861 * Request parameters:
862 *
863 * [userId] - The ID of the user to create the activity on behalf of.
864 *
865 * [collection] - null
866 * Possible string values are:
867 * - "cloud" : Upload the media to share on Google+.
868 *
869 * [uploadMedia] - The media to upload.
870 *
871 * [uploadOptions] - Options for the media upload. Streaming Media without the
872 * length being known ahead of time is only supported via resumable uploads.
873 *
874 * Completes with a [Media].
875 *
876 * Completes with a [common.ApiRequestError] if the API endpoint returned an
877 * error.
878 *
879 * If the used [http.Client] completes with an error when making a REST call,
880 * this method will complete with the same error.
881 */
882 async.Future<Media> insert(Media request, core.String userId, core.String coll ection, {common.UploadOptions uploadOptions : common.UploadOptions.Default, comm on.Media uploadMedia}) {
883 var _url = null;
884 var _queryParams = new core.Map();
885 var _uploadMedia = null;
886 var _uploadOptions = null;
887 var _downloadOptions = common.DownloadOptions.Metadata;
888 var _body = null;
889
890 if (request != null) {
891 _body = convert.JSON.encode((request).toJson());
892 }
893 if (userId == null) {
894 throw new core.ArgumentError("Parameter userId is required.");
895 }
896 if (collection == null) {
897 throw new core.ArgumentError("Parameter collection is required.");
898 }
899
900 _uploadMedia = uploadMedia;
901 _uploadOptions = uploadOptions;
902
903 if (_uploadMedia == null) {
904 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/me dia/' + common_internal.Escaper.ecapeVariable('$collection');
905 } else if (_uploadOptions is common.ResumableUploadOptions) {
906 _url = '/resumable/upload/plusDomains/v1/people/' + common_internal.Escape r.ecapeVariable('$userId') + '/media/' + common_internal.Escaper.ecapeVariable(' $collection');
907 } else {
908 _url = '/upload/plusDomains/v1/people/' + common_internal.Escaper.ecapeVar iable('$userId') + '/media/' + common_internal.Escaper.ecapeVariable('$collectio n');
909 }
910
911
912 var _response = _requester.request(_url,
913 "POST",
914 body: _body,
915 queryParams: _queryParams,
916 uploadOptions: _uploadOptions,
917 uploadMedia: _uploadMedia,
918 downloadOptions: _downloadOptions);
919 return _response.then((data) => new Media.fromJson(data));
920 }
921
922 }
923
924
925 /** Not documented yet. */
926 class PeopleResourceApi {
927 final common_internal.ApiRequester _requester;
928
929 PeopleResourceApi(common_internal.ApiRequester client) :
930 _requester = client;
931
932 /**
933 * Get a person's profile.
934 *
935 * Request parameters:
936 *
937 * [userId] - The ID of the person to get the profile for. The special value
938 * "me" can be used to indicate the authenticated user.
939 *
940 * Completes with a [Person].
941 *
942 * Completes with a [common.ApiRequestError] if the API endpoint returned an
943 * error.
944 *
945 * If the used [http.Client] completes with an error when making a REST call,
946 * this method will complete with the same error.
947 */
948 async.Future<Person> get(core.String userId) {
949 var _url = null;
950 var _queryParams = new core.Map();
951 var _uploadMedia = null;
952 var _uploadOptions = null;
953 var _downloadOptions = common.DownloadOptions.Metadata;
954 var _body = null;
955
956 if (userId == null) {
957 throw new core.ArgumentError("Parameter userId is required.");
958 }
959
960
961 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId');
962
963 var _response = _requester.request(_url,
964 "GET",
965 body: _body,
966 queryParams: _queryParams,
967 uploadOptions: _uploadOptions,
968 uploadMedia: _uploadMedia,
969 downloadOptions: _downloadOptions);
970 return _response.then((data) => new Person.fromJson(data));
971 }
972
973 /**
974 * List all of the people in the specified collection.
975 *
976 * Request parameters:
977 *
978 * [userId] - Get the collection of people for the person identified. Use "me"
979 * to indicate the authenticated user.
980 *
981 * [collection] - The collection of people to list.
982 * Possible string values are:
983 * - "circled" : The list of people who this user has added to one or more
984 * circles.
985 *
986 * [maxResults] - The maximum number of people to include in the response,
987 * which is used for paging. For any response, the actual number returned
988 * might be less than the specified maxResults.
989 * Value must be between "1" and "100".
990 *
991 * [orderBy] - The order to return people in.
992 * Possible string values are:
993 * - "alphabetical" : Order the people by their display name.
994 * - "best" : Order people based on the relevence to the viewer.
995 *
996 * [pageToken] - The continuation token, which is used to page through large
997 * result sets. To get the next page of results, set this parameter to the
998 * value of "nextPageToken" from the previous response.
999 *
1000 * Completes with a [PeopleFeed].
1001 *
1002 * Completes with a [common.ApiRequestError] if the API endpoint returned an
1003 * error.
1004 *
1005 * If the used [http.Client] completes with an error when making a REST call,
1006 * this method will complete with the same error.
1007 */
1008 async.Future<PeopleFeed> list(core.String userId, core.String collection, {cor e.int maxResults, core.String orderBy, core.String pageToken}) {
1009 var _url = null;
1010 var _queryParams = new core.Map();
1011 var _uploadMedia = null;
1012 var _uploadOptions = null;
1013 var _downloadOptions = common.DownloadOptions.Metadata;
1014 var _body = null;
1015
1016 if (userId == null) {
1017 throw new core.ArgumentError("Parameter userId is required.");
1018 }
1019 if (collection == null) {
1020 throw new core.ArgumentError("Parameter collection is required.");
1021 }
1022 if (maxResults != null) {
1023 _queryParams["maxResults"] = ["${maxResults}"];
1024 }
1025 if (orderBy != null) {
1026 _queryParams["orderBy"] = [orderBy];
1027 }
1028 if (pageToken != null) {
1029 _queryParams["pageToken"] = [pageToken];
1030 }
1031
1032
1033 _url = 'people/' + common_internal.Escaper.ecapeVariable('$userId') + '/peop le/' + common_internal.Escaper.ecapeVariable('$collection');
1034
1035 var _response = _requester.request(_url,
1036 "GET",
1037 body: _body,
1038 queryParams: _queryParams,
1039 uploadOptions: _uploadOptions,
1040 uploadMedia: _uploadMedia,
1041 downloadOptions: _downloadOptions);
1042 return _response.then((data) => new PeopleFeed.fromJson(data));
1043 }
1044
1045 /**
1046 * List all of the people in the specified collection for a particular
1047 * activity.
1048 *
1049 * Request parameters:
1050 *
1051 * [activityId] - The ID of the activity to get the list of people for.
1052 *
1053 * [collection] - The collection of people to list.
1054 * Possible string values are:
1055 * - "plusoners" : List all people who have +1'd this activity.
1056 * - "resharers" : List all people who have reshared this activity.
1057 * - "sharedto" : List all people who this activity was shared to.
1058 *
1059 * [maxResults] - The maximum number of people to include in the response,
1060 * which is used for paging. For any response, the actual number returned
1061 * might be less than the specified maxResults.
1062 * Value must be between "1" and "100".
1063 *
1064 * [pageToken] - The continuation token, which is used to page through large
1065 * result sets. To get the next page of results, set this parameter to the
1066 * value of "nextPageToken" from the previous response.
1067 *
1068 * Completes with a [PeopleFeed].
1069 *
1070 * Completes with a [common.ApiRequestError] if the API endpoint returned an
1071 * error.
1072 *
1073 * If the used [http.Client] completes with an error when making a REST call,
1074 * this method will complete with the same error.
1075 */
1076 async.Future<PeopleFeed> listByActivity(core.String activityId, core.String co llection, {core.int maxResults, core.String pageToken}) {
1077 var _url = null;
1078 var _queryParams = new core.Map();
1079 var _uploadMedia = null;
1080 var _uploadOptions = null;
1081 var _downloadOptions = common.DownloadOptions.Metadata;
1082 var _body = null;
1083
1084 if (activityId == null) {
1085 throw new core.ArgumentError("Parameter activityId is required.");
1086 }
1087 if (collection == null) {
1088 throw new core.ArgumentError("Parameter collection is required.");
1089 }
1090 if (maxResults != null) {
1091 _queryParams["maxResults"] = ["${maxResults}"];
1092 }
1093 if (pageToken != null) {
1094 _queryParams["pageToken"] = [pageToken];
1095 }
1096
1097
1098 _url = 'activities/' + common_internal.Escaper.ecapeVariable('$activityId') + '/people/' + common_internal.Escaper.ecapeVariable('$collection');
1099
1100 var _response = _requester.request(_url,
1101 "GET",
1102 body: _body,
1103 queryParams: _queryParams,
1104 uploadOptions: _uploadOptions,
1105 uploadMedia: _uploadMedia,
1106 downloadOptions: _downloadOptions);
1107 return _response.then((data) => new PeopleFeed.fromJson(data));
1108 }
1109
1110 /**
1111 * List all of the people who are members of a circle.
1112 *
1113 * Request parameters:
1114 *
1115 * [circleId] - The ID of the circle to get the members of.
1116 *
1117 * [maxResults] - The maximum number of people to include in the response,
1118 * which is used for paging. For any response, the actual number returned
1119 * might be less than the specified maxResults.
1120 * Value must be between "1" and "100".
1121 *
1122 * [pageToken] - The continuation token, which is used to page through large
1123 * result sets. To get the next page of results, set this parameter to the
1124 * value of "nextPageToken" from the previous response.
1125 *
1126 * Completes with a [PeopleFeed].
1127 *
1128 * Completes with a [common.ApiRequestError] if the API endpoint returned an
1129 * error.
1130 *
1131 * If the used [http.Client] completes with an error when making a REST call,
1132 * this method will complete with the same error.
1133 */
1134 async.Future<PeopleFeed> listByCircle(core.String circleId, {core.int maxResul ts, core.String pageToken}) {
1135 var _url = null;
1136 var _queryParams = new core.Map();
1137 var _uploadMedia = null;
1138 var _uploadOptions = null;
1139 var _downloadOptions = common.DownloadOptions.Metadata;
1140 var _body = null;
1141
1142 if (circleId == null) {
1143 throw new core.ArgumentError("Parameter circleId is required.");
1144 }
1145 if (maxResults != null) {
1146 _queryParams["maxResults"] = ["${maxResults}"];
1147 }
1148 if (pageToken != null) {
1149 _queryParams["pageToken"] = [pageToken];
1150 }
1151
1152
1153 _url = 'circles/' + common_internal.Escaper.ecapeVariable('$circleId') + '/p eople';
1154
1155 var _response = _requester.request(_url,
1156 "GET",
1157 body: _body,
1158 queryParams: _queryParams,
1159 uploadOptions: _uploadOptions,
1160 uploadMedia: _uploadMedia,
1161 downloadOptions: _downloadOptions);
1162 return _response.then((data) => new PeopleFeed.fromJson(data));
1163 }
1164
1165 }
1166
1167
1168
1169 /** Not documented yet. */
1170 class Acl {
1171 /** Description of the access granted, suitable for display. */
1172 core.String description;
1173
1174 /** Whether access is restricted to the domain. */
1175 core.bool domainRestricted;
1176
1177 /** The list of access entries. */
1178 core.List<PlusDomainsAclentryResource> items;
1179
1180 /**
1181 * Identifies this resource as a collection of access controls. Value:
1182 * "plus#acl".
1183 */
1184 core.String kind;
1185
1186
1187 Acl();
1188
1189 Acl.fromJson(core.Map _json) {
1190 if (_json.containsKey("description")) {
1191 description = _json["description"];
1192 }
1193 if (_json.containsKey("domainRestricted")) {
1194 domainRestricted = _json["domainRestricted"];
1195 }
1196 if (_json.containsKey("items")) {
1197 items = _json["items"].map((value) => new PlusDomainsAclentryResource.from Json(value)).toList();
1198 }
1199 if (_json.containsKey("kind")) {
1200 kind = _json["kind"];
1201 }
1202 }
1203
1204 core.Map toJson() {
1205 var _json = new core.Map();
1206 if (description != null) {
1207 _json["description"] = description;
1208 }
1209 if (domainRestricted != null) {
1210 _json["domainRestricted"] = domainRestricted;
1211 }
1212 if (items != null) {
1213 _json["items"] = items.map((value) => (value).toJson()).toList();
1214 }
1215 if (kind != null) {
1216 _json["kind"] = kind;
1217 }
1218 return _json;
1219 }
1220 }
1221
1222
1223 /** The image representation of the actor. */
1224 class ActivityActorImage {
1225 /**
1226 * The URL of the actor's profile photo. To resize the image and crop it to a
1227 * square, append the query string ?sz=x, where x is the dimension in pixels
1228 * of each side.
1229 */
1230 core.String url;
1231
1232
1233 ActivityActorImage();
1234
1235 ActivityActorImage.fromJson(core.Map _json) {
1236 if (_json.containsKey("url")) {
1237 url = _json["url"];
1238 }
1239 }
1240
1241 core.Map toJson() {
1242 var _json = new core.Map();
1243 if (url != null) {
1244 _json["url"] = url;
1245 }
1246 return _json;
1247 }
1248 }
1249
1250
1251 /** An object representation of the individual components of name. */
1252 class ActivityActorName {
1253 /** The family name ("last name") of the actor. */
1254 core.String familyName;
1255
1256 /** The given name ("first name") of the actor. */
1257 core.String givenName;
1258
1259
1260 ActivityActorName();
1261
1262 ActivityActorName.fromJson(core.Map _json) {
1263 if (_json.containsKey("familyName")) {
1264 familyName = _json["familyName"];
1265 }
1266 if (_json.containsKey("givenName")) {
1267 givenName = _json["givenName"];
1268 }
1269 }
1270
1271 core.Map toJson() {
1272 var _json = new core.Map();
1273 if (familyName != null) {
1274 _json["familyName"] = familyName;
1275 }
1276 if (givenName != null) {
1277 _json["givenName"] = givenName;
1278 }
1279 return _json;
1280 }
1281 }
1282
1283
1284 /** The person who performed this activity. */
1285 class ActivityActor {
1286 /** The name of the actor, suitable for display. */
1287 core.String displayName;
1288
1289 /** The ID of the actor's Person resource. */
1290 core.String id;
1291
1292 /** The image representation of the actor. */
1293 ActivityActorImage image;
1294
1295 /** An object representation of the individual components of name. */
1296 ActivityActorName name;
1297
1298 /** The link to the actor's Google profile. */
1299 core.String url;
1300
1301
1302 ActivityActor();
1303
1304 ActivityActor.fromJson(core.Map _json) {
1305 if (_json.containsKey("displayName")) {
1306 displayName = _json["displayName"];
1307 }
1308 if (_json.containsKey("id")) {
1309 id = _json["id"];
1310 }
1311 if (_json.containsKey("image")) {
1312 image = new ActivityActorImage.fromJson(_json["image"]);
1313 }
1314 if (_json.containsKey("name")) {
1315 name = new ActivityActorName.fromJson(_json["name"]);
1316 }
1317 if (_json.containsKey("url")) {
1318 url = _json["url"];
1319 }
1320 }
1321
1322 core.Map toJson() {
1323 var _json = new core.Map();
1324 if (displayName != null) {
1325 _json["displayName"] = displayName;
1326 }
1327 if (id != null) {
1328 _json["id"] = id;
1329 }
1330 if (image != null) {
1331 _json["image"] = (image).toJson();
1332 }
1333 if (name != null) {
1334 _json["name"] = (name).toJson();
1335 }
1336 if (url != null) {
1337 _json["url"] = url;
1338 }
1339 return _json;
1340 }
1341 }
1342
1343
1344 /** The image representation of the original actor. */
1345 class ActivityObjectActorImage {
1346 /** A URL that points to a thumbnail photo of the original actor. */
1347 core.String url;
1348
1349
1350 ActivityObjectActorImage();
1351
1352 ActivityObjectActorImage.fromJson(core.Map _json) {
1353 if (_json.containsKey("url")) {
1354 url = _json["url"];
1355 }
1356 }
1357
1358 core.Map toJson() {
1359 var _json = new core.Map();
1360 if (url != null) {
1361 _json["url"] = url;
1362 }
1363 return _json;
1364 }
1365 }
1366
1367
1368 /**
1369 * If this activity's object is itself another activity, such as when a person
1370 * reshares an activity, this property specifies the original activity's actor.
1371 */
1372 class ActivityObjectActor {
1373 /** The original actor's name, which is suitable for display. */
1374 core.String displayName;
1375
1376 /** ID of the original actor. */
1377 core.String id;
1378
1379 /** The image representation of the original actor. */
1380 ActivityObjectActorImage image;
1381
1382 /** A link to the original actor's Google profile. */
1383 core.String url;
1384
1385
1386 ActivityObjectActor();
1387
1388 ActivityObjectActor.fromJson(core.Map _json) {
1389 if (_json.containsKey("displayName")) {
1390 displayName = _json["displayName"];
1391 }
1392 if (_json.containsKey("id")) {
1393 id = _json["id"];
1394 }
1395 if (_json.containsKey("image")) {
1396 image = new ActivityObjectActorImage.fromJson(_json["image"]);
1397 }
1398 if (_json.containsKey("url")) {
1399 url = _json["url"];
1400 }
1401 }
1402
1403 core.Map toJson() {
1404 var _json = new core.Map();
1405 if (displayName != null) {
1406 _json["displayName"] = displayName;
1407 }
1408 if (id != null) {
1409 _json["id"] = id;
1410 }
1411 if (image != null) {
1412 _json["image"] = (image).toJson();
1413 }
1414 if (url != null) {
1415 _json["url"] = url;
1416 }
1417 return _json;
1418 }
1419 }
1420
1421
1422 /** If the attachment is a video, the embeddable link. */
1423 class ActivityObjectAttachmentsEmbed {
1424 /** Media type of the link. */
1425 core.String type;
1426
1427 /** URL of the link. */
1428 core.String url;
1429
1430
1431 ActivityObjectAttachmentsEmbed();
1432
1433 ActivityObjectAttachmentsEmbed.fromJson(core.Map _json) {
1434 if (_json.containsKey("type")) {
1435 type = _json["type"];
1436 }
1437 if (_json.containsKey("url")) {
1438 url = _json["url"];
1439 }
1440 }
1441
1442 core.Map toJson() {
1443 var _json = new core.Map();
1444 if (type != null) {
1445 _json["type"] = type;
1446 }
1447 if (url != null) {
1448 _json["url"] = url;
1449 }
1450 return _json;
1451 }
1452 }
1453
1454
1455 /** The full image URL for photo attachments. */
1456 class ActivityObjectAttachmentsFullImage {
1457 /** The height, in pixels, of the linked resource. */
1458 core.int height;
1459
1460 /** Media type of the link. */
1461 core.String type;
1462
1463 /** URL of the image. */
1464 core.String url;
1465
1466 /** The width, in pixels, of the linked resource. */
1467 core.int width;
1468
1469
1470 ActivityObjectAttachmentsFullImage();
1471
1472 ActivityObjectAttachmentsFullImage.fromJson(core.Map _json) {
1473 if (_json.containsKey("height")) {
1474 height = _json["height"];
1475 }
1476 if (_json.containsKey("type")) {
1477 type = _json["type"];
1478 }
1479 if (_json.containsKey("url")) {
1480 url = _json["url"];
1481 }
1482 if (_json.containsKey("width")) {
1483 width = _json["width"];
1484 }
1485 }
1486
1487 core.Map toJson() {
1488 var _json = new core.Map();
1489 if (height != null) {
1490 _json["height"] = height;
1491 }
1492 if (type != null) {
1493 _json["type"] = type;
1494 }
1495 if (url != null) {
1496 _json["url"] = url;
1497 }
1498 if (width != null) {
1499 _json["width"] = width;
1500 }
1501 return _json;
1502 }
1503 }
1504
1505
1506 /** The preview image for photos or videos. */
1507 class ActivityObjectAttachmentsImage {
1508 /** The height, in pixels, of the linked resource. */
1509 core.int height;
1510
1511 /** Media type of the link. */
1512 core.String type;
1513
1514 /** Image URL. */
1515 core.String url;
1516
1517 /** The width, in pixels, of the linked resource. */
1518 core.int width;
1519
1520
1521 ActivityObjectAttachmentsImage();
1522
1523 ActivityObjectAttachmentsImage.fromJson(core.Map _json) {
1524 if (_json.containsKey("height")) {
1525 height = _json["height"];
1526 }
1527 if (_json.containsKey("type")) {
1528 type = _json["type"];
1529 }
1530 if (_json.containsKey("url")) {
1531 url = _json["url"];
1532 }
1533 if (_json.containsKey("width")) {
1534 width = _json["width"];
1535 }
1536 }
1537
1538 core.Map toJson() {
1539 var _json = new core.Map();
1540 if (height != null) {
1541 _json["height"] = height;
1542 }
1543 if (type != null) {
1544 _json["type"] = type;
1545 }
1546 if (url != null) {
1547 _json["url"] = url;
1548 }
1549 if (width != null) {
1550 _json["width"] = width;
1551 }
1552 return _json;
1553 }
1554 }
1555
1556
1557 /** Not documented yet. */
1558 class ActivityObjectAttachmentsPreviewThumbnails {
1559 /** URL of the thumbnail image. */
1560 core.String url;
1561
1562
1563 ActivityObjectAttachmentsPreviewThumbnails();
1564
1565 ActivityObjectAttachmentsPreviewThumbnails.fromJson(core.Map _json) {
1566 if (_json.containsKey("url")) {
1567 url = _json["url"];
1568 }
1569 }
1570
1571 core.Map toJson() {
1572 var _json = new core.Map();
1573 if (url != null) {
1574 _json["url"] = url;
1575 }
1576 return _json;
1577 }
1578 }
1579
1580
1581 /** Image resource. */
1582 class ActivityObjectAttachmentsThumbnailsImage {
1583 /** The height, in pixels, of the linked resource. */
1584 core.int height;
1585
1586 /** Media type of the link. */
1587 core.String type;
1588
1589 /** Image url. */
1590 core.String url;
1591
1592 /** The width, in pixels, of the linked resource. */
1593 core.int width;
1594
1595
1596 ActivityObjectAttachmentsThumbnailsImage();
1597
1598 ActivityObjectAttachmentsThumbnailsImage.fromJson(core.Map _json) {
1599 if (_json.containsKey("height")) {
1600 height = _json["height"];
1601 }
1602 if (_json.containsKey("type")) {
1603 type = _json["type"];
1604 }
1605 if (_json.containsKey("url")) {
1606 url = _json["url"];
1607 }
1608 if (_json.containsKey("width")) {
1609 width = _json["width"];
1610 }
1611 }
1612
1613 core.Map toJson() {
1614 var _json = new core.Map();
1615 if (height != null) {
1616 _json["height"] = height;
1617 }
1618 if (type != null) {
1619 _json["type"] = type;
1620 }
1621 if (url != null) {
1622 _json["url"] = url;
1623 }
1624 if (width != null) {
1625 _json["width"] = width;
1626 }
1627 return _json;
1628 }
1629 }
1630
1631
1632 /** Not documented yet. */
1633 class ActivityObjectAttachmentsThumbnails {
1634 /** Potential name of the thumbnail. */
1635 core.String description;
1636
1637 /** Image resource. */
1638 ActivityObjectAttachmentsThumbnailsImage image;
1639
1640 /** URL of the webpage containing the image. */
1641 core.String url;
1642
1643
1644 ActivityObjectAttachmentsThumbnails();
1645
1646 ActivityObjectAttachmentsThumbnails.fromJson(core.Map _json) {
1647 if (_json.containsKey("description")) {
1648 description = _json["description"];
1649 }
1650 if (_json.containsKey("image")) {
1651 image = new ActivityObjectAttachmentsThumbnailsImage.fromJson(_json["image "]);
1652 }
1653 if (_json.containsKey("url")) {
1654 url = _json["url"];
1655 }
1656 }
1657
1658 core.Map toJson() {
1659 var _json = new core.Map();
1660 if (description != null) {
1661 _json["description"] = description;
1662 }
1663 if (image != null) {
1664 _json["image"] = (image).toJson();
1665 }
1666 if (url != null) {
1667 _json["url"] = url;
1668 }
1669 return _json;
1670 }
1671 }
1672
1673
1674 /** Not documented yet. */
1675 class ActivityObjectAttachments {
1676 /**
1677 * If the attachment is an article, this property contains a snippet of text
1678 * from the article. It can also include descriptions for other types.
1679 */
1680 core.String content;
1681
1682 /**
1683 * The title of the attachment, such as a photo caption or an article title.
1684 */
1685 core.String displayName;
1686
1687 /** If the attachment is a video, the embeddable link. */
1688 ActivityObjectAttachmentsEmbed embed;
1689
1690 /** The full image URL for photo attachments. */
1691 ActivityObjectAttachmentsFullImage fullImage;
1692
1693 /** The ID of the attachment. */
1694 core.String id;
1695
1696 /** The preview image for photos or videos. */
1697 ActivityObjectAttachmentsImage image;
1698
1699 /**
1700 * The type of media object. Possible values include, but are not limited to,
1701 * the following values:
1702 * - "photo" - A photo.
1703 * - "album" - A photo album.
1704 * - "video" - A video.
1705 * - "article" - An article, specified by a link.
1706 */
1707 core.String objectType;
1708
1709 /**
1710 * When previewing, these are the optional thumbnails for the post. When
1711 * posting an article, choose one by setting the attachment.image.url
1712 * property. If you don't choose one, one will be chosen for you.
1713 */
1714 core.List<ActivityObjectAttachmentsPreviewThumbnails> previewThumbnails;
1715
1716 /**
1717 * If the attachment is an album, this property is a list of potential
1718 * additional thumbnails from the album.
1719 */
1720 core.List<ActivityObjectAttachmentsThumbnails> thumbnails;
1721
1722 /** The link to the attachment, which should be of type text/html. */
1723 core.String url;
1724
1725
1726 ActivityObjectAttachments();
1727
1728 ActivityObjectAttachments.fromJson(core.Map _json) {
1729 if (_json.containsKey("content")) {
1730 content = _json["content"];
1731 }
1732 if (_json.containsKey("displayName")) {
1733 displayName = _json["displayName"];
1734 }
1735 if (_json.containsKey("embed")) {
1736 embed = new ActivityObjectAttachmentsEmbed.fromJson(_json["embed"]);
1737 }
1738 if (_json.containsKey("fullImage")) {
1739 fullImage = new ActivityObjectAttachmentsFullImage.fromJson(_json["fullIma ge"]);
1740 }
1741 if (_json.containsKey("id")) {
1742 id = _json["id"];
1743 }
1744 if (_json.containsKey("image")) {
1745 image = new ActivityObjectAttachmentsImage.fromJson(_json["image"]);
1746 }
1747 if (_json.containsKey("objectType")) {
1748 objectType = _json["objectType"];
1749 }
1750 if (_json.containsKey("previewThumbnails")) {
1751 previewThumbnails = _json["previewThumbnails"].map((value) => new Activity ObjectAttachmentsPreviewThumbnails.fromJson(value)).toList();
1752 }
1753 if (_json.containsKey("thumbnails")) {
1754 thumbnails = _json["thumbnails"].map((value) => new ActivityObjectAttachme ntsThumbnails.fromJson(value)).toList();
1755 }
1756 if (_json.containsKey("url")) {
1757 url = _json["url"];
1758 }
1759 }
1760
1761 core.Map toJson() {
1762 var _json = new core.Map();
1763 if (content != null) {
1764 _json["content"] = content;
1765 }
1766 if (displayName != null) {
1767 _json["displayName"] = displayName;
1768 }
1769 if (embed != null) {
1770 _json["embed"] = (embed).toJson();
1771 }
1772 if (fullImage != null) {
1773 _json["fullImage"] = (fullImage).toJson();
1774 }
1775 if (id != null) {
1776 _json["id"] = id;
1777 }
1778 if (image != null) {
1779 _json["image"] = (image).toJson();
1780 }
1781 if (objectType != null) {
1782 _json["objectType"] = objectType;
1783 }
1784 if (previewThumbnails != null) {
1785 _json["previewThumbnails"] = previewThumbnails.map((value) => (value).toJs on()).toList();
1786 }
1787 if (thumbnails != null) {
1788 _json["thumbnails"] = thumbnails.map((value) => (value).toJson()).toList() ;
1789 }
1790 if (url != null) {
1791 _json["url"] = url;
1792 }
1793 return _json;
1794 }
1795 }
1796
1797
1798 /** People who +1'd this activity. */
1799 class ActivityObjectPlusoners {
1800 /** The URL for the collection of people who +1'd this activity. */
1801 core.String selfLink;
1802
1803 /** Total number of people who +1'd this activity. */
1804 core.int totalItems;
1805
1806
1807 ActivityObjectPlusoners();
1808
1809 ActivityObjectPlusoners.fromJson(core.Map _json) {
1810 if (_json.containsKey("selfLink")) {
1811 selfLink = _json["selfLink"];
1812 }
1813 if (_json.containsKey("totalItems")) {
1814 totalItems = _json["totalItems"];
1815 }
1816 }
1817
1818 core.Map toJson() {
1819 var _json = new core.Map();
1820 if (selfLink != null) {
1821 _json["selfLink"] = selfLink;
1822 }
1823 if (totalItems != null) {
1824 _json["totalItems"] = totalItems;
1825 }
1826 return _json;
1827 }
1828 }
1829
1830
1831 /** Comments in reply to this activity. */
1832 class ActivityObjectReplies {
1833 /** The URL for the collection of comments in reply to this activity. */
1834 core.String selfLink;
1835
1836 /** Total number of comments on this activity. */
1837 core.int totalItems;
1838
1839
1840 ActivityObjectReplies();
1841
1842 ActivityObjectReplies.fromJson(core.Map _json) {
1843 if (_json.containsKey("selfLink")) {
1844 selfLink = _json["selfLink"];
1845 }
1846 if (_json.containsKey("totalItems")) {
1847 totalItems = _json["totalItems"];
1848 }
1849 }
1850
1851 core.Map toJson() {
1852 var _json = new core.Map();
1853 if (selfLink != null) {
1854 _json["selfLink"] = selfLink;
1855 }
1856 if (totalItems != null) {
1857 _json["totalItems"] = totalItems;
1858 }
1859 return _json;
1860 }
1861 }
1862
1863
1864 /** People who reshared this activity. */
1865 class ActivityObjectResharers {
1866 /** The URL for the collection of resharers. */
1867 core.String selfLink;
1868
1869 /** Total number of people who reshared this activity. */
1870 core.int totalItems;
1871
1872
1873 ActivityObjectResharers();
1874
1875 ActivityObjectResharers.fromJson(core.Map _json) {
1876 if (_json.containsKey("selfLink")) {
1877 selfLink = _json["selfLink"];
1878 }
1879 if (_json.containsKey("totalItems")) {
1880 totalItems = _json["totalItems"];
1881 }
1882 }
1883
1884 core.Map toJson() {
1885 var _json = new core.Map();
1886 if (selfLink != null) {
1887 _json["selfLink"] = selfLink;
1888 }
1889 if (totalItems != null) {
1890 _json["totalItems"] = totalItems;
1891 }
1892 return _json;
1893 }
1894 }
1895
1896
1897 /** Status of the activity as seen by the viewer. */
1898 class ActivityObjectStatusForViewer {
1899 /** Whether the viewer can comment on the activity. */
1900 core.bool canComment;
1901
1902 /** Whether the viewer can +1 the activity. */
1903 core.bool canPlusone;
1904
1905 /** Whether the viewer can edit or delete the activity. */
1906 core.bool canUpdate;
1907
1908 /** Whether the viewer has +1'd the activity. */
1909 core.bool isPlusOned;
1910
1911 /** Whether reshares are disabled for the activity. */
1912 core.bool resharingDisabled;
1913
1914
1915 ActivityObjectStatusForViewer();
1916
1917 ActivityObjectStatusForViewer.fromJson(core.Map _json) {
1918 if (_json.containsKey("canComment")) {
1919 canComment = _json["canComment"];
1920 }
1921 if (_json.containsKey("canPlusone")) {
1922 canPlusone = _json["canPlusone"];
1923 }
1924 if (_json.containsKey("canUpdate")) {
1925 canUpdate = _json["canUpdate"];
1926 }
1927 if (_json.containsKey("isPlusOned")) {
1928 isPlusOned = _json["isPlusOned"];
1929 }
1930 if (_json.containsKey("resharingDisabled")) {
1931 resharingDisabled = _json["resharingDisabled"];
1932 }
1933 }
1934
1935 core.Map toJson() {
1936 var _json = new core.Map();
1937 if (canComment != null) {
1938 _json["canComment"] = canComment;
1939 }
1940 if (canPlusone != null) {
1941 _json["canPlusone"] = canPlusone;
1942 }
1943 if (canUpdate != null) {
1944 _json["canUpdate"] = canUpdate;
1945 }
1946 if (isPlusOned != null) {
1947 _json["isPlusOned"] = isPlusOned;
1948 }
1949 if (resharingDisabled != null) {
1950 _json["resharingDisabled"] = resharingDisabled;
1951 }
1952 return _json;
1953 }
1954 }
1955
1956
1957 /** The object of this activity. */
1958 class ActivityObject {
1959 /**
1960 * If this activity's object is itself another activity, such as when a person
1961 * reshares an activity, this property specifies the original activity's
1962 * actor.
1963 */
1964 ActivityObjectActor actor;
1965
1966 /** The media objects attached to this activity. */
1967 core.List<ActivityObjectAttachments> attachments;
1968
1969 /** The HTML-formatted content, which is suitable for display. */
1970 core.String content;
1971
1972 /**
1973 * The ID of the object. When resharing an activity, this is the ID of the
1974 * activity that is being reshared.
1975 */
1976 core.String id;
1977
1978 /**
1979 * The type of the object. Possible values include, but are not limited to,
1980 * the following values:
1981 * - "note" - Textual content.
1982 * - "activity" - A Google+ activity.
1983 */
1984 core.String objectType;
1985
1986 /**
1987 * The content (text) as provided by the author, which is stored without any
1988 * HTML formatting. When creating or updating an activity, this value must be
1989 * supplied as plain text in the request.
1990 */
1991 core.String originalContent;
1992
1993 /** People who +1'd this activity. */
1994 ActivityObjectPlusoners plusoners;
1995
1996 /** Comments in reply to this activity. */
1997 ActivityObjectReplies replies;
1998
1999 /** People who reshared this activity. */
2000 ActivityObjectResharers resharers;
2001
2002 /** Status of the activity as seen by the viewer. */
2003 ActivityObjectStatusForViewer statusForViewer;
2004
2005 /** The URL that points to the linked resource. */
2006 core.String url;
2007
2008
2009 ActivityObject();
2010
2011 ActivityObject.fromJson(core.Map _json) {
2012 if (_json.containsKey("actor")) {
2013 actor = new ActivityObjectActor.fromJson(_json["actor"]);
2014 }
2015 if (_json.containsKey("attachments")) {
2016 attachments = _json["attachments"].map((value) => new ActivityObjectAttach ments.fromJson(value)).toList();
2017 }
2018 if (_json.containsKey("content")) {
2019 content = _json["content"];
2020 }
2021 if (_json.containsKey("id")) {
2022 id = _json["id"];
2023 }
2024 if (_json.containsKey("objectType")) {
2025 objectType = _json["objectType"];
2026 }
2027 if (_json.containsKey("originalContent")) {
2028 originalContent = _json["originalContent"];
2029 }
2030 if (_json.containsKey("plusoners")) {
2031 plusoners = new ActivityObjectPlusoners.fromJson(_json["plusoners"]);
2032 }
2033 if (_json.containsKey("replies")) {
2034 replies = new ActivityObjectReplies.fromJson(_json["replies"]);
2035 }
2036 if (_json.containsKey("resharers")) {
2037 resharers = new ActivityObjectResharers.fromJson(_json["resharers"]);
2038 }
2039 if (_json.containsKey("statusForViewer")) {
2040 statusForViewer = new ActivityObjectStatusForViewer.fromJson(_json["status ForViewer"]);
2041 }
2042 if (_json.containsKey("url")) {
2043 url = _json["url"];
2044 }
2045 }
2046
2047 core.Map toJson() {
2048 var _json = new core.Map();
2049 if (actor != null) {
2050 _json["actor"] = (actor).toJson();
2051 }
2052 if (attachments != null) {
2053 _json["attachments"] = attachments.map((value) => (value).toJson()).toList ();
2054 }
2055 if (content != null) {
2056 _json["content"] = content;
2057 }
2058 if (id != null) {
2059 _json["id"] = id;
2060 }
2061 if (objectType != null) {
2062 _json["objectType"] = objectType;
2063 }
2064 if (originalContent != null) {
2065 _json["originalContent"] = originalContent;
2066 }
2067 if (plusoners != null) {
2068 _json["plusoners"] = (plusoners).toJson();
2069 }
2070 if (replies != null) {
2071 _json["replies"] = (replies).toJson();
2072 }
2073 if (resharers != null) {
2074 _json["resharers"] = (resharers).toJson();
2075 }
2076 if (statusForViewer != null) {
2077 _json["statusForViewer"] = (statusForViewer).toJson();
2078 }
2079 if (url != null) {
2080 _json["url"] = url;
2081 }
2082 return _json;
2083 }
2084 }
2085
2086
2087 /** The service provider that initially published this activity. */
2088 class ActivityProvider {
2089 /** Name of the service provider. */
2090 core.String title;
2091
2092
2093 ActivityProvider();
2094
2095 ActivityProvider.fromJson(core.Map _json) {
2096 if (_json.containsKey("title")) {
2097 title = _json["title"];
2098 }
2099 }
2100
2101 core.Map toJson() {
2102 var _json = new core.Map();
2103 if (title != null) {
2104 _json["title"] = title;
2105 }
2106 return _json;
2107 }
2108 }
2109
2110
2111 /** Not documented yet. */
2112 class Activity {
2113 /** Identifies who has access to see this activity. */
2114 Acl access;
2115
2116 /** The person who performed this activity. */
2117 ActivityActor actor;
2118
2119 /** Street address where this activity occurred. */
2120 core.String address;
2121
2122 /**
2123 * Additional content added by the person who shared this activity, applicable
2124 * only when resharing an activity.
2125 */
2126 core.String annotation;
2127
2128 /**
2129 * If this activity is a crosspost from another system, this property
2130 * specifies the ID of the original activity.
2131 */
2132 core.String crosspostSource;
2133
2134 /** ETag of this response for caching purposes. */
2135 core.String etag;
2136
2137 /**
2138 * Latitude and longitude where this activity occurred. Format is latitude
2139 * followed by longitude, space separated.
2140 */
2141 core.String geocode;
2142
2143 /** The ID of this activity. */
2144 core.String id;
2145
2146 /** Identifies this resource as an activity. Value: "plus#activity". */
2147 core.String kind;
2148
2149 /** The location where this activity occurred. */
2150 Place location;
2151
2152 /** The object of this activity. */
2153 ActivityObject object;
2154
2155 /** ID of the place where this activity occurred. */
2156 core.String placeId;
2157
2158 /** Name of the place where this activity occurred. */
2159 core.String placeName;
2160
2161 /** The service provider that initially published this activity. */
2162 ActivityProvider provider;
2163
2164 /**
2165 * The time at which this activity was initially published. Formatted as an
2166 * RFC 3339 timestamp.
2167 */
2168 core.DateTime published;
2169
2170 /**
2171 * Radius, in meters, of the region where this activity occurred, centered at
2172 * the latitude and longitude identified in geocode.
2173 */
2174 core.String radius;
2175
2176 /** Title of this activity. */
2177 core.String title;
2178
2179 /**
2180 * The time at which this activity was last updated. Formatted as an RFC 3339
2181 * timestamp.
2182 */
2183 core.DateTime updated;
2184
2185 /** The link to this activity. */
2186 core.String url;
2187
2188 /**
2189 * This activity's verb, which indicates the action that was performed.
2190 * Possible values include, but are not limited to, the following values:
2191 * - "post" - Publish content to the stream.
2192 * - "share" - Reshare an activity.
2193 */
2194 core.String verb;
2195
2196
2197 Activity();
2198
2199 Activity.fromJson(core.Map _json) {
2200 if (_json.containsKey("access")) {
2201 access = new Acl.fromJson(_json["access"]);
2202 }
2203 if (_json.containsKey("actor")) {
2204 actor = new ActivityActor.fromJson(_json["actor"]);
2205 }
2206 if (_json.containsKey("address")) {
2207 address = _json["address"];
2208 }
2209 if (_json.containsKey("annotation")) {
2210 annotation = _json["annotation"];
2211 }
2212 if (_json.containsKey("crosspostSource")) {
2213 crosspostSource = _json["crosspostSource"];
2214 }
2215 if (_json.containsKey("etag")) {
2216 etag = _json["etag"];
2217 }
2218 if (_json.containsKey("geocode")) {
2219 geocode = _json["geocode"];
2220 }
2221 if (_json.containsKey("id")) {
2222 id = _json["id"];
2223 }
2224 if (_json.containsKey("kind")) {
2225 kind = _json["kind"];
2226 }
2227 if (_json.containsKey("location")) {
2228 location = new Place.fromJson(_json["location"]);
2229 }
2230 if (_json.containsKey("object")) {
2231 object = new ActivityObject.fromJson(_json["object"]);
2232 }
2233 if (_json.containsKey("placeId")) {
2234 placeId = _json["placeId"];
2235 }
2236 if (_json.containsKey("placeName")) {
2237 placeName = _json["placeName"];
2238 }
2239 if (_json.containsKey("provider")) {
2240 provider = new ActivityProvider.fromJson(_json["provider"]);
2241 }
2242 if (_json.containsKey("published")) {
2243 published = core.DateTime.parse(_json["published"]);
2244 }
2245 if (_json.containsKey("radius")) {
2246 radius = _json["radius"];
2247 }
2248 if (_json.containsKey("title")) {
2249 title = _json["title"];
2250 }
2251 if (_json.containsKey("updated")) {
2252 updated = core.DateTime.parse(_json["updated"]);
2253 }
2254 if (_json.containsKey("url")) {
2255 url = _json["url"];
2256 }
2257 if (_json.containsKey("verb")) {
2258 verb = _json["verb"];
2259 }
2260 }
2261
2262 core.Map toJson() {
2263 var _json = new core.Map();
2264 if (access != null) {
2265 _json["access"] = (access).toJson();
2266 }
2267 if (actor != null) {
2268 _json["actor"] = (actor).toJson();
2269 }
2270 if (address != null) {
2271 _json["address"] = address;
2272 }
2273 if (annotation != null) {
2274 _json["annotation"] = annotation;
2275 }
2276 if (crosspostSource != null) {
2277 _json["crosspostSource"] = crosspostSource;
2278 }
2279 if (etag != null) {
2280 _json["etag"] = etag;
2281 }
2282 if (geocode != null) {
2283 _json["geocode"] = geocode;
2284 }
2285 if (id != null) {
2286 _json["id"] = id;
2287 }
2288 if (kind != null) {
2289 _json["kind"] = kind;
2290 }
2291 if (location != null) {
2292 _json["location"] = (location).toJson();
2293 }
2294 if (object != null) {
2295 _json["object"] = (object).toJson();
2296 }
2297 if (placeId != null) {
2298 _json["placeId"] = placeId;
2299 }
2300 if (placeName != null) {
2301 _json["placeName"] = placeName;
2302 }
2303 if (provider != null) {
2304 _json["provider"] = (provider).toJson();
2305 }
2306 if (published != null) {
2307 _json["published"] = (published).toIso8601String();
2308 }
2309 if (radius != null) {
2310 _json["radius"] = radius;
2311 }
2312 if (title != null) {
2313 _json["title"] = title;
2314 }
2315 if (updated != null) {
2316 _json["updated"] = (updated).toIso8601String();
2317 }
2318 if (url != null) {
2319 _json["url"] = url;
2320 }
2321 if (verb != null) {
2322 _json["verb"] = verb;
2323 }
2324 return _json;
2325 }
2326 }
2327
2328
2329 /** Not documented yet. */
2330 class ActivityFeed {
2331 /** ETag of this response for caching purposes. */
2332 core.String etag;
2333
2334 /** The ID of this collection of activities. Deprecated. */
2335 core.String id;
2336
2337 /** The activities in this page of results. */
2338 core.List<Activity> items;
2339
2340 /**
2341 * Identifies this resource as a collection of activities. Value:
2342 * "plus#activityFeed".
2343 */
2344 core.String kind;
2345
2346 /** Link to the next page of activities. */
2347 core.String nextLink;
2348
2349 /**
2350 * The continuation token, which is used to page through large result sets.
2351 * Provide this value in a subsequent request to return the next page of
2352 * results.
2353 */
2354 core.String nextPageToken;
2355
2356 /** Link to this activity resource. */
2357 core.String selfLink;
2358
2359 /**
2360 * The title of this collection of activities, which is a truncated portion of
2361 * the content.
2362 */
2363 core.String title;
2364
2365 /**
2366 * The time at which this collection of activities was last updated. Formatted
2367 * as an RFC 3339 timestamp.
2368 */
2369 core.DateTime updated;
2370
2371
2372 ActivityFeed();
2373
2374 ActivityFeed.fromJson(core.Map _json) {
2375 if (_json.containsKey("etag")) {
2376 etag = _json["etag"];
2377 }
2378 if (_json.containsKey("id")) {
2379 id = _json["id"];
2380 }
2381 if (_json.containsKey("items")) {
2382 items = _json["items"].map((value) => new Activity.fromJson(value)).toList ();
2383 }
2384 if (_json.containsKey("kind")) {
2385 kind = _json["kind"];
2386 }
2387 if (_json.containsKey("nextLink")) {
2388 nextLink = _json["nextLink"];
2389 }
2390 if (_json.containsKey("nextPageToken")) {
2391 nextPageToken = _json["nextPageToken"];
2392 }
2393 if (_json.containsKey("selfLink")) {
2394 selfLink = _json["selfLink"];
2395 }
2396 if (_json.containsKey("title")) {
2397 title = _json["title"];
2398 }
2399 if (_json.containsKey("updated")) {
2400 updated = core.DateTime.parse(_json["updated"]);
2401 }
2402 }
2403
2404 core.Map toJson() {
2405 var _json = new core.Map();
2406 if (etag != null) {
2407 _json["etag"] = etag;
2408 }
2409 if (id != null) {
2410 _json["id"] = id;
2411 }
2412 if (items != null) {
2413 _json["items"] = items.map((value) => (value).toJson()).toList();
2414 }
2415 if (kind != null) {
2416 _json["kind"] = kind;
2417 }
2418 if (nextLink != null) {
2419 _json["nextLink"] = nextLink;
2420 }
2421 if (nextPageToken != null) {
2422 _json["nextPageToken"] = nextPageToken;
2423 }
2424 if (selfLink != null) {
2425 _json["selfLink"] = selfLink;
2426 }
2427 if (title != null) {
2428 _json["title"] = title;
2429 }
2430 if (updated != null) {
2431 _json["updated"] = (updated).toIso8601String();
2432 }
2433 return _json;
2434 }
2435 }
2436
2437
2438 /** Not documented yet. */
2439 class Audience {
2440 /** ETag of this response for caching purposes. */
2441 core.String etag;
2442
2443 /** The access control list entry. */
2444 PlusDomainsAclentryResource item;
2445
2446 /** Identifies this resource as an audience. Value: "plus#audience". */
2447 core.String kind;
2448
2449 /**
2450 * The number of people in this circle. This only applies if entity_type is
2451 * CIRCLE.
2452 */
2453 core.int memberCount;
2454
2455 /**
2456 * The circle members' visibility as chosen by the owner of the circle. This
2457 * only applies for items with "item.type" equals "circle". Possible values
2458 * are:
2459 * - "public" - Members are visible to the public.
2460 * - "limited" - Members are visible to a limited audience.
2461 * - "private" - Members are visible to the owner only.
2462 */
2463 core.String visibility;
2464
2465
2466 Audience();
2467
2468 Audience.fromJson(core.Map _json) {
2469 if (_json.containsKey("etag")) {
2470 etag = _json["etag"];
2471 }
2472 if (_json.containsKey("item")) {
2473 item = new PlusDomainsAclentryResource.fromJson(_json["item"]);
2474 }
2475 if (_json.containsKey("kind")) {
2476 kind = _json["kind"];
2477 }
2478 if (_json.containsKey("memberCount")) {
2479 memberCount = _json["memberCount"];
2480 }
2481 if (_json.containsKey("visibility")) {
2482 visibility = _json["visibility"];
2483 }
2484 }
2485
2486 core.Map toJson() {
2487 var _json = new core.Map();
2488 if (etag != null) {
2489 _json["etag"] = etag;
2490 }
2491 if (item != null) {
2492 _json["item"] = (item).toJson();
2493 }
2494 if (kind != null) {
2495 _json["kind"] = kind;
2496 }
2497 if (memberCount != null) {
2498 _json["memberCount"] = memberCount;
2499 }
2500 if (visibility != null) {
2501 _json["visibility"] = visibility;
2502 }
2503 return _json;
2504 }
2505 }
2506
2507
2508 /** Not documented yet. */
2509 class AudiencesFeed {
2510 /** ETag of this response for caching purposes. */
2511 core.String etag;
2512
2513 /** The audiences in this result. */
2514 core.List<Audience> items;
2515
2516 /**
2517 * Identifies this resource as a collection of audiences. Value:
2518 * "plus#audienceFeed".
2519 */
2520 core.String kind;
2521
2522 /**
2523 * The continuation token, which is used to page through large result sets.
2524 * Provide this value in a subsequent request to return the next page of
2525 * results.
2526 */
2527 core.String nextPageToken;
2528
2529 /**
2530 * The total number of ACL entries. The number of entries in this response may
2531 * be smaller due to paging.
2532 */
2533 core.int totalItems;
2534
2535
2536 AudiencesFeed();
2537
2538 AudiencesFeed.fromJson(core.Map _json) {
2539 if (_json.containsKey("etag")) {
2540 etag = _json["etag"];
2541 }
2542 if (_json.containsKey("items")) {
2543 items = _json["items"].map((value) => new Audience.fromJson(value)).toList ();
2544 }
2545 if (_json.containsKey("kind")) {
2546 kind = _json["kind"];
2547 }
2548 if (_json.containsKey("nextPageToken")) {
2549 nextPageToken = _json["nextPageToken"];
2550 }
2551 if (_json.containsKey("totalItems")) {
2552 totalItems = _json["totalItems"];
2553 }
2554 }
2555
2556 core.Map toJson() {
2557 var _json = new core.Map();
2558 if (etag != null) {
2559 _json["etag"] = etag;
2560 }
2561 if (items != null) {
2562 _json["items"] = items.map((value) => (value).toJson()).toList();
2563 }
2564 if (kind != null) {
2565 _json["kind"] = kind;
2566 }
2567 if (nextPageToken != null) {
2568 _json["nextPageToken"] = nextPageToken;
2569 }
2570 if (totalItems != null) {
2571 _json["totalItems"] = totalItems;
2572 }
2573 return _json;
2574 }
2575 }
2576
2577
2578 /** The people in this circle. */
2579 class CirclePeople {
2580 /** The total number of people in this circle. */
2581 core.int totalItems;
2582
2583
2584 CirclePeople();
2585
2586 CirclePeople.fromJson(core.Map _json) {
2587 if (_json.containsKey("totalItems")) {
2588 totalItems = _json["totalItems"];
2589 }
2590 }
2591
2592 core.Map toJson() {
2593 var _json = new core.Map();
2594 if (totalItems != null) {
2595 _json["totalItems"] = totalItems;
2596 }
2597 return _json;
2598 }
2599 }
2600
2601
2602 /** Not documented yet. */
2603 class Circle {
2604 /** The description of this circle. */
2605 core.String description;
2606
2607 /** The circle name. */
2608 core.String displayName;
2609
2610 /** ETag of this response for caching purposes. */
2611 core.String etag;
2612
2613 /** The ID of the circle. */
2614 core.String id;
2615
2616 /** Identifies this resource as a circle. Value: "plus#circle". */
2617 core.String kind;
2618
2619 /** The people in this circle. */
2620 CirclePeople people;
2621
2622 /** Link to this circle resource */
2623 core.String selfLink;
2624
2625
2626 Circle();
2627
2628 Circle.fromJson(core.Map _json) {
2629 if (_json.containsKey("description")) {
2630 description = _json["description"];
2631 }
2632 if (_json.containsKey("displayName")) {
2633 displayName = _json["displayName"];
2634 }
2635 if (_json.containsKey("etag")) {
2636 etag = _json["etag"];
2637 }
2638 if (_json.containsKey("id")) {
2639 id = _json["id"];
2640 }
2641 if (_json.containsKey("kind")) {
2642 kind = _json["kind"];
2643 }
2644 if (_json.containsKey("people")) {
2645 people = new CirclePeople.fromJson(_json["people"]);
2646 }
2647 if (_json.containsKey("selfLink")) {
2648 selfLink = _json["selfLink"];
2649 }
2650 }
2651
2652 core.Map toJson() {
2653 var _json = new core.Map();
2654 if (description != null) {
2655 _json["description"] = description;
2656 }
2657 if (displayName != null) {
2658 _json["displayName"] = displayName;
2659 }
2660 if (etag != null) {
2661 _json["etag"] = etag;
2662 }
2663 if (id != null) {
2664 _json["id"] = id;
2665 }
2666 if (kind != null) {
2667 _json["kind"] = kind;
2668 }
2669 if (people != null) {
2670 _json["people"] = (people).toJson();
2671 }
2672 if (selfLink != null) {
2673 _json["selfLink"] = selfLink;
2674 }
2675 return _json;
2676 }
2677 }
2678
2679
2680 /** Not documented yet. */
2681 class CircleFeed {
2682 /** ETag of this response for caching purposes. */
2683 core.String etag;
2684
2685 /** The circles in this page of results. */
2686 core.List<Circle> items;
2687
2688 /**
2689 * Identifies this resource as a collection of circles. Value:
2690 * "plus#circleFeed".
2691 */
2692 core.String kind;
2693
2694 /** Link to the next page of circles. */
2695 core.String nextLink;
2696
2697 /**
2698 * The continuation token, which is used to page through large result sets.
2699 * Provide this value in a subsequent request to return the next page of
2700 * results.
2701 */
2702 core.String nextPageToken;
2703
2704 /** Link to this page of circles. */
2705 core.String selfLink;
2706
2707 /** The title of this list of resources. */
2708 core.String title;
2709
2710 /**
2711 * The total number of circles. The number of circles in this response may be
2712 * smaller due to paging.
2713 */
2714 core.int totalItems;
2715
2716
2717 CircleFeed();
2718
2719 CircleFeed.fromJson(core.Map _json) {
2720 if (_json.containsKey("etag")) {
2721 etag = _json["etag"];
2722 }
2723 if (_json.containsKey("items")) {
2724 items = _json["items"].map((value) => new Circle.fromJson(value)).toList() ;
2725 }
2726 if (_json.containsKey("kind")) {
2727 kind = _json["kind"];
2728 }
2729 if (_json.containsKey("nextLink")) {
2730 nextLink = _json["nextLink"];
2731 }
2732 if (_json.containsKey("nextPageToken")) {
2733 nextPageToken = _json["nextPageToken"];
2734 }
2735 if (_json.containsKey("selfLink")) {
2736 selfLink = _json["selfLink"];
2737 }
2738 if (_json.containsKey("title")) {
2739 title = _json["title"];
2740 }
2741 if (_json.containsKey("totalItems")) {
2742 totalItems = _json["totalItems"];
2743 }
2744 }
2745
2746 core.Map toJson() {
2747 var _json = new core.Map();
2748 if (etag != null) {
2749 _json["etag"] = etag;
2750 }
2751 if (items != null) {
2752 _json["items"] = items.map((value) => (value).toJson()).toList();
2753 }
2754 if (kind != null) {
2755 _json["kind"] = kind;
2756 }
2757 if (nextLink != null) {
2758 _json["nextLink"] = nextLink;
2759 }
2760 if (nextPageToken != null) {
2761 _json["nextPageToken"] = nextPageToken;
2762 }
2763 if (selfLink != null) {
2764 _json["selfLink"] = selfLink;
2765 }
2766 if (title != null) {
2767 _json["title"] = title;
2768 }
2769 if (totalItems != null) {
2770 _json["totalItems"] = totalItems;
2771 }
2772 return _json;
2773 }
2774 }
2775
2776
2777 /** The image representation of this actor. */
2778 class CommentActorImage {
2779 /**
2780 * The URL of the actor's profile photo. To resize the image and crop it to a
2781 * square, append the query string ?sz=x, where x is the dimension in pixels
2782 * of each side.
2783 */
2784 core.String url;
2785
2786
2787 CommentActorImage();
2788
2789 CommentActorImage.fromJson(core.Map _json) {
2790 if (_json.containsKey("url")) {
2791 url = _json["url"];
2792 }
2793 }
2794
2795 core.Map toJson() {
2796 var _json = new core.Map();
2797 if (url != null) {
2798 _json["url"] = url;
2799 }
2800 return _json;
2801 }
2802 }
2803
2804
2805 /** The person who posted this comment. */
2806 class CommentActor {
2807 /** The name of this actor, suitable for display. */
2808 core.String displayName;
2809
2810 /** The ID of the actor. */
2811 core.String id;
2812
2813 /** The image representation of this actor. */
2814 CommentActorImage image;
2815
2816 /** A link to the Person resource for this actor. */
2817 core.String url;
2818
2819
2820 CommentActor();
2821
2822 CommentActor.fromJson(core.Map _json) {
2823 if (_json.containsKey("displayName")) {
2824 displayName = _json["displayName"];
2825 }
2826 if (_json.containsKey("id")) {
2827 id = _json["id"];
2828 }
2829 if (_json.containsKey("image")) {
2830 image = new CommentActorImage.fromJson(_json["image"]);
2831 }
2832 if (_json.containsKey("url")) {
2833 url = _json["url"];
2834 }
2835 }
2836
2837 core.Map toJson() {
2838 var _json = new core.Map();
2839 if (displayName != null) {
2840 _json["displayName"] = displayName;
2841 }
2842 if (id != null) {
2843 _json["id"] = id;
2844 }
2845 if (image != null) {
2846 _json["image"] = (image).toJson();
2847 }
2848 if (url != null) {
2849 _json["url"] = url;
2850 }
2851 return _json;
2852 }
2853 }
2854
2855
2856 /** Not documented yet. */
2857 class CommentInReplyTo {
2858 /** The ID of the activity. */
2859 core.String id;
2860
2861 /** The URL of the activity. */
2862 core.String url;
2863
2864
2865 CommentInReplyTo();
2866
2867 CommentInReplyTo.fromJson(core.Map _json) {
2868 if (_json.containsKey("id")) {
2869 id = _json["id"];
2870 }
2871 if (_json.containsKey("url")) {
2872 url = _json["url"];
2873 }
2874 }
2875
2876 core.Map toJson() {
2877 var _json = new core.Map();
2878 if (id != null) {
2879 _json["id"] = id;
2880 }
2881 if (url != null) {
2882 _json["url"] = url;
2883 }
2884 return _json;
2885 }
2886 }
2887
2888
2889 /** The object of this comment. */
2890 class CommentObject {
2891 /** The HTML-formatted content, suitable for display. */
2892 core.String content;
2893
2894 /**
2895 * The object type of this comment. Possible values are:
2896 * - "comment" - A comment in reply to an activity.
2897 */
2898 core.String objectType;
2899
2900 /**
2901 * The content (text) as provided by the author, stored without any HTML
2902 * formatting. When creating or updating a comment, this value must be
2903 * supplied as plain text in the request.
2904 */
2905 core.String originalContent;
2906
2907
2908 CommentObject();
2909
2910 CommentObject.fromJson(core.Map _json) {
2911 if (_json.containsKey("content")) {
2912 content = _json["content"];
2913 }
2914 if (_json.containsKey("objectType")) {
2915 objectType = _json["objectType"];
2916 }
2917 if (_json.containsKey("originalContent")) {
2918 originalContent = _json["originalContent"];
2919 }
2920 }
2921
2922 core.Map toJson() {
2923 var _json = new core.Map();
2924 if (content != null) {
2925 _json["content"] = content;
2926 }
2927 if (objectType != null) {
2928 _json["objectType"] = objectType;
2929 }
2930 if (originalContent != null) {
2931 _json["originalContent"] = originalContent;
2932 }
2933 return _json;
2934 }
2935 }
2936
2937
2938 /** People who +1'd this comment. */
2939 class CommentPlusoners {
2940 /** Total number of people who +1'd this comment. */
2941 core.int totalItems;
2942
2943
2944 CommentPlusoners();
2945
2946 CommentPlusoners.fromJson(core.Map _json) {
2947 if (_json.containsKey("totalItems")) {
2948 totalItems = _json["totalItems"];
2949 }
2950 }
2951
2952 core.Map toJson() {
2953 var _json = new core.Map();
2954 if (totalItems != null) {
2955 _json["totalItems"] = totalItems;
2956 }
2957 return _json;
2958 }
2959 }
2960
2961
2962 /** Not documented yet. */
2963 class Comment {
2964 /** The person who posted this comment. */
2965 CommentActor actor;
2966
2967 /** ETag of this response for caching purposes. */
2968 core.String etag;
2969
2970 /** The ID of this comment. */
2971 core.String id;
2972
2973 /** The activity this comment replied to. */
2974 core.List<CommentInReplyTo> inReplyTo;
2975
2976 /** Identifies this resource as a comment. Value: "plus#comment". */
2977 core.String kind;
2978
2979 /** The object of this comment. */
2980 CommentObject object;
2981
2982 /** People who +1'd this comment. */
2983 CommentPlusoners plusoners;
2984
2985 /**
2986 * The time at which this comment was initially published. Formatted as an RFC
2987 * 3339 timestamp.
2988 */
2989 core.DateTime published;
2990
2991 /** Link to this comment resource. */
2992 core.String selfLink;
2993
2994 /**
2995 * The time at which this comment was last updated. Formatted as an RFC 3339
2996 * timestamp.
2997 */
2998 core.DateTime updated;
2999
3000 /**
3001 * This comment's verb, indicating what action was performed. Possible values
3002 * are:
3003 * - "post" - Publish content to the stream.
3004 */
3005 core.String verb;
3006
3007
3008 Comment();
3009
3010 Comment.fromJson(core.Map _json) {
3011 if (_json.containsKey("actor")) {
3012 actor = new CommentActor.fromJson(_json["actor"]);
3013 }
3014 if (_json.containsKey("etag")) {
3015 etag = _json["etag"];
3016 }
3017 if (_json.containsKey("id")) {
3018 id = _json["id"];
3019 }
3020 if (_json.containsKey("inReplyTo")) {
3021 inReplyTo = _json["inReplyTo"].map((value) => new CommentInReplyTo.fromJso n(value)).toList();
3022 }
3023 if (_json.containsKey("kind")) {
3024 kind = _json["kind"];
3025 }
3026 if (_json.containsKey("object")) {
3027 object = new CommentObject.fromJson(_json["object"]);
3028 }
3029 if (_json.containsKey("plusoners")) {
3030 plusoners = new CommentPlusoners.fromJson(_json["plusoners"]);
3031 }
3032 if (_json.containsKey("published")) {
3033 published = core.DateTime.parse(_json["published"]);
3034 }
3035 if (_json.containsKey("selfLink")) {
3036 selfLink = _json["selfLink"];
3037 }
3038 if (_json.containsKey("updated")) {
3039 updated = core.DateTime.parse(_json["updated"]);
3040 }
3041 if (_json.containsKey("verb")) {
3042 verb = _json["verb"];
3043 }
3044 }
3045
3046 core.Map toJson() {
3047 var _json = new core.Map();
3048 if (actor != null) {
3049 _json["actor"] = (actor).toJson();
3050 }
3051 if (etag != null) {
3052 _json["etag"] = etag;
3053 }
3054 if (id != null) {
3055 _json["id"] = id;
3056 }
3057 if (inReplyTo != null) {
3058 _json["inReplyTo"] = inReplyTo.map((value) => (value).toJson()).toList();
3059 }
3060 if (kind != null) {
3061 _json["kind"] = kind;
3062 }
3063 if (object != null) {
3064 _json["object"] = (object).toJson();
3065 }
3066 if (plusoners != null) {
3067 _json["plusoners"] = (plusoners).toJson();
3068 }
3069 if (published != null) {
3070 _json["published"] = (published).toIso8601String();
3071 }
3072 if (selfLink != null) {
3073 _json["selfLink"] = selfLink;
3074 }
3075 if (updated != null) {
3076 _json["updated"] = (updated).toIso8601String();
3077 }
3078 if (verb != null) {
3079 _json["verb"] = verb;
3080 }
3081 return _json;
3082 }
3083 }
3084
3085
3086 /** Not documented yet. */
3087 class CommentFeed {
3088 /** ETag of this response for caching purposes. */
3089 core.String etag;
3090
3091 /** The ID of this collection of comments. */
3092 core.String id;
3093
3094 /** The comments in this page of results. */
3095 core.List<Comment> items;
3096
3097 /**
3098 * Identifies this resource as a collection of comments. Value:
3099 * "plus#commentFeed".
3100 */
3101 core.String kind;
3102
3103 /** Link to the next page of activities. */
3104 core.String nextLink;
3105
3106 /**
3107 * The continuation token, which is used to page through large result sets.
3108 * Provide this value in a subsequent request to return the next page of
3109 * results.
3110 */
3111 core.String nextPageToken;
3112
3113 /** The title of this collection of comments. */
3114 core.String title;
3115
3116 /**
3117 * The time at which this collection of comments was last updated. Formatted
3118 * as an RFC 3339 timestamp.
3119 */
3120 core.DateTime updated;
3121
3122
3123 CommentFeed();
3124
3125 CommentFeed.fromJson(core.Map _json) {
3126 if (_json.containsKey("etag")) {
3127 etag = _json["etag"];
3128 }
3129 if (_json.containsKey("id")) {
3130 id = _json["id"];
3131 }
3132 if (_json.containsKey("items")) {
3133 items = _json["items"].map((value) => new Comment.fromJson(value)).toList( );
3134 }
3135 if (_json.containsKey("kind")) {
3136 kind = _json["kind"];
3137 }
3138 if (_json.containsKey("nextLink")) {
3139 nextLink = _json["nextLink"];
3140 }
3141 if (_json.containsKey("nextPageToken")) {
3142 nextPageToken = _json["nextPageToken"];
3143 }
3144 if (_json.containsKey("title")) {
3145 title = _json["title"];
3146 }
3147 if (_json.containsKey("updated")) {
3148 updated = core.DateTime.parse(_json["updated"]);
3149 }
3150 }
3151
3152 core.Map toJson() {
3153 var _json = new core.Map();
3154 if (etag != null) {
3155 _json["etag"] = etag;
3156 }
3157 if (id != null) {
3158 _json["id"] = id;
3159 }
3160 if (items != null) {
3161 _json["items"] = items.map((value) => (value).toJson()).toList();
3162 }
3163 if (kind != null) {
3164 _json["kind"] = kind;
3165 }
3166 if (nextLink != null) {
3167 _json["nextLink"] = nextLink;
3168 }
3169 if (nextPageToken != null) {
3170 _json["nextPageToken"] = nextPageToken;
3171 }
3172 if (title != null) {
3173 _json["title"] = title;
3174 }
3175 if (updated != null) {
3176 _json["updated"] = (updated).toIso8601String();
3177 }
3178 return _json;
3179 }
3180 }
3181
3182
3183 /** The author's Google profile image. */
3184 class MediaAuthorImage {
3185 /**
3186 * The URL of the author's profile photo. To resize the image and crop it to a
3187 * square, append the query string ?sz=x, where x is the dimension in pixels
3188 * of each side.
3189 */
3190 core.String url;
3191
3192
3193 MediaAuthorImage();
3194
3195 MediaAuthorImage.fromJson(core.Map _json) {
3196 if (_json.containsKey("url")) {
3197 url = _json["url"];
3198 }
3199 }
3200
3201 core.Map toJson() {
3202 var _json = new core.Map();
3203 if (url != null) {
3204 _json["url"] = url;
3205 }
3206 return _json;
3207 }
3208 }
3209
3210
3211 /** The person who uploaded this media. */
3212 class MediaAuthor {
3213 /** The author's name. */
3214 core.String displayName;
3215
3216 /** ID of the author. */
3217 core.String id;
3218
3219 /** The author's Google profile image. */
3220 MediaAuthorImage image;
3221
3222 /** A link to the author's Google profile. */
3223 core.String url;
3224
3225
3226 MediaAuthor();
3227
3228 MediaAuthor.fromJson(core.Map _json) {
3229 if (_json.containsKey("displayName")) {
3230 displayName = _json["displayName"];
3231 }
3232 if (_json.containsKey("id")) {
3233 id = _json["id"];
3234 }
3235 if (_json.containsKey("image")) {
3236 image = new MediaAuthorImage.fromJson(_json["image"]);
3237 }
3238 if (_json.containsKey("url")) {
3239 url = _json["url"];
3240 }
3241 }
3242
3243 core.Map toJson() {
3244 var _json = new core.Map();
3245 if (displayName != null) {
3246 _json["displayName"] = displayName;
3247 }
3248 if (id != null) {
3249 _json["id"] = id;
3250 }
3251 if (image != null) {
3252 _json["image"] = (image).toJson();
3253 }
3254 if (url != null) {
3255 _json["url"] = url;
3256 }
3257 return _json;
3258 }
3259 }
3260
3261
3262 /** Exif information of the media item. */
3263 class MediaExif {
3264 /** The time the media was captured. Formatted as an RFC 3339 timestamp. */
3265 core.DateTime time;
3266
3267
3268 MediaExif();
3269
3270 MediaExif.fromJson(core.Map _json) {
3271 if (_json.containsKey("time")) {
3272 time = core.DateTime.parse(_json["time"]);
3273 }
3274 }
3275
3276 core.Map toJson() {
3277 var _json = new core.Map();
3278 if (time != null) {
3279 _json["time"] = (time).toIso8601String();
3280 }
3281 return _json;
3282 }
3283 }
3284
3285
3286 /** Not documented yet. */
3287 class Media {
3288 /** The person who uploaded this media. */
3289 MediaAuthor author;
3290
3291 /** The display name for this media. */
3292 core.String displayName;
3293
3294 /** ETag of this response for caching purposes. */
3295 core.String etag;
3296
3297 /** Exif information of the media item. */
3298 MediaExif exif;
3299
3300 /** The height in pixels of the original image. */
3301 core.int height;
3302
3303 /** ID of this media, which is generated by the API. */
3304 core.String id;
3305
3306 /** The type of resource. */
3307 core.String kind;
3308
3309 /**
3310 * The time at which this media was originally created in UTC. Formatted as an
3311 * RFC 3339 timestamp that matches this example: 2010-11-25T14:30:27.655Z
3312 */
3313 core.DateTime mediaCreatedTime;
3314
3315 /** The URL of this photo or video's still image. */
3316 core.String mediaUrl;
3317
3318 /**
3319 * The time at which this media was uploaded. Formatted as an RFC 3339
3320 * timestamp.
3321 */
3322 core.DateTime published;
3323
3324 /** The size in bytes of this video. */
3325 core.String sizeBytes;
3326
3327 /**
3328 * The list of video streams for this video. There might be several different
3329 * streams available for a single video, either Flash or MPEG, of various
3330 * sizes
3331 */
3332 core.List<Videostream> streams;
3333
3334 /** A description, or caption, for this media. */
3335 core.String summary;
3336
3337 /**
3338 * The time at which this media was last updated. This includes changes to
3339 * media metadata. Formatted as an RFC 3339 timestamp.
3340 */
3341 core.DateTime updated;
3342
3343 /** The URL for the page that hosts this media. */
3344 core.String url;
3345
3346 /** The duration in milliseconds of this video. */
3347 core.String videoDuration;
3348
3349 /**
3350 * The encoding status of this video. Possible values are:
3351 * - "UPLOADING" - Not all the video bytes have been received.
3352 * - "PENDING" - Video not yet processed.
3353 * - "FAILED" - Video processing failed.
3354 * - "READY" - A single video stream is playable.
3355 * - "FINAL" - All video streams are playable.
3356 */
3357 core.String videoStatus;
3358
3359 /** The width in pixels of the original image. */
3360 core.int width;
3361
3362
3363 Media();
3364
3365 Media.fromJson(core.Map _json) {
3366 if (_json.containsKey("author")) {
3367 author = new MediaAuthor.fromJson(_json["author"]);
3368 }
3369 if (_json.containsKey("displayName")) {
3370 displayName = _json["displayName"];
3371 }
3372 if (_json.containsKey("etag")) {
3373 etag = _json["etag"];
3374 }
3375 if (_json.containsKey("exif")) {
3376 exif = new MediaExif.fromJson(_json["exif"]);
3377 }
3378 if (_json.containsKey("height")) {
3379 height = _json["height"];
3380 }
3381 if (_json.containsKey("id")) {
3382 id = _json["id"];
3383 }
3384 if (_json.containsKey("kind")) {
3385 kind = _json["kind"];
3386 }
3387 if (_json.containsKey("mediaCreatedTime")) {
3388 mediaCreatedTime = core.DateTime.parse(_json["mediaCreatedTime"]);
3389 }
3390 if (_json.containsKey("mediaUrl")) {
3391 mediaUrl = _json["mediaUrl"];
3392 }
3393 if (_json.containsKey("published")) {
3394 published = core.DateTime.parse(_json["published"]);
3395 }
3396 if (_json.containsKey("sizeBytes")) {
3397 sizeBytes = _json["sizeBytes"];
3398 }
3399 if (_json.containsKey("streams")) {
3400 streams = _json["streams"].map((value) => new Videostream.fromJson(value)) .toList();
3401 }
3402 if (_json.containsKey("summary")) {
3403 summary = _json["summary"];
3404 }
3405 if (_json.containsKey("updated")) {
3406 updated = core.DateTime.parse(_json["updated"]);
3407 }
3408 if (_json.containsKey("url")) {
3409 url = _json["url"];
3410 }
3411 if (_json.containsKey("videoDuration")) {
3412 videoDuration = _json["videoDuration"];
3413 }
3414 if (_json.containsKey("videoStatus")) {
3415 videoStatus = _json["videoStatus"];
3416 }
3417 if (_json.containsKey("width")) {
3418 width = _json["width"];
3419 }
3420 }
3421
3422 core.Map toJson() {
3423 var _json = new core.Map();
3424 if (author != null) {
3425 _json["author"] = (author).toJson();
3426 }
3427 if (displayName != null) {
3428 _json["displayName"] = displayName;
3429 }
3430 if (etag != null) {
3431 _json["etag"] = etag;
3432 }
3433 if (exif != null) {
3434 _json["exif"] = (exif).toJson();
3435 }
3436 if (height != null) {
3437 _json["height"] = height;
3438 }
3439 if (id != null) {
3440 _json["id"] = id;
3441 }
3442 if (kind != null) {
3443 _json["kind"] = kind;
3444 }
3445 if (mediaCreatedTime != null) {
3446 _json["mediaCreatedTime"] = (mediaCreatedTime).toIso8601String();
3447 }
3448 if (mediaUrl != null) {
3449 _json["mediaUrl"] = mediaUrl;
3450 }
3451 if (published != null) {
3452 _json["published"] = (published).toIso8601String();
3453 }
3454 if (sizeBytes != null) {
3455 _json["sizeBytes"] = sizeBytes;
3456 }
3457 if (streams != null) {
3458 _json["streams"] = streams.map((value) => (value).toJson()).toList();
3459 }
3460 if (summary != null) {
3461 _json["summary"] = summary;
3462 }
3463 if (updated != null) {
3464 _json["updated"] = (updated).toIso8601String();
3465 }
3466 if (url != null) {
3467 _json["url"] = url;
3468 }
3469 if (videoDuration != null) {
3470 _json["videoDuration"] = videoDuration;
3471 }
3472 if (videoStatus != null) {
3473 _json["videoStatus"] = videoStatus;
3474 }
3475 if (width != null) {
3476 _json["width"] = width;
3477 }
3478 return _json;
3479 }
3480 }
3481
3482
3483 /** Not documented yet. */
3484 class PeopleFeed {
3485 /** ETag of this response for caching purposes. */
3486 core.String etag;
3487
3488 /**
3489 * The people in this page of results. Each item includes the id, displayName,
3490 * image, and url for the person. To retrieve additional profile data, see the
3491 * people.get method.
3492 */
3493 core.List<Person> items;
3494
3495 /**
3496 * Identifies this resource as a collection of people. Value:
3497 * "plus#peopleFeed".
3498 */
3499 core.String kind;
3500
3501 /**
3502 * The continuation token, which is used to page through large result sets.
3503 * Provide this value in a subsequent request to return the next page of
3504 * results.
3505 */
3506 core.String nextPageToken;
3507
3508 /** Link to this resource. */
3509 core.String selfLink;
3510
3511 /** The title of this collection of people. */
3512 core.String title;
3513
3514 /**
3515 * The total number of people available in this list. The number of people in
3516 * a response might be smaller due to paging. This might not be set for all
3517 * collections.
3518 */
3519 core.int totalItems;
3520
3521
3522 PeopleFeed();
3523
3524 PeopleFeed.fromJson(core.Map _json) {
3525 if (_json.containsKey("etag")) {
3526 etag = _json["etag"];
3527 }
3528 if (_json.containsKey("items")) {
3529 items = _json["items"].map((value) => new Person.fromJson(value)).toList() ;
3530 }
3531 if (_json.containsKey("kind")) {
3532 kind = _json["kind"];
3533 }
3534 if (_json.containsKey("nextPageToken")) {
3535 nextPageToken = _json["nextPageToken"];
3536 }
3537 if (_json.containsKey("selfLink")) {
3538 selfLink = _json["selfLink"];
3539 }
3540 if (_json.containsKey("title")) {
3541 title = _json["title"];
3542 }
3543 if (_json.containsKey("totalItems")) {
3544 totalItems = _json["totalItems"];
3545 }
3546 }
3547
3548 core.Map toJson() {
3549 var _json = new core.Map();
3550 if (etag != null) {
3551 _json["etag"] = etag;
3552 }
3553 if (items != null) {
3554 _json["items"] = items.map((value) => (value).toJson()).toList();
3555 }
3556 if (kind != null) {
3557 _json["kind"] = kind;
3558 }
3559 if (nextPageToken != null) {
3560 _json["nextPageToken"] = nextPageToken;
3561 }
3562 if (selfLink != null) {
3563 _json["selfLink"] = selfLink;
3564 }
3565 if (title != null) {
3566 _json["title"] = title;
3567 }
3568 if (totalItems != null) {
3569 _json["totalItems"] = totalItems;
3570 }
3571 return _json;
3572 }
3573 }
3574
3575
3576 /** Extra information about the cover photo. */
3577 class PersonCoverCoverInfo {
3578 /**
3579 * The difference between the left position of the cover image and the actual
3580 * displayed cover image. Only valid for banner layout.
3581 */
3582 core.int leftImageOffset;
3583
3584 /**
3585 * The difference between the top position of the cover image and the actual
3586 * displayed cover image. Only valid for banner layout.
3587 */
3588 core.int topImageOffset;
3589
3590
3591 PersonCoverCoverInfo();
3592
3593 PersonCoverCoverInfo.fromJson(core.Map _json) {
3594 if (_json.containsKey("leftImageOffset")) {
3595 leftImageOffset = _json["leftImageOffset"];
3596 }
3597 if (_json.containsKey("topImageOffset")) {
3598 topImageOffset = _json["topImageOffset"];
3599 }
3600 }
3601
3602 core.Map toJson() {
3603 var _json = new core.Map();
3604 if (leftImageOffset != null) {
3605 _json["leftImageOffset"] = leftImageOffset;
3606 }
3607 if (topImageOffset != null) {
3608 _json["topImageOffset"] = topImageOffset;
3609 }
3610 return _json;
3611 }
3612 }
3613
3614
3615 /** The person's primary cover image. */
3616 class PersonCoverCoverPhoto {
3617 /** The height of the image. */
3618 core.int height;
3619
3620 /** The URL of the image. */
3621 core.String url;
3622
3623 /** The width of the image. */
3624 core.int width;
3625
3626
3627 PersonCoverCoverPhoto();
3628
3629 PersonCoverCoverPhoto.fromJson(core.Map _json) {
3630 if (_json.containsKey("height")) {
3631 height = _json["height"];
3632 }
3633 if (_json.containsKey("url")) {
3634 url = _json["url"];
3635 }
3636 if (_json.containsKey("width")) {
3637 width = _json["width"];
3638 }
3639 }
3640
3641 core.Map toJson() {
3642 var _json = new core.Map();
3643 if (height != null) {
3644 _json["height"] = height;
3645 }
3646 if (url != null) {
3647 _json["url"] = url;
3648 }
3649 if (width != null) {
3650 _json["width"] = width;
3651 }
3652 return _json;
3653 }
3654 }
3655
3656
3657 /** The cover photo content. */
3658 class PersonCover {
3659 /** Extra information about the cover photo. */
3660 PersonCoverCoverInfo coverInfo;
3661
3662 /** The person's primary cover image. */
3663 PersonCoverCoverPhoto coverPhoto;
3664
3665 /**
3666 * The layout of the cover art. Possible values include, but are not limited
3667 * to, the following values:
3668 * - "banner" - One large image banner.
3669 */
3670 core.String layout;
3671
3672
3673 PersonCover();
3674
3675 PersonCover.fromJson(core.Map _json) {
3676 if (_json.containsKey("coverInfo")) {
3677 coverInfo = new PersonCoverCoverInfo.fromJson(_json["coverInfo"]);
3678 }
3679 if (_json.containsKey("coverPhoto")) {
3680 coverPhoto = new PersonCoverCoverPhoto.fromJson(_json["coverPhoto"]);
3681 }
3682 if (_json.containsKey("layout")) {
3683 layout = _json["layout"];
3684 }
3685 }
3686
3687 core.Map toJson() {
3688 var _json = new core.Map();
3689 if (coverInfo != null) {
3690 _json["coverInfo"] = (coverInfo).toJson();
3691 }
3692 if (coverPhoto != null) {
3693 _json["coverPhoto"] = (coverPhoto).toJson();
3694 }
3695 if (layout != null) {
3696 _json["layout"] = layout;
3697 }
3698 return _json;
3699 }
3700 }
3701
3702
3703 /** Not documented yet. */
3704 class PersonEmails {
3705 /**
3706 * The type of address. Possible values include, but are not limited to, the
3707 * following values:
3708 * - "account" - Google account email address.
3709 * - "home" - Home email address.
3710 * - "work" - Work email address.
3711 * - "other" - Other.
3712 */
3713 core.String type;
3714
3715 /** The email address. */
3716 core.String value;
3717
3718
3719 PersonEmails();
3720
3721 PersonEmails.fromJson(core.Map _json) {
3722 if (_json.containsKey("type")) {
3723 type = _json["type"];
3724 }
3725 if (_json.containsKey("value")) {
3726 value = _json["value"];
3727 }
3728 }
3729
3730 core.Map toJson() {
3731 var _json = new core.Map();
3732 if (type != null) {
3733 _json["type"] = type;
3734 }
3735 if (value != null) {
3736 _json["value"] = value;
3737 }
3738 return _json;
3739 }
3740 }
3741
3742
3743 /** The representation of the person's profile photo. */
3744 class PersonImage {
3745 /** Whether the person's profile photo is the default one */
3746 core.bool isDefault;
3747
3748 /**
3749 * The URL of the person's profile photo. To resize the image and crop it to a
3750 * square, append the query string ?sz=x, where x is the dimension in pixels
3751 * of each side.
3752 */
3753 core.String url;
3754
3755
3756 PersonImage();
3757
3758 PersonImage.fromJson(core.Map _json) {
3759 if (_json.containsKey("isDefault")) {
3760 isDefault = _json["isDefault"];
3761 }
3762 if (_json.containsKey("url")) {
3763 url = _json["url"];
3764 }
3765 }
3766
3767 core.Map toJson() {
3768 var _json = new core.Map();
3769 if (isDefault != null) {
3770 _json["isDefault"] = isDefault;
3771 }
3772 if (url != null) {
3773 _json["url"] = url;
3774 }
3775 return _json;
3776 }
3777 }
3778
3779
3780 /**
3781 * An object representation of the individual components of a person's name.
3782 */
3783 class PersonName {
3784 /** The family name (last name) of this person. */
3785 core.String familyName;
3786
3787 /** The full name of this person, including middle names, suffixes, etc. */
3788 core.String formatted;
3789
3790 /** The given name (first name) of this person. */
3791 core.String givenName;
3792
3793 /** The honorific prefixes (such as "Dr." or "Mrs.") for this person. */
3794 core.String honorificPrefix;
3795
3796 /** The honorific suffixes (such as "Jr.") for this person. */
3797 core.String honorificSuffix;
3798
3799 /** The middle name of this person. */
3800 core.String middleName;
3801
3802
3803 PersonName();
3804
3805 PersonName.fromJson(core.Map _json) {
3806 if (_json.containsKey("familyName")) {
3807 familyName = _json["familyName"];
3808 }
3809 if (_json.containsKey("formatted")) {
3810 formatted = _json["formatted"];
3811 }
3812 if (_json.containsKey("givenName")) {
3813 givenName = _json["givenName"];
3814 }
3815 if (_json.containsKey("honorificPrefix")) {
3816 honorificPrefix = _json["honorificPrefix"];
3817 }
3818 if (_json.containsKey("honorificSuffix")) {
3819 honorificSuffix = _json["honorificSuffix"];
3820 }
3821 if (_json.containsKey("middleName")) {
3822 middleName = _json["middleName"];
3823 }
3824 }
3825
3826 core.Map toJson() {
3827 var _json = new core.Map();
3828 if (familyName != null) {
3829 _json["familyName"] = familyName;
3830 }
3831 if (formatted != null) {
3832 _json["formatted"] = formatted;
3833 }
3834 if (givenName != null) {
3835 _json["givenName"] = givenName;
3836 }
3837 if (honorificPrefix != null) {
3838 _json["honorificPrefix"] = honorificPrefix;
3839 }
3840 if (honorificSuffix != null) {
3841 _json["honorificSuffix"] = honorificSuffix;
3842 }
3843 if (middleName != null) {
3844 _json["middleName"] = middleName;
3845 }
3846 return _json;
3847 }
3848 }
3849
3850
3851 /** Not documented yet. */
3852 class PersonOrganizations {
3853 /** The department within the organization. Deprecated. */
3854 core.String department;
3855
3856 /**
3857 * A short description of the person's role in this organization. Deprecated.
3858 */
3859 core.String description;
3860
3861 /** The date that the person left this organization. */
3862 core.String endDate;
3863
3864 /** The location of this organization. Deprecated. */
3865 core.String location;
3866
3867 /** The name of the organization. */
3868 core.String name;
3869
3870 /**
3871 * If "true", indicates this organization is the person's primary one, which
3872 * is typically interpreted as the current one.
3873 */
3874 core.bool primary;
3875
3876 /** The date that the person joined this organization. */
3877 core.String startDate;
3878
3879 /** The person's job title or role within the organization. */
3880 core.String title;
3881
3882 /**
3883 * The type of organization. Possible values include, but are not limited to,
3884 * the following values:
3885 * - "work" - Work.
3886 * - "school" - School.
3887 */
3888 core.String type;
3889
3890
3891 PersonOrganizations();
3892
3893 PersonOrganizations.fromJson(core.Map _json) {
3894 if (_json.containsKey("department")) {
3895 department = _json["department"];
3896 }
3897 if (_json.containsKey("description")) {
3898 description = _json["description"];
3899 }
3900 if (_json.containsKey("endDate")) {
3901 endDate = _json["endDate"];
3902 }
3903 if (_json.containsKey("location")) {
3904 location = _json["location"];
3905 }
3906 if (_json.containsKey("name")) {
3907 name = _json["name"];
3908 }
3909 if (_json.containsKey("primary")) {
3910 primary = _json["primary"];
3911 }
3912 if (_json.containsKey("startDate")) {
3913 startDate = _json["startDate"];
3914 }
3915 if (_json.containsKey("title")) {
3916 title = _json["title"];
3917 }
3918 if (_json.containsKey("type")) {
3919 type = _json["type"];
3920 }
3921 }
3922
3923 core.Map toJson() {
3924 var _json = new core.Map();
3925 if (department != null) {
3926 _json["department"] = department;
3927 }
3928 if (description != null) {
3929 _json["description"] = description;
3930 }
3931 if (endDate != null) {
3932 _json["endDate"] = endDate;
3933 }
3934 if (location != null) {
3935 _json["location"] = location;
3936 }
3937 if (name != null) {
3938 _json["name"] = name;
3939 }
3940 if (primary != null) {
3941 _json["primary"] = primary;
3942 }
3943 if (startDate != null) {
3944 _json["startDate"] = startDate;
3945 }
3946 if (title != null) {
3947 _json["title"] = title;
3948 }
3949 if (type != null) {
3950 _json["type"] = type;
3951 }
3952 return _json;
3953 }
3954 }
3955
3956
3957 /** Not documented yet. */
3958 class PersonPlacesLived {
3959 /** If "true", this place of residence is this person's primary residence. */
3960 core.bool primary;
3961
3962 /**
3963 * A place where this person has lived. For example: "Seattle, WA", "Near
3964 * Toronto".
3965 */
3966 core.String value;
3967
3968
3969 PersonPlacesLived();
3970
3971 PersonPlacesLived.fromJson(core.Map _json) {
3972 if (_json.containsKey("primary")) {
3973 primary = _json["primary"];
3974 }
3975 if (_json.containsKey("value")) {
3976 value = _json["value"];
3977 }
3978 }
3979
3980 core.Map toJson() {
3981 var _json = new core.Map();
3982 if (primary != null) {
3983 _json["primary"] = primary;
3984 }
3985 if (value != null) {
3986 _json["value"] = value;
3987 }
3988 return _json;
3989 }
3990 }
3991
3992
3993 /** Not documented yet. */
3994 class PersonUrls {
3995 /** The label of the URL. */
3996 core.String label;
3997
3998 /**
3999 * The type of URL. Possible values include, but are not limited to, the
4000 * following values:
4001 * - "otherProfile" - URL for another profile.
4002 * - "contributor" - URL to a site for which this person is a contributor.
4003 * - "website" - URL for this Google+ Page's primary website.
4004 * - "other" - Other URL.
4005 */
4006 core.String type;
4007
4008 /** The URL value. */
4009 core.String value;
4010
4011
4012 PersonUrls();
4013
4014 PersonUrls.fromJson(core.Map _json) {
4015 if (_json.containsKey("label")) {
4016 label = _json["label"];
4017 }
4018 if (_json.containsKey("type")) {
4019 type = _json["type"];
4020 }
4021 if (_json.containsKey("value")) {
4022 value = _json["value"];
4023 }
4024 }
4025
4026 core.Map toJson() {
4027 var _json = new core.Map();
4028 if (label != null) {
4029 _json["label"] = label;
4030 }
4031 if (type != null) {
4032 _json["type"] = type;
4033 }
4034 if (value != null) {
4035 _json["value"] = value;
4036 }
4037 return _json;
4038 }
4039 }
4040
4041
4042 /** Not documented yet. */
4043 class Person {
4044 /** A short biography for this person. */
4045 core.String aboutMe;
4046
4047 /** The person's date of birth, represented as YYYY-MM-DD. */
4048 core.String birthday;
4049
4050 /** The "bragging rights" line of this person. */
4051 core.String braggingRights;
4052
4053 /**
4054 * For followers who are visible, the number of people who have added this
4055 * person or page to a circle.
4056 */
4057 core.int circledByCount;
4058
4059 /** The cover photo content. */
4060 PersonCover cover;
4061
4062 /** (this field is not currently used) */
4063 core.String currentLocation;
4064
4065 /** The name of this person, which is suitable for display. */
4066 core.String displayName;
4067
4068 /**
4069 * The hosted domain name for the user's Google Apps account. For instance,
4070 * example.com. The plus.profile.emails.read or email scope is needed to get
4071 * this domain name.
4072 */
4073 core.String domain;
4074
4075 /**
4076 * A list of email addresses that this person has, including their Google
4077 * account email address, and the public verified email addresses on their
4078 * Google+ profile. The plus.profile.emails.read scope is needed to retrieve
4079 * these email addresses, or the email scope can be used to retrieve just the
4080 * Google account email address.
4081 */
4082 core.List<PersonEmails> emails;
4083
4084 /** ETag of this response for caching purposes. */
4085 core.String etag;
4086
4087 /**
4088 * The person's gender. Possible values include, but are not limited to, the
4089 * following values:
4090 * - "male" - Male gender.
4091 * - "female" - Female gender.
4092 * - "other" - Other.
4093 */
4094 core.String gender;
4095
4096 /** The ID of this person. */
4097 core.String id;
4098
4099 /** The representation of the person's profile photo. */
4100 PersonImage image;
4101
4102 /** Whether this user has signed up for Google+. */
4103 core.bool isPlusUser;
4104
4105 /** Identifies this resource as a person. Value: "plus#person". */
4106 core.String kind;
4107
4108 /**
4109 * An object representation of the individual components of a person's name.
4110 */
4111 PersonName name;
4112
4113 /** The nickname of this person. */
4114 core.String nickname;
4115
4116 /**
4117 * Type of person within Google+. Possible values include, but are not limited
4118 * to, the following values:
4119 * - "person" - represents an actual person.
4120 * - "page" - represents a page.
4121 */
4122 core.String objectType;
4123
4124 /** The occupation of this person. */
4125 core.String occupation;
4126
4127 /**
4128 * A list of current or past organizations with which this person is
4129 * associated.
4130 */
4131 core.List<PersonOrganizations> organizations;
4132
4133 /** A list of places where this person has lived. */
4134 core.List<PersonPlacesLived> placesLived;
4135
4136 /** If a Google+ Page, the number of people who have +1'd this page. */
4137 core.int plusOneCount;
4138
4139 /**
4140 * The person's relationship status. Possible values include, but are not
4141 * limited to, the following values:
4142 * - "single" - Person is single.
4143 * - "in_a_relationship" - Person is in a relationship.
4144 * - "engaged" - Person is engaged.
4145 * - "married" - Person is married.
4146 * - "its_complicated" - The relationship is complicated.
4147 * - "open_relationship" - Person is in an open relationship.
4148 * - "widowed" - Person is widowed.
4149 * - "in_domestic_partnership" - Person is in a domestic partnership.
4150 * - "in_civil_union" - Person is in a civil union.
4151 */
4152 core.String relationshipStatus;
4153
4154 /** The person's skills. */
4155 core.String skills;
4156
4157 /** The brief description (tagline) of this person. */
4158 core.String tagline;
4159
4160 /** The URL of this person's profile. */
4161 core.String url;
4162
4163 /** A list of URLs for this person. */
4164 core.List<PersonUrls> urls;
4165
4166 /** Whether the person or Google+ Page has been verified. */
4167 core.bool verified;
4168
4169
4170 Person();
4171
4172 Person.fromJson(core.Map _json) {
4173 if (_json.containsKey("aboutMe")) {
4174 aboutMe = _json["aboutMe"];
4175 }
4176 if (_json.containsKey("birthday")) {
4177 birthday = _json["birthday"];
4178 }
4179 if (_json.containsKey("braggingRights")) {
4180 braggingRights = _json["braggingRights"];
4181 }
4182 if (_json.containsKey("circledByCount")) {
4183 circledByCount = _json["circledByCount"];
4184 }
4185 if (_json.containsKey("cover")) {
4186 cover = new PersonCover.fromJson(_json["cover"]);
4187 }
4188 if (_json.containsKey("currentLocation")) {
4189 currentLocation = _json["currentLocation"];
4190 }
4191 if (_json.containsKey("displayName")) {
4192 displayName = _json["displayName"];
4193 }
4194 if (_json.containsKey("domain")) {
4195 domain = _json["domain"];
4196 }
4197 if (_json.containsKey("emails")) {
4198 emails = _json["emails"].map((value) => new PersonEmails.fromJson(value)). toList();
4199 }
4200 if (_json.containsKey("etag")) {
4201 etag = _json["etag"];
4202 }
4203 if (_json.containsKey("gender")) {
4204 gender = _json["gender"];
4205 }
4206 if (_json.containsKey("id")) {
4207 id = _json["id"];
4208 }
4209 if (_json.containsKey("image")) {
4210 image = new PersonImage.fromJson(_json["image"]);
4211 }
4212 if (_json.containsKey("isPlusUser")) {
4213 isPlusUser = _json["isPlusUser"];
4214 }
4215 if (_json.containsKey("kind")) {
4216 kind = _json["kind"];
4217 }
4218 if (_json.containsKey("name")) {
4219 name = new PersonName.fromJson(_json["name"]);
4220 }
4221 if (_json.containsKey("nickname")) {
4222 nickname = _json["nickname"];
4223 }
4224 if (_json.containsKey("objectType")) {
4225 objectType = _json["objectType"];
4226 }
4227 if (_json.containsKey("occupation")) {
4228 occupation = _json["occupation"];
4229 }
4230 if (_json.containsKey("organizations")) {
4231 organizations = _json["organizations"].map((value) => new PersonOrganizati ons.fromJson(value)).toList();
4232 }
4233 if (_json.containsKey("placesLived")) {
4234 placesLived = _json["placesLived"].map((value) => new PersonPlacesLived.fr omJson(value)).toList();
4235 }
4236 if (_json.containsKey("plusOneCount")) {
4237 plusOneCount = _json["plusOneCount"];
4238 }
4239 if (_json.containsKey("relationshipStatus")) {
4240 relationshipStatus = _json["relationshipStatus"];
4241 }
4242 if (_json.containsKey("skills")) {
4243 skills = _json["skills"];
4244 }
4245 if (_json.containsKey("tagline")) {
4246 tagline = _json["tagline"];
4247 }
4248 if (_json.containsKey("url")) {
4249 url = _json["url"];
4250 }
4251 if (_json.containsKey("urls")) {
4252 urls = _json["urls"].map((value) => new PersonUrls.fromJson(value)).toList ();
4253 }
4254 if (_json.containsKey("verified")) {
4255 verified = _json["verified"];
4256 }
4257 }
4258
4259 core.Map toJson() {
4260 var _json = new core.Map();
4261 if (aboutMe != null) {
4262 _json["aboutMe"] = aboutMe;
4263 }
4264 if (birthday != null) {
4265 _json["birthday"] = birthday;
4266 }
4267 if (braggingRights != null) {
4268 _json["braggingRights"] = braggingRights;
4269 }
4270 if (circledByCount != null) {
4271 _json["circledByCount"] = circledByCount;
4272 }
4273 if (cover != null) {
4274 _json["cover"] = (cover).toJson();
4275 }
4276 if (currentLocation != null) {
4277 _json["currentLocation"] = currentLocation;
4278 }
4279 if (displayName != null) {
4280 _json["displayName"] = displayName;
4281 }
4282 if (domain != null) {
4283 _json["domain"] = domain;
4284 }
4285 if (emails != null) {
4286 _json["emails"] = emails.map((value) => (value).toJson()).toList();
4287 }
4288 if (etag != null) {
4289 _json["etag"] = etag;
4290 }
4291 if (gender != null) {
4292 _json["gender"] = gender;
4293 }
4294 if (id != null) {
4295 _json["id"] = id;
4296 }
4297 if (image != null) {
4298 _json["image"] = (image).toJson();
4299 }
4300 if (isPlusUser != null) {
4301 _json["isPlusUser"] = isPlusUser;
4302 }
4303 if (kind != null) {
4304 _json["kind"] = kind;
4305 }
4306 if (name != null) {
4307 _json["name"] = (name).toJson();
4308 }
4309 if (nickname != null) {
4310 _json["nickname"] = nickname;
4311 }
4312 if (objectType != null) {
4313 _json["objectType"] = objectType;
4314 }
4315 if (occupation != null) {
4316 _json["occupation"] = occupation;
4317 }
4318 if (organizations != null) {
4319 _json["organizations"] = organizations.map((value) => (value).toJson()).to List();
4320 }
4321 if (placesLived != null) {
4322 _json["placesLived"] = placesLived.map((value) => (value).toJson()).toList ();
4323 }
4324 if (plusOneCount != null) {
4325 _json["plusOneCount"] = plusOneCount;
4326 }
4327 if (relationshipStatus != null) {
4328 _json["relationshipStatus"] = relationshipStatus;
4329 }
4330 if (skills != null) {
4331 _json["skills"] = skills;
4332 }
4333 if (tagline != null) {
4334 _json["tagline"] = tagline;
4335 }
4336 if (url != null) {
4337 _json["url"] = url;
4338 }
4339 if (urls != null) {
4340 _json["urls"] = urls.map((value) => (value).toJson()).toList();
4341 }
4342 if (verified != null) {
4343 _json["verified"] = verified;
4344 }
4345 return _json;
4346 }
4347 }
4348
4349
4350 /** The physical address of the place. */
4351 class PlaceAddress {
4352 /** The formatted address for display. */
4353 core.String formatted;
4354
4355
4356 PlaceAddress();
4357
4358 PlaceAddress.fromJson(core.Map _json) {
4359 if (_json.containsKey("formatted")) {
4360 formatted = _json["formatted"];
4361 }
4362 }
4363
4364 core.Map toJson() {
4365 var _json = new core.Map();
4366 if (formatted != null) {
4367 _json["formatted"] = formatted;
4368 }
4369 return _json;
4370 }
4371 }
4372
4373
4374 /** The position of the place. */
4375 class PlacePosition {
4376 /** The latitude of this position. */
4377 core.double latitude;
4378
4379 /** The longitude of this position. */
4380 core.double longitude;
4381
4382
4383 PlacePosition();
4384
4385 PlacePosition.fromJson(core.Map _json) {
4386 if (_json.containsKey("latitude")) {
4387 latitude = _json["latitude"];
4388 }
4389 if (_json.containsKey("longitude")) {
4390 longitude = _json["longitude"];
4391 }
4392 }
4393
4394 core.Map toJson() {
4395 var _json = new core.Map();
4396 if (latitude != null) {
4397 _json["latitude"] = latitude;
4398 }
4399 if (longitude != null) {
4400 _json["longitude"] = longitude;
4401 }
4402 return _json;
4403 }
4404 }
4405
4406
4407 /** Not documented yet. */
4408 class Place {
4409 /** The physical address of the place. */
4410 PlaceAddress address;
4411
4412 /** The display name of the place. */
4413 core.String displayName;
4414
4415 /** The id of the place. */
4416 core.String id;
4417
4418 /** Identifies this resource as a place. Value: "plus#place". */
4419 core.String kind;
4420
4421 /** The position of the place. */
4422 PlacePosition position;
4423
4424
4425 Place();
4426
4427 Place.fromJson(core.Map _json) {
4428 if (_json.containsKey("address")) {
4429 address = new PlaceAddress.fromJson(_json["address"]);
4430 }
4431 if (_json.containsKey("displayName")) {
4432 displayName = _json["displayName"];
4433 }
4434 if (_json.containsKey("id")) {
4435 id = _json["id"];
4436 }
4437 if (_json.containsKey("kind")) {
4438 kind = _json["kind"];
4439 }
4440 if (_json.containsKey("position")) {
4441 position = new PlacePosition.fromJson(_json["position"]);
4442 }
4443 }
4444
4445 core.Map toJson() {
4446 var _json = new core.Map();
4447 if (address != null) {
4448 _json["address"] = (address).toJson();
4449 }
4450 if (displayName != null) {
4451 _json["displayName"] = displayName;
4452 }
4453 if (id != null) {
4454 _json["id"] = id;
4455 }
4456 if (kind != null) {
4457 _json["kind"] = kind;
4458 }
4459 if (position != null) {
4460 _json["position"] = (position).toJson();
4461 }
4462 return _json;
4463 }
4464 }
4465
4466
4467 /** Not documented yet. */
4468 class PlusDomainsAclentryResource {
4469 /** A descriptive name for this entry. Suitable for display. */
4470 core.String displayName;
4471
4472 /**
4473 * The ID of the entry. For entries of type "person" or "circle", this is the
4474 * ID of the resource. For other types, this property is not set.
4475 */
4476 core.String id;
4477
4478 /**
4479 * The type of entry describing to whom access is granted. Possible values
4480 * are:
4481 * - "person" - Access to an individual.
4482 * - "circle" - Access to members of a circle.
4483 * - "myCircles" - Access to members of all the person's circles.
4484 * - "extendedCircles" - Access to members of all the person's circles, plus
4485 * all of the people in their circles.
4486 * - "domain" - Access to members of the person's Google Apps domain.
4487 * - "public" - Access to anyone on the web.
4488 */
4489 core.String type;
4490
4491
4492 PlusDomainsAclentryResource();
4493
4494 PlusDomainsAclentryResource.fromJson(core.Map _json) {
4495 if (_json.containsKey("displayName")) {
4496 displayName = _json["displayName"];
4497 }
4498 if (_json.containsKey("id")) {
4499 id = _json["id"];
4500 }
4501 if (_json.containsKey("type")) {
4502 type = _json["type"];
4503 }
4504 }
4505
4506 core.Map toJson() {
4507 var _json = new core.Map();
4508 if (displayName != null) {
4509 _json["displayName"] = displayName;
4510 }
4511 if (id != null) {
4512 _json["id"] = id;
4513 }
4514 if (type != null) {
4515 _json["type"] = type;
4516 }
4517 return _json;
4518 }
4519 }
4520
4521
4522 /** Not documented yet. */
4523 class Videostream {
4524 /** The height, in pixels, of the video resource. */
4525 core.int height;
4526
4527 /** MIME type of the video stream. */
4528 core.String type;
4529
4530 /** URL of the video stream. */
4531 core.String url;
4532
4533 /** The width, in pixels, of the video resource. */
4534 core.int width;
4535
4536
4537 Videostream();
4538
4539 Videostream.fromJson(core.Map _json) {
4540 if (_json.containsKey("height")) {
4541 height = _json["height"];
4542 }
4543 if (_json.containsKey("type")) {
4544 type = _json["type"];
4545 }
4546 if (_json.containsKey("url")) {
4547 url = _json["url"];
4548 }
4549 if (_json.containsKey("width")) {
4550 width = _json["width"];
4551 }
4552 }
4553
4554 core.Map toJson() {
4555 var _json = new core.Map();
4556 if (height != null) {
4557 _json["height"] = height;
4558 }
4559 if (type != null) {
4560 _json["type"] = type;
4561 }
4562 if (url != null) {
4563 _json["url"] = url;
4564 }
4565 if (width != null) {
4566 _json["width"] = width;
4567 }
4568 return _json;
4569 }
4570 }
4571
4572
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698