OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.youtube.v3; | 3 library googleapis.youtube.v3; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 3720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3731 | 3731 |
3732 /** | 3732 /** |
3733 * Deletes a playlist item. | 3733 * Deletes a playlist item. |
3734 * | 3734 * |
3735 * Request parameters: | 3735 * Request parameters: |
3736 * | 3736 * |
3737 * [id] - The id parameter specifies the YouTube playlist item ID for the | 3737 * [id] - The id parameter specifies the YouTube playlist item ID for the |
3738 * playlist item that is being deleted. In a playlistItem resource, the id | 3738 * playlist item that is being deleted. In a playlistItem resource, the id |
3739 * property specifies the playlist item's ID. | 3739 * property specifies the playlist item's ID. |
3740 * | 3740 * |
| 3741 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
| 3742 * YouTube content partners. |
| 3743 * |
| 3744 * The onBehalfOfContentOwner parameter indicates that the request's |
| 3745 * authorization credentials identify a YouTube CMS user who is acting on |
| 3746 * behalf of the content owner specified in the parameter value. This |
| 3747 * parameter is intended for YouTube content partners that own and manage many |
| 3748 * different YouTube channels. It allows content owners to authenticate once |
| 3749 * and get access to all their video and channel data, without having to |
| 3750 * provide authentication credentials for each individual channel. The CMS |
| 3751 * account that the user authenticates with must be linked to the specified |
| 3752 * YouTube content owner. |
| 3753 * |
3741 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3754 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3742 * error. | 3755 * error. |
3743 * | 3756 * |
3744 * If the used [http.Client] completes with an error when making a REST call, | 3757 * If the used [http.Client] completes with an error when making a REST call, |
3745 * this method will complete with the same error. | 3758 * this method will complete with the same error. |
3746 */ | 3759 */ |
3747 async.Future delete(core.String id) { | 3760 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { |
3748 var _url = null; | 3761 var _url = null; |
3749 var _queryParams = new core.Map(); | 3762 var _queryParams = new core.Map(); |
3750 var _uploadMedia = null; | 3763 var _uploadMedia = null; |
3751 var _uploadOptions = null; | 3764 var _uploadOptions = null; |
3752 var _downloadOptions = commons.DownloadOptions.Metadata; | 3765 var _downloadOptions = commons.DownloadOptions.Metadata; |
3753 var _body = null; | 3766 var _body = null; |
3754 | 3767 |
3755 if (id == null) { | 3768 if (id == null) { |
3756 throw new core.ArgumentError("Parameter id is required."); | 3769 throw new core.ArgumentError("Parameter id is required."); |
3757 } | 3770 } |
3758 _queryParams["id"] = [id]; | 3771 _queryParams["id"] = [id]; |
| 3772 if (onBehalfOfContentOwner != null) { |
| 3773 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 3774 } |
3759 | 3775 |
3760 _downloadOptions = null; | 3776 _downloadOptions = null; |
3761 | 3777 |
3762 _url = 'playlistItems'; | 3778 _url = 'playlistItems'; |
3763 | 3779 |
3764 var _response = _requester.request(_url, | 3780 var _response = _requester.request(_url, |
3765 "DELETE", | 3781 "DELETE", |
3766 body: _body, | 3782 body: _body, |
3767 queryParams: _queryParams, | 3783 queryParams: _queryParams, |
3768 uploadOptions: _uploadOptions, | 3784 uploadOptions: _uploadOptions, |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3951 * mutable properties that are contained in any parts that the parameter value | 3967 * mutable properties that are contained in any parts that the parameter value |
3952 * specifies. For example, a playlist item can specify a start time and end | 3968 * specifies. For example, a playlist item can specify a start time and end |
3953 * time, which identify the times portion of the video that should play when | 3969 * time, which identify the times portion of the video that should play when |
3954 * users watch the video in the playlist. If your request is updating a | 3970 * users watch the video in the playlist. If your request is updating a |
3955 * playlist item that sets these values, and the request's part parameter | 3971 * playlist item that sets these values, and the request's part parameter |
3956 * value includes the contentDetails part, the playlist item's start and end | 3972 * value includes the contentDetails part, the playlist item's start and end |
3957 * times will be updated to whatever value the request body specifies. If the | 3973 * times will be updated to whatever value the request body specifies. If the |
3958 * request body does not specify values, the existing start and end times will | 3974 * request body does not specify values, the existing start and end times will |
3959 * be removed and replaced with the default settings. | 3975 * be removed and replaced with the default settings. |
3960 * | 3976 * |
| 3977 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
| 3978 * YouTube content partners. |
| 3979 * |
| 3980 * The onBehalfOfContentOwner parameter indicates that the request's |
| 3981 * authorization credentials identify a YouTube CMS user who is acting on |
| 3982 * behalf of the content owner specified in the parameter value. This |
| 3983 * parameter is intended for YouTube content partners that own and manage many |
| 3984 * different YouTube channels. It allows content owners to authenticate once |
| 3985 * and get access to all their video and channel data, without having to |
| 3986 * provide authentication credentials for each individual channel. The CMS |
| 3987 * account that the user authenticates with must be linked to the specified |
| 3988 * YouTube content owner. |
| 3989 * |
3961 * Completes with a [PlaylistItem]. | 3990 * Completes with a [PlaylistItem]. |
3962 * | 3991 * |
3963 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3992 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
3964 * error. | 3993 * error. |
3965 * | 3994 * |
3966 * If the used [http.Client] completes with an error when making a REST call, | 3995 * If the used [http.Client] completes with an error when making a REST call, |
3967 * this method will complete with the same error. | 3996 * this method will complete with the same error. |
3968 */ | 3997 */ |
3969 async.Future<PlaylistItem> update(PlaylistItem request, core.String part) { | 3998 async.Future<PlaylistItem> update(PlaylistItem request, core.String part, {cor
e.String onBehalfOfContentOwner}) { |
3970 var _url = null; | 3999 var _url = null; |
3971 var _queryParams = new core.Map(); | 4000 var _queryParams = new core.Map(); |
3972 var _uploadMedia = null; | 4001 var _uploadMedia = null; |
3973 var _uploadOptions = null; | 4002 var _uploadOptions = null; |
3974 var _downloadOptions = commons.DownloadOptions.Metadata; | 4003 var _downloadOptions = commons.DownloadOptions.Metadata; |
3975 var _body = null; | 4004 var _body = null; |
3976 | 4005 |
3977 if (request != null) { | 4006 if (request != null) { |
3978 _body = convert.JSON.encode((request).toJson()); | 4007 _body = convert.JSON.encode((request).toJson()); |
3979 } | 4008 } |
3980 if (part == null) { | 4009 if (part == null) { |
3981 throw new core.ArgumentError("Parameter part is required."); | 4010 throw new core.ArgumentError("Parameter part is required."); |
3982 } | 4011 } |
3983 _queryParams["part"] = [part]; | 4012 _queryParams["part"] = [part]; |
| 4013 if (onBehalfOfContentOwner != null) { |
| 4014 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 4015 } |
3984 | 4016 |
3985 _url = 'playlistItems'; | 4017 _url = 'playlistItems'; |
3986 | 4018 |
3987 var _response = _requester.request(_url, | 4019 var _response = _requester.request(_url, |
3988 "PUT", | 4020 "PUT", |
3989 body: _body, | 4021 body: _body, |
3990 queryParams: _queryParams, | 4022 queryParams: _queryParams, |
3991 uploadOptions: _uploadOptions, | 4023 uploadOptions: _uploadOptions, |
3992 uploadMedia: _uploadMedia, | 4024 uploadMedia: _uploadMedia, |
3993 downloadOptions: _downloadOptions); | 4025 downloadOptions: _downloadOptions); |
(...skipping 1543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5537 * resource's snippet.localized object will contain the localized values. | 5569 * resource's snippet.localized object will contain the localized values. |
5538 * However, if localized details are not available, the snippet.localized | 5570 * However, if localized details are not available, the snippet.localized |
5539 * object will contain resource details in the resource's default language. | 5571 * object will contain resource details in the resource's default language. |
5540 * | 5572 * |
5541 * [id] - The id parameter specifies a comma-separated list of the YouTube | 5573 * [id] - The id parameter specifies a comma-separated list of the YouTube |
5542 * video ID(s) for the resource(s) that are being retrieved. In a video | 5574 * video ID(s) for the resource(s) that are being retrieved. In a video |
5543 * resource, the id property specifies the video's ID. | 5575 * resource, the id property specifies the video's ID. |
5544 * | 5576 * |
5545 * [locale] - DEPRECATED | 5577 * [locale] - DEPRECATED |
5546 * | 5578 * |
| 5579 * [maxHeight] - The maxHeight parameter specifies a maximum height of the |
| 5580 * embedded player. If maxWidth is provided, maxHeight may not be reached in |
| 5581 * order to not violate the width request. |
| 5582 * Value must be between "72" and "8192". |
| 5583 * |
5547 * [maxResults] - The maxResults parameter specifies the maximum number of | 5584 * [maxResults] - The maxResults parameter specifies the maximum number of |
5548 * items that should be returned in the result set. | 5585 * items that should be returned in the result set. |
5549 * | 5586 * |
5550 * Note: This parameter is supported for use in conjunction with the myRating | 5587 * Note: This parameter is supported for use in conjunction with the myRating |
5551 * parameter, but it is not supported for use in conjunction with the id | 5588 * parameter, but it is not supported for use in conjunction with the id |
5552 * parameter. | 5589 * parameter. |
5553 * Value must be between "1" and "50". | 5590 * Value must be between "1" and "50". |
5554 * | 5591 * |
| 5592 * [maxWidth] - The maxWidth parameter specifies a maximum width of the |
| 5593 * embedded player. If maxHeight is provided, maxWidth may not be reached in |
| 5594 * order to not violate the height request. |
| 5595 * Value must be between "72" and "8192". |
| 5596 * |
5555 * [myRating] - Set this parameter's value to like or dislike to instruct the | 5597 * [myRating] - Set this parameter's value to like or dislike to instruct the |
5556 * API to only return videos liked or disliked by the authenticated user. | 5598 * API to only return videos liked or disliked by the authenticated user. |
5557 * Possible string values are: | 5599 * Possible string values are: |
5558 * - "dislike" : Returns only videos disliked by the authenticated user. | 5600 * - "dislike" : Returns only videos disliked by the authenticated user. |
5559 * - "like" : Returns only video liked by the authenticated user. | 5601 * - "like" : Returns only video liked by the authenticated user. |
5560 * | 5602 * |
5561 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5603 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
5562 * YouTube content partners. | 5604 * YouTube content partners. |
5563 * | 5605 * |
5564 * The onBehalfOfContentOwner parameter indicates that the request's | 5606 * The onBehalfOfContentOwner parameter indicates that the request's |
(...skipping 25 matching lines...) Expand all Loading... |
5590 * restricted to a particular category. | 5632 * restricted to a particular category. |
5591 * | 5633 * |
5592 * Completes with a [VideoListResponse]. | 5634 * Completes with a [VideoListResponse]. |
5593 * | 5635 * |
5594 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5636 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
5595 * error. | 5637 * error. |
5596 * | 5638 * |
5597 * If the used [http.Client] completes with an error when making a REST call, | 5639 * If the used [http.Client] completes with an error when making a REST call, |
5598 * this method will complete with the same error. | 5640 * this method will complete with the same error. |
5599 */ | 5641 */ |
5600 async.Future<VideoListResponse> list(core.String part, {core.String chart, cor
e.String hl, core.String id, core.String locale, core.int maxResults, core.Strin
g myRating, core.String onBehalfOfContentOwner, core.String pageToken, core.Stri
ng regionCode, core.String videoCategoryId}) { | 5642 async.Future<VideoListResponse> list(core.String part, {core.String chart, cor
e.String hl, core.String id, core.String locale, core.int maxHeight, core.int ma
xResults, core.int maxWidth, core.String myRating, core.String onBehalfOfContent
Owner, core.String pageToken, core.String regionCode, core.String videoCategoryI
d}) { |
5601 var _url = null; | 5643 var _url = null; |
5602 var _queryParams = new core.Map(); | 5644 var _queryParams = new core.Map(); |
5603 var _uploadMedia = null; | 5645 var _uploadMedia = null; |
5604 var _uploadOptions = null; | 5646 var _uploadOptions = null; |
5605 var _downloadOptions = commons.DownloadOptions.Metadata; | 5647 var _downloadOptions = commons.DownloadOptions.Metadata; |
5606 var _body = null; | 5648 var _body = null; |
5607 | 5649 |
5608 if (part == null) { | 5650 if (part == null) { |
5609 throw new core.ArgumentError("Parameter part is required."); | 5651 throw new core.ArgumentError("Parameter part is required."); |
5610 } | 5652 } |
5611 _queryParams["part"] = [part]; | 5653 _queryParams["part"] = [part]; |
5612 if (chart != null) { | 5654 if (chart != null) { |
5613 _queryParams["chart"] = [chart]; | 5655 _queryParams["chart"] = [chart]; |
5614 } | 5656 } |
5615 if (hl != null) { | 5657 if (hl != null) { |
5616 _queryParams["hl"] = [hl]; | 5658 _queryParams["hl"] = [hl]; |
5617 } | 5659 } |
5618 if (id != null) { | 5660 if (id != null) { |
5619 _queryParams["id"] = [id]; | 5661 _queryParams["id"] = [id]; |
5620 } | 5662 } |
5621 if (locale != null) { | 5663 if (locale != null) { |
5622 _queryParams["locale"] = [locale]; | 5664 _queryParams["locale"] = [locale]; |
5623 } | 5665 } |
| 5666 if (maxHeight != null) { |
| 5667 _queryParams["maxHeight"] = ["${maxHeight}"]; |
| 5668 } |
5624 if (maxResults != null) { | 5669 if (maxResults != null) { |
5625 _queryParams["maxResults"] = ["${maxResults}"]; | 5670 _queryParams["maxResults"] = ["${maxResults}"]; |
5626 } | 5671 } |
| 5672 if (maxWidth != null) { |
| 5673 _queryParams["maxWidth"] = ["${maxWidth}"]; |
| 5674 } |
5627 if (myRating != null) { | 5675 if (myRating != null) { |
5628 _queryParams["myRating"] = [myRating]; | 5676 _queryParams["myRating"] = [myRating]; |
5629 } | 5677 } |
5630 if (onBehalfOfContentOwner != null) { | 5678 if (onBehalfOfContentOwner != null) { |
5631 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5679 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
5632 } | 5680 } |
5633 if (pageToken != null) { | 5681 if (pageToken != null) { |
5634 _queryParams["pageToken"] = [pageToken]; | 5682 _queryParams["pageToken"] = [pageToken]; |
5635 } | 5683 } |
5636 if (regionCode != null) { | 5684 if (regionCode != null) { |
(...skipping 1984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7621 } | 7669 } |
7622 if (watchLater != null) { | 7670 if (watchLater != null) { |
7623 _json["watchLater"] = watchLater; | 7671 _json["watchLater"] = watchLater; |
7624 } | 7672 } |
7625 return _json; | 7673 return _json; |
7626 } | 7674 } |
7627 } | 7675 } |
7628 | 7676 |
7629 /** Details about the content of a channel. */ | 7677 /** Details about the content of a channel. */ |
7630 class ChannelContentDetails { | 7678 class ChannelContentDetails { |
7631 /** | |
7632 * The googlePlusUserId object identifies the Google+ profile ID associated | |
7633 * with this channel. | |
7634 */ | |
7635 core.String googlePlusUserId; | |
7636 ChannelContentDetailsRelatedPlaylists relatedPlaylists; | 7679 ChannelContentDetailsRelatedPlaylists relatedPlaylists; |
7637 | 7680 |
7638 ChannelContentDetails(); | 7681 ChannelContentDetails(); |
7639 | 7682 |
7640 ChannelContentDetails.fromJson(core.Map _json) { | 7683 ChannelContentDetails.fromJson(core.Map _json) { |
7641 if (_json.containsKey("googlePlusUserId")) { | |
7642 googlePlusUserId = _json["googlePlusUserId"]; | |
7643 } | |
7644 if (_json.containsKey("relatedPlaylists")) { | 7684 if (_json.containsKey("relatedPlaylists")) { |
7645 relatedPlaylists = new ChannelContentDetailsRelatedPlaylists.fromJson(_jso
n["relatedPlaylists"]); | 7685 relatedPlaylists = new ChannelContentDetailsRelatedPlaylists.fromJson(_jso
n["relatedPlaylists"]); |
7646 } | 7686 } |
7647 } | 7687 } |
7648 | 7688 |
7649 core.Map toJson() { | 7689 core.Map toJson() { |
7650 var _json = new core.Map(); | 7690 var _json = new core.Map(); |
7651 if (googlePlusUserId != null) { | |
7652 _json["googlePlusUserId"] = googlePlusUserId; | |
7653 } | |
7654 if (relatedPlaylists != null) { | 7691 if (relatedPlaylists != null) { |
7655 _json["relatedPlaylists"] = (relatedPlaylists).toJson(); | 7692 _json["relatedPlaylists"] = (relatedPlaylists).toJson(); |
7656 } | 7693 } |
7657 return _json; | 7694 return _json; |
7658 } | 7695 } |
7659 } | 7696 } |
7660 | 7697 |
7661 /** | 7698 /** |
7662 * The contentOwnerDetails object encapsulates channel data that is relevant for | 7699 * The contentOwnerDetails object encapsulates channel data that is relevant for |
7663 * YouTube Partners linked with the channel. | 7700 * YouTube Partners linked with the channel. |
(...skipping 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8762 * The id of the author's YouTube channel, if any. | 8799 * The id of the author's YouTube channel, if any. |
8763 * | 8800 * |
8764 * The values for Object must be JSON objects. It can consist of `num`, | 8801 * The values for Object must be JSON objects. It can consist of `num`, |
8765 * `String`, `bool` and `null` as well as `Map` and `List` values. | 8802 * `String`, `bool` and `null` as well as `Map` and `List` values. |
8766 */ | 8803 */ |
8767 core.Object authorChannelId; | 8804 core.Object authorChannelId; |
8768 /** Link to the author's YouTube channel, if any. */ | 8805 /** Link to the author's YouTube channel, if any. */ |
8769 core.String authorChannelUrl; | 8806 core.String authorChannelUrl; |
8770 /** The name of the user who posted the comment. */ | 8807 /** The name of the user who posted the comment. */ |
8771 core.String authorDisplayName; | 8808 core.String authorDisplayName; |
8772 /** Link to the author's Google+ profile, if any. */ | |
8773 core.String authorGoogleplusProfileUrl; | |
8774 /** The URL for the avatar of the user who posted the comment. */ | 8809 /** The URL for the avatar of the user who posted the comment. */ |
8775 core.String authorProfileImageUrl; | 8810 core.String authorProfileImageUrl; |
8776 /** Whether the current viewer can rate this comment. */ | 8811 /** Whether the current viewer can rate this comment. */ |
8777 core.bool canRate; | 8812 core.bool canRate; |
8778 /** | 8813 /** |
8779 * The id of the corresponding YouTube channel. In case of a channel comment | 8814 * The id of the corresponding YouTube channel. In case of a channel comment |
8780 * this is the channel the comment refers to. In case of a video comment it's | 8815 * this is the channel the comment refers to. In case of a video comment it's |
8781 * the video's channel. | 8816 * the video's channel. |
8782 */ | 8817 */ |
8783 core.String channelId; | 8818 core.String channelId; |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8837 CommentSnippet.fromJson(core.Map _json) { | 8872 CommentSnippet.fromJson(core.Map _json) { |
8838 if (_json.containsKey("authorChannelId")) { | 8873 if (_json.containsKey("authorChannelId")) { |
8839 authorChannelId = _json["authorChannelId"]; | 8874 authorChannelId = _json["authorChannelId"]; |
8840 } | 8875 } |
8841 if (_json.containsKey("authorChannelUrl")) { | 8876 if (_json.containsKey("authorChannelUrl")) { |
8842 authorChannelUrl = _json["authorChannelUrl"]; | 8877 authorChannelUrl = _json["authorChannelUrl"]; |
8843 } | 8878 } |
8844 if (_json.containsKey("authorDisplayName")) { | 8879 if (_json.containsKey("authorDisplayName")) { |
8845 authorDisplayName = _json["authorDisplayName"]; | 8880 authorDisplayName = _json["authorDisplayName"]; |
8846 } | 8881 } |
8847 if (_json.containsKey("authorGoogleplusProfileUrl")) { | |
8848 authorGoogleplusProfileUrl = _json["authorGoogleplusProfileUrl"]; | |
8849 } | |
8850 if (_json.containsKey("authorProfileImageUrl")) { | 8882 if (_json.containsKey("authorProfileImageUrl")) { |
8851 authorProfileImageUrl = _json["authorProfileImageUrl"]; | 8883 authorProfileImageUrl = _json["authorProfileImageUrl"]; |
8852 } | 8884 } |
8853 if (_json.containsKey("canRate")) { | 8885 if (_json.containsKey("canRate")) { |
8854 canRate = _json["canRate"]; | 8886 canRate = _json["canRate"]; |
8855 } | 8887 } |
8856 if (_json.containsKey("channelId")) { | 8888 if (_json.containsKey("channelId")) { |
8857 channelId = _json["channelId"]; | 8889 channelId = _json["channelId"]; |
8858 } | 8890 } |
8859 if (_json.containsKey("likeCount")) { | 8891 if (_json.containsKey("likeCount")) { |
(...skipping 29 matching lines...) Expand all Loading... |
8889 var _json = new core.Map(); | 8921 var _json = new core.Map(); |
8890 if (authorChannelId != null) { | 8922 if (authorChannelId != null) { |
8891 _json["authorChannelId"] = authorChannelId; | 8923 _json["authorChannelId"] = authorChannelId; |
8892 } | 8924 } |
8893 if (authorChannelUrl != null) { | 8925 if (authorChannelUrl != null) { |
8894 _json["authorChannelUrl"] = authorChannelUrl; | 8926 _json["authorChannelUrl"] = authorChannelUrl; |
8895 } | 8927 } |
8896 if (authorDisplayName != null) { | 8928 if (authorDisplayName != null) { |
8897 _json["authorDisplayName"] = authorDisplayName; | 8929 _json["authorDisplayName"] = authorDisplayName; |
8898 } | 8930 } |
8899 if (authorGoogleplusProfileUrl != null) { | |
8900 _json["authorGoogleplusProfileUrl"] = authorGoogleplusProfileUrl; | |
8901 } | |
8902 if (authorProfileImageUrl != null) { | 8931 if (authorProfileImageUrl != null) { |
8903 _json["authorProfileImageUrl"] = authorProfileImageUrl; | 8932 _json["authorProfileImageUrl"] = authorProfileImageUrl; |
8904 } | 8933 } |
8905 if (canRate != null) { | 8934 if (canRate != null) { |
8906 _json["canRate"] = canRate; | 8935 _json["canRate"] = canRate; |
8907 } | 8936 } |
8908 if (channelId != null) { | 8937 if (channelId != null) { |
8909 _json["channelId"] = channelId; | 8938 _json["channelId"] = channelId; |
8910 } | 8939 } |
8911 if (likeCount != null) { | 8940 if (likeCount != null) { |
(...skipping 7664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16576 * The length of the video. The tag value is an ISO 8601 duration in the | 16605 * The length of the video. The tag value is an ISO 8601 duration in the |
16577 * format PT#M#S, in which the letters PT indicate that the value specifies a | 16606 * format PT#M#S, in which the letters PT indicate that the value specifies a |
16578 * period of time, and the letters M and S refer to length in minutes and | 16607 * period of time, and the letters M and S refer to length in minutes and |
16579 * seconds, respectively. The # characters preceding the M and S letters are | 16608 * seconds, respectively. The # characters preceding the M and S letters are |
16580 * both integers that specify the number of minutes (or seconds) of the video. | 16609 * both integers that specify the number of minutes (or seconds) of the video. |
16581 * For example, a value of PT15M51S indicates that the video is 15 minutes and | 16610 * For example, a value of PT15M51S indicates that the video is 15 minutes and |
16582 * 51 seconds long. | 16611 * 51 seconds long. |
16583 */ | 16612 */ |
16584 core.String duration; | 16613 core.String duration; |
16585 /** | 16614 /** |
| 16615 * Indicates whether the video uploader has provided a custom thumbnail image |
| 16616 * for the video. This property is only visible to the video uploader. |
| 16617 */ |
| 16618 core.bool hasCustomThumbnail; |
| 16619 /** |
16586 * The value of is_license_content indicates whether the video is licensed | 16620 * The value of is_license_content indicates whether the video is licensed |
16587 * content. | 16621 * content. |
16588 */ | 16622 */ |
16589 core.bool licensedContent; | 16623 core.bool licensedContent; |
16590 /** | 16624 /** |
16591 * Specifies the projection format of the video. | 16625 * Specifies the projection format of the video. |
16592 * Possible string values are: | 16626 * Possible string values are: |
16593 * - "360" | 16627 * - "360" |
16594 * - "rectangular" | 16628 * - "rectangular" |
16595 */ | 16629 */ |
(...skipping 20 matching lines...) Expand all Loading... |
16616 } | 16650 } |
16617 if (_json.containsKey("definition")) { | 16651 if (_json.containsKey("definition")) { |
16618 definition = _json["definition"]; | 16652 definition = _json["definition"]; |
16619 } | 16653 } |
16620 if (_json.containsKey("dimension")) { | 16654 if (_json.containsKey("dimension")) { |
16621 dimension = _json["dimension"]; | 16655 dimension = _json["dimension"]; |
16622 } | 16656 } |
16623 if (_json.containsKey("duration")) { | 16657 if (_json.containsKey("duration")) { |
16624 duration = _json["duration"]; | 16658 duration = _json["duration"]; |
16625 } | 16659 } |
| 16660 if (_json.containsKey("hasCustomThumbnail")) { |
| 16661 hasCustomThumbnail = _json["hasCustomThumbnail"]; |
| 16662 } |
16626 if (_json.containsKey("licensedContent")) { | 16663 if (_json.containsKey("licensedContent")) { |
16627 licensedContent = _json["licensedContent"]; | 16664 licensedContent = _json["licensedContent"]; |
16628 } | 16665 } |
16629 if (_json.containsKey("projection")) { | 16666 if (_json.containsKey("projection")) { |
16630 projection = _json["projection"]; | 16667 projection = _json["projection"]; |
16631 } | 16668 } |
16632 if (_json.containsKey("regionRestriction")) { | 16669 if (_json.containsKey("regionRestriction")) { |
16633 regionRestriction = new VideoContentDetailsRegionRestriction.fromJson(_jso
n["regionRestriction"]); | 16670 regionRestriction = new VideoContentDetailsRegionRestriction.fromJson(_jso
n["regionRestriction"]); |
16634 } | 16671 } |
16635 } | 16672 } |
(...skipping 11 matching lines...) Expand all Loading... |
16647 } | 16684 } |
16648 if (definition != null) { | 16685 if (definition != null) { |
16649 _json["definition"] = definition; | 16686 _json["definition"] = definition; |
16650 } | 16687 } |
16651 if (dimension != null) { | 16688 if (dimension != null) { |
16652 _json["dimension"] = dimension; | 16689 _json["dimension"] = dimension; |
16653 } | 16690 } |
16654 if (duration != null) { | 16691 if (duration != null) { |
16655 _json["duration"] = duration; | 16692 _json["duration"] = duration; |
16656 } | 16693 } |
| 16694 if (hasCustomThumbnail != null) { |
| 16695 _json["hasCustomThumbnail"] = hasCustomThumbnail; |
| 16696 } |
16657 if (licensedContent != null) { | 16697 if (licensedContent != null) { |
16658 _json["licensedContent"] = licensedContent; | 16698 _json["licensedContent"] = licensedContent; |
16659 } | 16699 } |
16660 if (projection != null) { | 16700 if (projection != null) { |
16661 _json["projection"] = projection; | 16701 _json["projection"] = projection; |
16662 } | 16702 } |
16663 if (regionRestriction != null) { | 16703 if (regionRestriction != null) { |
16664 _json["regionRestriction"] = (regionRestriction).toJson(); | 16704 _json["regionRestriction"] = (regionRestriction).toJson(); |
16665 } | 16705 } |
16666 return _json; | 16706 return _json; |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
16754 * - "archive" | 16794 * - "archive" |
16755 * - "audio" | 16795 * - "audio" |
16756 * - "document" | 16796 * - "document" |
16757 * - "image" | 16797 * - "image" |
16758 * - "other" | 16798 * - "other" |
16759 * - "project" | 16799 * - "project" |
16760 * - "video" | 16800 * - "video" |
16761 */ | 16801 */ |
16762 core.String fileType; | 16802 core.String fileType; |
16763 /** | 16803 /** |
16764 * Geographic coordinates that identify the place where the uploaded video was | |
16765 * recorded. Coordinates are defined using WGS 84. | |
16766 */ | |
16767 GeoPoint recordingLocation; | |
16768 /** | |
16769 * A list of video streams contained in the uploaded video file. Each item in | 16804 * A list of video streams contained in the uploaded video file. Each item in |
16770 * the list contains detailed metadata about a video stream. | 16805 * the list contains detailed metadata about a video stream. |
16771 */ | 16806 */ |
16772 core.List<VideoFileDetailsVideoStream> videoStreams; | 16807 core.List<VideoFileDetailsVideoStream> videoStreams; |
16773 | 16808 |
16774 VideoFileDetails(); | 16809 VideoFileDetails(); |
16775 | 16810 |
16776 VideoFileDetails.fromJson(core.Map _json) { | 16811 VideoFileDetails.fromJson(core.Map _json) { |
16777 if (_json.containsKey("audioStreams")) { | 16812 if (_json.containsKey("audioStreams")) { |
16778 audioStreams = _json["audioStreams"].map((value) => new VideoFileDetailsAu
dioStream.fromJson(value)).toList(); | 16813 audioStreams = _json["audioStreams"].map((value) => new VideoFileDetailsAu
dioStream.fromJson(value)).toList(); |
(...skipping 12 matching lines...) Expand all Loading... |
16791 } | 16826 } |
16792 if (_json.containsKey("fileName")) { | 16827 if (_json.containsKey("fileName")) { |
16793 fileName = _json["fileName"]; | 16828 fileName = _json["fileName"]; |
16794 } | 16829 } |
16795 if (_json.containsKey("fileSize")) { | 16830 if (_json.containsKey("fileSize")) { |
16796 fileSize = _json["fileSize"]; | 16831 fileSize = _json["fileSize"]; |
16797 } | 16832 } |
16798 if (_json.containsKey("fileType")) { | 16833 if (_json.containsKey("fileType")) { |
16799 fileType = _json["fileType"]; | 16834 fileType = _json["fileType"]; |
16800 } | 16835 } |
16801 if (_json.containsKey("recordingLocation")) { | |
16802 recordingLocation = new GeoPoint.fromJson(_json["recordingLocation"]); | |
16803 } | |
16804 if (_json.containsKey("videoStreams")) { | 16836 if (_json.containsKey("videoStreams")) { |
16805 videoStreams = _json["videoStreams"].map((value) => new VideoFileDetailsVi
deoStream.fromJson(value)).toList(); | 16837 videoStreams = _json["videoStreams"].map((value) => new VideoFileDetailsVi
deoStream.fromJson(value)).toList(); |
16806 } | 16838 } |
16807 } | 16839 } |
16808 | 16840 |
16809 core.Map toJson() { | 16841 core.Map toJson() { |
16810 var _json = new core.Map(); | 16842 var _json = new core.Map(); |
16811 if (audioStreams != null) { | 16843 if (audioStreams != null) { |
16812 _json["audioStreams"] = audioStreams.map((value) => (value).toJson()).toLi
st(); | 16844 _json["audioStreams"] = audioStreams.map((value) => (value).toJson()).toLi
st(); |
16813 } | 16845 } |
(...skipping 11 matching lines...) Expand all Loading... |
16825 } | 16857 } |
16826 if (fileName != null) { | 16858 if (fileName != null) { |
16827 _json["fileName"] = fileName; | 16859 _json["fileName"] = fileName; |
16828 } | 16860 } |
16829 if (fileSize != null) { | 16861 if (fileSize != null) { |
16830 _json["fileSize"] = fileSize; | 16862 _json["fileSize"] = fileSize; |
16831 } | 16863 } |
16832 if (fileType != null) { | 16864 if (fileType != null) { |
16833 _json["fileType"] = fileType; | 16865 _json["fileType"] = fileType; |
16834 } | 16866 } |
16835 if (recordingLocation != null) { | |
16836 _json["recordingLocation"] = (recordingLocation).toJson(); | |
16837 } | |
16838 if (videoStreams != null) { | 16867 if (videoStreams != null) { |
16839 _json["videoStreams"] = videoStreams.map((value) => (value).toJson()).toLi
st(); | 16868 _json["videoStreams"] = videoStreams.map((value) => (value).toJson()).toLi
st(); |
16840 } | 16869 } |
16841 return _json; | 16870 return _json; |
16842 } | 16871 } |
16843 } | 16872 } |
16844 | 16873 |
16845 /** Information about an audio stream. */ | 16874 /** Information about an audio stream. */ |
16846 class VideoFileDetailsAudioStream { | 16875 class VideoFileDetailsAudioStream { |
16847 /** The audio stream's bitrate, in bits per second. */ | 16876 /** The audio stream's bitrate, in bits per second. */ |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17276 var _json = new core.Map(); | 17305 var _json = new core.Map(); |
17277 if (access != null) { | 17306 if (access != null) { |
17278 _json["access"] = (access).toJson(); | 17307 _json["access"] = (access).toJson(); |
17279 } | 17308 } |
17280 return _json; | 17309 return _json; |
17281 } | 17310 } |
17282 } | 17311 } |
17283 | 17312 |
17284 /** Player to be used for a video playback. */ | 17313 /** Player to be used for a video playback. */ |
17285 class VideoPlayer { | 17314 class VideoPlayer { |
| 17315 core.String embedHeight; |
17286 /** An <iframe> tag that embeds a player that will play the video. */ | 17316 /** An <iframe> tag that embeds a player that will play the video. */ |
17287 core.String embedHtml; | 17317 core.String embedHtml; |
| 17318 /** The embed width */ |
| 17319 core.String embedWidth; |
17288 | 17320 |
17289 VideoPlayer(); | 17321 VideoPlayer(); |
17290 | 17322 |
17291 VideoPlayer.fromJson(core.Map _json) { | 17323 VideoPlayer.fromJson(core.Map _json) { |
| 17324 if (_json.containsKey("embedHeight")) { |
| 17325 embedHeight = _json["embedHeight"]; |
| 17326 } |
17292 if (_json.containsKey("embedHtml")) { | 17327 if (_json.containsKey("embedHtml")) { |
17293 embedHtml = _json["embedHtml"]; | 17328 embedHtml = _json["embedHtml"]; |
17294 } | 17329 } |
| 17330 if (_json.containsKey("embedWidth")) { |
| 17331 embedWidth = _json["embedWidth"]; |
| 17332 } |
17295 } | 17333 } |
17296 | 17334 |
17297 core.Map toJson() { | 17335 core.Map toJson() { |
17298 var _json = new core.Map(); | 17336 var _json = new core.Map(); |
| 17337 if (embedHeight != null) { |
| 17338 _json["embedHeight"] = embedHeight; |
| 17339 } |
17299 if (embedHtml != null) { | 17340 if (embedHtml != null) { |
17300 _json["embedHtml"] = embedHtml; | 17341 _json["embedHtml"] = embedHtml; |
17301 } | 17342 } |
| 17343 if (embedWidth != null) { |
| 17344 _json["embedWidth"] = embedWidth; |
| 17345 } |
17302 return _json; | 17346 return _json; |
17303 } | 17347 } |
17304 } | 17348 } |
17305 | 17349 |
17306 /** | 17350 /** |
17307 * Describes processing status and progress and availability of some other Video | 17351 * Describes processing status and progress and availability of some other Video |
17308 * resource parts. | 17352 * resource parts. |
17309 */ | 17353 */ |
17310 class VideoProcessingDetails { | 17354 class VideoProcessingDetails { |
17311 /** | 17355 /** |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
18101 } | 18145 } |
18102 if (featuredPlaylistId != null) { | 18146 if (featuredPlaylistId != null) { |
18103 _json["featuredPlaylistId"] = featuredPlaylistId; | 18147 _json["featuredPlaylistId"] = featuredPlaylistId; |
18104 } | 18148 } |
18105 if (textColor != null) { | 18149 if (textColor != null) { |
18106 _json["textColor"] = textColor; | 18150 _json["textColor"] = textColor; |
18107 } | 18151 } |
18108 return _json; | 18152 return _json; |
18109 } | 18153 } |
18110 } | 18154 } |
OLD | NEW |