| 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; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
| 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 13 show |
| 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 14 ApiRequestError, |
| 15 ByteRange; | 15 DetailedApiRequestError, |
| 16 Media, |
| 17 UploadOptions, |
| 18 ResumableUploadOptions, |
| 19 DownloadOptions, |
| 20 PartialDownloadOptions, |
| 21 ByteRange; |
| 16 | 22 |
| 17 const core.String USER_AGENT = 'dart-api-client youtube/v3'; | 23 const core.String USER_AGENT = 'dart-api-client youtube/v3'; |
| 18 | 24 |
| 19 /** | 25 /// Supports core YouTube features, such as uploading videos, creating and |
| 20 * Supports core YouTube features, such as uploading videos, creating and | 26 /// managing playlists, searching for content, and much more. |
| 21 * managing playlists, searching for content, and much more. | |
| 22 */ | |
| 23 class YoutubeApi { | 27 class YoutubeApi { |
| 24 /** Manage your YouTube account */ | 28 /// Manage your YouTube account |
| 25 static const YoutubeScope = "https://www.googleapis.com/auth/youtube"; | 29 static const YoutubeScope = "https://www.googleapis.com/auth/youtube"; |
| 26 | 30 |
| 27 /** Manage your YouTube account */ | 31 /// Manage your YouTube account |
| 28 static const YoutubeForceSslScope = "https://www.googleapis.com/auth/youtube.f
orce-ssl"; | 32 static const YoutubeForceSslScope = |
| 33 "https://www.googleapis.com/auth/youtube.force-ssl"; |
| 29 | 34 |
| 30 /** View your YouTube account */ | 35 /// View your YouTube account |
| 31 static const YoutubeReadonlyScope = "https://www.googleapis.com/auth/youtube.r
eadonly"; | 36 static const YoutubeReadonlyScope = |
| 37 "https://www.googleapis.com/auth/youtube.readonly"; |
| 32 | 38 |
| 33 /** Manage your YouTube videos */ | 39 /// Manage your YouTube videos |
| 34 static const YoutubeUploadScope = "https://www.googleapis.com/auth/youtube.upl
oad"; | 40 static const YoutubeUploadScope = |
| 41 "https://www.googleapis.com/auth/youtube.upload"; |
| 35 | 42 |
| 36 /** View and manage your assets and associated content on YouTube */ | 43 /// View and manage your assets and associated content on YouTube |
| 37 static const YoutubepartnerScope = "https://www.googleapis.com/auth/youtubepar
tner"; | 44 static const YoutubepartnerScope = |
| 45 "https://www.googleapis.com/auth/youtubepartner"; |
| 38 | 46 |
| 39 /** | 47 /// View private information of your YouTube channel relevant during the |
| 40 * View private information of your YouTube channel relevant during the audit | 48 /// audit process with a YouTube partner |
| 41 * process with a YouTube partner | 49 static const YoutubepartnerChannelAuditScope = |
| 42 */ | 50 "https://www.googleapis.com/auth/youtubepartner-channel-audit"; |
| 43 static const YoutubepartnerChannelAuditScope = "https://www.googleapis.com/aut
h/youtubepartner-channel-audit"; | |
| 44 | |
| 45 | 51 |
| 46 final commons.ApiRequester _requester; | 52 final commons.ApiRequester _requester; |
| 47 | 53 |
| 48 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); | 54 ActivitiesResourceApi get activities => new ActivitiesResourceApi(_requester); |
| 49 CaptionsResourceApi get captions => new CaptionsResourceApi(_requester); | 55 CaptionsResourceApi get captions => new CaptionsResourceApi(_requester); |
| 50 ChannelBannersResourceApi get channelBanners => new ChannelBannersResourceApi(
_requester); | 56 ChannelBannersResourceApi get channelBanners => |
| 51 ChannelSectionsResourceApi get channelSections => new ChannelSectionsResourceA
pi(_requester); | 57 new ChannelBannersResourceApi(_requester); |
| 58 ChannelSectionsResourceApi get channelSections => |
| 59 new ChannelSectionsResourceApi(_requester); |
| 52 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); | 60 ChannelsResourceApi get channels => new ChannelsResourceApi(_requester); |
| 53 CommentThreadsResourceApi get commentThreads => new CommentThreadsResourceApi(
_requester); | 61 CommentThreadsResourceApi get commentThreads => |
| 62 new CommentThreadsResourceApi(_requester); |
| 54 CommentsResourceApi get comments => new CommentsResourceApi(_requester); | 63 CommentsResourceApi get comments => new CommentsResourceApi(_requester); |
| 55 FanFundingEventsResourceApi get fanFundingEvents => new FanFundingEventsResour
ceApi(_requester); | 64 FanFundingEventsResourceApi get fanFundingEvents => |
| 56 GuideCategoriesResourceApi get guideCategories => new GuideCategoriesResourceA
pi(_requester); | 65 new FanFundingEventsResourceApi(_requester); |
| 57 I18nLanguagesResourceApi get i18nLanguages => new I18nLanguagesResourceApi(_re
quester); | 66 GuideCategoriesResourceApi get guideCategories => |
| 58 I18nRegionsResourceApi get i18nRegions => new I18nRegionsResourceApi(_requeste
r); | 67 new GuideCategoriesResourceApi(_requester); |
| 59 LiveBroadcastsResourceApi get liveBroadcasts => new LiveBroadcastsResourceApi(
_requester); | 68 I18nLanguagesResourceApi get i18nLanguages => |
| 60 LiveChatBansResourceApi get liveChatBans => new LiveChatBansResourceApi(_reque
ster); | 69 new I18nLanguagesResourceApi(_requester); |
| 61 LiveChatMessagesResourceApi get liveChatMessages => new LiveChatMessagesResour
ceApi(_requester); | 70 I18nRegionsResourceApi get i18nRegions => |
| 62 LiveChatModeratorsResourceApi get liveChatModerators => new LiveChatModerators
ResourceApi(_requester); | 71 new I18nRegionsResourceApi(_requester); |
| 63 LiveStreamsResourceApi get liveStreams => new LiveStreamsResourceApi(_requeste
r); | 72 LiveBroadcastsResourceApi get liveBroadcasts => |
| 64 PlaylistItemsResourceApi get playlistItems => new PlaylistItemsResourceApi(_re
quester); | 73 new LiveBroadcastsResourceApi(_requester); |
| 74 LiveChatBansResourceApi get liveChatBans => |
| 75 new LiveChatBansResourceApi(_requester); |
| 76 LiveChatMessagesResourceApi get liveChatMessages => |
| 77 new LiveChatMessagesResourceApi(_requester); |
| 78 LiveChatModeratorsResourceApi get liveChatModerators => |
| 79 new LiveChatModeratorsResourceApi(_requester); |
| 80 LiveStreamsResourceApi get liveStreams => |
| 81 new LiveStreamsResourceApi(_requester); |
| 82 PlaylistItemsResourceApi get playlistItems => |
| 83 new PlaylistItemsResourceApi(_requester); |
| 65 PlaylistsResourceApi get playlists => new PlaylistsResourceApi(_requester); | 84 PlaylistsResourceApi get playlists => new PlaylistsResourceApi(_requester); |
| 66 SearchResourceApi get search => new SearchResourceApi(_requester); | 85 SearchResourceApi get search => new SearchResourceApi(_requester); |
| 67 SponsorsResourceApi get sponsors => new SponsorsResourceApi(_requester); | 86 SponsorsResourceApi get sponsors => new SponsorsResourceApi(_requester); |
| 68 SubscriptionsResourceApi get subscriptions => new SubscriptionsResourceApi(_re
quester); | 87 SubscriptionsResourceApi get subscriptions => |
| 69 SuperChatEventsResourceApi get superChatEvents => new SuperChatEventsResourceA
pi(_requester); | 88 new SubscriptionsResourceApi(_requester); |
| 89 SuperChatEventsResourceApi get superChatEvents => |
| 90 new SuperChatEventsResourceApi(_requester); |
| 70 ThumbnailsResourceApi get thumbnails => new ThumbnailsResourceApi(_requester); | 91 ThumbnailsResourceApi get thumbnails => new ThumbnailsResourceApi(_requester); |
| 71 VideoAbuseReportReasonsResourceApi get videoAbuseReportReasons => new VideoAbu
seReportReasonsResourceApi(_requester); | 92 VideoAbuseReportReasonsResourceApi get videoAbuseReportReasons => |
| 72 VideoCategoriesResourceApi get videoCategories => new VideoCategoriesResourceA
pi(_requester); | 93 new VideoAbuseReportReasonsResourceApi(_requester); |
| 94 VideoCategoriesResourceApi get videoCategories => |
| 95 new VideoCategoriesResourceApi(_requester); |
| 73 VideosResourceApi get videos => new VideosResourceApi(_requester); | 96 VideosResourceApi get videos => new VideosResourceApi(_requester); |
| 74 WatermarksResourceApi get watermarks => new WatermarksResourceApi(_requester); | 97 WatermarksResourceApi get watermarks => new WatermarksResourceApi(_requester); |
| 75 | 98 |
| 76 YoutubeApi(http.Client client, {core.String rootUrl: "https://www.googleapis.c
om/", core.String servicePath: "youtube/v3/"}) : | 99 YoutubeApi(http.Client client, |
| 77 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 100 {core.String rootUrl: "https://www.googleapis.com/", |
| 101 core.String servicePath: "youtube/v3/"}) |
| 102 : _requester = |
| 103 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 78 } | 104 } |
| 79 | 105 |
| 80 | |
| 81 class ActivitiesResourceApi { | 106 class ActivitiesResourceApi { |
| 82 final commons.ApiRequester _requester; | 107 final commons.ApiRequester _requester; |
| 83 | 108 |
| 84 ActivitiesResourceApi(commons.ApiRequester client) : | 109 ActivitiesResourceApi(commons.ApiRequester client) : _requester = client; |
| 85 _requester = client; | |
| 86 | 110 |
| 87 /** | 111 /// Posts a bulletin for a specific channel. (The user submitting the request |
| 88 * Posts a bulletin for a specific channel. (The user submitting the request | 112 /// must be authorized to act on the channel's behalf.) |
| 89 * must be authorized to act on the channel's behalf.) | 113 /// |
| 90 * | 114 /// Note: Even though an activity resource can contain information about |
| 91 * Note: Even though an activity resource can contain information about | 115 /// actions like a user rating a video or marking a video as a favorite, you |
| 92 * actions like a user rating a video or marking a video as a favorite, you | 116 /// need to use other API methods to generate those activity resources. For |
| 93 * need to use other API methods to generate those activity resources. For | 117 /// example, you would use the API's videos.rate() method to rate a video and |
| 94 * example, you would use the API's videos.rate() method to rate a video and | 118 /// the playlistItems.insert() method to mark a video as a favorite. |
| 95 * the playlistItems.insert() method to mark a video as a favorite. | 119 /// |
| 96 * | 120 /// [request] - The metadata request object. |
| 97 * [request] - The metadata request object. | 121 /// |
| 98 * | 122 /// Request parameters: |
| 99 * Request parameters: | 123 /// |
| 100 * | 124 /// [part] - The part parameter serves two purposes in this operation. It |
| 101 * [part] - The part parameter serves two purposes in this operation. It | 125 /// identifies the properties that the write operation will set as well as |
| 102 * identifies the properties that the write operation will set as well as the | 126 /// the properties that the API response will include. |
| 103 * properties that the API response will include. | 127 /// |
| 104 * | 128 /// Completes with a [Activity]. |
| 105 * Completes with a [Activity]. | 129 /// |
| 106 * | 130 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 107 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 131 /// an error. |
| 108 * error. | 132 /// |
| 109 * | 133 /// If the used [http.Client] completes with an error when making a REST |
| 110 * If the used [http.Client] completes with an error when making a REST call, | 134 /// call, this method will complete with the same error. |
| 111 * this method will complete with the same error. | |
| 112 */ | |
| 113 async.Future<Activity> insert(Activity request, core.String part) { | 135 async.Future<Activity> insert(Activity request, core.String part) { |
| 114 var _url = null; | 136 var _url = null; |
| 115 var _queryParams = new core.Map(); | 137 var _queryParams = new core.Map(); |
| 116 var _uploadMedia = null; | 138 var _uploadMedia = null; |
| 117 var _uploadOptions = null; | 139 var _uploadOptions = null; |
| 118 var _downloadOptions = commons.DownloadOptions.Metadata; | 140 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 119 var _body = null; | 141 var _body = null; |
| 120 | 142 |
| 121 if (request != null) { | 143 if (request != null) { |
| 122 _body = convert.JSON.encode((request).toJson()); | 144 _body = convert.JSON.encode((request).toJson()); |
| 123 } | 145 } |
| 124 if (part == null) { | 146 if (part == null) { |
| 125 throw new core.ArgumentError("Parameter part is required."); | 147 throw new core.ArgumentError("Parameter part is required."); |
| 126 } | 148 } |
| 127 _queryParams["part"] = [part]; | 149 _queryParams["part"] = [part]; |
| 128 | 150 |
| 129 _url = 'activities'; | 151 _url = 'activities'; |
| 130 | 152 |
| 131 var _response = _requester.request(_url, | 153 var _response = _requester.request(_url, "POST", |
| 132 "POST", | 154 body: _body, |
| 133 body: _body, | 155 queryParams: _queryParams, |
| 134 queryParams: _queryParams, | 156 uploadOptions: _uploadOptions, |
| 135 uploadOptions: _uploadOptions, | 157 uploadMedia: _uploadMedia, |
| 136 uploadMedia: _uploadMedia, | 158 downloadOptions: _downloadOptions); |
| 137 downloadOptions: _downloadOptions); | |
| 138 return _response.then((data) => new Activity.fromJson(data)); | 159 return _response.then((data) => new Activity.fromJson(data)); |
| 139 } | 160 } |
| 140 | 161 |
| 141 /** | 162 /// Returns a list of channel activity events that match the request |
| 142 * Returns a list of channel activity events that match the request criteria. | 163 /// criteria. For example, you can retrieve events associated with a |
| 143 * For example, you can retrieve events associated with a particular channel, | 164 /// particular channel, events associated with the user's subscriptions and |
| 144 * events associated with the user's subscriptions and Google+ friends, or the | 165 /// Google+ friends, or the YouTube home page feed, which is customized for |
| 145 * YouTube home page feed, which is customized for each user. | 166 /// each user. |
| 146 * | 167 /// |
| 147 * Request parameters: | 168 /// Request parameters: |
| 148 * | 169 /// |
| 149 * [part] - The part parameter specifies a comma-separated list of one or more | 170 /// [part] - The part parameter specifies a comma-separated list of one or |
| 150 * activity resource properties that the API response will include. | 171 /// more activity resource properties that the API response will include. |
| 151 * | 172 /// |
| 152 * If the parameter identifies a property that contains child properties, the | 173 /// If the parameter identifies a property that contains child properties, |
| 153 * child properties will be included in the response. For example, in an | 174 /// the child properties will be included in the response. For example, in an |
| 154 * activity resource, the snippet property contains other properties that | 175 /// activity resource, the snippet property contains other properties that |
| 155 * identify the type of activity, a display title for the activity, and so | 176 /// identify the type of activity, a display title for the activity, and so |
| 156 * forth. If you set part=snippet, the API response will also contain all of | 177 /// forth. If you set part=snippet, the API response will also contain all of |
| 157 * those nested properties. | 178 /// those nested properties. |
| 158 * | 179 /// |
| 159 * [channelId] - The channelId parameter specifies a unique YouTube channel | 180 /// [channelId] - The channelId parameter specifies a unique YouTube channel |
| 160 * ID. The API will then return a list of that channel's activities. | 181 /// ID. The API will then return a list of that channel's activities. |
| 161 * | 182 /// |
| 162 * [home] - Set this parameter's value to true to retrieve the activity feed | 183 /// [home] - Set this parameter's value to true to retrieve the activity feed |
| 163 * that displays on the YouTube home page for the currently authenticated | 184 /// that displays on the YouTube home page for the currently authenticated |
| 164 * user. | 185 /// user. |
| 165 * | 186 /// |
| 166 * [maxResults] - The maxResults parameter specifies the maximum number of | 187 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 167 * items that should be returned in the result set. | 188 /// items that should be returned in the result set. |
| 168 * Value must be between "0" and "50". | 189 /// Value must be between "0" and "50". |
| 169 * | 190 /// |
| 170 * [mine] - Set this parameter's value to true to retrieve a feed of the | 191 /// [mine] - Set this parameter's value to true to retrieve a feed of the |
| 171 * authenticated user's activities. | 192 /// authenticated user's activities. |
| 172 * | 193 /// |
| 173 * [pageToken] - The pageToken parameter identifies a specific page in the | 194 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 174 * result set that should be returned. In an API response, the nextPageToken | 195 /// result set that should be returned. In an API response, the nextPageToken |
| 175 * and prevPageToken properties identify other pages that could be retrieved. | 196 /// and prevPageToken properties identify other pages that could be |
| 176 * | 197 /// retrieved. |
| 177 * [publishedAfter] - The publishedAfter parameter specifies the earliest date | 198 /// |
| 178 * and time that an activity could have occurred for that activity to be | 199 /// [publishedAfter] - The publishedAfter parameter specifies the earliest |
| 179 * included in the API response. If the parameter value specifies a day, but | 200 /// date and time that an activity could have occurred for that activity to |
| 180 * not a time, then any activities that occurred that day will be included in | 201 /// be included in the API response. If the parameter value specifies a day, |
| 181 * the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) | 202 /// but not a time, then any activities that occurred that day will be |
| 182 * format. | 203 /// included in the result set. The value is specified in ISO 8601 |
| 183 * | 204 /// (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 184 * [publishedBefore] - The publishedBefore parameter specifies the date and | 205 /// |
| 185 * time before which an activity must have occurred for that activity to be | 206 /// [publishedBefore] - The publishedBefore parameter specifies the date and |
| 186 * included in the API response. If the parameter value specifies a day, but | 207 /// time before which an activity must have occurred for that activity to be |
| 187 * not a time, then any activities that occurred that day will be excluded | 208 /// included in the API response. If the parameter value specifies a day, but |
| 188 * from the result set. The value is specified in ISO 8601 | 209 /// not a time, then any activities that occurred that day will be excluded |
| 189 * (YYYY-MM-DDThh:mm:ss.sZ) format. | 210 /// from the result set. The value is specified in ISO 8601 |
| 190 * | 211 /// (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 191 * [regionCode] - The regionCode parameter instructs the API to return results | 212 /// |
| 192 * for the specified country. The parameter value is an ISO 3166-1 alpha-2 | 213 /// [regionCode] - The regionCode parameter instructs the API to return |
| 193 * country code. YouTube uses this value when the authorized user's previous | 214 /// results for the specified country. The parameter value is an ISO 3166-1 |
| 194 * activity on YouTube does not provide enough information to generate the | 215 /// alpha-2 country code. YouTube uses this value when the authorized user's |
| 195 * activity feed. | 216 /// previous activity on YouTube does not provide enough information to |
| 196 * | 217 /// generate the activity feed. |
| 197 * Completes with a [ActivityListResponse]. | 218 /// |
| 198 * | 219 /// Completes with a [ActivityListResponse]. |
| 199 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 220 /// |
| 200 * error. | 221 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 201 * | 222 /// an error. |
| 202 * If the used [http.Client] completes with an error when making a REST call, | 223 /// |
| 203 * this method will complete with the same error. | 224 /// If the used [http.Client] completes with an error when making a REST |
| 204 */ | 225 /// call, this method will complete with the same error. |
| 205 async.Future<ActivityListResponse> list(core.String part, {core.String channel
Id, core.bool home, core.int maxResults, core.bool mine, core.String pageToken,
core.DateTime publishedAfter, core.DateTime publishedBefore, core.String regionC
ode}) { | 226 async.Future<ActivityListResponse> list(core.String part, |
| 227 {core.String channelId, |
| 228 core.bool home, |
| 229 core.int maxResults, |
| 230 core.bool mine, |
| 231 core.String pageToken, |
| 232 core.DateTime publishedAfter, |
| 233 core.DateTime publishedBefore, |
| 234 core.String regionCode}) { |
| 206 var _url = null; | 235 var _url = null; |
| 207 var _queryParams = new core.Map(); | 236 var _queryParams = new core.Map(); |
| 208 var _uploadMedia = null; | 237 var _uploadMedia = null; |
| 209 var _uploadOptions = null; | 238 var _uploadOptions = null; |
| 210 var _downloadOptions = commons.DownloadOptions.Metadata; | 239 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 211 var _body = null; | 240 var _body = null; |
| 212 | 241 |
| 213 if (part == null) { | 242 if (part == null) { |
| 214 throw new core.ArgumentError("Parameter part is required."); | 243 throw new core.ArgumentError("Parameter part is required."); |
| 215 } | 244 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 234 } | 263 } |
| 235 if (publishedBefore != null) { | 264 if (publishedBefore != null) { |
| 236 _queryParams["publishedBefore"] = [(publishedBefore).toIso8601String()]; | 265 _queryParams["publishedBefore"] = [(publishedBefore).toIso8601String()]; |
| 237 } | 266 } |
| 238 if (regionCode != null) { | 267 if (regionCode != null) { |
| 239 _queryParams["regionCode"] = [regionCode]; | 268 _queryParams["regionCode"] = [regionCode]; |
| 240 } | 269 } |
| 241 | 270 |
| 242 _url = 'activities'; | 271 _url = 'activities'; |
| 243 | 272 |
| 244 var _response = _requester.request(_url, | 273 var _response = _requester.request(_url, "GET", |
| 245 "GET", | 274 body: _body, |
| 246 body: _body, | 275 queryParams: _queryParams, |
| 247 queryParams: _queryParams, | 276 uploadOptions: _uploadOptions, |
| 248 uploadOptions: _uploadOptions, | 277 uploadMedia: _uploadMedia, |
| 249 uploadMedia: _uploadMedia, | 278 downloadOptions: _downloadOptions); |
| 250 downloadOptions: _downloadOptions); | |
| 251 return _response.then((data) => new ActivityListResponse.fromJson(data)); | 279 return _response.then((data) => new ActivityListResponse.fromJson(data)); |
| 252 } | 280 } |
| 253 | |
| 254 } | 281 } |
| 255 | 282 |
| 256 | |
| 257 class CaptionsResourceApi { | 283 class CaptionsResourceApi { |
| 258 final commons.ApiRequester _requester; | 284 final commons.ApiRequester _requester; |
| 259 | 285 |
| 260 CaptionsResourceApi(commons.ApiRequester client) : | 286 CaptionsResourceApi(commons.ApiRequester client) : _requester = client; |
| 261 _requester = client; | |
| 262 | 287 |
| 263 /** | 288 /// Deletes a specified caption track. |
| 264 * Deletes a specified caption track. | 289 /// |
| 265 * | 290 /// Request parameters: |
| 266 * Request parameters: | 291 /// |
| 267 * | 292 /// [id] - The id parameter identifies the caption track that is being |
| 268 * [id] - The id parameter identifies the caption track that is being deleted. | 293 /// deleted. The value is a caption track ID as identified by the id property |
| 269 * The value is a caption track ID as identified by the id property in a | 294 /// in a caption resource. |
| 270 * caption resource. | 295 /// |
| 271 * | 296 /// [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 272 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 297 /// be on behalf of |
| 273 * be on behalf of | 298 /// |
| 274 * | 299 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 275 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 300 /// for YouTube content partners. |
| 276 * YouTube content partners. | 301 /// |
| 277 * | 302 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 278 * The onBehalfOfContentOwner parameter indicates that the request's | 303 /// authorization credentials identify a YouTube CMS user who is acting on |
| 279 * authorization credentials identify a YouTube CMS user who is acting on | 304 /// behalf of the content owner specified in the parameter value. This |
| 280 * behalf of the content owner specified in the parameter value. This | 305 /// parameter is intended for YouTube content partners that own and manage |
| 281 * parameter is intended for YouTube content partners that own and manage many | 306 /// many different YouTube channels. It allows content owners to authenticate |
| 282 * different YouTube channels. It allows content owners to authenticate once | 307 /// once and get access to all their video and channel data, without having |
| 283 * and get access to all their video and channel data, without having to | 308 /// to provide authentication credentials for each individual channel. The |
| 284 * provide authentication credentials for each individual channel. The actual | 309 /// actual CMS account that the user authenticates with must be linked to the |
| 285 * CMS account that the user authenticates with must be linked to the | 310 /// specified YouTube content owner. |
| 286 * specified YouTube content owner. | 311 /// |
| 287 * | 312 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 288 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 313 /// an error. |
| 289 * error. | 314 /// |
| 290 * | 315 /// If the used [http.Client] completes with an error when making a REST |
| 291 * If the used [http.Client] completes with an error when making a REST call, | 316 /// call, this method will complete with the same error. |
| 292 * this method will complete with the same error. | 317 async.Future delete(core.String id, |
| 293 */ | 318 {core.String onBehalfOf, core.String onBehalfOfContentOwner}) { |
| 294 async.Future delete(core.String id, {core.String onBehalfOf, core.String onBeh
alfOfContentOwner}) { | |
| 295 var _url = null; | 319 var _url = null; |
| 296 var _queryParams = new core.Map(); | 320 var _queryParams = new core.Map(); |
| 297 var _uploadMedia = null; | 321 var _uploadMedia = null; |
| 298 var _uploadOptions = null; | 322 var _uploadOptions = null; |
| 299 var _downloadOptions = commons.DownloadOptions.Metadata; | 323 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 300 var _body = null; | 324 var _body = null; |
| 301 | 325 |
| 302 if (id == null) { | 326 if (id == null) { |
| 303 throw new core.ArgumentError("Parameter id is required."); | 327 throw new core.ArgumentError("Parameter id is required."); |
| 304 } | 328 } |
| 305 _queryParams["id"] = [id]; | 329 _queryParams["id"] = [id]; |
| 306 if (onBehalfOf != null) { | 330 if (onBehalfOf != null) { |
| 307 _queryParams["onBehalfOf"] = [onBehalfOf]; | 331 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 308 } | 332 } |
| 309 if (onBehalfOfContentOwner != null) { | 333 if (onBehalfOfContentOwner != null) { |
| 310 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 334 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 311 } | 335 } |
| 312 | 336 |
| 313 _downloadOptions = null; | 337 _downloadOptions = null; |
| 314 | 338 |
| 315 _url = 'captions'; | 339 _url = 'captions'; |
| 316 | 340 |
| 317 var _response = _requester.request(_url, | 341 var _response = _requester.request(_url, "DELETE", |
| 318 "DELETE", | 342 body: _body, |
| 319 body: _body, | 343 queryParams: _queryParams, |
| 320 queryParams: _queryParams, | 344 uploadOptions: _uploadOptions, |
| 321 uploadOptions: _uploadOptions, | 345 uploadMedia: _uploadMedia, |
| 322 uploadMedia: _uploadMedia, | 346 downloadOptions: _downloadOptions); |
| 323 downloadOptions: _downloadOptions); | |
| 324 return _response.then((data) => null); | 347 return _response.then((data) => null); |
| 325 } | 348 } |
| 326 | 349 |
| 327 /** | 350 /// Downloads a caption track. The caption track is returned in its original |
| 328 * Downloads a caption track. The caption track is returned in its original | 351 /// format unless the request specifies a value for the tfmt parameter and in |
| 329 * format unless the request specifies a value for the tfmt parameter and in | 352 /// its original language unless the request specifies a value for the tlang |
| 330 * its original language unless the request specifies a value for the tlang | 353 /// parameter. |
| 331 * parameter. | 354 /// |
| 332 * | 355 /// Request parameters: |
| 333 * Request parameters: | 356 /// |
| 334 * | 357 /// [id] - The id parameter identifies the caption track that is being |
| 335 * [id] - The id parameter identifies the caption track that is being | 358 /// retrieved. The value is a caption track ID as identified by the id |
| 336 * retrieved. The value is a caption track ID as identified by the id property | 359 /// property in a caption resource. |
| 337 * in a caption resource. | 360 /// |
| 338 * | 361 /// [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 339 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 362 /// be on behalf of |
| 340 * be on behalf of | 363 /// |
| 341 * | 364 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 342 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 365 /// for YouTube content partners. |
| 343 * YouTube content partners. | 366 /// |
| 344 * | 367 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 345 * The onBehalfOfContentOwner parameter indicates that the request's | 368 /// authorization credentials identify a YouTube CMS user who is acting on |
| 346 * authorization credentials identify a YouTube CMS user who is acting on | 369 /// behalf of the content owner specified in the parameter value. This |
| 347 * behalf of the content owner specified in the parameter value. This | 370 /// parameter is intended for YouTube content partners that own and manage |
| 348 * parameter is intended for YouTube content partners that own and manage many | 371 /// many different YouTube channels. It allows content owners to authenticate |
| 349 * different YouTube channels. It allows content owners to authenticate once | 372 /// once and get access to all their video and channel data, without having |
| 350 * and get access to all their video and channel data, without having to | 373 /// to provide authentication credentials for each individual channel. The |
| 351 * provide authentication credentials for each individual channel. The actual | 374 /// actual CMS account that the user authenticates with must be linked to the |
| 352 * CMS account that the user authenticates with must be linked to the | 375 /// specified YouTube content owner. |
| 353 * specified YouTube content owner. | 376 /// |
| 354 * | 377 /// [tfmt] - The tfmt parameter specifies that the caption track should be |
| 355 * [tfmt] - The tfmt parameter specifies that the caption track should be | 378 /// returned in a specific format. If the parameter is not included in the |
| 356 * returned in a specific format. If the parameter is not included in the | 379 /// request, the track is returned in its original format. |
| 357 * request, the track is returned in its original format. | 380 /// Possible string values are: |
| 358 * Possible string values are: | 381 /// - "sbv" : SubViewer subtitle. |
| 359 * - "sbv" : SubViewer subtitle. | 382 /// - "scc" : Scenarist Closed Caption format. |
| 360 * - "scc" : Scenarist Closed Caption format. | 383 /// - "srt" : SubRip subtitle. |
| 361 * - "srt" : SubRip subtitle. | 384 /// - "ttml" : Timed Text Markup Language caption. |
| 362 * - "ttml" : Timed Text Markup Language caption. | 385 /// - "vtt" : Web Video Text Tracks caption. |
| 363 * - "vtt" : Web Video Text Tracks caption. | 386 /// |
| 364 * | 387 /// [tlang] - The tlang parameter specifies that the API response should |
| 365 * [tlang] - The tlang parameter specifies that the API response should return | 388 /// return a translation of the specified caption track. The parameter value |
| 366 * a translation of the specified caption track. The parameter value is an ISO | 389 /// is an ISO 639-1 two-letter language code that identifies the desired |
| 367 * 639-1 two-letter language code that identifies the desired caption | 390 /// caption language. The translation is generated by using machine |
| 368 * language. The translation is generated by using machine translation, such | 391 /// translation, such as Google Translate. |
| 369 * as Google Translate. | 392 /// |
| 370 * | 393 /// [downloadOptions] - Options for downloading. A download can be either a |
| 371 * [downloadOptions] - Options for downloading. A download can be either a | 394 /// Metadata (default) or Media download. Partial Media downloads are |
| 372 * Metadata (default) or Media download. Partial Media downloads are possible | 395 /// possible as well. |
| 373 * as well. | 396 /// |
| 374 * | 397 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 398 /// an error. |
| 376 * error. | 399 /// |
| 377 * | 400 /// If the used [http.Client] completes with an error when making a REST |
| 378 * If the used [http.Client] completes with an error when making a REST call, | 401 /// call, this method will complete with the same error. |
| 379 * this method will complete with the same error. | 402 async.Future download(core.String id, |
| 380 */ | 403 {core.String onBehalfOf, |
| 381 async.Future download(core.String id, {core.String onBehalfOf, core.String onB
ehalfOfContentOwner, core.String tfmt, core.String tlang, commons.DownloadOption
s downloadOptions: commons.DownloadOptions.Metadata}) { | 404 core.String onBehalfOfContentOwner, |
| 405 core.String tfmt, |
| 406 core.String tlang, |
| 407 commons.DownloadOptions downloadOptions: |
| 408 commons.DownloadOptions.Metadata}) { |
| 382 var _url = null; | 409 var _url = null; |
| 383 var _queryParams = new core.Map(); | 410 var _queryParams = new core.Map(); |
| 384 var _uploadMedia = null; | 411 var _uploadMedia = null; |
| 385 var _uploadOptions = null; | 412 var _uploadOptions = null; |
| 386 var _downloadOptions = commons.DownloadOptions.Metadata; | 413 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 387 var _body = null; | 414 var _body = null; |
| 388 | 415 |
| 389 if (id == null) { | 416 if (id == null) { |
| 390 throw new core.ArgumentError("Parameter id is required."); | 417 throw new core.ArgumentError("Parameter id is required."); |
| 391 } | 418 } |
| 392 if (onBehalfOf != null) { | 419 if (onBehalfOf != null) { |
| 393 _queryParams["onBehalfOf"] = [onBehalfOf]; | 420 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 394 } | 421 } |
| 395 if (onBehalfOfContentOwner != null) { | 422 if (onBehalfOfContentOwner != null) { |
| 396 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 423 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 397 } | 424 } |
| 398 if (tfmt != null) { | 425 if (tfmt != null) { |
| 399 _queryParams["tfmt"] = [tfmt]; | 426 _queryParams["tfmt"] = [tfmt]; |
| 400 } | 427 } |
| 401 if (tlang != null) { | 428 if (tlang != null) { |
| 402 _queryParams["tlang"] = [tlang]; | 429 _queryParams["tlang"] = [tlang]; |
| 403 } | 430 } |
| 404 | 431 |
| 405 _downloadOptions = downloadOptions; | 432 _downloadOptions = downloadOptions; |
| 406 | 433 |
| 407 _url = 'captions/' + commons.Escaper.ecapeVariable('$id'); | 434 _url = 'captions/' + commons.Escaper.ecapeVariable('$id'); |
| 408 | 435 |
| 409 var _response = _requester.request(_url, | 436 var _response = _requester.request(_url, "GET", |
| 410 "GET", | 437 body: _body, |
| 411 body: _body, | 438 queryParams: _queryParams, |
| 412 queryParams: _queryParams, | 439 uploadOptions: _uploadOptions, |
| 413 uploadOptions: _uploadOptions, | 440 uploadMedia: _uploadMedia, |
| 414 uploadMedia: _uploadMedia, | 441 downloadOptions: _downloadOptions); |
| 415 downloadOptions: _downloadOptions); | |
| 416 if (_downloadOptions == null || | 442 if (_downloadOptions == null || |
| 417 _downloadOptions == commons.DownloadOptions.Metadata) { | 443 _downloadOptions == commons.DownloadOptions.Metadata) { |
| 418 return _response.then((data) => null); | 444 return _response.then((data) => null); |
| 419 } else { | 445 } else { |
| 420 return _response; | 446 return _response; |
| 421 } | 447 } |
| 422 } | 448 } |
| 423 | 449 |
| 424 /** | 450 /// Uploads a caption track. |
| 425 * Uploads a caption track. | 451 /// |
| 426 * | 452 /// [request] - The metadata request object. |
| 427 * [request] - The metadata request object. | 453 /// |
| 428 * | 454 /// Request parameters: |
| 429 * Request parameters: | 455 /// |
| 430 * | 456 /// [part] - The part parameter specifies the caption resource parts that the |
| 431 * [part] - The part parameter specifies the caption resource parts that the | 457 /// API response will include. Set the parameter value to snippet. |
| 432 * API response will include. Set the parameter value to snippet. | 458 /// |
| 433 * | 459 /// [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 434 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 460 /// be on behalf of |
| 435 * be on behalf of | 461 /// |
| 436 * | 462 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 437 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 463 /// for YouTube content partners. |
| 438 * YouTube content partners. | 464 /// |
| 439 * | 465 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 440 * The onBehalfOfContentOwner parameter indicates that the request's | 466 /// authorization credentials identify a YouTube CMS user who is acting on |
| 441 * authorization credentials identify a YouTube CMS user who is acting on | 467 /// behalf of the content owner specified in the parameter value. This |
| 442 * behalf of the content owner specified in the parameter value. This | 468 /// parameter is intended for YouTube content partners that own and manage |
| 443 * parameter is intended for YouTube content partners that own and manage many | 469 /// many different YouTube channels. It allows content owners to authenticate |
| 444 * different YouTube channels. It allows content owners to authenticate once | 470 /// once and get access to all their video and channel data, without having |
| 445 * and get access to all their video and channel data, without having to | 471 /// to provide authentication credentials for each individual channel. The |
| 446 * provide authentication credentials for each individual channel. The actual | 472 /// actual CMS account that the user authenticates with must be linked to the |
| 447 * CMS account that the user authenticates with must be linked to the | 473 /// specified YouTube content owner. |
| 448 * specified YouTube content owner. | 474 /// |
| 449 * | 475 /// [sync] - The sync parameter indicates whether YouTube should |
| 450 * [sync] - The sync parameter indicates whether YouTube should automatically | 476 /// automatically synchronize the caption file with the audio track of the |
| 451 * synchronize the caption file with the audio track of the video. If you set | 477 /// video. If you set the value to true, YouTube will disregard any time |
| 452 * the value to true, YouTube will disregard any time codes that are in the | 478 /// codes that are in the uploaded caption file and generate new time codes |
| 453 * uploaded caption file and generate new time codes for the captions. | 479 /// for the captions. |
| 454 * | 480 /// |
| 455 * You should set the sync parameter to true if you are uploading a | 481 /// You should set the sync parameter to true if you are uploading a |
| 456 * transcript, which has no time codes, or if you suspect the time codes in | 482 /// transcript, which has no time codes, or if you suspect the time codes in |
| 457 * your file are incorrect and want YouTube to try to fix them. | 483 /// your file are incorrect and want YouTube to try to fix them. |
| 458 * | 484 /// |
| 459 * [uploadMedia] - The media to upload. | 485 /// [uploadMedia] - The media to upload. |
| 460 * | 486 /// |
| 461 * [uploadOptions] - Options for the media upload. Streaming Media without the | 487 /// [uploadOptions] - Options for the media upload. Streaming Media without |
| 462 * length being known ahead of time is only supported via resumable uploads. | 488 /// the length being known ahead of time is only supported via resumable |
| 463 * | 489 /// uploads. |
| 464 * Completes with a [Caption]. | 490 /// |
| 465 * | 491 /// Completes with a [Caption]. |
| 466 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 492 /// |
| 467 * error. | 493 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 468 * | 494 /// an error. |
| 469 * If the used [http.Client] completes with an error when making a REST call, | 495 /// |
| 470 * this method will complete with the same error. | 496 /// If the used [http.Client] completes with an error when making a REST |
| 471 */ | 497 /// call, this method will complete with the same error. |
| 472 async.Future<Caption> insert(Caption request, core.String part, {core.String o
nBehalfOf, core.String onBehalfOfContentOwner, core.bool sync, commons.UploadOpt
ions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia})
{ | 498 async.Future<Caption> insert(Caption request, core.String part, |
| 499 {core.String onBehalfOf, |
| 500 core.String onBehalfOfContentOwner, |
| 501 core.bool sync, |
| 502 commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 503 commons.Media uploadMedia}) { |
| 473 var _url = null; | 504 var _url = null; |
| 474 var _queryParams = new core.Map(); | 505 var _queryParams = new core.Map(); |
| 475 var _uploadMedia = null; | 506 var _uploadMedia = null; |
| 476 var _uploadOptions = null; | 507 var _uploadOptions = null; |
| 477 var _downloadOptions = commons.DownloadOptions.Metadata; | 508 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 478 var _body = null; | 509 var _body = null; |
| 479 | 510 |
| 480 if (request != null) { | 511 if (request != null) { |
| 481 _body = convert.JSON.encode((request).toJson()); | 512 _body = convert.JSON.encode((request).toJson()); |
| 482 } | 513 } |
| 483 if (part == null) { | 514 if (part == null) { |
| 484 throw new core.ArgumentError("Parameter part is required."); | 515 throw new core.ArgumentError("Parameter part is required."); |
| 485 } | 516 } |
| 486 _queryParams["part"] = [part]; | 517 _queryParams["part"] = [part]; |
| 487 if (onBehalfOf != null) { | 518 if (onBehalfOf != null) { |
| 488 _queryParams["onBehalfOf"] = [onBehalfOf]; | 519 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 489 } | 520 } |
| 490 if (onBehalfOfContentOwner != null) { | 521 if (onBehalfOfContentOwner != null) { |
| 491 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 522 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 492 } | 523 } |
| 493 if (sync != null) { | 524 if (sync != null) { |
| 494 _queryParams["sync"] = ["${sync}"]; | 525 _queryParams["sync"] = ["${sync}"]; |
| 495 } | 526 } |
| 496 | 527 |
| 497 _uploadMedia = uploadMedia; | 528 _uploadMedia = uploadMedia; |
| 498 _uploadOptions = uploadOptions; | 529 _uploadOptions = uploadOptions; |
| 499 | 530 |
| 500 if (_uploadMedia == null) { | 531 if (_uploadMedia == null) { |
| 501 _url = 'captions'; | 532 _url = 'captions'; |
| 502 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 533 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 503 _url = '/resumable/upload/youtube/v3/captions'; | 534 _url = '/resumable/upload/youtube/v3/captions'; |
| 504 } else { | 535 } else { |
| 505 _url = '/upload/youtube/v3/captions'; | 536 _url = '/upload/youtube/v3/captions'; |
| 506 } | 537 } |
| 507 | 538 |
| 508 | 539 var _response = _requester.request(_url, "POST", |
| 509 var _response = _requester.request(_url, | 540 body: _body, |
| 510 "POST", | 541 queryParams: _queryParams, |
| 511 body: _body, | 542 uploadOptions: _uploadOptions, |
| 512 queryParams: _queryParams, | 543 uploadMedia: _uploadMedia, |
| 513 uploadOptions: _uploadOptions, | 544 downloadOptions: _downloadOptions); |
| 514 uploadMedia: _uploadMedia, | |
| 515 downloadOptions: _downloadOptions); | |
| 516 return _response.then((data) => new Caption.fromJson(data)); | 545 return _response.then((data) => new Caption.fromJson(data)); |
| 517 } | 546 } |
| 518 | 547 |
| 519 /** | 548 /// Returns a list of caption tracks that are associated with a specified |
| 520 * Returns a list of caption tracks that are associated with a specified | 549 /// video. Note that the API response does not contain the actual captions |
| 521 * video. Note that the API response does not contain the actual captions and | 550 /// and that the captions.download method provides the ability to retrieve a |
| 522 * that the captions.download method provides the ability to retrieve a | 551 /// caption track. |
| 523 * caption track. | 552 /// |
| 524 * | 553 /// Request parameters: |
| 525 * Request parameters: | 554 /// |
| 526 * | 555 /// [part] - The part parameter specifies a comma-separated list of one or |
| 527 * [part] - The part parameter specifies a comma-separated list of one or more | 556 /// more caption resource parts that the API response will include. The part |
| 528 * caption resource parts that the API response will include. The part names | 557 /// names that you can include in the parameter value are id and snippet. |
| 529 * that you can include in the parameter value are id and snippet. | 558 /// |
| 530 * | 559 /// [videoId] - The videoId parameter specifies the YouTube video ID of the |
| 531 * [videoId] - The videoId parameter specifies the YouTube video ID of the | 560 /// video for which the API should return caption tracks. |
| 532 * video for which the API should return caption tracks. | 561 /// |
| 533 * | 562 /// [id] - The id parameter specifies a comma-separated list of IDs that |
| 534 * [id] - The id parameter specifies a comma-separated list of IDs that | 563 /// identify the caption resources that should be retrieved. Each ID must |
| 535 * identify the caption resources that should be retrieved. Each ID must | 564 /// identify a caption track associated with the specified video. |
| 536 * identify a caption track associated with the specified video. | 565 /// |
| 537 * | 566 /// [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 538 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 567 /// on behalf of. |
| 539 * on behalf of. | 568 /// |
| 540 * | 569 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 541 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 570 /// for YouTube content partners. |
| 542 * YouTube content partners. | 571 /// |
| 543 * | 572 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 544 * The onBehalfOfContentOwner parameter indicates that the request's | 573 /// authorization credentials identify a YouTube CMS user who is acting on |
| 545 * authorization credentials identify a YouTube CMS user who is acting on | 574 /// behalf of the content owner specified in the parameter value. This |
| 546 * behalf of the content owner specified in the parameter value. This | 575 /// parameter is intended for YouTube content partners that own and manage |
| 547 * parameter is intended for YouTube content partners that own and manage many | 576 /// many different YouTube channels. It allows content owners to authenticate |
| 548 * different YouTube channels. It allows content owners to authenticate once | 577 /// once and get access to all their video and channel data, without having |
| 549 * and get access to all their video and channel data, without having to | 578 /// to provide authentication credentials for each individual channel. The |
| 550 * provide authentication credentials for each individual channel. The actual | 579 /// actual CMS account that the user authenticates with must be linked to the |
| 551 * CMS account that the user authenticates with must be linked to the | 580 /// specified YouTube content owner. |
| 552 * specified YouTube content owner. | 581 /// |
| 553 * | 582 /// Completes with a [CaptionListResponse]. |
| 554 * Completes with a [CaptionListResponse]. | 583 /// |
| 555 * | 584 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 585 /// an error. |
| 557 * error. | 586 /// |
| 558 * | 587 /// If the used [http.Client] completes with an error when making a REST |
| 559 * If the used [http.Client] completes with an error when making a REST call, | 588 /// call, this method will complete with the same error. |
| 560 * this method will complete with the same error. | 589 async.Future<CaptionListResponse> list(core.String part, core.String videoId, |
| 561 */ | 590 {core.String id, |
| 562 async.Future<CaptionListResponse> list(core.String part, core.String videoId,
{core.String id, core.String onBehalfOf, core.String onBehalfOfContentOwner}) { | 591 core.String onBehalfOf, |
| 592 core.String onBehalfOfContentOwner}) { |
| 563 var _url = null; | 593 var _url = null; |
| 564 var _queryParams = new core.Map(); | 594 var _queryParams = new core.Map(); |
| 565 var _uploadMedia = null; | 595 var _uploadMedia = null; |
| 566 var _uploadOptions = null; | 596 var _uploadOptions = null; |
| 567 var _downloadOptions = commons.DownloadOptions.Metadata; | 597 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 568 var _body = null; | 598 var _body = null; |
| 569 | 599 |
| 570 if (part == null) { | 600 if (part == null) { |
| 571 throw new core.ArgumentError("Parameter part is required."); | 601 throw new core.ArgumentError("Parameter part is required."); |
| 572 } | 602 } |
| 573 _queryParams["part"] = [part]; | 603 _queryParams["part"] = [part]; |
| 574 if (videoId == null) { | 604 if (videoId == null) { |
| 575 throw new core.ArgumentError("Parameter videoId is required."); | 605 throw new core.ArgumentError("Parameter videoId is required."); |
| 576 } | 606 } |
| 577 _queryParams["videoId"] = [videoId]; | 607 _queryParams["videoId"] = [videoId]; |
| 578 if (id != null) { | 608 if (id != null) { |
| 579 _queryParams["id"] = [id]; | 609 _queryParams["id"] = [id]; |
| 580 } | 610 } |
| 581 if (onBehalfOf != null) { | 611 if (onBehalfOf != null) { |
| 582 _queryParams["onBehalfOf"] = [onBehalfOf]; | 612 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 583 } | 613 } |
| 584 if (onBehalfOfContentOwner != null) { | 614 if (onBehalfOfContentOwner != null) { |
| 585 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 615 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 586 } | 616 } |
| 587 | 617 |
| 588 _url = 'captions'; | 618 _url = 'captions'; |
| 589 | 619 |
| 590 var _response = _requester.request(_url, | 620 var _response = _requester.request(_url, "GET", |
| 591 "GET", | 621 body: _body, |
| 592 body: _body, | 622 queryParams: _queryParams, |
| 593 queryParams: _queryParams, | 623 uploadOptions: _uploadOptions, |
| 594 uploadOptions: _uploadOptions, | 624 uploadMedia: _uploadMedia, |
| 595 uploadMedia: _uploadMedia, | 625 downloadOptions: _downloadOptions); |
| 596 downloadOptions: _downloadOptions); | |
| 597 return _response.then((data) => new CaptionListResponse.fromJson(data)); | 626 return _response.then((data) => new CaptionListResponse.fromJson(data)); |
| 598 } | 627 } |
| 599 | 628 |
| 600 /** | 629 /// Updates a caption track. When updating a caption track, you can change |
| 601 * Updates a caption track. When updating a caption track, you can change the | 630 /// the track's draft status, upload a new caption file for the track, or |
| 602 * track's draft status, upload a new caption file for the track, or both. | 631 /// both. |
| 603 * | 632 /// |
| 604 * [request] - The metadata request object. | 633 /// [request] - The metadata request object. |
| 605 * | 634 /// |
| 606 * Request parameters: | 635 /// Request parameters: |
| 607 * | 636 /// |
| 608 * [part] - The part parameter serves two purposes in this operation. It | 637 /// [part] - The part parameter serves two purposes in this operation. It |
| 609 * identifies the properties that the write operation will set as well as the | 638 /// identifies the properties that the write operation will set as well as |
| 610 * properties that the API response will include. Set the property value to | 639 /// the properties that the API response will include. Set the property value |
| 611 * snippet if you are updating the track's draft status. Otherwise, set the | 640 /// to snippet if you are updating the track's draft status. Otherwise, set |
| 612 * property value to id. | 641 /// the property value to id. |
| 613 * | 642 /// |
| 614 * [onBehalfOf] - ID of the Google+ Page for the channel that the request is | 643 /// [onBehalfOf] - ID of the Google+ Page for the channel that the request is |
| 615 * be on behalf of | 644 /// be on behalf of |
| 616 * | 645 /// |
| 617 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 646 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 618 * YouTube content partners. | 647 /// for YouTube content partners. |
| 619 * | 648 /// |
| 620 * The onBehalfOfContentOwner parameter indicates that the request's | 649 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 621 * authorization credentials identify a YouTube CMS user who is acting on | 650 /// authorization credentials identify a YouTube CMS user who is acting on |
| 622 * behalf of the content owner specified in the parameter value. This | 651 /// behalf of the content owner specified in the parameter value. This |
| 623 * parameter is intended for YouTube content partners that own and manage many | 652 /// parameter is intended for YouTube content partners that own and manage |
| 624 * different YouTube channels. It allows content owners to authenticate once | 653 /// many different YouTube channels. It allows content owners to authenticate |
| 625 * and get access to all their video and channel data, without having to | 654 /// once and get access to all their video and channel data, without having |
| 626 * provide authentication credentials for each individual channel. The actual | 655 /// to provide authentication credentials for each individual channel. The |
| 627 * CMS account that the user authenticates with must be linked to the | 656 /// actual CMS account that the user authenticates with must be linked to the |
| 628 * specified YouTube content owner. | 657 /// specified YouTube content owner. |
| 629 * | 658 /// |
| 630 * [sync] - Note: The API server only processes the parameter value if the | 659 /// [sync] - Note: The API server only processes the parameter value if the |
| 631 * request contains an updated caption file. | 660 /// request contains an updated caption file. |
| 632 * | 661 /// |
| 633 * The sync parameter indicates whether YouTube should automatically | 662 /// The sync parameter indicates whether YouTube should automatically |
| 634 * synchronize the caption file with the audio track of the video. If you set | 663 /// synchronize the caption file with the audio track of the video. If you |
| 635 * the value to true, YouTube will automatically synchronize the caption track | 664 /// set the value to true, YouTube will automatically synchronize the caption |
| 636 * with the audio track. | 665 /// track with the audio track. |
| 637 * | 666 /// |
| 638 * [uploadMedia] - The media to upload. | 667 /// [uploadMedia] - The media to upload. |
| 639 * | 668 /// |
| 640 * [uploadOptions] - Options for the media upload. Streaming Media without the | 669 /// [uploadOptions] - Options for the media upload. Streaming Media without |
| 641 * length being known ahead of time is only supported via resumable uploads. | 670 /// the length being known ahead of time is only supported via resumable |
| 642 * | 671 /// uploads. |
| 643 * Completes with a [Caption]. | 672 /// |
| 644 * | 673 /// Completes with a [Caption]. |
| 645 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 674 /// |
| 646 * error. | 675 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 647 * | 676 /// an error. |
| 648 * If the used [http.Client] completes with an error when making a REST call, | 677 /// |
| 649 * this method will complete with the same error. | 678 /// If the used [http.Client] completes with an error when making a REST |
| 650 */ | 679 /// call, this method will complete with the same error. |
| 651 async.Future<Caption> update(Caption request, core.String part, {core.String o
nBehalfOf, core.String onBehalfOfContentOwner, core.bool sync, commons.UploadOpt
ions uploadOptions : commons.UploadOptions.Default, commons.Media uploadMedia})
{ | 680 async.Future<Caption> update(Caption request, core.String part, |
| 681 {core.String onBehalfOf, |
| 682 core.String onBehalfOfContentOwner, |
| 683 core.bool sync, |
| 684 commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 685 commons.Media uploadMedia}) { |
| 652 var _url = null; | 686 var _url = null; |
| 653 var _queryParams = new core.Map(); | 687 var _queryParams = new core.Map(); |
| 654 var _uploadMedia = null; | 688 var _uploadMedia = null; |
| 655 var _uploadOptions = null; | 689 var _uploadOptions = null; |
| 656 var _downloadOptions = commons.DownloadOptions.Metadata; | 690 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 657 var _body = null; | 691 var _body = null; |
| 658 | 692 |
| 659 if (request != null) { | 693 if (request != null) { |
| 660 _body = convert.JSON.encode((request).toJson()); | 694 _body = convert.JSON.encode((request).toJson()); |
| 661 } | 695 } |
| 662 if (part == null) { | 696 if (part == null) { |
| 663 throw new core.ArgumentError("Parameter part is required."); | 697 throw new core.ArgumentError("Parameter part is required."); |
| 664 } | 698 } |
| 665 _queryParams["part"] = [part]; | 699 _queryParams["part"] = [part]; |
| 666 if (onBehalfOf != null) { | 700 if (onBehalfOf != null) { |
| 667 _queryParams["onBehalfOf"] = [onBehalfOf]; | 701 _queryParams["onBehalfOf"] = [onBehalfOf]; |
| 668 } | 702 } |
| 669 if (onBehalfOfContentOwner != null) { | 703 if (onBehalfOfContentOwner != null) { |
| 670 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 704 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 671 } | 705 } |
| 672 if (sync != null) { | 706 if (sync != null) { |
| 673 _queryParams["sync"] = ["${sync}"]; | 707 _queryParams["sync"] = ["${sync}"]; |
| 674 } | 708 } |
| 675 | 709 |
| 676 _uploadMedia = uploadMedia; | 710 _uploadMedia = uploadMedia; |
| 677 _uploadOptions = uploadOptions; | 711 _uploadOptions = uploadOptions; |
| 678 | 712 |
| 679 if (_uploadMedia == null) { | 713 if (_uploadMedia == null) { |
| 680 _url = 'captions'; | 714 _url = 'captions'; |
| 681 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 715 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 682 _url = '/resumable/upload/youtube/v3/captions'; | 716 _url = '/resumable/upload/youtube/v3/captions'; |
| 683 } else { | 717 } else { |
| 684 _url = '/upload/youtube/v3/captions'; | 718 _url = '/upload/youtube/v3/captions'; |
| 685 } | 719 } |
| 686 | 720 |
| 687 | 721 var _response = _requester.request(_url, "PUT", |
| 688 var _response = _requester.request(_url, | 722 body: _body, |
| 689 "PUT", | 723 queryParams: _queryParams, |
| 690 body: _body, | 724 uploadOptions: _uploadOptions, |
| 691 queryParams: _queryParams, | 725 uploadMedia: _uploadMedia, |
| 692 uploadOptions: _uploadOptions, | 726 downloadOptions: _downloadOptions); |
| 693 uploadMedia: _uploadMedia, | |
| 694 downloadOptions: _downloadOptions); | |
| 695 return _response.then((data) => new Caption.fromJson(data)); | 727 return _response.then((data) => new Caption.fromJson(data)); |
| 696 } | 728 } |
| 697 | |
| 698 } | 729 } |
| 699 | 730 |
| 700 | |
| 701 class ChannelBannersResourceApi { | 731 class ChannelBannersResourceApi { |
| 702 final commons.ApiRequester _requester; | 732 final commons.ApiRequester _requester; |
| 703 | 733 |
| 704 ChannelBannersResourceApi(commons.ApiRequester client) : | 734 ChannelBannersResourceApi(commons.ApiRequester client) : _requester = client; |
| 705 _requester = client; | |
| 706 | 735 |
| 707 /** | 736 /// Uploads a channel banner image to YouTube. This method represents the |
| 708 * Uploads a channel banner image to YouTube. This method represents the first | 737 /// first two steps in a three-step process to update the banner image for a |
| 709 * two steps in a three-step process to update the banner image for a channel: | 738 /// channel: |
| 710 * | 739 /// |
| 711 * - Call the channelBanners.insert method to upload the binary image data to | 740 /// - Call the channelBanners.insert method to upload the binary image data |
| 712 * YouTube. The image must have a 16:9 aspect ratio and be at least 2120x1192 | 741 /// to YouTube. The image must have a 16:9 aspect ratio and be at least |
| 713 * pixels. | 742 /// 2120x1192 pixels. |
| 714 * - Extract the url property's value from the response that the API returns | 743 /// - Extract the url property's value from the response that the API returns |
| 715 * for step 1. | 744 /// for step 1. |
| 716 * - Call the channels.update method to update the channel's branding | 745 /// - Call the channels.update method to update the channel's branding |
| 717 * settings. Set the brandingSettings.image.bannerExternalUrl property's value | 746 /// settings. Set the brandingSettings.image.bannerExternalUrl property's |
| 718 * to the URL obtained in step 2. | 747 /// value to the URL obtained in step 2. |
| 719 * | 748 /// |
| 720 * [request] - The metadata request object. | 749 /// [request] - The metadata request object. |
| 721 * | 750 /// |
| 722 * Request parameters: | 751 /// Request parameters: |
| 723 * | 752 /// |
| 724 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 753 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 725 * YouTube content partners. | 754 /// for YouTube content partners. |
| 726 * | 755 /// |
| 727 * The onBehalfOfContentOwner parameter indicates that the request's | 756 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 728 * authorization credentials identify a YouTube CMS user who is acting on | 757 /// authorization credentials identify a YouTube CMS user who is acting on |
| 729 * behalf of the content owner specified in the parameter value. This | 758 /// behalf of the content owner specified in the parameter value. This |
| 730 * parameter is intended for YouTube content partners that own and manage many | 759 /// parameter is intended for YouTube content partners that own and manage |
| 731 * different YouTube channels. It allows content owners to authenticate once | 760 /// many different YouTube channels. It allows content owners to authenticate |
| 732 * and get access to all their video and channel data, without having to | 761 /// once and get access to all their video and channel data, without having |
| 733 * provide authentication credentials for each individual channel. The CMS | 762 /// to provide authentication credentials for each individual channel. The |
| 734 * account that the user authenticates with must be linked to the specified | 763 /// CMS account that the user authenticates with must be linked to the |
| 735 * YouTube content owner. | 764 /// specified YouTube content owner. |
| 736 * | 765 /// |
| 737 * [uploadMedia] - The media to upload. | 766 /// [uploadMedia] - The media to upload. |
| 738 * | 767 /// |
| 739 * [uploadOptions] - Options for the media upload. Streaming Media without the | 768 /// [uploadOptions] - Options for the media upload. Streaming Media without |
| 740 * length being known ahead of time is only supported via resumable uploads. | 769 /// the length being known ahead of time is only supported via resumable |
| 741 * | 770 /// uploads. |
| 742 * Completes with a [ChannelBannerResource]. | 771 /// |
| 743 * | 772 /// Completes with a [ChannelBannerResource]. |
| 744 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 773 /// |
| 745 * error. | 774 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 746 * | 775 /// an error. |
| 747 * If the used [http.Client] completes with an error when making a REST call, | 776 /// |
| 748 * this method will complete with the same error. | 777 /// If the used [http.Client] completes with an error when making a REST |
| 749 */ | 778 /// call, this method will complete with the same error. |
| 750 async.Future<ChannelBannerResource> insert(ChannelBannerResource request, {cor
e.String onBehalfOfContentOwner, commons.UploadOptions uploadOptions : commons.U
ploadOptions.Default, commons.Media uploadMedia}) { | 779 async.Future<ChannelBannerResource> insert(ChannelBannerResource request, |
| 780 {core.String onBehalfOfContentOwner, |
| 781 commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 782 commons.Media uploadMedia}) { |
| 751 var _url = null; | 783 var _url = null; |
| 752 var _queryParams = new core.Map(); | 784 var _queryParams = new core.Map(); |
| 753 var _uploadMedia = null; | 785 var _uploadMedia = null; |
| 754 var _uploadOptions = null; | 786 var _uploadOptions = null; |
| 755 var _downloadOptions = commons.DownloadOptions.Metadata; | 787 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 756 var _body = null; | 788 var _body = null; |
| 757 | 789 |
| 758 if (request != null) { | 790 if (request != null) { |
| 759 _body = convert.JSON.encode((request).toJson()); | 791 _body = convert.JSON.encode((request).toJson()); |
| 760 } | 792 } |
| 761 if (onBehalfOfContentOwner != null) { | 793 if (onBehalfOfContentOwner != null) { |
| 762 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 794 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 763 } | 795 } |
| 764 | 796 |
| 765 _uploadMedia = uploadMedia; | 797 _uploadMedia = uploadMedia; |
| 766 _uploadOptions = uploadOptions; | 798 _uploadOptions = uploadOptions; |
| 767 | 799 |
| 768 if (_uploadMedia == null) { | 800 if (_uploadMedia == null) { |
| 769 _url = 'channelBanners/insert'; | 801 _url = 'channelBanners/insert'; |
| 770 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 802 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 771 _url = '/resumable/upload/youtube/v3/channelBanners/insert'; | 803 _url = '/resumable/upload/youtube/v3/channelBanners/insert'; |
| 772 } else { | 804 } else { |
| 773 _url = '/upload/youtube/v3/channelBanners/insert'; | 805 _url = '/upload/youtube/v3/channelBanners/insert'; |
| 774 } | 806 } |
| 775 | 807 |
| 776 | 808 var _response = _requester.request(_url, "POST", |
| 777 var _response = _requester.request(_url, | 809 body: _body, |
| 778 "POST", | 810 queryParams: _queryParams, |
| 779 body: _body, | 811 uploadOptions: _uploadOptions, |
| 780 queryParams: _queryParams, | 812 uploadMedia: _uploadMedia, |
| 781 uploadOptions: _uploadOptions, | 813 downloadOptions: _downloadOptions); |
| 782 uploadMedia: _uploadMedia, | |
| 783 downloadOptions: _downloadOptions); | |
| 784 return _response.then((data) => new ChannelBannerResource.fromJson(data)); | 814 return _response.then((data) => new ChannelBannerResource.fromJson(data)); |
| 785 } | 815 } |
| 786 | |
| 787 } | 816 } |
| 788 | 817 |
| 789 | |
| 790 class ChannelSectionsResourceApi { | 818 class ChannelSectionsResourceApi { |
| 791 final commons.ApiRequester _requester; | 819 final commons.ApiRequester _requester; |
| 792 | 820 |
| 793 ChannelSectionsResourceApi(commons.ApiRequester client) : | 821 ChannelSectionsResourceApi(commons.ApiRequester client) : _requester = client; |
| 794 _requester = client; | |
| 795 | 822 |
| 796 /** | 823 /// Deletes a channelSection. |
| 797 * Deletes a channelSection. | 824 /// |
| 798 * | 825 /// Request parameters: |
| 799 * Request parameters: | 826 /// |
| 800 * | 827 /// [id] - The id parameter specifies the YouTube channelSection ID for the |
| 801 * [id] - The id parameter specifies the YouTube channelSection ID for the | 828 /// resource that is being deleted. In a channelSection resource, the id |
| 802 * resource that is being deleted. In a channelSection resource, the id | 829 /// property specifies the YouTube channelSection ID. |
| 803 * property specifies the YouTube channelSection ID. | 830 /// |
| 804 * | 831 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 805 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 832 /// for YouTube content partners. |
| 806 * YouTube content partners. | 833 /// |
| 807 * | 834 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 808 * The onBehalfOfContentOwner parameter indicates that the request's | 835 /// authorization credentials identify a YouTube CMS user who is acting on |
| 809 * authorization credentials identify a YouTube CMS user who is acting on | 836 /// behalf of the content owner specified in the parameter value. This |
| 810 * behalf of the content owner specified in the parameter value. This | 837 /// parameter is intended for YouTube content partners that own and manage |
| 811 * parameter is intended for YouTube content partners that own and manage many | 838 /// many different YouTube channels. It allows content owners to authenticate |
| 812 * different YouTube channels. It allows content owners to authenticate once | 839 /// once and get access to all their video and channel data, without having |
| 813 * and get access to all their video and channel data, without having to | 840 /// to provide authentication credentials for each individual channel. The |
| 814 * provide authentication credentials for each individual channel. The CMS | 841 /// CMS account that the user authenticates with must be linked to the |
| 815 * account that the user authenticates with must be linked to the specified | 842 /// specified YouTube content owner. |
| 816 * YouTube content owner. | 843 /// |
| 817 * | 844 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 818 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 845 /// an error. |
| 819 * error. | 846 /// |
| 820 * | 847 /// If the used [http.Client] completes with an error when making a REST |
| 821 * If the used [http.Client] completes with an error when making a REST call, | 848 /// call, this method will complete with the same error. |
| 822 * this method will complete with the same error. | |
| 823 */ | |
| 824 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { | 849 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { |
| 825 var _url = null; | 850 var _url = null; |
| 826 var _queryParams = new core.Map(); | 851 var _queryParams = new core.Map(); |
| 827 var _uploadMedia = null; | 852 var _uploadMedia = null; |
| 828 var _uploadOptions = null; | 853 var _uploadOptions = null; |
| 829 var _downloadOptions = commons.DownloadOptions.Metadata; | 854 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 830 var _body = null; | 855 var _body = null; |
| 831 | 856 |
| 832 if (id == null) { | 857 if (id == null) { |
| 833 throw new core.ArgumentError("Parameter id is required."); | 858 throw new core.ArgumentError("Parameter id is required."); |
| 834 } | 859 } |
| 835 _queryParams["id"] = [id]; | 860 _queryParams["id"] = [id]; |
| 836 if (onBehalfOfContentOwner != null) { | 861 if (onBehalfOfContentOwner != null) { |
| 837 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 862 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 838 } | 863 } |
| 839 | 864 |
| 840 _downloadOptions = null; | 865 _downloadOptions = null; |
| 841 | 866 |
| 842 _url = 'channelSections'; | 867 _url = 'channelSections'; |
| 843 | 868 |
| 844 var _response = _requester.request(_url, | 869 var _response = _requester.request(_url, "DELETE", |
| 845 "DELETE", | 870 body: _body, |
| 846 body: _body, | 871 queryParams: _queryParams, |
| 847 queryParams: _queryParams, | 872 uploadOptions: _uploadOptions, |
| 848 uploadOptions: _uploadOptions, | 873 uploadMedia: _uploadMedia, |
| 849 uploadMedia: _uploadMedia, | 874 downloadOptions: _downloadOptions); |
| 850 downloadOptions: _downloadOptions); | |
| 851 return _response.then((data) => null); | 875 return _response.then((data) => null); |
| 852 } | 876 } |
| 853 | 877 |
| 854 /** | 878 /// Adds a channelSection for the authenticated user's channel. |
| 855 * Adds a channelSection for the authenticated user's channel. | 879 /// |
| 856 * | 880 /// [request] - The metadata request object. |
| 857 * [request] - The metadata request object. | 881 /// |
| 858 * | 882 /// Request parameters: |
| 859 * Request parameters: | 883 /// |
| 860 * | 884 /// [part] - The part parameter serves two purposes in this operation. It |
| 861 * [part] - The part parameter serves two purposes in this operation. It | 885 /// identifies the properties that the write operation will set as well as |
| 862 * identifies the properties that the write operation will set as well as the | 886 /// the properties that the API response will include. |
| 863 * properties that the API response will include. | 887 /// |
| 864 * | 888 /// The part names that you can include in the parameter value are snippet |
| 865 * The part names that you can include in the parameter value are snippet and | 889 /// and contentDetails. |
| 866 * contentDetails. | 890 /// |
| 867 * | 891 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 868 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 892 /// for YouTube content partners. |
| 869 * YouTube content partners. | 893 /// |
| 870 * | 894 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 871 * The onBehalfOfContentOwner parameter indicates that the request's | 895 /// authorization credentials identify a YouTube CMS user who is acting on |
| 872 * authorization credentials identify a YouTube CMS user who is acting on | 896 /// behalf of the content owner specified in the parameter value. This |
| 873 * behalf of the content owner specified in the parameter value. This | 897 /// parameter is intended for YouTube content partners that own and manage |
| 874 * parameter is intended for YouTube content partners that own and manage many | 898 /// many different YouTube channels. It allows content owners to authenticate |
| 875 * different YouTube channels. It allows content owners to authenticate once | 899 /// once and get access to all their video and channel data, without having |
| 876 * and get access to all their video and channel data, without having to | 900 /// to provide authentication credentials for each individual channel. The |
| 877 * provide authentication credentials for each individual channel. The CMS | 901 /// CMS account that the user authenticates with must be linked to the |
| 878 * account that the user authenticates with must be linked to the specified | 902 /// specified YouTube content owner. |
| 879 * YouTube content owner. | 903 /// |
| 880 * | 904 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 881 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 905 /// properly authorized request. Note: This parameter is intended exclusively |
| 882 * properly authorized request. Note: This parameter is intended exclusively | 906 /// for YouTube content partners. |
| 883 * for YouTube content partners. | 907 /// |
| 884 * | 908 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 885 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 909 /// ID of the channel to which a video is being added. This parameter is |
| 886 * ID of the channel to which a video is being added. This parameter is | 910 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 887 * required when a request specifies a value for the onBehalfOfContentOwner | 911 /// parameter, and it can only be used in conjunction with that parameter. In |
| 888 * parameter, and it can only be used in conjunction with that parameter. In | 912 /// addition, the request must be authorized using a CMS account that is |
| 889 * addition, the request must be authorized using a CMS account that is linked | 913 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 890 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 914 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 891 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 915 /// parameter value specifies must be linked to the content owner that the |
| 892 * specifies must be linked to the content owner that the | 916 /// onBehalfOfContentOwner parameter specifies. |
| 893 * onBehalfOfContentOwner parameter specifies. | 917 /// |
| 894 * | 918 /// This parameter is intended for YouTube content partners that own and |
| 895 * This parameter is intended for YouTube content partners that own and manage | 919 /// manage many different YouTube channels. It allows content owners to |
| 896 * many different YouTube channels. It allows content owners to authenticate | 920 /// authenticate once and perform actions on behalf of the channel specified |
| 897 * once and perform actions on behalf of the channel specified in the | 921 /// in the parameter value, without having to provide authentication |
| 898 * parameter value, without having to provide authentication credentials for | 922 /// credentials for each separate channel. |
| 899 * each separate channel. | 923 /// |
| 900 * | 924 /// Completes with a [ChannelSection]. |
| 901 * Completes with a [ChannelSection]. | 925 /// |
| 902 * | 926 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 903 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 927 /// an error. |
| 904 * error. | 928 /// |
| 905 * | 929 /// If the used [http.Client] completes with an error when making a REST |
| 906 * If the used [http.Client] completes with an error when making a REST call, | 930 /// call, this method will complete with the same error. |
| 907 * this method will complete with the same error. | 931 async.Future<ChannelSection> insert(ChannelSection request, core.String part, |
| 908 */ | 932 {core.String onBehalfOfContentOwner, |
| 909 async.Future<ChannelSection> insert(ChannelSection request, core.String part,
{core.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel})
{ | 933 core.String onBehalfOfContentOwnerChannel}) { |
| 910 var _url = null; | 934 var _url = null; |
| 911 var _queryParams = new core.Map(); | 935 var _queryParams = new core.Map(); |
| 912 var _uploadMedia = null; | 936 var _uploadMedia = null; |
| 913 var _uploadOptions = null; | 937 var _uploadOptions = null; |
| 914 var _downloadOptions = commons.DownloadOptions.Metadata; | 938 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 915 var _body = null; | 939 var _body = null; |
| 916 | 940 |
| 917 if (request != null) { | 941 if (request != null) { |
| 918 _body = convert.JSON.encode((request).toJson()); | 942 _body = convert.JSON.encode((request).toJson()); |
| 919 } | 943 } |
| 920 if (part == null) { | 944 if (part == null) { |
| 921 throw new core.ArgumentError("Parameter part is required."); | 945 throw new core.ArgumentError("Parameter part is required."); |
| 922 } | 946 } |
| 923 _queryParams["part"] = [part]; | 947 _queryParams["part"] = [part]; |
| 924 if (onBehalfOfContentOwner != null) { | 948 if (onBehalfOfContentOwner != null) { |
| 925 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 949 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 926 } | 950 } |
| 927 if (onBehalfOfContentOwnerChannel != null) { | 951 if (onBehalfOfContentOwnerChannel != null) { |
| 928 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 952 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 953 onBehalfOfContentOwnerChannel |
| 954 ]; |
| 929 } | 955 } |
| 930 | 956 |
| 931 _url = 'channelSections'; | 957 _url = 'channelSections'; |
| 932 | 958 |
| 933 var _response = _requester.request(_url, | 959 var _response = _requester.request(_url, "POST", |
| 934 "POST", | 960 body: _body, |
| 935 body: _body, | 961 queryParams: _queryParams, |
| 936 queryParams: _queryParams, | 962 uploadOptions: _uploadOptions, |
| 937 uploadOptions: _uploadOptions, | 963 uploadMedia: _uploadMedia, |
| 938 uploadMedia: _uploadMedia, | 964 downloadOptions: _downloadOptions); |
| 939 downloadOptions: _downloadOptions); | |
| 940 return _response.then((data) => new ChannelSection.fromJson(data)); | 965 return _response.then((data) => new ChannelSection.fromJson(data)); |
| 941 } | 966 } |
| 942 | 967 |
| 943 /** | 968 /// Returns channelSection resources that match the API request criteria. |
| 944 * Returns channelSection resources that match the API request criteria. | 969 /// |
| 945 * | 970 /// Request parameters: |
| 946 * Request parameters: | 971 /// |
| 947 * | 972 /// [part] - The part parameter specifies a comma-separated list of one or |
| 948 * [part] - The part parameter specifies a comma-separated list of one or more | 973 /// more channelSection resource properties that the API response will |
| 949 * channelSection resource properties that the API response will include. The | 974 /// include. The part names that you can include in the parameter value are |
| 950 * part names that you can include in the parameter value are id, snippet, and | 975 /// id, snippet, and contentDetails. |
| 951 * contentDetails. | 976 /// |
| 952 * | 977 /// If the parameter identifies a property that contains child properties, |
| 953 * If the parameter identifies a property that contains child properties, the | 978 /// the child properties will be included in the response. For example, in a |
| 954 * child properties will be included in the response. For example, in a | 979 /// channelSection resource, the snippet property contains other properties, |
| 955 * channelSection resource, the snippet property contains other properties, | 980 /// such as a display title for the channelSection. If you set part=snippet, |
| 956 * such as a display title for the channelSection. If you set part=snippet, | 981 /// the API response will also contain all of those nested properties. |
| 957 * the API response will also contain all of those nested properties. | 982 /// |
| 958 * | 983 /// [channelId] - The channelId parameter specifies a YouTube channel ID. The |
| 959 * [channelId] - The channelId parameter specifies a YouTube channel ID. The | 984 /// API will only return that channel's channelSections. |
| 960 * API will only return that channel's channelSections. | 985 /// |
| 961 * | 986 /// [hl] - The hl parameter indicates that the snippet.localized property |
| 962 * [hl] - The hl parameter indicates that the snippet.localized property | 987 /// values in the returned channelSection resources should be in the |
| 963 * values in the returned channelSection resources should be in the specified | 988 /// specified language if localized values for that language are available. |
| 964 * language if localized values for that language are available. For example, | 989 /// For example, if the API request specifies hl=de, the snippet.localized |
| 965 * if the API request specifies hl=de, the snippet.localized properties in the | 990 /// properties in the API response will contain German titles if German |
| 966 * API response will contain German titles if German titles are available. | 991 /// titles are available. Channel owners can provide localized channel |
| 967 * Channel owners can provide localized channel section titles using either | 992 /// section titles using either the channelSections.insert or |
| 968 * the channelSections.insert or channelSections.update method. | 993 /// channelSections.update method. |
| 969 * | 994 /// |
| 970 * [id] - The id parameter specifies a comma-separated list of the YouTube | 995 /// [id] - The id parameter specifies a comma-separated list of the YouTube |
| 971 * channelSection ID(s) for the resource(s) that are being retrieved. In a | 996 /// channelSection ID(s) for the resource(s) that are being retrieved. In a |
| 972 * channelSection resource, the id property specifies the YouTube | 997 /// channelSection resource, the id property specifies the YouTube |
| 973 * channelSection ID. | 998 /// channelSection ID. |
| 974 * | 999 /// |
| 975 * [mine] - Set this parameter's value to true to retrieve a feed of the | 1000 /// [mine] - Set this parameter's value to true to retrieve a feed of the |
| 976 * authenticated user's channelSections. | 1001 /// authenticated user's channelSections. |
| 977 * | 1002 /// |
| 978 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 1003 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 979 * YouTube content partners. | 1004 /// for YouTube content partners. |
| 980 * | 1005 /// |
| 981 * The onBehalfOfContentOwner parameter indicates that the request's | 1006 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 982 * authorization credentials identify a YouTube CMS user who is acting on | 1007 /// authorization credentials identify a YouTube CMS user who is acting on |
| 983 * behalf of the content owner specified in the parameter value. This | 1008 /// behalf of the content owner specified in the parameter value. This |
| 984 * parameter is intended for YouTube content partners that own and manage many | 1009 /// parameter is intended for YouTube content partners that own and manage |
| 985 * different YouTube channels. It allows content owners to authenticate once | 1010 /// many different YouTube channels. It allows content owners to authenticate |
| 986 * and get access to all their video and channel data, without having to | 1011 /// once and get access to all their video and channel data, without having |
| 987 * provide authentication credentials for each individual channel. The CMS | 1012 /// to provide authentication credentials for each individual channel. The |
| 988 * account that the user authenticates with must be linked to the specified | 1013 /// CMS account that the user authenticates with must be linked to the |
| 989 * YouTube content owner. | 1014 /// specified YouTube content owner. |
| 990 * | 1015 /// |
| 991 * Completes with a [ChannelSectionListResponse]. | 1016 /// Completes with a [ChannelSectionListResponse]. |
| 992 * | 1017 /// |
| 993 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1018 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 994 * error. | 1019 /// an error. |
| 995 * | 1020 /// |
| 996 * If the used [http.Client] completes with an error when making a REST call, | 1021 /// If the used [http.Client] completes with an error when making a REST |
| 997 * this method will complete with the same error. | 1022 /// call, this method will complete with the same error. |
| 998 */ | 1023 async.Future<ChannelSectionListResponse> list(core.String part, |
| 999 async.Future<ChannelSectionListResponse> list(core.String part, {core.String c
hannelId, core.String hl, core.String id, core.bool mine, core.String onBehalfOf
ContentOwner}) { | 1024 {core.String channelId, |
| 1025 core.String hl, |
| 1026 core.String id, |
| 1027 core.bool mine, |
| 1028 core.String onBehalfOfContentOwner}) { |
| 1000 var _url = null; | 1029 var _url = null; |
| 1001 var _queryParams = new core.Map(); | 1030 var _queryParams = new core.Map(); |
| 1002 var _uploadMedia = null; | 1031 var _uploadMedia = null; |
| 1003 var _uploadOptions = null; | 1032 var _uploadOptions = null; |
| 1004 var _downloadOptions = commons.DownloadOptions.Metadata; | 1033 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1005 var _body = null; | 1034 var _body = null; |
| 1006 | 1035 |
| 1007 if (part == null) { | 1036 if (part == null) { |
| 1008 throw new core.ArgumentError("Parameter part is required."); | 1037 throw new core.ArgumentError("Parameter part is required."); |
| 1009 } | 1038 } |
| 1010 _queryParams["part"] = [part]; | 1039 _queryParams["part"] = [part]; |
| 1011 if (channelId != null) { | 1040 if (channelId != null) { |
| 1012 _queryParams["channelId"] = [channelId]; | 1041 _queryParams["channelId"] = [channelId]; |
| 1013 } | 1042 } |
| 1014 if (hl != null) { | 1043 if (hl != null) { |
| 1015 _queryParams["hl"] = [hl]; | 1044 _queryParams["hl"] = [hl]; |
| 1016 } | 1045 } |
| 1017 if (id != null) { | 1046 if (id != null) { |
| 1018 _queryParams["id"] = [id]; | 1047 _queryParams["id"] = [id]; |
| 1019 } | 1048 } |
| 1020 if (mine != null) { | 1049 if (mine != null) { |
| 1021 _queryParams["mine"] = ["${mine}"]; | 1050 _queryParams["mine"] = ["${mine}"]; |
| 1022 } | 1051 } |
| 1023 if (onBehalfOfContentOwner != null) { | 1052 if (onBehalfOfContentOwner != null) { |
| 1024 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 1053 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 1025 } | 1054 } |
| 1026 | 1055 |
| 1027 _url = 'channelSections'; | 1056 _url = 'channelSections'; |
| 1028 | 1057 |
| 1029 var _response = _requester.request(_url, | 1058 var _response = _requester.request(_url, "GET", |
| 1030 "GET", | 1059 body: _body, |
| 1031 body: _body, | 1060 queryParams: _queryParams, |
| 1032 queryParams: _queryParams, | 1061 uploadOptions: _uploadOptions, |
| 1033 uploadOptions: _uploadOptions, | 1062 uploadMedia: _uploadMedia, |
| 1034 uploadMedia: _uploadMedia, | 1063 downloadOptions: _downloadOptions); |
| 1035 downloadOptions: _downloadOptions); | 1064 return _response |
| 1036 return _response.then((data) => new ChannelSectionListResponse.fromJson(data
)); | 1065 .then((data) => new ChannelSectionListResponse.fromJson(data)); |
| 1037 } | 1066 } |
| 1038 | 1067 |
| 1039 /** | 1068 /// Update a channelSection. |
| 1040 * Update a channelSection. | 1069 /// |
| 1041 * | 1070 /// [request] - The metadata request object. |
| 1042 * [request] - The metadata request object. | 1071 /// |
| 1043 * | 1072 /// Request parameters: |
| 1044 * Request parameters: | 1073 /// |
| 1045 * | 1074 /// [part] - The part parameter serves two purposes in this operation. It |
| 1046 * [part] - The part parameter serves two purposes in this operation. It | 1075 /// identifies the properties that the write operation will set as well as |
| 1047 * identifies the properties that the write operation will set as well as the | 1076 /// the properties that the API response will include. |
| 1048 * properties that the API response will include. | 1077 /// |
| 1049 * | 1078 /// The part names that you can include in the parameter value are snippet |
| 1050 * The part names that you can include in the parameter value are snippet and | 1079 /// and contentDetails. |
| 1051 * contentDetails. | 1080 /// |
| 1052 * | 1081 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 1053 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 1082 /// for YouTube content partners. |
| 1054 * YouTube content partners. | 1083 /// |
| 1055 * | 1084 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 1056 * The onBehalfOfContentOwner parameter indicates that the request's | 1085 /// authorization credentials identify a YouTube CMS user who is acting on |
| 1057 * authorization credentials identify a YouTube CMS user who is acting on | 1086 /// behalf of the content owner specified in the parameter value. This |
| 1058 * behalf of the content owner specified in the parameter value. This | 1087 /// parameter is intended for YouTube content partners that own and manage |
| 1059 * parameter is intended for YouTube content partners that own and manage many | 1088 /// many different YouTube channels. It allows content owners to authenticate |
| 1060 * different YouTube channels. It allows content owners to authenticate once | 1089 /// once and get access to all their video and channel data, without having |
| 1061 * and get access to all their video and channel data, without having to | 1090 /// to provide authentication credentials for each individual channel. The |
| 1062 * provide authentication credentials for each individual channel. The CMS | 1091 /// CMS account that the user authenticates with must be linked to the |
| 1063 * account that the user authenticates with must be linked to the specified | 1092 /// specified YouTube content owner. |
| 1064 * YouTube content owner. | 1093 /// |
| 1065 * | 1094 /// Completes with a [ChannelSection]. |
| 1066 * Completes with a [ChannelSection]. | 1095 /// |
| 1067 * | 1096 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1068 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1097 /// an error. |
| 1069 * error. | 1098 /// |
| 1070 * | 1099 /// If the used [http.Client] completes with an error when making a REST |
| 1071 * If the used [http.Client] completes with an error when making a REST call, | 1100 /// call, this method will complete with the same error. |
| 1072 * this method will complete with the same error. | 1101 async.Future<ChannelSection> update(ChannelSection request, core.String part, |
| 1073 */ | 1102 {core.String onBehalfOfContentOwner}) { |
| 1074 async.Future<ChannelSection> update(ChannelSection request, core.String part,
{core.String onBehalfOfContentOwner}) { | |
| 1075 var _url = null; | 1103 var _url = null; |
| 1076 var _queryParams = new core.Map(); | 1104 var _queryParams = new core.Map(); |
| 1077 var _uploadMedia = null; | 1105 var _uploadMedia = null; |
| 1078 var _uploadOptions = null; | 1106 var _uploadOptions = null; |
| 1079 var _downloadOptions = commons.DownloadOptions.Metadata; | 1107 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1080 var _body = null; | 1108 var _body = null; |
| 1081 | 1109 |
| 1082 if (request != null) { | 1110 if (request != null) { |
| 1083 _body = convert.JSON.encode((request).toJson()); | 1111 _body = convert.JSON.encode((request).toJson()); |
| 1084 } | 1112 } |
| 1085 if (part == null) { | 1113 if (part == null) { |
| 1086 throw new core.ArgumentError("Parameter part is required."); | 1114 throw new core.ArgumentError("Parameter part is required."); |
| 1087 } | 1115 } |
| 1088 _queryParams["part"] = [part]; | 1116 _queryParams["part"] = [part]; |
| 1089 if (onBehalfOfContentOwner != null) { | 1117 if (onBehalfOfContentOwner != null) { |
| 1090 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 1118 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 1091 } | 1119 } |
| 1092 | 1120 |
| 1093 _url = 'channelSections'; | 1121 _url = 'channelSections'; |
| 1094 | 1122 |
| 1095 var _response = _requester.request(_url, | 1123 var _response = _requester.request(_url, "PUT", |
| 1096 "PUT", | 1124 body: _body, |
| 1097 body: _body, | 1125 queryParams: _queryParams, |
| 1098 queryParams: _queryParams, | 1126 uploadOptions: _uploadOptions, |
| 1099 uploadOptions: _uploadOptions, | 1127 uploadMedia: _uploadMedia, |
| 1100 uploadMedia: _uploadMedia, | 1128 downloadOptions: _downloadOptions); |
| 1101 downloadOptions: _downloadOptions); | |
| 1102 return _response.then((data) => new ChannelSection.fromJson(data)); | 1129 return _response.then((data) => new ChannelSection.fromJson(data)); |
| 1103 } | 1130 } |
| 1104 | |
| 1105 } | 1131 } |
| 1106 | 1132 |
| 1107 | |
| 1108 class ChannelsResourceApi { | 1133 class ChannelsResourceApi { |
| 1109 final commons.ApiRequester _requester; | 1134 final commons.ApiRequester _requester; |
| 1110 | 1135 |
| 1111 ChannelsResourceApi(commons.ApiRequester client) : | 1136 ChannelsResourceApi(commons.ApiRequester client) : _requester = client; |
| 1112 _requester = client; | |
| 1113 | 1137 |
| 1114 /** | 1138 /// Returns a collection of zero or more channel resources that match the |
| 1115 * Returns a collection of zero or more channel resources that match the | 1139 /// request criteria. |
| 1116 * request criteria. | 1140 /// |
| 1117 * | 1141 /// Request parameters: |
| 1118 * Request parameters: | 1142 /// |
| 1119 * | 1143 /// [part] - The part parameter specifies a comma-separated list of one or |
| 1120 * [part] - The part parameter specifies a comma-separated list of one or more | 1144 /// more channel resource properties that the API response will include. |
| 1121 * channel resource properties that the API response will include. | 1145 /// |
| 1122 * | 1146 /// If the parameter identifies a property that contains child properties, |
| 1123 * If the parameter identifies a property that contains child properties, the | 1147 /// the child properties will be included in the response. For example, in a |
| 1124 * child properties will be included in the response. For example, in a | 1148 /// channel resource, the contentDetails property contains other properties, |
| 1125 * channel resource, the contentDetails property contains other properties, | 1149 /// such as the uploads properties. As such, if you set part=contentDetails, |
| 1126 * such as the uploads properties. As such, if you set part=contentDetails, | 1150 /// the API response will also contain all of those nested properties. |
| 1127 * the API response will also contain all of those nested properties. | 1151 /// |
| 1128 * | 1152 /// [categoryId] - The categoryId parameter specifies a YouTube guide |
| 1129 * [categoryId] - The categoryId parameter specifies a YouTube guide category, | 1153 /// category, thereby requesting YouTube channels associated with that |
| 1130 * thereby requesting YouTube channels associated with that category. | 1154 /// category. |
| 1131 * | 1155 /// |
| 1132 * [forUsername] - The forUsername parameter specifies a YouTube username, | 1156 /// [forUsername] - The forUsername parameter specifies a YouTube username, |
| 1133 * thereby requesting the channel associated with that username. | 1157 /// thereby requesting the channel associated with that username. |
| 1134 * | 1158 /// |
| 1135 * [hl] - The hl parameter should be used for filter out the properties that | 1159 /// [hl] - The hl parameter should be used for filter out the properties that |
| 1136 * are not in the given language. Used for the brandingSettings part. | 1160 /// are not in the given language. Used for the brandingSettings part. |
| 1137 * | 1161 /// |
| 1138 * [id] - The id parameter specifies a comma-separated list of the YouTube | 1162 /// [id] - The id parameter specifies a comma-separated list of the YouTube |
| 1139 * channel ID(s) for the resource(s) that are being retrieved. In a channel | 1163 /// channel ID(s) for the resource(s) that are being retrieved. In a channel |
| 1140 * resource, the id property specifies the channel's YouTube channel ID. | 1164 /// resource, the id property specifies the channel's YouTube channel ID. |
| 1141 * | 1165 /// |
| 1142 * [managedByMe] - Note: This parameter is intended exclusively for YouTube | 1166 /// [managedByMe] - Note: This parameter is intended exclusively for YouTube |
| 1143 * content partners. | 1167 /// content partners. |
| 1144 * | 1168 /// |
| 1145 * Set this parameter's value to true to instruct the API to only return | 1169 /// Set this parameter's value to true to instruct the API to only return |
| 1146 * channels managed by the content owner that the onBehalfOfContentOwner | 1170 /// channels managed by the content owner that the onBehalfOfContentOwner |
| 1147 * parameter specifies. The user must be authenticated as a CMS account linked | 1171 /// parameter specifies. The user must be authenticated as a CMS account |
| 1148 * to the specified content owner and onBehalfOfContentOwner must be provided. | 1172 /// linked to the specified content owner and onBehalfOfContentOwner must be |
| 1149 * | 1173 /// provided. |
| 1150 * [maxResults] - The maxResults parameter specifies the maximum number of | 1174 /// |
| 1151 * items that should be returned in the result set. | 1175 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 1152 * Value must be between "0" and "50". | 1176 /// items that should be returned in the result set. |
| 1153 * | 1177 /// Value must be between "0" and "50". |
| 1154 * [mine] - Set this parameter's value to true to instruct the API to only | 1178 /// |
| 1155 * return channels owned by the authenticated user. | 1179 /// [mine] - Set this parameter's value to true to instruct the API to only |
| 1156 * | 1180 /// return channels owned by the authenticated user. |
| 1157 * [mySubscribers] - Use the subscriptions.list method and its mySubscribers | 1181 /// |
| 1158 * parameter to retrieve a list of subscribers to the authenticated user's | 1182 /// [mySubscribers] - Use the subscriptions.list method and its mySubscribers |
| 1159 * channel. | 1183 /// parameter to retrieve a list of subscribers to the authenticated user's |
| 1160 * | 1184 /// channel. |
| 1161 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 1185 /// |
| 1162 * YouTube content partners. | 1186 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 1163 * | 1187 /// for YouTube content partners. |
| 1164 * The onBehalfOfContentOwner parameter indicates that the request's | 1188 /// |
| 1165 * authorization credentials identify a YouTube CMS user who is acting on | 1189 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 1166 * behalf of the content owner specified in the parameter value. This | 1190 /// authorization credentials identify a YouTube CMS user who is acting on |
| 1167 * parameter is intended for YouTube content partners that own and manage many | 1191 /// behalf of the content owner specified in the parameter value. This |
| 1168 * different YouTube channels. It allows content owners to authenticate once | 1192 /// parameter is intended for YouTube content partners that own and manage |
| 1169 * and get access to all their video and channel data, without having to | 1193 /// many different YouTube channels. It allows content owners to authenticate |
| 1170 * provide authentication credentials for each individual channel. The CMS | 1194 /// once and get access to all their video and channel data, without having |
| 1171 * account that the user authenticates with must be linked to the specified | 1195 /// to provide authentication credentials for each individual channel. The |
| 1172 * YouTube content owner. | 1196 /// CMS account that the user authenticates with must be linked to the |
| 1173 * | 1197 /// specified YouTube content owner. |
| 1174 * [pageToken] - The pageToken parameter identifies a specific page in the | 1198 /// |
| 1175 * result set that should be returned. In an API response, the nextPageToken | 1199 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 1176 * and prevPageToken properties identify other pages that could be retrieved. | 1200 /// result set that should be returned. In an API response, the nextPageToken |
| 1177 * | 1201 /// and prevPageToken properties identify other pages that could be |
| 1178 * Completes with a [ChannelListResponse]. | 1202 /// retrieved. |
| 1179 * | 1203 /// |
| 1180 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1204 /// Completes with a [ChannelListResponse]. |
| 1181 * error. | 1205 /// |
| 1182 * | 1206 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1183 * If the used [http.Client] completes with an error when making a REST call, | 1207 /// an error. |
| 1184 * this method will complete with the same error. | 1208 /// |
| 1185 */ | 1209 /// If the used [http.Client] completes with an error when making a REST |
| 1186 async.Future<ChannelListResponse> list(core.String part, {core.String category
Id, core.String forUsername, core.String hl, core.String id, core.bool managedBy
Me, core.int maxResults, core.bool mine, core.bool mySubscribers, core.String on
BehalfOfContentOwner, core.String pageToken}) { | 1210 /// call, this method will complete with the same error. |
| 1211 async.Future<ChannelListResponse> list(core.String part, |
| 1212 {core.String categoryId, |
| 1213 core.String forUsername, |
| 1214 core.String hl, |
| 1215 core.String id, |
| 1216 core.bool managedByMe, |
| 1217 core.int maxResults, |
| 1218 core.bool mine, |
| 1219 core.bool mySubscribers, |
| 1220 core.String onBehalfOfContentOwner, |
| 1221 core.String pageToken}) { |
| 1187 var _url = null; | 1222 var _url = null; |
| 1188 var _queryParams = new core.Map(); | 1223 var _queryParams = new core.Map(); |
| 1189 var _uploadMedia = null; | 1224 var _uploadMedia = null; |
| 1190 var _uploadOptions = null; | 1225 var _uploadOptions = null; |
| 1191 var _downloadOptions = commons.DownloadOptions.Metadata; | 1226 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1192 var _body = null; | 1227 var _body = null; |
| 1193 | 1228 |
| 1194 if (part == null) { | 1229 if (part == null) { |
| 1195 throw new core.ArgumentError("Parameter part is required."); | 1230 throw new core.ArgumentError("Parameter part is required."); |
| 1196 } | 1231 } |
| (...skipping 24 matching lines...) Expand all Loading... |
| 1221 } | 1256 } |
| 1222 if (onBehalfOfContentOwner != null) { | 1257 if (onBehalfOfContentOwner != null) { |
| 1223 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 1258 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 1224 } | 1259 } |
| 1225 if (pageToken != null) { | 1260 if (pageToken != null) { |
| 1226 _queryParams["pageToken"] = [pageToken]; | 1261 _queryParams["pageToken"] = [pageToken]; |
| 1227 } | 1262 } |
| 1228 | 1263 |
| 1229 _url = 'channels'; | 1264 _url = 'channels'; |
| 1230 | 1265 |
| 1231 var _response = _requester.request(_url, | 1266 var _response = _requester.request(_url, "GET", |
| 1232 "GET", | 1267 body: _body, |
| 1233 body: _body, | 1268 queryParams: _queryParams, |
| 1234 queryParams: _queryParams, | 1269 uploadOptions: _uploadOptions, |
| 1235 uploadOptions: _uploadOptions, | 1270 uploadMedia: _uploadMedia, |
| 1236 uploadMedia: _uploadMedia, | 1271 downloadOptions: _downloadOptions); |
| 1237 downloadOptions: _downloadOptions); | |
| 1238 return _response.then((data) => new ChannelListResponse.fromJson(data)); | 1272 return _response.then((data) => new ChannelListResponse.fromJson(data)); |
| 1239 } | 1273 } |
| 1240 | 1274 |
| 1241 /** | 1275 /// Updates a channel's metadata. Note that this method currently only |
| 1242 * Updates a channel's metadata. Note that this method currently only supports | 1276 /// supports updates to the channel resource's brandingSettings and |
| 1243 * updates to the channel resource's brandingSettings and invideoPromotion | 1277 /// invideoPromotion objects and their child properties. |
| 1244 * objects and their child properties. | 1278 /// |
| 1245 * | 1279 /// [request] - The metadata request object. |
| 1246 * [request] - The metadata request object. | 1280 /// |
| 1247 * | 1281 /// Request parameters: |
| 1248 * Request parameters: | 1282 /// |
| 1249 * | 1283 /// [part] - The part parameter serves two purposes in this operation. It |
| 1250 * [part] - The part parameter serves two purposes in this operation. It | 1284 /// identifies the properties that the write operation will set as well as |
| 1251 * identifies the properties that the write operation will set as well as the | 1285 /// the properties that the API response will include. |
| 1252 * properties that the API response will include. | 1286 /// |
| 1253 * | 1287 /// The API currently only allows the parameter value to be set to either |
| 1254 * The API currently only allows the parameter value to be set to either | 1288 /// brandingSettings or invideoPromotion. (You cannot update both of those |
| 1255 * brandingSettings or invideoPromotion. (You cannot update both of those | 1289 /// parts with a single request.) |
| 1256 * parts with a single request.) | 1290 /// |
| 1257 * | 1291 /// Note that this method overrides the existing values for all of the |
| 1258 * Note that this method overrides the existing values for all of the mutable | 1292 /// mutable properties that are contained in any parts that the parameter |
| 1259 * properties that are contained in any parts that the parameter value | 1293 /// value specifies. |
| 1260 * specifies. | 1294 /// |
| 1261 * | 1295 /// [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter indicates |
| 1262 * [onBehalfOfContentOwner] - The onBehalfOfContentOwner parameter indicates | 1296 /// that the authenticated user is acting on behalf of the content owner |
| 1263 * that the authenticated user is acting on behalf of the content owner | 1297 /// specified in the parameter value. This parameter is intended for YouTube |
| 1264 * specified in the parameter value. This parameter is intended for YouTube | 1298 /// content partners that own and manage many different YouTube channels. It |
| 1265 * content partners that own and manage many different YouTube channels. It | 1299 /// allows content owners to authenticate once and get access to all their |
| 1266 * allows content owners to authenticate once and get access to all their | 1300 /// video and channel data, without having to provide authentication |
| 1267 * video and channel data, without having to provide authentication | 1301 /// credentials for each individual channel. The actual CMS account that the |
| 1268 * credentials for each individual channel. The actual CMS account that the | 1302 /// user authenticates with needs to be linked to the specified YouTube |
| 1269 * user authenticates with needs to be linked to the specified YouTube content | 1303 /// content owner. |
| 1270 * owner. | 1304 /// |
| 1271 * | 1305 /// Completes with a [Channel]. |
| 1272 * Completes with a [Channel]. | 1306 /// |
| 1273 * | 1307 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1274 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1308 /// an error. |
| 1275 * error. | 1309 /// |
| 1276 * | 1310 /// If the used [http.Client] completes with an error when making a REST |
| 1277 * If the used [http.Client] completes with an error when making a REST call, | 1311 /// call, this method will complete with the same error. |
| 1278 * this method will complete with the same error. | 1312 async.Future<Channel> update(Channel request, core.String part, |
| 1279 */ | 1313 {core.String onBehalfOfContentOwner}) { |
| 1280 async.Future<Channel> update(Channel request, core.String part, {core.String o
nBehalfOfContentOwner}) { | |
| 1281 var _url = null; | 1314 var _url = null; |
| 1282 var _queryParams = new core.Map(); | 1315 var _queryParams = new core.Map(); |
| 1283 var _uploadMedia = null; | 1316 var _uploadMedia = null; |
| 1284 var _uploadOptions = null; | 1317 var _uploadOptions = null; |
| 1285 var _downloadOptions = commons.DownloadOptions.Metadata; | 1318 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1286 var _body = null; | 1319 var _body = null; |
| 1287 | 1320 |
| 1288 if (request != null) { | 1321 if (request != null) { |
| 1289 _body = convert.JSON.encode((request).toJson()); | 1322 _body = convert.JSON.encode((request).toJson()); |
| 1290 } | 1323 } |
| 1291 if (part == null) { | 1324 if (part == null) { |
| 1292 throw new core.ArgumentError("Parameter part is required."); | 1325 throw new core.ArgumentError("Parameter part is required."); |
| 1293 } | 1326 } |
| 1294 _queryParams["part"] = [part]; | 1327 _queryParams["part"] = [part]; |
| 1295 if (onBehalfOfContentOwner != null) { | 1328 if (onBehalfOfContentOwner != null) { |
| 1296 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 1329 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 1297 } | 1330 } |
| 1298 | 1331 |
| 1299 _url = 'channels'; | 1332 _url = 'channels'; |
| 1300 | 1333 |
| 1301 var _response = _requester.request(_url, | 1334 var _response = _requester.request(_url, "PUT", |
| 1302 "PUT", | 1335 body: _body, |
| 1303 body: _body, | 1336 queryParams: _queryParams, |
| 1304 queryParams: _queryParams, | 1337 uploadOptions: _uploadOptions, |
| 1305 uploadOptions: _uploadOptions, | 1338 uploadMedia: _uploadMedia, |
| 1306 uploadMedia: _uploadMedia, | 1339 downloadOptions: _downloadOptions); |
| 1307 downloadOptions: _downloadOptions); | |
| 1308 return _response.then((data) => new Channel.fromJson(data)); | 1340 return _response.then((data) => new Channel.fromJson(data)); |
| 1309 } | 1341 } |
| 1310 | |
| 1311 } | 1342 } |
| 1312 | 1343 |
| 1313 | |
| 1314 class CommentThreadsResourceApi { | 1344 class CommentThreadsResourceApi { |
| 1315 final commons.ApiRequester _requester; | 1345 final commons.ApiRequester _requester; |
| 1316 | 1346 |
| 1317 CommentThreadsResourceApi(commons.ApiRequester client) : | 1347 CommentThreadsResourceApi(commons.ApiRequester client) : _requester = client; |
| 1318 _requester = client; | |
| 1319 | 1348 |
| 1320 /** | 1349 /// Creates a new top-level comment. To add a reply to an existing comment, |
| 1321 * Creates a new top-level comment. To add a reply to an existing comment, use | 1350 /// use the comments.insert method instead. |
| 1322 * the comments.insert method instead. | 1351 /// |
| 1323 * | 1352 /// [request] - The metadata request object. |
| 1324 * [request] - The metadata request object. | 1353 /// |
| 1325 * | 1354 /// Request parameters: |
| 1326 * Request parameters: | 1355 /// |
| 1327 * | 1356 /// [part] - The part parameter identifies the properties that the API |
| 1328 * [part] - The part parameter identifies the properties that the API response | 1357 /// response will include. Set the parameter value to snippet. The snippet |
| 1329 * will include. Set the parameter value to snippet. The snippet part has a | 1358 /// part has a quota cost of 2 units. |
| 1330 * quota cost of 2 units. | 1359 /// |
| 1331 * | 1360 /// Completes with a [CommentThread]. |
| 1332 * Completes with a [CommentThread]. | 1361 /// |
| 1333 * | 1362 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1334 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1363 /// an error. |
| 1335 * error. | 1364 /// |
| 1336 * | 1365 /// If the used [http.Client] completes with an error when making a REST |
| 1337 * If the used [http.Client] completes with an error when making a REST call, | 1366 /// call, this method will complete with the same error. |
| 1338 * this method will complete with the same error. | |
| 1339 */ | |
| 1340 async.Future<CommentThread> insert(CommentThread request, core.String part) { | 1367 async.Future<CommentThread> insert(CommentThread request, core.String part) { |
| 1341 var _url = null; | 1368 var _url = null; |
| 1342 var _queryParams = new core.Map(); | 1369 var _queryParams = new core.Map(); |
| 1343 var _uploadMedia = null; | 1370 var _uploadMedia = null; |
| 1344 var _uploadOptions = null; | 1371 var _uploadOptions = null; |
| 1345 var _downloadOptions = commons.DownloadOptions.Metadata; | 1372 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1346 var _body = null; | 1373 var _body = null; |
| 1347 | 1374 |
| 1348 if (request != null) { | 1375 if (request != null) { |
| 1349 _body = convert.JSON.encode((request).toJson()); | 1376 _body = convert.JSON.encode((request).toJson()); |
| 1350 } | 1377 } |
| 1351 if (part == null) { | 1378 if (part == null) { |
| 1352 throw new core.ArgumentError("Parameter part is required."); | 1379 throw new core.ArgumentError("Parameter part is required."); |
| 1353 } | 1380 } |
| 1354 _queryParams["part"] = [part]; | 1381 _queryParams["part"] = [part]; |
| 1355 | 1382 |
| 1356 _url = 'commentThreads'; | 1383 _url = 'commentThreads'; |
| 1357 | 1384 |
| 1358 var _response = _requester.request(_url, | 1385 var _response = _requester.request(_url, "POST", |
| 1359 "POST", | 1386 body: _body, |
| 1360 body: _body, | 1387 queryParams: _queryParams, |
| 1361 queryParams: _queryParams, | 1388 uploadOptions: _uploadOptions, |
| 1362 uploadOptions: _uploadOptions, | 1389 uploadMedia: _uploadMedia, |
| 1363 uploadMedia: _uploadMedia, | 1390 downloadOptions: _downloadOptions); |
| 1364 downloadOptions: _downloadOptions); | |
| 1365 return _response.then((data) => new CommentThread.fromJson(data)); | 1391 return _response.then((data) => new CommentThread.fromJson(data)); |
| 1366 } | 1392 } |
| 1367 | 1393 |
| 1368 /** | 1394 /// Returns a list of comment threads that match the API request parameters. |
| 1369 * Returns a list of comment threads that match the API request parameters. | 1395 /// |
| 1370 * | 1396 /// Request parameters: |
| 1371 * Request parameters: | 1397 /// |
| 1372 * | 1398 /// [part] - The part parameter specifies a comma-separated list of one or |
| 1373 * [part] - The part parameter specifies a comma-separated list of one or more | 1399 /// more commentThread resource properties that the API response will |
| 1374 * commentThread resource properties that the API response will include. | 1400 /// include. |
| 1375 * | 1401 /// |
| 1376 * [allThreadsRelatedToChannelId] - The allThreadsRelatedToChannelId parameter | 1402 /// [allThreadsRelatedToChannelId] - The allThreadsRelatedToChannelId |
| 1377 * instructs the API to return all comment threads associated with the | 1403 /// parameter instructs the API to return all comment threads associated with |
| 1378 * specified channel. The response can include comments about the channel or | 1404 /// the specified channel. The response can include comments about the |
| 1379 * about the channel's videos. | 1405 /// channel or about the channel's videos. |
| 1380 * | 1406 /// |
| 1381 * [channelId] - The channelId parameter instructs the API to return comment | 1407 /// [channelId] - The channelId parameter instructs the API to return comment |
| 1382 * threads containing comments about the specified channel. (The response will | 1408 /// threads containing comments about the specified channel. (The response |
| 1383 * not include comments left on videos that the channel uploaded.) | 1409 /// will not include comments left on videos that the channel uploaded.) |
| 1384 * | 1410 /// |
| 1385 * [id] - The id parameter specifies a comma-separated list of comment thread | 1411 /// [id] - The id parameter specifies a comma-separated list of comment |
| 1386 * IDs for the resources that should be retrieved. | 1412 /// thread IDs for the resources that should be retrieved. |
| 1387 * | 1413 /// |
| 1388 * [maxResults] - The maxResults parameter specifies the maximum number of | 1414 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 1389 * items that should be returned in the result set. | 1415 /// items that should be returned in the result set. |
| 1390 * | 1416 /// |
| 1391 * Note: This parameter is not supported for use in conjunction with the id | 1417 /// Note: This parameter is not supported for use in conjunction with the id |
| 1392 * parameter. | 1418 /// parameter. |
| 1393 * Value must be between "1" and "100". | 1419 /// Value must be between "1" and "100". |
| 1394 * | 1420 /// |
| 1395 * [moderationStatus] - Set this parameter to limit the returned comment | 1421 /// [moderationStatus] - Set this parameter to limit the returned comment |
| 1396 * threads to a particular moderation state. | 1422 /// threads to a particular moderation state. |
| 1397 * | 1423 /// |
| 1398 * Note: This parameter is not supported for use in conjunction with the id | 1424 /// Note: This parameter is not supported for use in conjunction with the id |
| 1399 * parameter. | 1425 /// parameter. |
| 1400 * Possible string values are: | 1426 /// Possible string values are: |
| 1401 * - "heldForReview" : Retrieve comment threads that are awaiting review by a | 1427 /// - "heldForReview" : Retrieve comment threads that are awaiting review by |
| 1402 * moderator. A comment thread can be included in the response if the | 1428 /// a moderator. A comment thread can be included in the response if the |
| 1403 * top-level comment or at least one of the replies to that comment are | 1429 /// top-level comment or at least one of the replies to that comment are |
| 1404 * awaiting review. | 1430 /// awaiting review. |
| 1405 * - "likelySpam" : Retrieve comment threads classified as likely to be spam. | 1431 /// - "likelySpam" : Retrieve comment threads classified as likely to be |
| 1406 * A comment thread can be included in the response if the top-level comment | 1432 /// spam. A comment thread can be included in the response if the top-level |
| 1407 * or at least one of the replies to that comment is considered likely to be | 1433 /// comment or at least one of the replies to that comment is considered |
| 1408 * spam. | 1434 /// likely to be spam. |
| 1409 * - "published" : Retrieve threads of published comments. This is the default | 1435 /// - "published" : Retrieve threads of published comments. This is the |
| 1410 * value. A comment thread can be included in the response if its top-level | 1436 /// default value. A comment thread can be included in the response if its |
| 1411 * comment has been published. | 1437 /// top-level comment has been published. |
| 1412 * | 1438 /// |
| 1413 * [order] - The order parameter specifies the order in which the API response | 1439 /// [order] - The order parameter specifies the order in which the API |
| 1414 * should list comment threads. Valid values are: | 1440 /// response should list comment threads. Valid values are: |
| 1415 * - time - Comment threads are ordered by time. This is the default behavior. | 1441 /// - time - Comment threads are ordered by time. This is the default |
| 1416 * - relevance - Comment threads are ordered by relevance.Note: This parameter | 1442 /// behavior. |
| 1417 * is not supported for use in conjunction with the id parameter. | 1443 /// - relevance - Comment threads are ordered by relevance.Note: This |
| 1418 * Possible string values are: | 1444 /// parameter is not supported for use in conjunction with the id parameter. |
| 1419 * - "relevance" : Order by relevance. | 1445 /// Possible string values are: |
| 1420 * - "time" : Order by time. | 1446 /// - "relevance" : Order by relevance. |
| 1421 * | 1447 /// - "time" : Order by time. |
| 1422 * [pageToken] - The pageToken parameter identifies a specific page in the | 1448 /// |
| 1423 * result set that should be returned. In an API response, the nextPageToken | 1449 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 1424 * property identifies the next page of the result that can be retrieved. | 1450 /// result set that should be returned. In an API response, the nextPageToken |
| 1425 * | 1451 /// property identifies the next page of the result that can be retrieved. |
| 1426 * Note: This parameter is not supported for use in conjunction with the id | 1452 /// |
| 1427 * parameter. | 1453 /// Note: This parameter is not supported for use in conjunction with the id |
| 1428 * | 1454 /// parameter. |
| 1429 * [searchTerms] - The searchTerms parameter instructs the API to limit the | 1455 /// |
| 1430 * API response to only contain comments that contain the specified search | 1456 /// [searchTerms] - The searchTerms parameter instructs the API to limit the |
| 1431 * terms. | 1457 /// API response to only contain comments that contain the specified search |
| 1432 * | 1458 /// terms. |
| 1433 * Note: This parameter is not supported for use in conjunction with the id | 1459 /// |
| 1434 * parameter. | 1460 /// Note: This parameter is not supported for use in conjunction with the id |
| 1435 * | 1461 /// parameter. |
| 1436 * [textFormat] - Set this parameter's value to html or plainText to instruct | 1462 /// |
| 1437 * the API to return the comments left by users in html formatted or in plain | 1463 /// [textFormat] - Set this parameter's value to html or plainText to |
| 1438 * text. | 1464 /// instruct the API to return the comments left by users in html formatted |
| 1439 * Possible string values are: | 1465 /// or in plain text. |
| 1440 * - "html" : Returns the comments in HTML format. This is the default value. | 1466 /// Possible string values are: |
| 1441 * - "plainText" : Returns the comments in plain text format. | 1467 /// - "html" : Returns the comments in HTML format. This is the default |
| 1442 * | 1468 /// value. |
| 1443 * [videoId] - The videoId parameter instructs the API to return comment | 1469 /// - "plainText" : Returns the comments in plain text format. |
| 1444 * threads associated with the specified video ID. | 1470 /// |
| 1445 * | 1471 /// [videoId] - The videoId parameter instructs the API to return comment |
| 1446 * Completes with a [CommentThreadListResponse]. | 1472 /// threads associated with the specified video ID. |
| 1447 * | 1473 /// |
| 1448 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1474 /// Completes with a [CommentThreadListResponse]. |
| 1449 * error. | 1475 /// |
| 1450 * | 1476 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1451 * If the used [http.Client] completes with an error when making a REST call, | 1477 /// an error. |
| 1452 * this method will complete with the same error. | 1478 /// |
| 1453 */ | 1479 /// If the used [http.Client] completes with an error when making a REST |
| 1454 async.Future<CommentThreadListResponse> list(core.String part, {core.String al
lThreadsRelatedToChannelId, core.String channelId, core.String id, core.int maxR
esults, core.String moderationStatus, core.String order, core.String pageToken,
core.String searchTerms, core.String textFormat, core.String videoId}) { | 1480 /// call, this method will complete with the same error. |
| 1481 async.Future<CommentThreadListResponse> list(core.String part, |
| 1482 {core.String allThreadsRelatedToChannelId, |
| 1483 core.String channelId, |
| 1484 core.String id, |
| 1485 core.int maxResults, |
| 1486 core.String moderationStatus, |
| 1487 core.String order, |
| 1488 core.String pageToken, |
| 1489 core.String searchTerms, |
| 1490 core.String textFormat, |
| 1491 core.String videoId}) { |
| 1455 var _url = null; | 1492 var _url = null; |
| 1456 var _queryParams = new core.Map(); | 1493 var _queryParams = new core.Map(); |
| 1457 var _uploadMedia = null; | 1494 var _uploadMedia = null; |
| 1458 var _uploadOptions = null; | 1495 var _uploadOptions = null; |
| 1459 var _downloadOptions = commons.DownloadOptions.Metadata; | 1496 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1460 var _body = null; | 1497 var _body = null; |
| 1461 | 1498 |
| 1462 if (part == null) { | 1499 if (part == null) { |
| 1463 throw new core.ArgumentError("Parameter part is required."); | 1500 throw new core.ArgumentError("Parameter part is required."); |
| 1464 } | 1501 } |
| 1465 _queryParams["part"] = [part]; | 1502 _queryParams["part"] = [part]; |
| 1466 if (allThreadsRelatedToChannelId != null) { | 1503 if (allThreadsRelatedToChannelId != null) { |
| 1467 _queryParams["allThreadsRelatedToChannelId"] = [allThreadsRelatedToChannel
Id]; | 1504 _queryParams["allThreadsRelatedToChannelId"] = [ |
| 1505 allThreadsRelatedToChannelId |
| 1506 ]; |
| 1468 } | 1507 } |
| 1469 if (channelId != null) { | 1508 if (channelId != null) { |
| 1470 _queryParams["channelId"] = [channelId]; | 1509 _queryParams["channelId"] = [channelId]; |
| 1471 } | 1510 } |
| 1472 if (id != null) { | 1511 if (id != null) { |
| 1473 _queryParams["id"] = [id]; | 1512 _queryParams["id"] = [id]; |
| 1474 } | 1513 } |
| 1475 if (maxResults != null) { | 1514 if (maxResults != null) { |
| 1476 _queryParams["maxResults"] = ["${maxResults}"]; | 1515 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1477 } | 1516 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 1489 } | 1528 } |
| 1490 if (textFormat != null) { | 1529 if (textFormat != null) { |
| 1491 _queryParams["textFormat"] = [textFormat]; | 1530 _queryParams["textFormat"] = [textFormat]; |
| 1492 } | 1531 } |
| 1493 if (videoId != null) { | 1532 if (videoId != null) { |
| 1494 _queryParams["videoId"] = [videoId]; | 1533 _queryParams["videoId"] = [videoId]; |
| 1495 } | 1534 } |
| 1496 | 1535 |
| 1497 _url = 'commentThreads'; | 1536 _url = 'commentThreads'; |
| 1498 | 1537 |
| 1499 var _response = _requester.request(_url, | 1538 var _response = _requester.request(_url, "GET", |
| 1500 "GET", | 1539 body: _body, |
| 1501 body: _body, | 1540 queryParams: _queryParams, |
| 1502 queryParams: _queryParams, | 1541 uploadOptions: _uploadOptions, |
| 1503 uploadOptions: _uploadOptions, | 1542 uploadMedia: _uploadMedia, |
| 1504 uploadMedia: _uploadMedia, | 1543 downloadOptions: _downloadOptions); |
| 1505 downloadOptions: _downloadOptions); | 1544 return _response |
| 1506 return _response.then((data) => new CommentThreadListResponse.fromJson(data)
); | 1545 .then((data) => new CommentThreadListResponse.fromJson(data)); |
| 1507 } | 1546 } |
| 1508 | 1547 |
| 1509 /** | 1548 /// Modifies the top-level comment in a comment thread. |
| 1510 * Modifies the top-level comment in a comment thread. | 1549 /// |
| 1511 * | 1550 /// [request] - The metadata request object. |
| 1512 * [request] - The metadata request object. | 1551 /// |
| 1513 * | 1552 /// Request parameters: |
| 1514 * Request parameters: | 1553 /// |
| 1515 * | 1554 /// [part] - The part parameter specifies a comma-separated list of |
| 1516 * [part] - The part parameter specifies a comma-separated list of | 1555 /// commentThread resource properties that the API response will include. You |
| 1517 * commentThread resource properties that the API response will include. You | 1556 /// must at least include the snippet part in the parameter value since that |
| 1518 * must at least include the snippet part in the parameter value since that | 1557 /// part contains all of the properties that the API request can update. |
| 1519 * part contains all of the properties that the API request can update. | 1558 /// |
| 1520 * | 1559 /// Completes with a [CommentThread]. |
| 1521 * Completes with a [CommentThread]. | 1560 /// |
| 1522 * | 1561 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1523 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1562 /// an error. |
| 1524 * error. | 1563 /// |
| 1525 * | 1564 /// If the used [http.Client] completes with an error when making a REST |
| 1526 * If the used [http.Client] completes with an error when making a REST call, | 1565 /// call, this method will complete with the same error. |
| 1527 * this method will complete with the same error. | |
| 1528 */ | |
| 1529 async.Future<CommentThread> update(CommentThread request, core.String part) { | 1566 async.Future<CommentThread> update(CommentThread request, core.String part) { |
| 1530 var _url = null; | 1567 var _url = null; |
| 1531 var _queryParams = new core.Map(); | 1568 var _queryParams = new core.Map(); |
| 1532 var _uploadMedia = null; | 1569 var _uploadMedia = null; |
| 1533 var _uploadOptions = null; | 1570 var _uploadOptions = null; |
| 1534 var _downloadOptions = commons.DownloadOptions.Metadata; | 1571 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1535 var _body = null; | 1572 var _body = null; |
| 1536 | 1573 |
| 1537 if (request != null) { | 1574 if (request != null) { |
| 1538 _body = convert.JSON.encode((request).toJson()); | 1575 _body = convert.JSON.encode((request).toJson()); |
| 1539 } | 1576 } |
| 1540 if (part == null) { | 1577 if (part == null) { |
| 1541 throw new core.ArgumentError("Parameter part is required."); | 1578 throw new core.ArgumentError("Parameter part is required."); |
| 1542 } | 1579 } |
| 1543 _queryParams["part"] = [part]; | 1580 _queryParams["part"] = [part]; |
| 1544 | 1581 |
| 1545 _url = 'commentThreads'; | 1582 _url = 'commentThreads'; |
| 1546 | 1583 |
| 1547 var _response = _requester.request(_url, | 1584 var _response = _requester.request(_url, "PUT", |
| 1548 "PUT", | 1585 body: _body, |
| 1549 body: _body, | 1586 queryParams: _queryParams, |
| 1550 queryParams: _queryParams, | 1587 uploadOptions: _uploadOptions, |
| 1551 uploadOptions: _uploadOptions, | 1588 uploadMedia: _uploadMedia, |
| 1552 uploadMedia: _uploadMedia, | 1589 downloadOptions: _downloadOptions); |
| 1553 downloadOptions: _downloadOptions); | |
| 1554 return _response.then((data) => new CommentThread.fromJson(data)); | 1590 return _response.then((data) => new CommentThread.fromJson(data)); |
| 1555 } | 1591 } |
| 1556 | |
| 1557 } | 1592 } |
| 1558 | 1593 |
| 1559 | |
| 1560 class CommentsResourceApi { | 1594 class CommentsResourceApi { |
| 1561 final commons.ApiRequester _requester; | 1595 final commons.ApiRequester _requester; |
| 1562 | 1596 |
| 1563 CommentsResourceApi(commons.ApiRequester client) : | 1597 CommentsResourceApi(commons.ApiRequester client) : _requester = client; |
| 1564 _requester = client; | |
| 1565 | 1598 |
| 1566 /** | 1599 /// Deletes a comment. |
| 1567 * Deletes a comment. | 1600 /// |
| 1568 * | 1601 /// Request parameters: |
| 1569 * Request parameters: | 1602 /// |
| 1570 * | 1603 /// [id] - The id parameter specifies the comment ID for the resource that is |
| 1571 * [id] - The id parameter specifies the comment ID for the resource that is | 1604 /// being deleted. |
| 1572 * being deleted. | 1605 /// |
| 1573 * | 1606 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1574 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1607 /// an error. |
| 1575 * error. | 1608 /// |
| 1576 * | 1609 /// If the used [http.Client] completes with an error when making a REST |
| 1577 * If the used [http.Client] completes with an error when making a REST call, | 1610 /// call, this method will complete with the same error. |
| 1578 * this method will complete with the same error. | |
| 1579 */ | |
| 1580 async.Future delete(core.String id) { | 1611 async.Future delete(core.String id) { |
| 1581 var _url = null; | 1612 var _url = null; |
| 1582 var _queryParams = new core.Map(); | 1613 var _queryParams = new core.Map(); |
| 1583 var _uploadMedia = null; | 1614 var _uploadMedia = null; |
| 1584 var _uploadOptions = null; | 1615 var _uploadOptions = null; |
| 1585 var _downloadOptions = commons.DownloadOptions.Metadata; | 1616 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1586 var _body = null; | 1617 var _body = null; |
| 1587 | 1618 |
| 1588 if (id == null) { | 1619 if (id == null) { |
| 1589 throw new core.ArgumentError("Parameter id is required."); | 1620 throw new core.ArgumentError("Parameter id is required."); |
| 1590 } | 1621 } |
| 1591 _queryParams["id"] = [id]; | 1622 _queryParams["id"] = [id]; |
| 1592 | 1623 |
| 1593 _downloadOptions = null; | 1624 _downloadOptions = null; |
| 1594 | 1625 |
| 1595 _url = 'comments'; | 1626 _url = 'comments'; |
| 1596 | 1627 |
| 1597 var _response = _requester.request(_url, | 1628 var _response = _requester.request(_url, "DELETE", |
| 1598 "DELETE", | 1629 body: _body, |
| 1599 body: _body, | 1630 queryParams: _queryParams, |
| 1600 queryParams: _queryParams, | 1631 uploadOptions: _uploadOptions, |
| 1601 uploadOptions: _uploadOptions, | 1632 uploadMedia: _uploadMedia, |
| 1602 uploadMedia: _uploadMedia, | 1633 downloadOptions: _downloadOptions); |
| 1603 downloadOptions: _downloadOptions); | |
| 1604 return _response.then((data) => null); | 1634 return _response.then((data) => null); |
| 1605 } | 1635 } |
| 1606 | 1636 |
| 1607 /** | 1637 /// Creates a reply to an existing comment. Note: To create a top-level |
| 1608 * Creates a reply to an existing comment. Note: To create a top-level | 1638 /// comment, use the commentThreads.insert method. |
| 1609 * comment, use the commentThreads.insert method. | 1639 /// |
| 1610 * | 1640 /// [request] - The metadata request object. |
| 1611 * [request] - The metadata request object. | 1641 /// |
| 1612 * | 1642 /// Request parameters: |
| 1613 * Request parameters: | 1643 /// |
| 1614 * | 1644 /// [part] - The part parameter identifies the properties that the API |
| 1615 * [part] - The part parameter identifies the properties that the API response | 1645 /// response will include. Set the parameter value to snippet. The snippet |
| 1616 * will include. Set the parameter value to snippet. The snippet part has a | 1646 /// part has a quota cost of 2 units. |
| 1617 * quota cost of 2 units. | 1647 /// |
| 1618 * | 1648 /// Completes with a [Comment]. |
| 1619 * Completes with a [Comment]. | 1649 /// |
| 1620 * | 1650 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1621 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1651 /// an error. |
| 1622 * error. | 1652 /// |
| 1623 * | 1653 /// If the used [http.Client] completes with an error when making a REST |
| 1624 * If the used [http.Client] completes with an error when making a REST call, | 1654 /// call, this method will complete with the same error. |
| 1625 * this method will complete with the same error. | |
| 1626 */ | |
| 1627 async.Future<Comment> insert(Comment request, core.String part) { | 1655 async.Future<Comment> insert(Comment request, core.String part) { |
| 1628 var _url = null; | 1656 var _url = null; |
| 1629 var _queryParams = new core.Map(); | 1657 var _queryParams = new core.Map(); |
| 1630 var _uploadMedia = null; | 1658 var _uploadMedia = null; |
| 1631 var _uploadOptions = null; | 1659 var _uploadOptions = null; |
| 1632 var _downloadOptions = commons.DownloadOptions.Metadata; | 1660 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1633 var _body = null; | 1661 var _body = null; |
| 1634 | 1662 |
| 1635 if (request != null) { | 1663 if (request != null) { |
| 1636 _body = convert.JSON.encode((request).toJson()); | 1664 _body = convert.JSON.encode((request).toJson()); |
| 1637 } | 1665 } |
| 1638 if (part == null) { | 1666 if (part == null) { |
| 1639 throw new core.ArgumentError("Parameter part is required."); | 1667 throw new core.ArgumentError("Parameter part is required."); |
| 1640 } | 1668 } |
| 1641 _queryParams["part"] = [part]; | 1669 _queryParams["part"] = [part]; |
| 1642 | 1670 |
| 1643 _url = 'comments'; | 1671 _url = 'comments'; |
| 1644 | 1672 |
| 1645 var _response = _requester.request(_url, | 1673 var _response = _requester.request(_url, "POST", |
| 1646 "POST", | 1674 body: _body, |
| 1647 body: _body, | 1675 queryParams: _queryParams, |
| 1648 queryParams: _queryParams, | 1676 uploadOptions: _uploadOptions, |
| 1649 uploadOptions: _uploadOptions, | 1677 uploadMedia: _uploadMedia, |
| 1650 uploadMedia: _uploadMedia, | 1678 downloadOptions: _downloadOptions); |
| 1651 downloadOptions: _downloadOptions); | |
| 1652 return _response.then((data) => new Comment.fromJson(data)); | 1679 return _response.then((data) => new Comment.fromJson(data)); |
| 1653 } | 1680 } |
| 1654 | 1681 |
| 1655 /** | 1682 /// Returns a list of comments that match the API request parameters. |
| 1656 * Returns a list of comments that match the API request parameters. | 1683 /// |
| 1657 * | 1684 /// Request parameters: |
| 1658 * Request parameters: | 1685 /// |
| 1659 * | 1686 /// [part] - The part parameter specifies a comma-separated list of one or |
| 1660 * [part] - The part parameter specifies a comma-separated list of one or more | 1687 /// more comment resource properties that the API response will include. |
| 1661 * comment resource properties that the API response will include. | 1688 /// |
| 1662 * | 1689 /// [id] - The id parameter specifies a comma-separated list of comment IDs |
| 1663 * [id] - The id parameter specifies a comma-separated list of comment IDs for | 1690 /// for the resources that are being retrieved. In a comment resource, the id |
| 1664 * the resources that are being retrieved. In a comment resource, the id | 1691 /// property specifies the comment's ID. |
| 1665 * property specifies the comment's ID. | 1692 /// |
| 1666 * | 1693 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 1667 * [maxResults] - The maxResults parameter specifies the maximum number of | 1694 /// items that should be returned in the result set. |
| 1668 * items that should be returned in the result set. | 1695 /// |
| 1669 * | 1696 /// Note: This parameter is not supported for use in conjunction with the id |
| 1670 * Note: This parameter is not supported for use in conjunction with the id | 1697 /// parameter. |
| 1671 * parameter. | 1698 /// Value must be between "1" and "100". |
| 1672 * Value must be between "1" and "100". | 1699 /// |
| 1673 * | 1700 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 1674 * [pageToken] - The pageToken parameter identifies a specific page in the | 1701 /// result set that should be returned. In an API response, the nextPageToken |
| 1675 * result set that should be returned. In an API response, the nextPageToken | 1702 /// property identifies the next page of the result that can be retrieved. |
| 1676 * property identifies the next page of the result that can be retrieved. | 1703 /// |
| 1677 * | 1704 /// Note: This parameter is not supported for use in conjunction with the id |
| 1678 * Note: This parameter is not supported for use in conjunction with the id | 1705 /// parameter. |
| 1679 * parameter. | 1706 /// |
| 1680 * | 1707 /// [parentId] - The parentId parameter specifies the ID of the comment for |
| 1681 * [parentId] - The parentId parameter specifies the ID of the comment for | 1708 /// which replies should be retrieved. |
| 1682 * which replies should be retrieved. | 1709 /// |
| 1683 * | 1710 /// Note: YouTube currently supports replies only for top-level comments. |
| 1684 * Note: YouTube currently supports replies only for top-level comments. | 1711 /// However, replies to replies may be supported in the future. |
| 1685 * However, replies to replies may be supported in the future. | 1712 /// |
| 1686 * | 1713 /// [textFormat] - This parameter indicates whether the API should return |
| 1687 * [textFormat] - This parameter indicates whether the API should return | 1714 /// comments formatted as HTML or as plain text. |
| 1688 * comments formatted as HTML or as plain text. | 1715 /// Possible string values are: |
| 1689 * Possible string values are: | 1716 /// - "html" : Returns the comments in HTML format. This is the default |
| 1690 * - "html" : Returns the comments in HTML format. This is the default value. | 1717 /// value. |
| 1691 * - "plainText" : Returns the comments in plain text format. | 1718 /// - "plainText" : Returns the comments in plain text format. |
| 1692 * | 1719 /// |
| 1693 * Completes with a [CommentListResponse]. | 1720 /// Completes with a [CommentListResponse]. |
| 1694 * | 1721 /// |
| 1695 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1722 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1696 * error. | 1723 /// an error. |
| 1697 * | 1724 /// |
| 1698 * If the used [http.Client] completes with an error when making a REST call, | 1725 /// If the used [http.Client] completes with an error when making a REST |
| 1699 * this method will complete with the same error. | 1726 /// call, this method will complete with the same error. |
| 1700 */ | 1727 async.Future<CommentListResponse> list(core.String part, |
| 1701 async.Future<CommentListResponse> list(core.String part, {core.String id, core
.int maxResults, core.String pageToken, core.String parentId, core.String textFo
rmat}) { | 1728 {core.String id, |
| 1729 core.int maxResults, |
| 1730 core.String pageToken, |
| 1731 core.String parentId, |
| 1732 core.String textFormat}) { |
| 1702 var _url = null; | 1733 var _url = null; |
| 1703 var _queryParams = new core.Map(); | 1734 var _queryParams = new core.Map(); |
| 1704 var _uploadMedia = null; | 1735 var _uploadMedia = null; |
| 1705 var _uploadOptions = null; | 1736 var _uploadOptions = null; |
| 1706 var _downloadOptions = commons.DownloadOptions.Metadata; | 1737 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1707 var _body = null; | 1738 var _body = null; |
| 1708 | 1739 |
| 1709 if (part == null) { | 1740 if (part == null) { |
| 1710 throw new core.ArgumentError("Parameter part is required."); | 1741 throw new core.ArgumentError("Parameter part is required."); |
| 1711 } | 1742 } |
| 1712 _queryParams["part"] = [part]; | 1743 _queryParams["part"] = [part]; |
| 1713 if (id != null) { | 1744 if (id != null) { |
| 1714 _queryParams["id"] = [id]; | 1745 _queryParams["id"] = [id]; |
| 1715 } | 1746 } |
| 1716 if (maxResults != null) { | 1747 if (maxResults != null) { |
| 1717 _queryParams["maxResults"] = ["${maxResults}"]; | 1748 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1718 } | 1749 } |
| 1719 if (pageToken != null) { | 1750 if (pageToken != null) { |
| 1720 _queryParams["pageToken"] = [pageToken]; | 1751 _queryParams["pageToken"] = [pageToken]; |
| 1721 } | 1752 } |
| 1722 if (parentId != null) { | 1753 if (parentId != null) { |
| 1723 _queryParams["parentId"] = [parentId]; | 1754 _queryParams["parentId"] = [parentId]; |
| 1724 } | 1755 } |
| 1725 if (textFormat != null) { | 1756 if (textFormat != null) { |
| 1726 _queryParams["textFormat"] = [textFormat]; | 1757 _queryParams["textFormat"] = [textFormat]; |
| 1727 } | 1758 } |
| 1728 | 1759 |
| 1729 _url = 'comments'; | 1760 _url = 'comments'; |
| 1730 | 1761 |
| 1731 var _response = _requester.request(_url, | 1762 var _response = _requester.request(_url, "GET", |
| 1732 "GET", | 1763 body: _body, |
| 1733 body: _body, | 1764 queryParams: _queryParams, |
| 1734 queryParams: _queryParams, | 1765 uploadOptions: _uploadOptions, |
| 1735 uploadOptions: _uploadOptions, | 1766 uploadMedia: _uploadMedia, |
| 1736 uploadMedia: _uploadMedia, | 1767 downloadOptions: _downloadOptions); |
| 1737 downloadOptions: _downloadOptions); | |
| 1738 return _response.then((data) => new CommentListResponse.fromJson(data)); | 1768 return _response.then((data) => new CommentListResponse.fromJson(data)); |
| 1739 } | 1769 } |
| 1740 | 1770 |
| 1741 /** | 1771 /// Expresses the caller's opinion that one or more comments should be |
| 1742 * Expresses the caller's opinion that one or more comments should be flagged | 1772 /// flagged as spam. |
| 1743 * as spam. | 1773 /// |
| 1744 * | 1774 /// Request parameters: |
| 1745 * Request parameters: | 1775 /// |
| 1746 * | 1776 /// [id] - The id parameter specifies a comma-separated list of IDs of |
| 1747 * [id] - The id parameter specifies a comma-separated list of IDs of comments | 1777 /// comments that the caller believes should be classified as spam. |
| 1748 * that the caller believes should be classified as spam. | 1778 /// |
| 1749 * | 1779 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1750 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1780 /// an error. |
| 1751 * error. | 1781 /// |
| 1752 * | 1782 /// If the used [http.Client] completes with an error when making a REST |
| 1753 * If the used [http.Client] completes with an error when making a REST call, | 1783 /// call, this method will complete with the same error. |
| 1754 * this method will complete with the same error. | |
| 1755 */ | |
| 1756 async.Future markAsSpam(core.String id) { | 1784 async.Future markAsSpam(core.String id) { |
| 1757 var _url = null; | 1785 var _url = null; |
| 1758 var _queryParams = new core.Map(); | 1786 var _queryParams = new core.Map(); |
| 1759 var _uploadMedia = null; | 1787 var _uploadMedia = null; |
| 1760 var _uploadOptions = null; | 1788 var _uploadOptions = null; |
| 1761 var _downloadOptions = commons.DownloadOptions.Metadata; | 1789 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1762 var _body = null; | 1790 var _body = null; |
| 1763 | 1791 |
| 1764 if (id == null) { | 1792 if (id == null) { |
| 1765 throw new core.ArgumentError("Parameter id is required."); | 1793 throw new core.ArgumentError("Parameter id is required."); |
| 1766 } | 1794 } |
| 1767 _queryParams["id"] = [id]; | 1795 _queryParams["id"] = [id]; |
| 1768 | 1796 |
| 1769 _downloadOptions = null; | 1797 _downloadOptions = null; |
| 1770 | 1798 |
| 1771 _url = 'comments/markAsSpam'; | 1799 _url = 'comments/markAsSpam'; |
| 1772 | 1800 |
| 1773 var _response = _requester.request(_url, | 1801 var _response = _requester.request(_url, "POST", |
| 1774 "POST", | 1802 body: _body, |
| 1775 body: _body, | 1803 queryParams: _queryParams, |
| 1776 queryParams: _queryParams, | 1804 uploadOptions: _uploadOptions, |
| 1777 uploadOptions: _uploadOptions, | 1805 uploadMedia: _uploadMedia, |
| 1778 uploadMedia: _uploadMedia, | 1806 downloadOptions: _downloadOptions); |
| 1779 downloadOptions: _downloadOptions); | |
| 1780 return _response.then((data) => null); | 1807 return _response.then((data) => null); |
| 1781 } | 1808 } |
| 1782 | 1809 |
| 1783 /** | 1810 /// Sets the moderation status of one or more comments. The API request must |
| 1784 * Sets the moderation status of one or more comments. The API request must be | 1811 /// be authorized by the owner of the channel or video associated with the |
| 1785 * authorized by the owner of the channel or video associated with the | 1812 /// comments. |
| 1786 * comments. | 1813 /// |
| 1787 * | 1814 /// Request parameters: |
| 1788 * Request parameters: | 1815 /// |
| 1789 * | 1816 /// [id] - The id parameter specifies a comma-separated list of IDs that |
| 1790 * [id] - The id parameter specifies a comma-separated list of IDs that | 1817 /// identify the comments for which you are updating the moderation status. |
| 1791 * identify the comments for which you are updating the moderation status. | 1818 /// |
| 1792 * | 1819 /// [moderationStatus] - Identifies the new moderation status of the |
| 1793 * [moderationStatus] - Identifies the new moderation status of the specified | 1820 /// specified comments. |
| 1794 * comments. | 1821 /// Possible string values are: |
| 1795 * Possible string values are: | 1822 /// - "heldForReview" : Marks a comment as awaiting review by a moderator. |
| 1796 * - "heldForReview" : Marks a comment as awaiting review by a moderator. | 1823 /// - "published" : Clears a comment for public display. |
| 1797 * - "published" : Clears a comment for public display. | 1824 /// - "rejected" : Rejects a comment as being unfit for display. This action |
| 1798 * - "rejected" : Rejects a comment as being unfit for display. This action | 1825 /// also effectively hides all replies to the rejected comment. |
| 1799 * also effectively hides all replies to the rejected comment. | 1826 /// |
| 1800 * | 1827 /// Note: The API does not currently provide a way to list or otherwise |
| 1801 * Note: The API does not currently provide a way to list or otherwise | 1828 /// discover rejected comments. However, you can change the moderation status |
| 1802 * discover rejected comments. However, you can change the moderation status | 1829 /// of a rejected comment if you still know its ID. If you were to change the |
| 1803 * of a rejected comment if you still know its ID. If you were to change the | 1830 /// moderation status of a rejected comment, the comment replies would |
| 1804 * moderation status of a rejected comment, the comment replies would | 1831 /// subsequently be discoverable again as well. |
| 1805 * subsequently be discoverable again as well. | 1832 /// |
| 1806 * | 1833 /// [banAuthor] - The banAuthor parameter lets you indicate that you want to |
| 1807 * [banAuthor] - The banAuthor parameter lets you indicate that you want to | 1834 /// automatically reject any additional comments written by the comment's |
| 1808 * automatically reject any additional comments written by the comment's | 1835 /// author. Set the parameter value to true to ban the author. |
| 1809 * author. Set the parameter value to true to ban the author. | 1836 /// |
| 1810 * | 1837 /// Note: This parameter is only valid if the moderationStatus parameter is |
| 1811 * Note: This parameter is only valid if the moderationStatus parameter is | 1838 /// also set to rejected. |
| 1812 * also set to rejected. | 1839 /// |
| 1813 * | 1840 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1814 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1841 /// an error. |
| 1815 * error. | 1842 /// |
| 1816 * | 1843 /// If the used [http.Client] completes with an error when making a REST |
| 1817 * If the used [http.Client] completes with an error when making a REST call, | 1844 /// call, this method will complete with the same error. |
| 1818 * this method will complete with the same error. | 1845 async.Future setModerationStatus(core.String id, core.String moderationStatus, |
| 1819 */ | 1846 {core.bool banAuthor}) { |
| 1820 async.Future setModerationStatus(core.String id, core.String moderationStatus,
{core.bool banAuthor}) { | |
| 1821 var _url = null; | 1847 var _url = null; |
| 1822 var _queryParams = new core.Map(); | 1848 var _queryParams = new core.Map(); |
| 1823 var _uploadMedia = null; | 1849 var _uploadMedia = null; |
| 1824 var _uploadOptions = null; | 1850 var _uploadOptions = null; |
| 1825 var _downloadOptions = commons.DownloadOptions.Metadata; | 1851 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1826 var _body = null; | 1852 var _body = null; |
| 1827 | 1853 |
| 1828 if (id == null) { | 1854 if (id == null) { |
| 1829 throw new core.ArgumentError("Parameter id is required."); | 1855 throw new core.ArgumentError("Parameter id is required."); |
| 1830 } | 1856 } |
| 1831 _queryParams["id"] = [id]; | 1857 _queryParams["id"] = [id]; |
| 1832 if (moderationStatus == null) { | 1858 if (moderationStatus == null) { |
| 1833 throw new core.ArgumentError("Parameter moderationStatus is required."); | 1859 throw new core.ArgumentError("Parameter moderationStatus is required."); |
| 1834 } | 1860 } |
| 1835 _queryParams["moderationStatus"] = [moderationStatus]; | 1861 _queryParams["moderationStatus"] = [moderationStatus]; |
| 1836 if (banAuthor != null) { | 1862 if (banAuthor != null) { |
| 1837 _queryParams["banAuthor"] = ["${banAuthor}"]; | 1863 _queryParams["banAuthor"] = ["${banAuthor}"]; |
| 1838 } | 1864 } |
| 1839 | 1865 |
| 1840 _downloadOptions = null; | 1866 _downloadOptions = null; |
| 1841 | 1867 |
| 1842 _url = 'comments/setModerationStatus'; | 1868 _url = 'comments/setModerationStatus'; |
| 1843 | 1869 |
| 1844 var _response = _requester.request(_url, | 1870 var _response = _requester.request(_url, "POST", |
| 1845 "POST", | 1871 body: _body, |
| 1846 body: _body, | 1872 queryParams: _queryParams, |
| 1847 queryParams: _queryParams, | 1873 uploadOptions: _uploadOptions, |
| 1848 uploadOptions: _uploadOptions, | 1874 uploadMedia: _uploadMedia, |
| 1849 uploadMedia: _uploadMedia, | 1875 downloadOptions: _downloadOptions); |
| 1850 downloadOptions: _downloadOptions); | |
| 1851 return _response.then((data) => null); | 1876 return _response.then((data) => null); |
| 1852 } | 1877 } |
| 1853 | 1878 |
| 1854 /** | 1879 /// Modifies a comment. |
| 1855 * Modifies a comment. | 1880 /// |
| 1856 * | 1881 /// [request] - The metadata request object. |
| 1857 * [request] - The metadata request object. | 1882 /// |
| 1858 * | 1883 /// Request parameters: |
| 1859 * Request parameters: | 1884 /// |
| 1860 * | 1885 /// [part] - The part parameter identifies the properties that the API |
| 1861 * [part] - The part parameter identifies the properties that the API response | 1886 /// response will include. You must at least include the snippet part in the |
| 1862 * will include. You must at least include the snippet part in the parameter | 1887 /// parameter value since that part contains all of the properties that the |
| 1863 * value since that part contains all of the properties that the API request | 1888 /// API request can update. |
| 1864 * can update. | 1889 /// |
| 1865 * | 1890 /// Completes with a [Comment]. |
| 1866 * Completes with a [Comment]. | 1891 /// |
| 1867 * | 1892 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1868 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1893 /// an error. |
| 1869 * error. | 1894 /// |
| 1870 * | 1895 /// If the used [http.Client] completes with an error when making a REST |
| 1871 * If the used [http.Client] completes with an error when making a REST call, | 1896 /// call, this method will complete with the same error. |
| 1872 * this method will complete with the same error. | |
| 1873 */ | |
| 1874 async.Future<Comment> update(Comment request, core.String part) { | 1897 async.Future<Comment> update(Comment request, core.String part) { |
| 1875 var _url = null; | 1898 var _url = null; |
| 1876 var _queryParams = new core.Map(); | 1899 var _queryParams = new core.Map(); |
| 1877 var _uploadMedia = null; | 1900 var _uploadMedia = null; |
| 1878 var _uploadOptions = null; | 1901 var _uploadOptions = null; |
| 1879 var _downloadOptions = commons.DownloadOptions.Metadata; | 1902 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1880 var _body = null; | 1903 var _body = null; |
| 1881 | 1904 |
| 1882 if (request != null) { | 1905 if (request != null) { |
| 1883 _body = convert.JSON.encode((request).toJson()); | 1906 _body = convert.JSON.encode((request).toJson()); |
| 1884 } | 1907 } |
| 1885 if (part == null) { | 1908 if (part == null) { |
| 1886 throw new core.ArgumentError("Parameter part is required."); | 1909 throw new core.ArgumentError("Parameter part is required."); |
| 1887 } | 1910 } |
| 1888 _queryParams["part"] = [part]; | 1911 _queryParams["part"] = [part]; |
| 1889 | 1912 |
| 1890 _url = 'comments'; | 1913 _url = 'comments'; |
| 1891 | 1914 |
| 1892 var _response = _requester.request(_url, | 1915 var _response = _requester.request(_url, "PUT", |
| 1893 "PUT", | 1916 body: _body, |
| 1894 body: _body, | 1917 queryParams: _queryParams, |
| 1895 queryParams: _queryParams, | 1918 uploadOptions: _uploadOptions, |
| 1896 uploadOptions: _uploadOptions, | 1919 uploadMedia: _uploadMedia, |
| 1897 uploadMedia: _uploadMedia, | 1920 downloadOptions: _downloadOptions); |
| 1898 downloadOptions: _downloadOptions); | |
| 1899 return _response.then((data) => new Comment.fromJson(data)); | 1921 return _response.then((data) => new Comment.fromJson(data)); |
| 1900 } | 1922 } |
| 1901 | |
| 1902 } | 1923 } |
| 1903 | 1924 |
| 1904 | |
| 1905 class FanFundingEventsResourceApi { | 1925 class FanFundingEventsResourceApi { |
| 1906 final commons.ApiRequester _requester; | 1926 final commons.ApiRequester _requester; |
| 1907 | 1927 |
| 1908 FanFundingEventsResourceApi(commons.ApiRequester client) : | 1928 FanFundingEventsResourceApi(commons.ApiRequester client) |
| 1909 _requester = client; | 1929 : _requester = client; |
| 1910 | 1930 |
| 1911 /** | 1931 /// Lists fan funding events for a channel. |
| 1912 * Lists fan funding events for a channel. | 1932 /// |
| 1913 * | 1933 /// Request parameters: |
| 1914 * Request parameters: | 1934 /// |
| 1915 * | 1935 /// [part] - The part parameter specifies the fanFundingEvent resource parts |
| 1916 * [part] - The part parameter specifies the fanFundingEvent resource parts | 1936 /// that the API response will include. Supported values are id and snippet. |
| 1917 * that the API response will include. Supported values are id and snippet. | 1937 /// |
| 1918 * | 1938 /// [hl] - The hl parameter instructs the API to retrieve localized resource |
| 1919 * [hl] - The hl parameter instructs the API to retrieve localized resource | 1939 /// metadata for a specific application language that the YouTube website |
| 1920 * metadata for a specific application language that the YouTube website | 1940 /// supports. The parameter value must be a language code included in the |
| 1921 * supports. The parameter value must be a language code included in the list | 1941 /// list returned by the i18nLanguages.list method. |
| 1922 * returned by the i18nLanguages.list method. | 1942 /// |
| 1923 * | 1943 /// If localized resource details are available in that language, the |
| 1924 * If localized resource details are available in that language, the | 1944 /// resource's snippet.localized object will contain the localized values. |
| 1925 * resource's snippet.localized object will contain the localized values. | 1945 /// However, if localized details are not available, the snippet.localized |
| 1926 * However, if localized details are not available, the snippet.localized | 1946 /// object will contain resource details in the resource's default language. |
| 1927 * object will contain resource details in the resource's default language. | 1947 /// |
| 1928 * | 1948 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 1929 * [maxResults] - The maxResults parameter specifies the maximum number of | 1949 /// items that should be returned in the result set. |
| 1930 * items that should be returned in the result set. | 1950 /// Value must be between "0" and "50". |
| 1931 * Value must be between "0" and "50". | 1951 /// |
| 1932 * | 1952 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 1933 * [pageToken] - The pageToken parameter identifies a specific page in the | 1953 /// result set that should be returned. In an API response, the nextPageToken |
| 1934 * result set that should be returned. In an API response, the nextPageToken | 1954 /// and prevPageToken properties identify other pages that could be |
| 1935 * and prevPageToken properties identify other pages that could be retrieved. | 1955 /// retrieved. |
| 1936 * | 1956 /// |
| 1937 * Completes with a [FanFundingEventListResponse]. | 1957 /// Completes with a [FanFundingEventListResponse]. |
| 1938 * | 1958 /// |
| 1939 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1959 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 1940 * error. | 1960 /// an error. |
| 1941 * | 1961 /// |
| 1942 * If the used [http.Client] completes with an error when making a REST call, | 1962 /// If the used [http.Client] completes with an error when making a REST |
| 1943 * this method will complete with the same error. | 1963 /// call, this method will complete with the same error. |
| 1944 */ | 1964 async.Future<FanFundingEventListResponse> list(core.String part, |
| 1945 async.Future<FanFundingEventListResponse> list(core.String part, {core.String
hl, core.int maxResults, core.String pageToken}) { | 1965 {core.String hl, core.int maxResults, core.String pageToken}) { |
| 1946 var _url = null; | 1966 var _url = null; |
| 1947 var _queryParams = new core.Map(); | 1967 var _queryParams = new core.Map(); |
| 1948 var _uploadMedia = null; | 1968 var _uploadMedia = null; |
| 1949 var _uploadOptions = null; | 1969 var _uploadOptions = null; |
| 1950 var _downloadOptions = commons.DownloadOptions.Metadata; | 1970 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1951 var _body = null; | 1971 var _body = null; |
| 1952 | 1972 |
| 1953 if (part == null) { | 1973 if (part == null) { |
| 1954 throw new core.ArgumentError("Parameter part is required."); | 1974 throw new core.ArgumentError("Parameter part is required."); |
| 1955 } | 1975 } |
| 1956 _queryParams["part"] = [part]; | 1976 _queryParams["part"] = [part]; |
| 1957 if (hl != null) { | 1977 if (hl != null) { |
| 1958 _queryParams["hl"] = [hl]; | 1978 _queryParams["hl"] = [hl]; |
| 1959 } | 1979 } |
| 1960 if (maxResults != null) { | 1980 if (maxResults != null) { |
| 1961 _queryParams["maxResults"] = ["${maxResults}"]; | 1981 _queryParams["maxResults"] = ["${maxResults}"]; |
| 1962 } | 1982 } |
| 1963 if (pageToken != null) { | 1983 if (pageToken != null) { |
| 1964 _queryParams["pageToken"] = [pageToken]; | 1984 _queryParams["pageToken"] = [pageToken]; |
| 1965 } | 1985 } |
| 1966 | 1986 |
| 1967 _url = 'fanFundingEvents'; | 1987 _url = 'fanFundingEvents'; |
| 1968 | 1988 |
| 1969 var _response = _requester.request(_url, | 1989 var _response = _requester.request(_url, "GET", |
| 1970 "GET", | 1990 body: _body, |
| 1971 body: _body, | 1991 queryParams: _queryParams, |
| 1972 queryParams: _queryParams, | 1992 uploadOptions: _uploadOptions, |
| 1973 uploadOptions: _uploadOptions, | 1993 uploadMedia: _uploadMedia, |
| 1974 uploadMedia: _uploadMedia, | 1994 downloadOptions: _downloadOptions); |
| 1975 downloadOptions: _downloadOptions); | 1995 return _response |
| 1976 return _response.then((data) => new FanFundingEventListResponse.fromJson(dat
a)); | 1996 .then((data) => new FanFundingEventListResponse.fromJson(data)); |
| 1977 } | 1997 } |
| 1978 | |
| 1979 } | 1998 } |
| 1980 | 1999 |
| 1981 | |
| 1982 class GuideCategoriesResourceApi { | 2000 class GuideCategoriesResourceApi { |
| 1983 final commons.ApiRequester _requester; | 2001 final commons.ApiRequester _requester; |
| 1984 | 2002 |
| 1985 GuideCategoriesResourceApi(commons.ApiRequester client) : | 2003 GuideCategoriesResourceApi(commons.ApiRequester client) : _requester = client; |
| 1986 _requester = client; | |
| 1987 | 2004 |
| 1988 /** | 2005 /// Returns a list of categories that can be associated with YouTube |
| 1989 * Returns a list of categories that can be associated with YouTube channels. | 2006 /// channels. |
| 1990 * | 2007 /// |
| 1991 * Request parameters: | 2008 /// Request parameters: |
| 1992 * | 2009 /// |
| 1993 * [part] - The part parameter specifies the guideCategory resource properties | 2010 /// [part] - The part parameter specifies the guideCategory resource |
| 1994 * that the API response will include. Set the parameter value to snippet. | 2011 /// properties that the API response will include. Set the parameter value to |
| 1995 * | 2012 /// snippet. |
| 1996 * [hl] - The hl parameter specifies the language that will be used for text | 2013 /// |
| 1997 * values in the API response. | 2014 /// [hl] - The hl parameter specifies the language that will be used for text |
| 1998 * | 2015 /// values in the API response. |
| 1999 * [id] - The id parameter specifies a comma-separated list of the YouTube | 2016 /// |
| 2000 * channel category ID(s) for the resource(s) that are being retrieved. In a | 2017 /// [id] - The id parameter specifies a comma-separated list of the YouTube |
| 2001 * guideCategory resource, the id property specifies the YouTube channel | 2018 /// channel category ID(s) for the resource(s) that are being retrieved. In a |
| 2002 * category ID. | 2019 /// guideCategory resource, the id property specifies the YouTube channel |
| 2003 * | 2020 /// category ID. |
| 2004 * [regionCode] - The regionCode parameter instructs the API to return the | 2021 /// |
| 2005 * list of guide categories available in the specified country. The parameter | 2022 /// [regionCode] - The regionCode parameter instructs the API to return the |
| 2006 * value is an ISO 3166-1 alpha-2 country code. | 2023 /// list of guide categories available in the specified country. The |
| 2007 * | 2024 /// parameter value is an ISO 3166-1 alpha-2 country code. |
| 2008 * Completes with a [GuideCategoryListResponse]. | 2025 /// |
| 2009 * | 2026 /// Completes with a [GuideCategoryListResponse]. |
| 2010 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2027 /// |
| 2011 * error. | 2028 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2012 * | 2029 /// an error. |
| 2013 * If the used [http.Client] completes with an error when making a REST call, | 2030 /// |
| 2014 * this method will complete with the same error. | 2031 /// If the used [http.Client] completes with an error when making a REST |
| 2015 */ | 2032 /// call, this method will complete with the same error. |
| 2016 async.Future<GuideCategoryListResponse> list(core.String part, {core.String hl
, core.String id, core.String regionCode}) { | 2033 async.Future<GuideCategoryListResponse> list(core.String part, |
| 2034 {core.String hl, core.String id, core.String regionCode}) { |
| 2017 var _url = null; | 2035 var _url = null; |
| 2018 var _queryParams = new core.Map(); | 2036 var _queryParams = new core.Map(); |
| 2019 var _uploadMedia = null; | 2037 var _uploadMedia = null; |
| 2020 var _uploadOptions = null; | 2038 var _uploadOptions = null; |
| 2021 var _downloadOptions = commons.DownloadOptions.Metadata; | 2039 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2022 var _body = null; | 2040 var _body = null; |
| 2023 | 2041 |
| 2024 if (part == null) { | 2042 if (part == null) { |
| 2025 throw new core.ArgumentError("Parameter part is required."); | 2043 throw new core.ArgumentError("Parameter part is required."); |
| 2026 } | 2044 } |
| 2027 _queryParams["part"] = [part]; | 2045 _queryParams["part"] = [part]; |
| 2028 if (hl != null) { | 2046 if (hl != null) { |
| 2029 _queryParams["hl"] = [hl]; | 2047 _queryParams["hl"] = [hl]; |
| 2030 } | 2048 } |
| 2031 if (id != null) { | 2049 if (id != null) { |
| 2032 _queryParams["id"] = [id]; | 2050 _queryParams["id"] = [id]; |
| 2033 } | 2051 } |
| 2034 if (regionCode != null) { | 2052 if (regionCode != null) { |
| 2035 _queryParams["regionCode"] = [regionCode]; | 2053 _queryParams["regionCode"] = [regionCode]; |
| 2036 } | 2054 } |
| 2037 | 2055 |
| 2038 _url = 'guideCategories'; | 2056 _url = 'guideCategories'; |
| 2039 | 2057 |
| 2040 var _response = _requester.request(_url, | 2058 var _response = _requester.request(_url, "GET", |
| 2041 "GET", | 2059 body: _body, |
| 2042 body: _body, | 2060 queryParams: _queryParams, |
| 2043 queryParams: _queryParams, | 2061 uploadOptions: _uploadOptions, |
| 2044 uploadOptions: _uploadOptions, | 2062 uploadMedia: _uploadMedia, |
| 2045 uploadMedia: _uploadMedia, | 2063 downloadOptions: _downloadOptions); |
| 2046 downloadOptions: _downloadOptions); | 2064 return _response |
| 2047 return _response.then((data) => new GuideCategoryListResponse.fromJson(data)
); | 2065 .then((data) => new GuideCategoryListResponse.fromJson(data)); |
| 2048 } | 2066 } |
| 2049 | |
| 2050 } | 2067 } |
| 2051 | 2068 |
| 2052 | |
| 2053 class I18nLanguagesResourceApi { | 2069 class I18nLanguagesResourceApi { |
| 2054 final commons.ApiRequester _requester; | 2070 final commons.ApiRequester _requester; |
| 2055 | 2071 |
| 2056 I18nLanguagesResourceApi(commons.ApiRequester client) : | 2072 I18nLanguagesResourceApi(commons.ApiRequester client) : _requester = client; |
| 2057 _requester = client; | |
| 2058 | 2073 |
| 2059 /** | 2074 /// Returns a list of application languages that the YouTube website |
| 2060 * Returns a list of application languages that the YouTube website supports. | 2075 /// supports. |
| 2061 * | 2076 /// |
| 2062 * Request parameters: | 2077 /// Request parameters: |
| 2063 * | 2078 /// |
| 2064 * [part] - The part parameter specifies the i18nLanguage resource properties | 2079 /// [part] - The part parameter specifies the i18nLanguage resource |
| 2065 * that the API response will include. Set the parameter value to snippet. | 2080 /// properties that the API response will include. Set the parameter value to |
| 2066 * | 2081 /// snippet. |
| 2067 * [hl] - The hl parameter specifies the language that should be used for text | 2082 /// |
| 2068 * values in the API response. | 2083 /// [hl] - The hl parameter specifies the language that should be used for |
| 2069 * | 2084 /// text values in the API response. |
| 2070 * Completes with a [I18nLanguageListResponse]. | 2085 /// |
| 2071 * | 2086 /// Completes with a [I18nLanguageListResponse]. |
| 2072 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2087 /// |
| 2073 * error. | 2088 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2074 * | 2089 /// an error. |
| 2075 * If the used [http.Client] completes with an error when making a REST call, | 2090 /// |
| 2076 * this method will complete with the same error. | 2091 /// If the used [http.Client] completes with an error when making a REST |
| 2077 */ | 2092 /// call, this method will complete with the same error. |
| 2078 async.Future<I18nLanguageListResponse> list(core.String part, {core.String hl}
) { | 2093 async.Future<I18nLanguageListResponse> list(core.String part, |
| 2094 {core.String hl}) { |
| 2079 var _url = null; | 2095 var _url = null; |
| 2080 var _queryParams = new core.Map(); | 2096 var _queryParams = new core.Map(); |
| 2081 var _uploadMedia = null; | 2097 var _uploadMedia = null; |
| 2082 var _uploadOptions = null; | 2098 var _uploadOptions = null; |
| 2083 var _downloadOptions = commons.DownloadOptions.Metadata; | 2099 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2084 var _body = null; | 2100 var _body = null; |
| 2085 | 2101 |
| 2086 if (part == null) { | 2102 if (part == null) { |
| 2087 throw new core.ArgumentError("Parameter part is required."); | 2103 throw new core.ArgumentError("Parameter part is required."); |
| 2088 } | 2104 } |
| 2089 _queryParams["part"] = [part]; | 2105 _queryParams["part"] = [part]; |
| 2090 if (hl != null) { | 2106 if (hl != null) { |
| 2091 _queryParams["hl"] = [hl]; | 2107 _queryParams["hl"] = [hl]; |
| 2092 } | 2108 } |
| 2093 | 2109 |
| 2094 _url = 'i18nLanguages'; | 2110 _url = 'i18nLanguages'; |
| 2095 | 2111 |
| 2096 var _response = _requester.request(_url, | 2112 var _response = _requester.request(_url, "GET", |
| 2097 "GET", | 2113 body: _body, |
| 2098 body: _body, | 2114 queryParams: _queryParams, |
| 2099 queryParams: _queryParams, | 2115 uploadOptions: _uploadOptions, |
| 2100 uploadOptions: _uploadOptions, | 2116 uploadMedia: _uploadMedia, |
| 2101 uploadMedia: _uploadMedia, | 2117 downloadOptions: _downloadOptions); |
| 2102 downloadOptions: _downloadOptions); | 2118 return _response |
| 2103 return _response.then((data) => new I18nLanguageListResponse.fromJson(data))
; | 2119 .then((data) => new I18nLanguageListResponse.fromJson(data)); |
| 2104 } | 2120 } |
| 2105 | |
| 2106 } | 2121 } |
| 2107 | 2122 |
| 2108 | |
| 2109 class I18nRegionsResourceApi { | 2123 class I18nRegionsResourceApi { |
| 2110 final commons.ApiRequester _requester; | 2124 final commons.ApiRequester _requester; |
| 2111 | 2125 |
| 2112 I18nRegionsResourceApi(commons.ApiRequester client) : | 2126 I18nRegionsResourceApi(commons.ApiRequester client) : _requester = client; |
| 2113 _requester = client; | |
| 2114 | 2127 |
| 2115 /** | 2128 /// Returns a list of content regions that the YouTube website supports. |
| 2116 * Returns a list of content regions that the YouTube website supports. | 2129 /// |
| 2117 * | 2130 /// Request parameters: |
| 2118 * Request parameters: | 2131 /// |
| 2119 * | 2132 /// [part] - The part parameter specifies the i18nRegion resource properties |
| 2120 * [part] - The part parameter specifies the i18nRegion resource properties | 2133 /// that the API response will include. Set the parameter value to snippet. |
| 2121 * that the API response will include. Set the parameter value to snippet. | 2134 /// |
| 2122 * | 2135 /// [hl] - The hl parameter specifies the language that should be used for |
| 2123 * [hl] - The hl parameter specifies the language that should be used for text | 2136 /// text values in the API response. |
| 2124 * values in the API response. | 2137 /// |
| 2125 * | 2138 /// Completes with a [I18nRegionListResponse]. |
| 2126 * Completes with a [I18nRegionListResponse]. | 2139 /// |
| 2127 * | 2140 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2128 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2141 /// an error. |
| 2129 * error. | 2142 /// |
| 2130 * | 2143 /// If the used [http.Client] completes with an error when making a REST |
| 2131 * If the used [http.Client] completes with an error when making a REST call, | 2144 /// call, this method will complete with the same error. |
| 2132 * this method will complete with the same error. | 2145 async.Future<I18nRegionListResponse> list(core.String part, |
| 2133 */ | 2146 {core.String hl}) { |
| 2134 async.Future<I18nRegionListResponse> list(core.String part, {core.String hl})
{ | |
| 2135 var _url = null; | 2147 var _url = null; |
| 2136 var _queryParams = new core.Map(); | 2148 var _queryParams = new core.Map(); |
| 2137 var _uploadMedia = null; | 2149 var _uploadMedia = null; |
| 2138 var _uploadOptions = null; | 2150 var _uploadOptions = null; |
| 2139 var _downloadOptions = commons.DownloadOptions.Metadata; | 2151 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2140 var _body = null; | 2152 var _body = null; |
| 2141 | 2153 |
| 2142 if (part == null) { | 2154 if (part == null) { |
| 2143 throw new core.ArgumentError("Parameter part is required."); | 2155 throw new core.ArgumentError("Parameter part is required."); |
| 2144 } | 2156 } |
| 2145 _queryParams["part"] = [part]; | 2157 _queryParams["part"] = [part]; |
| 2146 if (hl != null) { | 2158 if (hl != null) { |
| 2147 _queryParams["hl"] = [hl]; | 2159 _queryParams["hl"] = [hl]; |
| 2148 } | 2160 } |
| 2149 | 2161 |
| 2150 _url = 'i18nRegions'; | 2162 _url = 'i18nRegions'; |
| 2151 | 2163 |
| 2152 var _response = _requester.request(_url, | 2164 var _response = _requester.request(_url, "GET", |
| 2153 "GET", | 2165 body: _body, |
| 2154 body: _body, | 2166 queryParams: _queryParams, |
| 2155 queryParams: _queryParams, | 2167 uploadOptions: _uploadOptions, |
| 2156 uploadOptions: _uploadOptions, | 2168 uploadMedia: _uploadMedia, |
| 2157 uploadMedia: _uploadMedia, | 2169 downloadOptions: _downloadOptions); |
| 2158 downloadOptions: _downloadOptions); | |
| 2159 return _response.then((data) => new I18nRegionListResponse.fromJson(data)); | 2170 return _response.then((data) => new I18nRegionListResponse.fromJson(data)); |
| 2160 } | 2171 } |
| 2161 | |
| 2162 } | 2172 } |
| 2163 | 2173 |
| 2164 | |
| 2165 class LiveBroadcastsResourceApi { | 2174 class LiveBroadcastsResourceApi { |
| 2166 final commons.ApiRequester _requester; | 2175 final commons.ApiRequester _requester; |
| 2167 | 2176 |
| 2168 LiveBroadcastsResourceApi(commons.ApiRequester client) : | 2177 LiveBroadcastsResourceApi(commons.ApiRequester client) : _requester = client; |
| 2169 _requester = client; | |
| 2170 | 2178 |
| 2171 /** | 2179 /// Binds a YouTube broadcast to a stream or removes an existing binding |
| 2172 * Binds a YouTube broadcast to a stream or removes an existing binding | 2180 /// between a broadcast and a stream. A broadcast can only be bound to one |
| 2173 * between a broadcast and a stream. A broadcast can only be bound to one | 2181 /// video stream, though a video stream may be bound to more than one |
| 2174 * video stream, though a video stream may be bound to more than one | 2182 /// broadcast. |
| 2175 * broadcast. | 2183 /// |
| 2176 * | 2184 /// Request parameters: |
| 2177 * Request parameters: | 2185 /// |
| 2178 * | 2186 /// [id] - The id parameter specifies the unique ID of the broadcast that is |
| 2179 * [id] - The id parameter specifies the unique ID of the broadcast that is | 2187 /// being bound to a video stream. |
| 2180 * being bound to a video stream. | 2188 /// |
| 2181 * | 2189 /// [part] - The part parameter specifies a comma-separated list of one or |
| 2182 * [part] - The part parameter specifies a comma-separated list of one or more | 2190 /// more liveBroadcast resource properties that the API response will |
| 2183 * liveBroadcast resource properties that the API response will include. The | 2191 /// include. The part names that you can include in the parameter value are |
| 2184 * part names that you can include in the parameter value are id, snippet, | 2192 /// id, snippet, contentDetails, and status. |
| 2185 * contentDetails, and status. | 2193 /// |
| 2186 * | 2194 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 2187 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 2195 /// for YouTube content partners. |
| 2188 * YouTube content partners. | 2196 /// |
| 2189 * | 2197 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 2190 * The onBehalfOfContentOwner parameter indicates that the request's | 2198 /// authorization credentials identify a YouTube CMS user who is acting on |
| 2191 * authorization credentials identify a YouTube CMS user who is acting on | 2199 /// behalf of the content owner specified in the parameter value. This |
| 2192 * behalf of the content owner specified in the parameter value. This | 2200 /// parameter is intended for YouTube content partners that own and manage |
| 2193 * parameter is intended for YouTube content partners that own and manage many | 2201 /// many different YouTube channels. It allows content owners to authenticate |
| 2194 * different YouTube channels. It allows content owners to authenticate once | 2202 /// once and get access to all their video and channel data, without having |
| 2195 * and get access to all their video and channel data, without having to | 2203 /// to provide authentication credentials for each individual channel. The |
| 2196 * provide authentication credentials for each individual channel. The CMS | 2204 /// CMS account that the user authenticates with must be linked to the |
| 2197 * account that the user authenticates with must be linked to the specified | 2205 /// specified YouTube content owner. |
| 2198 * YouTube content owner. | 2206 /// |
| 2199 * | 2207 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 2200 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 2208 /// properly authorized request. Note: This parameter is intended exclusively |
| 2201 * properly authorized request. Note: This parameter is intended exclusively | 2209 /// for YouTube content partners. |
| 2202 * for YouTube content partners. | 2210 /// |
| 2203 * | 2211 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 2204 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 2212 /// ID of the channel to which a video is being added. This parameter is |
| 2205 * ID of the channel to which a video is being added. This parameter is | 2213 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 2206 * required when a request specifies a value for the onBehalfOfContentOwner | 2214 /// parameter, and it can only be used in conjunction with that parameter. In |
| 2207 * parameter, and it can only be used in conjunction with that parameter. In | 2215 /// addition, the request must be authorized using a CMS account that is |
| 2208 * addition, the request must be authorized using a CMS account that is linked | 2216 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 2209 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 2217 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 2210 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 2218 /// parameter value specifies must be linked to the content owner that the |
| 2211 * specifies must be linked to the content owner that the | 2219 /// onBehalfOfContentOwner parameter specifies. |
| 2212 * onBehalfOfContentOwner parameter specifies. | 2220 /// |
| 2213 * | 2221 /// This parameter is intended for YouTube content partners that own and |
| 2214 * This parameter is intended for YouTube content partners that own and manage | 2222 /// manage many different YouTube channels. It allows content owners to |
| 2215 * many different YouTube channels. It allows content owners to authenticate | 2223 /// authenticate once and perform actions on behalf of the channel specified |
| 2216 * once and perform actions on behalf of the channel specified in the | 2224 /// in the parameter value, without having to provide authentication |
| 2217 * parameter value, without having to provide authentication credentials for | 2225 /// credentials for each separate channel. |
| 2218 * each separate channel. | 2226 /// |
| 2219 * | 2227 /// [streamId] - The streamId parameter specifies the unique ID of the video |
| 2220 * [streamId] - The streamId parameter specifies the unique ID of the video | 2228 /// stream that is being bound to a broadcast. If this parameter is omitted, |
| 2221 * stream that is being bound to a broadcast. If this parameter is omitted, | 2229 /// the API will remove any existing binding between the broadcast and a |
| 2222 * the API will remove any existing binding between the broadcast and a video | 2230 /// video stream. |
| 2223 * stream. | 2231 /// |
| 2224 * | 2232 /// Completes with a [LiveBroadcast]. |
| 2225 * Completes with a [LiveBroadcast]. | 2233 /// |
| 2226 * | 2234 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2227 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2235 /// an error. |
| 2228 * error. | 2236 /// |
| 2229 * | 2237 /// If the used [http.Client] completes with an error when making a REST |
| 2230 * If the used [http.Client] completes with an error when making a REST call, | 2238 /// call, this method will complete with the same error. |
| 2231 * this method will complete with the same error. | 2239 async.Future<LiveBroadcast> bind(core.String id, core.String part, |
| 2232 */ | 2240 {core.String onBehalfOfContentOwner, |
| 2233 async.Future<LiveBroadcast> bind(core.String id, core.String part, {core.Strin
g onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.String
streamId}) { | 2241 core.String onBehalfOfContentOwnerChannel, |
| 2242 core.String streamId}) { |
| 2234 var _url = null; | 2243 var _url = null; |
| 2235 var _queryParams = new core.Map(); | 2244 var _queryParams = new core.Map(); |
| 2236 var _uploadMedia = null; | 2245 var _uploadMedia = null; |
| 2237 var _uploadOptions = null; | 2246 var _uploadOptions = null; |
| 2238 var _downloadOptions = commons.DownloadOptions.Metadata; | 2247 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2239 var _body = null; | 2248 var _body = null; |
| 2240 | 2249 |
| 2241 if (id == null) { | 2250 if (id == null) { |
| 2242 throw new core.ArgumentError("Parameter id is required."); | 2251 throw new core.ArgumentError("Parameter id is required."); |
| 2243 } | 2252 } |
| 2244 _queryParams["id"] = [id]; | 2253 _queryParams["id"] = [id]; |
| 2245 if (part == null) { | 2254 if (part == null) { |
| 2246 throw new core.ArgumentError("Parameter part is required."); | 2255 throw new core.ArgumentError("Parameter part is required."); |
| 2247 } | 2256 } |
| 2248 _queryParams["part"] = [part]; | 2257 _queryParams["part"] = [part]; |
| 2249 if (onBehalfOfContentOwner != null) { | 2258 if (onBehalfOfContentOwner != null) { |
| 2250 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2259 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 2251 } | 2260 } |
| 2252 if (onBehalfOfContentOwnerChannel != null) { | 2261 if (onBehalfOfContentOwnerChannel != null) { |
| 2253 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 2262 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 2263 onBehalfOfContentOwnerChannel |
| 2264 ]; |
| 2254 } | 2265 } |
| 2255 if (streamId != null) { | 2266 if (streamId != null) { |
| 2256 _queryParams["streamId"] = [streamId]; | 2267 _queryParams["streamId"] = [streamId]; |
| 2257 } | 2268 } |
| 2258 | 2269 |
| 2259 _url = 'liveBroadcasts/bind'; | 2270 _url = 'liveBroadcasts/bind'; |
| 2260 | 2271 |
| 2261 var _response = _requester.request(_url, | 2272 var _response = _requester.request(_url, "POST", |
| 2262 "POST", | 2273 body: _body, |
| 2263 body: _body, | 2274 queryParams: _queryParams, |
| 2264 queryParams: _queryParams, | 2275 uploadOptions: _uploadOptions, |
| 2265 uploadOptions: _uploadOptions, | 2276 uploadMedia: _uploadMedia, |
| 2266 uploadMedia: _uploadMedia, | 2277 downloadOptions: _downloadOptions); |
| 2267 downloadOptions: _downloadOptions); | |
| 2268 return _response.then((data) => new LiveBroadcast.fromJson(data)); | 2278 return _response.then((data) => new LiveBroadcast.fromJson(data)); |
| 2269 } | 2279 } |
| 2270 | 2280 |
| 2271 /** | 2281 /// Controls the settings for a slate that can be displayed in the broadcast |
| 2272 * Controls the settings for a slate that can be displayed in the broadcast | 2282 /// stream. |
| 2273 * stream. | 2283 /// |
| 2274 * | 2284 /// Request parameters: |
| 2275 * Request parameters: | 2285 /// |
| 2276 * | 2286 /// [id] - The id parameter specifies the YouTube live broadcast ID that |
| 2277 * [id] - The id parameter specifies the YouTube live broadcast ID that | 2287 /// uniquely identifies the broadcast in which the slate is being updated. |
| 2278 * uniquely identifies the broadcast in which the slate is being updated. | 2288 /// |
| 2279 * | 2289 /// [part] - The part parameter specifies a comma-separated list of one or |
| 2280 * [part] - The part parameter specifies a comma-separated list of one or more | 2290 /// more liveBroadcast resource properties that the API response will |
| 2281 * liveBroadcast resource properties that the API response will include. The | 2291 /// include. The part names that you can include in the parameter value are |
| 2282 * part names that you can include in the parameter value are id, snippet, | 2292 /// id, snippet, contentDetails, and status. |
| 2283 * contentDetails, and status. | 2293 /// |
| 2284 * | 2294 /// [displaySlate] - The displaySlate parameter specifies whether the slate |
| 2285 * [displaySlate] - The displaySlate parameter specifies whether the slate is | 2295 /// is being enabled or disabled. |
| 2286 * being enabled or disabled. | 2296 /// |
| 2287 * | 2297 /// [offsetTimeMs] - The offsetTimeMs parameter specifies a positive time |
| 2288 * [offsetTimeMs] - The offsetTimeMs parameter specifies a positive time | 2298 /// offset when the specified slate change will occur. The value is measured |
| 2289 * offset when the specified slate change will occur. The value is measured in | 2299 /// in milliseconds from the beginning of the broadcast's monitor stream, |
| 2290 * milliseconds from the beginning of the broadcast's monitor stream, which is | 2300 /// which is the time that the testing phase for the broadcast began. Even |
| 2291 * the time that the testing phase for the broadcast began. Even though it is | 2301 /// though it is specified in milliseconds, the value is actually an |
| 2292 * specified in milliseconds, the value is actually an approximation, and | 2302 /// approximation, and YouTube completes the requested action as closely as |
| 2293 * YouTube completes the requested action as closely as possible to that time. | 2303 /// possible to that time. |
| 2294 * | 2304 /// |
| 2295 * If you do not specify a value for this parameter, then YouTube performs the | 2305 /// If you do not specify a value for this parameter, then YouTube performs |
| 2296 * action as soon as possible. See the Getting started guide for more details. | 2306 /// the action as soon as possible. See the Getting started guide for more |
| 2297 * | 2307 /// details. |
| 2298 * Important: You should only specify a value for this parameter if your | 2308 /// |
| 2299 * broadcast stream is delayed. | 2309 /// Important: You should only specify a value for this parameter if your |
| 2300 * | 2310 /// broadcast stream is delayed. |
| 2301 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 2311 /// |
| 2302 * YouTube content partners. | 2312 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 2303 * | 2313 /// for YouTube content partners. |
| 2304 * The onBehalfOfContentOwner parameter indicates that the request's | 2314 /// |
| 2305 * authorization credentials identify a YouTube CMS user who is acting on | 2315 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 2306 * behalf of the content owner specified in the parameter value. This | 2316 /// authorization credentials identify a YouTube CMS user who is acting on |
| 2307 * parameter is intended for YouTube content partners that own and manage many | 2317 /// behalf of the content owner specified in the parameter value. This |
| 2308 * different YouTube channels. It allows content owners to authenticate once | 2318 /// parameter is intended for YouTube content partners that own and manage |
| 2309 * and get access to all their video and channel data, without having to | 2319 /// many different YouTube channels. It allows content owners to authenticate |
| 2310 * provide authentication credentials for each individual channel. The CMS | 2320 /// once and get access to all their video and channel data, without having |
| 2311 * account that the user authenticates with must be linked to the specified | 2321 /// to provide authentication credentials for each individual channel. The |
| 2312 * YouTube content owner. | 2322 /// CMS account that the user authenticates with must be linked to the |
| 2313 * | 2323 /// specified YouTube content owner. |
| 2314 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 2324 /// |
| 2315 * properly authorized request. Note: This parameter is intended exclusively | 2325 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 2316 * for YouTube content partners. | 2326 /// properly authorized request. Note: This parameter is intended exclusively |
| 2317 * | 2327 /// for YouTube content partners. |
| 2318 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 2328 /// |
| 2319 * ID of the channel to which a video is being added. This parameter is | 2329 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 2320 * required when a request specifies a value for the onBehalfOfContentOwner | 2330 /// ID of the channel to which a video is being added. This parameter is |
| 2321 * parameter, and it can only be used in conjunction with that parameter. In | 2331 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 2322 * addition, the request must be authorized using a CMS account that is linked | 2332 /// parameter, and it can only be used in conjunction with that parameter. In |
| 2323 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 2333 /// addition, the request must be authorized using a CMS account that is |
| 2324 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 2334 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 2325 * specifies must be linked to the content owner that the | 2335 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 2326 * onBehalfOfContentOwner parameter specifies. | 2336 /// parameter value specifies must be linked to the content owner that the |
| 2327 * | 2337 /// onBehalfOfContentOwner parameter specifies. |
| 2328 * This parameter is intended for YouTube content partners that own and manage | 2338 /// |
| 2329 * many different YouTube channels. It allows content owners to authenticate | 2339 /// This parameter is intended for YouTube content partners that own and |
| 2330 * once and perform actions on behalf of the channel specified in the | 2340 /// manage many different YouTube channels. It allows content owners to |
| 2331 * parameter value, without having to provide authentication credentials for | 2341 /// authenticate once and perform actions on behalf of the channel specified |
| 2332 * each separate channel. | 2342 /// in the parameter value, without having to provide authentication |
| 2333 * | 2343 /// credentials for each separate channel. |
| 2334 * [walltime] - The walltime parameter specifies the wall clock time at which | 2344 /// |
| 2335 * the specified slate change will occur. The value is specified in ISO 8601 | 2345 /// [walltime] - The walltime parameter specifies the wall clock time at |
| 2336 * (YYYY-MM-DDThh:mm:ss.sssZ) format. | 2346 /// which the specified slate change will occur. The value is specified in |
| 2337 * | 2347 /// ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. |
| 2338 * Completes with a [LiveBroadcast]. | 2348 /// |
| 2339 * | 2349 /// Completes with a [LiveBroadcast]. |
| 2340 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2350 /// |
| 2341 * error. | 2351 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2342 * | 2352 /// an error. |
| 2343 * If the used [http.Client] completes with an error when making a REST call, | 2353 /// |
| 2344 * this method will complete with the same error. | 2354 /// If the used [http.Client] completes with an error when making a REST |
| 2345 */ | 2355 /// call, this method will complete with the same error. |
| 2346 async.Future<LiveBroadcast> control(core.String id, core.String part, {core.bo
ol displaySlate, core.String offsetTimeMs, core.String onBehalfOfContentOwner, c
ore.String onBehalfOfContentOwnerChannel, core.DateTime walltime}) { | 2356 async.Future<LiveBroadcast> control(core.String id, core.String part, |
| 2357 {core.bool displaySlate, |
| 2358 core.String offsetTimeMs, |
| 2359 core.String onBehalfOfContentOwner, |
| 2360 core.String onBehalfOfContentOwnerChannel, |
| 2361 core.DateTime walltime}) { |
| 2347 var _url = null; | 2362 var _url = null; |
| 2348 var _queryParams = new core.Map(); | 2363 var _queryParams = new core.Map(); |
| 2349 var _uploadMedia = null; | 2364 var _uploadMedia = null; |
| 2350 var _uploadOptions = null; | 2365 var _uploadOptions = null; |
| 2351 var _downloadOptions = commons.DownloadOptions.Metadata; | 2366 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2352 var _body = null; | 2367 var _body = null; |
| 2353 | 2368 |
| 2354 if (id == null) { | 2369 if (id == null) { |
| 2355 throw new core.ArgumentError("Parameter id is required."); | 2370 throw new core.ArgumentError("Parameter id is required."); |
| 2356 } | 2371 } |
| 2357 _queryParams["id"] = [id]; | 2372 _queryParams["id"] = [id]; |
| 2358 if (part == null) { | 2373 if (part == null) { |
| 2359 throw new core.ArgumentError("Parameter part is required."); | 2374 throw new core.ArgumentError("Parameter part is required."); |
| 2360 } | 2375 } |
| 2361 _queryParams["part"] = [part]; | 2376 _queryParams["part"] = [part]; |
| 2362 if (displaySlate != null) { | 2377 if (displaySlate != null) { |
| 2363 _queryParams["displaySlate"] = ["${displaySlate}"]; | 2378 _queryParams["displaySlate"] = ["${displaySlate}"]; |
| 2364 } | 2379 } |
| 2365 if (offsetTimeMs != null) { | 2380 if (offsetTimeMs != null) { |
| 2366 _queryParams["offsetTimeMs"] = [offsetTimeMs]; | 2381 _queryParams["offsetTimeMs"] = [offsetTimeMs]; |
| 2367 } | 2382 } |
| 2368 if (onBehalfOfContentOwner != null) { | 2383 if (onBehalfOfContentOwner != null) { |
| 2369 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2384 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 2370 } | 2385 } |
| 2371 if (onBehalfOfContentOwnerChannel != null) { | 2386 if (onBehalfOfContentOwnerChannel != null) { |
| 2372 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 2387 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 2388 onBehalfOfContentOwnerChannel |
| 2389 ]; |
| 2373 } | 2390 } |
| 2374 if (walltime != null) { | 2391 if (walltime != null) { |
| 2375 _queryParams["walltime"] = [(walltime).toIso8601String()]; | 2392 _queryParams["walltime"] = [(walltime).toIso8601String()]; |
| 2376 } | 2393 } |
| 2377 | 2394 |
| 2378 _url = 'liveBroadcasts/control'; | 2395 _url = 'liveBroadcasts/control'; |
| 2379 | 2396 |
| 2380 var _response = _requester.request(_url, | 2397 var _response = _requester.request(_url, "POST", |
| 2381 "POST", | 2398 body: _body, |
| 2382 body: _body, | 2399 queryParams: _queryParams, |
| 2383 queryParams: _queryParams, | 2400 uploadOptions: _uploadOptions, |
| 2384 uploadOptions: _uploadOptions, | 2401 uploadMedia: _uploadMedia, |
| 2385 uploadMedia: _uploadMedia, | 2402 downloadOptions: _downloadOptions); |
| 2386 downloadOptions: _downloadOptions); | |
| 2387 return _response.then((data) => new LiveBroadcast.fromJson(data)); | 2403 return _response.then((data) => new LiveBroadcast.fromJson(data)); |
| 2388 } | 2404 } |
| 2389 | 2405 |
| 2390 /** | 2406 /// Deletes a broadcast. |
| 2391 * Deletes a broadcast. | 2407 /// |
| 2392 * | 2408 /// Request parameters: |
| 2393 * Request parameters: | 2409 /// |
| 2394 * | 2410 /// [id] - The id parameter specifies the YouTube live broadcast ID for the |
| 2395 * [id] - The id parameter specifies the YouTube live broadcast ID for the | 2411 /// resource that is being deleted. |
| 2396 * resource that is being deleted. | 2412 /// |
| 2397 * | 2413 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 2398 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 2414 /// for YouTube content partners. |
| 2399 * YouTube content partners. | 2415 /// |
| 2400 * | 2416 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 2401 * The onBehalfOfContentOwner parameter indicates that the request's | 2417 /// authorization credentials identify a YouTube CMS user who is acting on |
| 2402 * authorization credentials identify a YouTube CMS user who is acting on | 2418 /// behalf of the content owner specified in the parameter value. This |
| 2403 * behalf of the content owner specified in the parameter value. This | 2419 /// parameter is intended for YouTube content partners that own and manage |
| 2404 * parameter is intended for YouTube content partners that own and manage many | 2420 /// many different YouTube channels. It allows content owners to authenticate |
| 2405 * different YouTube channels. It allows content owners to authenticate once | 2421 /// once and get access to all their video and channel data, without having |
| 2406 * and get access to all their video and channel data, without having to | 2422 /// to provide authentication credentials for each individual channel. The |
| 2407 * provide authentication credentials for each individual channel. The CMS | 2423 /// CMS account that the user authenticates with must be linked to the |
| 2408 * account that the user authenticates with must be linked to the specified | 2424 /// specified YouTube content owner. |
| 2409 * YouTube content owner. | 2425 /// |
| 2410 * | 2426 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 2411 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 2427 /// properly authorized request. Note: This parameter is intended exclusively |
| 2412 * properly authorized request. Note: This parameter is intended exclusively | 2428 /// for YouTube content partners. |
| 2413 * for YouTube content partners. | 2429 /// |
| 2414 * | 2430 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 2415 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 2431 /// ID of the channel to which a video is being added. This parameter is |
| 2416 * ID of the channel to which a video is being added. This parameter is | 2432 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 2417 * required when a request specifies a value for the onBehalfOfContentOwner | 2433 /// parameter, and it can only be used in conjunction with that parameter. In |
| 2418 * parameter, and it can only be used in conjunction with that parameter. In | 2434 /// addition, the request must be authorized using a CMS account that is |
| 2419 * addition, the request must be authorized using a CMS account that is linked | 2435 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 2420 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 2436 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 2421 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 2437 /// parameter value specifies must be linked to the content owner that the |
| 2422 * specifies must be linked to the content owner that the | 2438 /// onBehalfOfContentOwner parameter specifies. |
| 2423 * onBehalfOfContentOwner parameter specifies. | 2439 /// |
| 2424 * | 2440 /// This parameter is intended for YouTube content partners that own and |
| 2425 * This parameter is intended for YouTube content partners that own and manage | 2441 /// manage many different YouTube channels. It allows content owners to |
| 2426 * many different YouTube channels. It allows content owners to authenticate | 2442 /// authenticate once and perform actions on behalf of the channel specified |
| 2427 * once and perform actions on behalf of the channel specified in the | 2443 /// in the parameter value, without having to provide authentication |
| 2428 * parameter value, without having to provide authentication credentials for | 2444 /// credentials for each separate channel. |
| 2429 * each separate channel. | 2445 /// |
| 2430 * | 2446 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2431 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2447 /// an error. |
| 2432 * error. | 2448 /// |
| 2433 * | 2449 /// If the used [http.Client] completes with an error when making a REST |
| 2434 * If the used [http.Client] completes with an error when making a REST call, | 2450 /// call, this method will complete with the same error. |
| 2435 * this method will complete with the same error. | 2451 async.Future delete(core.String id, |
| 2436 */ | 2452 {core.String onBehalfOfContentOwner, |
| 2437 async.Future delete(core.String id, {core.String onBehalfOfContentOwner, core.
String onBehalfOfContentOwnerChannel}) { | 2453 core.String onBehalfOfContentOwnerChannel}) { |
| 2438 var _url = null; | 2454 var _url = null; |
| 2439 var _queryParams = new core.Map(); | 2455 var _queryParams = new core.Map(); |
| 2440 var _uploadMedia = null; | 2456 var _uploadMedia = null; |
| 2441 var _uploadOptions = null; | 2457 var _uploadOptions = null; |
| 2442 var _downloadOptions = commons.DownloadOptions.Metadata; | 2458 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2443 var _body = null; | 2459 var _body = null; |
| 2444 | 2460 |
| 2445 if (id == null) { | 2461 if (id == null) { |
| 2446 throw new core.ArgumentError("Parameter id is required."); | 2462 throw new core.ArgumentError("Parameter id is required."); |
| 2447 } | 2463 } |
| 2448 _queryParams["id"] = [id]; | 2464 _queryParams["id"] = [id]; |
| 2449 if (onBehalfOfContentOwner != null) { | 2465 if (onBehalfOfContentOwner != null) { |
| 2450 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2466 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 2451 } | 2467 } |
| 2452 if (onBehalfOfContentOwnerChannel != null) { | 2468 if (onBehalfOfContentOwnerChannel != null) { |
| 2453 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 2469 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 2470 onBehalfOfContentOwnerChannel |
| 2471 ]; |
| 2454 } | 2472 } |
| 2455 | 2473 |
| 2456 _downloadOptions = null; | 2474 _downloadOptions = null; |
| 2457 | 2475 |
| 2458 _url = 'liveBroadcasts'; | 2476 _url = 'liveBroadcasts'; |
| 2459 | 2477 |
| 2460 var _response = _requester.request(_url, | 2478 var _response = _requester.request(_url, "DELETE", |
| 2461 "DELETE", | 2479 body: _body, |
| 2462 body: _body, | 2480 queryParams: _queryParams, |
| 2463 queryParams: _queryParams, | 2481 uploadOptions: _uploadOptions, |
| 2464 uploadOptions: _uploadOptions, | 2482 uploadMedia: _uploadMedia, |
| 2465 uploadMedia: _uploadMedia, | 2483 downloadOptions: _downloadOptions); |
| 2466 downloadOptions: _downloadOptions); | |
| 2467 return _response.then((data) => null); | 2484 return _response.then((data) => null); |
| 2468 } | 2485 } |
| 2469 | 2486 |
| 2470 /** | 2487 /// Creates a broadcast. |
| 2471 * Creates a broadcast. | 2488 /// |
| 2472 * | 2489 /// [request] - The metadata request object. |
| 2473 * [request] - The metadata request object. | 2490 /// |
| 2474 * | 2491 /// Request parameters: |
| 2475 * Request parameters: | 2492 /// |
| 2476 * | 2493 /// [part] - The part parameter serves two purposes in this operation. It |
| 2477 * [part] - The part parameter serves two purposes in this operation. It | 2494 /// identifies the properties that the write operation will set as well as |
| 2478 * identifies the properties that the write operation will set as well as the | 2495 /// the properties that the API response will include. |
| 2479 * properties that the API response will include. | 2496 /// |
| 2480 * | 2497 /// The part properties that you can include in the parameter value are id, |
| 2481 * The part properties that you can include in the parameter value are id, | 2498 /// snippet, contentDetails, and status. |
| 2482 * snippet, contentDetails, and status. | 2499 /// |
| 2483 * | 2500 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 2484 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 2501 /// for YouTube content partners. |
| 2485 * YouTube content partners. | 2502 /// |
| 2486 * | 2503 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 2487 * The onBehalfOfContentOwner parameter indicates that the request's | 2504 /// authorization credentials identify a YouTube CMS user who is acting on |
| 2488 * authorization credentials identify a YouTube CMS user who is acting on | 2505 /// behalf of the content owner specified in the parameter value. This |
| 2489 * behalf of the content owner specified in the parameter value. This | 2506 /// parameter is intended for YouTube content partners that own and manage |
| 2490 * parameter is intended for YouTube content partners that own and manage many | 2507 /// many different YouTube channels. It allows content owners to authenticate |
| 2491 * different YouTube channels. It allows content owners to authenticate once | 2508 /// once and get access to all their video and channel data, without having |
| 2492 * and get access to all their video and channel data, without having to | 2509 /// to provide authentication credentials for each individual channel. The |
| 2493 * provide authentication credentials for each individual channel. The CMS | 2510 /// CMS account that the user authenticates with must be linked to the |
| 2494 * account that the user authenticates with must be linked to the specified | 2511 /// specified YouTube content owner. |
| 2495 * YouTube content owner. | 2512 /// |
| 2496 * | 2513 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 2497 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 2514 /// properly authorized request. Note: This parameter is intended exclusively |
| 2498 * properly authorized request. Note: This parameter is intended exclusively | 2515 /// for YouTube content partners. |
| 2499 * for YouTube content partners. | 2516 /// |
| 2500 * | 2517 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 2501 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 2518 /// ID of the channel to which a video is being added. This parameter is |
| 2502 * ID of the channel to which a video is being added. This parameter is | 2519 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 2503 * required when a request specifies a value for the onBehalfOfContentOwner | 2520 /// parameter, and it can only be used in conjunction with that parameter. In |
| 2504 * parameter, and it can only be used in conjunction with that parameter. In | 2521 /// addition, the request must be authorized using a CMS account that is |
| 2505 * addition, the request must be authorized using a CMS account that is linked | 2522 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 2506 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 2523 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 2507 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 2524 /// parameter value specifies must be linked to the content owner that the |
| 2508 * specifies must be linked to the content owner that the | 2525 /// onBehalfOfContentOwner parameter specifies. |
| 2509 * onBehalfOfContentOwner parameter specifies. | 2526 /// |
| 2510 * | 2527 /// This parameter is intended for YouTube content partners that own and |
| 2511 * This parameter is intended for YouTube content partners that own and manage | 2528 /// manage many different YouTube channels. It allows content owners to |
| 2512 * many different YouTube channels. It allows content owners to authenticate | 2529 /// authenticate once and perform actions on behalf of the channel specified |
| 2513 * once and perform actions on behalf of the channel specified in the | 2530 /// in the parameter value, without having to provide authentication |
| 2514 * parameter value, without having to provide authentication credentials for | 2531 /// credentials for each separate channel. |
| 2515 * each separate channel. | 2532 /// |
| 2516 * | 2533 /// Completes with a [LiveBroadcast]. |
| 2517 * Completes with a [LiveBroadcast]. | 2534 /// |
| 2518 * | 2535 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2519 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2536 /// an error. |
| 2520 * error. | 2537 /// |
| 2521 * | 2538 /// If the used [http.Client] completes with an error when making a REST |
| 2522 * If the used [http.Client] completes with an error when making a REST call, | 2539 /// call, this method will complete with the same error. |
| 2523 * this method will complete with the same error. | 2540 async.Future<LiveBroadcast> insert(LiveBroadcast request, core.String part, |
| 2524 */ | 2541 {core.String onBehalfOfContentOwner, |
| 2525 async.Future<LiveBroadcast> insert(LiveBroadcast request, core.String part, {c
ore.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 2542 core.String onBehalfOfContentOwnerChannel}) { |
| 2526 var _url = null; | 2543 var _url = null; |
| 2527 var _queryParams = new core.Map(); | 2544 var _queryParams = new core.Map(); |
| 2528 var _uploadMedia = null; | 2545 var _uploadMedia = null; |
| 2529 var _uploadOptions = null; | 2546 var _uploadOptions = null; |
| 2530 var _downloadOptions = commons.DownloadOptions.Metadata; | 2547 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2531 var _body = null; | 2548 var _body = null; |
| 2532 | 2549 |
| 2533 if (request != null) { | 2550 if (request != null) { |
| 2534 _body = convert.JSON.encode((request).toJson()); | 2551 _body = convert.JSON.encode((request).toJson()); |
| 2535 } | 2552 } |
| 2536 if (part == null) { | 2553 if (part == null) { |
| 2537 throw new core.ArgumentError("Parameter part is required."); | 2554 throw new core.ArgumentError("Parameter part is required."); |
| 2538 } | 2555 } |
| 2539 _queryParams["part"] = [part]; | 2556 _queryParams["part"] = [part]; |
| 2540 if (onBehalfOfContentOwner != null) { | 2557 if (onBehalfOfContentOwner != null) { |
| 2541 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2558 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 2542 } | 2559 } |
| 2543 if (onBehalfOfContentOwnerChannel != null) { | 2560 if (onBehalfOfContentOwnerChannel != null) { |
| 2544 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 2561 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 2562 onBehalfOfContentOwnerChannel |
| 2563 ]; |
| 2545 } | 2564 } |
| 2546 | 2565 |
| 2547 _url = 'liveBroadcasts'; | 2566 _url = 'liveBroadcasts'; |
| 2548 | 2567 |
| 2549 var _response = _requester.request(_url, | 2568 var _response = _requester.request(_url, "POST", |
| 2550 "POST", | 2569 body: _body, |
| 2551 body: _body, | 2570 queryParams: _queryParams, |
| 2552 queryParams: _queryParams, | 2571 uploadOptions: _uploadOptions, |
| 2553 uploadOptions: _uploadOptions, | 2572 uploadMedia: _uploadMedia, |
| 2554 uploadMedia: _uploadMedia, | 2573 downloadOptions: _downloadOptions); |
| 2555 downloadOptions: _downloadOptions); | |
| 2556 return _response.then((data) => new LiveBroadcast.fromJson(data)); | 2574 return _response.then((data) => new LiveBroadcast.fromJson(data)); |
| 2557 } | 2575 } |
| 2558 | 2576 |
| 2559 /** | 2577 /// Returns a list of YouTube broadcasts that match the API request |
| 2560 * Returns a list of YouTube broadcasts that match the API request parameters. | 2578 /// parameters. |
| 2561 * | 2579 /// |
| 2562 * Request parameters: | 2580 /// Request parameters: |
| 2563 * | 2581 /// |
| 2564 * [part] - The part parameter specifies a comma-separated list of one or more | 2582 /// [part] - The part parameter specifies a comma-separated list of one or |
| 2565 * liveBroadcast resource properties that the API response will include. The | 2583 /// more liveBroadcast resource properties that the API response will |
| 2566 * part names that you can include in the parameter value are id, snippet, | 2584 /// include. The part names that you can include in the parameter value are |
| 2567 * contentDetails, and status. | 2585 /// id, snippet, contentDetails, and status. |
| 2568 * | 2586 /// |
| 2569 * [broadcastStatus] - The broadcastStatus parameter filters the API response | 2587 /// [broadcastStatus] - The broadcastStatus parameter filters the API |
| 2570 * to only include broadcasts with the specified status. | 2588 /// response to only include broadcasts with the specified status. |
| 2571 * Possible string values are: | 2589 /// Possible string values are: |
| 2572 * - "active" : Return current live broadcasts. | 2590 /// - "active" : Return current live broadcasts. |
| 2573 * - "all" : Return all broadcasts. | 2591 /// - "all" : Return all broadcasts. |
| 2574 * - "completed" : Return broadcasts that have already ended. | 2592 /// - "completed" : Return broadcasts that have already ended. |
| 2575 * - "upcoming" : Return broadcasts that have not yet started. | 2593 /// - "upcoming" : Return broadcasts that have not yet started. |
| 2576 * | 2594 /// |
| 2577 * [broadcastType] - The broadcastType parameter filters the API response to | 2595 /// [broadcastType] - The broadcastType parameter filters the API response to |
| 2578 * only include broadcasts with the specified type. This is only compatible | 2596 /// only include broadcasts with the specified type. This is only compatible |
| 2579 * with the mine filter for now. | 2597 /// with the mine filter for now. |
| 2580 * Possible string values are: | 2598 /// Possible string values are: |
| 2581 * - "all" : Return all broadcasts. | 2599 /// - "all" : Return all broadcasts. |
| 2582 * - "event" : Return only scheduled event broadcasts. | 2600 /// - "event" : Return only scheduled event broadcasts. |
| 2583 * - "persistent" : Return only persistent broadcasts. | 2601 /// - "persistent" : Return only persistent broadcasts. |
| 2584 * | 2602 /// |
| 2585 * [id] - The id parameter specifies a comma-separated list of YouTube | 2603 /// [id] - The id parameter specifies a comma-separated list of YouTube |
| 2586 * broadcast IDs that identify the broadcasts being retrieved. In a | 2604 /// broadcast IDs that identify the broadcasts being retrieved. In a |
| 2587 * liveBroadcast resource, the id property specifies the broadcast's ID. | 2605 /// liveBroadcast resource, the id property specifies the broadcast's ID. |
| 2588 * | 2606 /// |
| 2589 * [maxResults] - The maxResults parameter specifies the maximum number of | 2607 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 2590 * items that should be returned in the result set. | 2608 /// items that should be returned in the result set. |
| 2591 * Value must be between "0" and "50". | 2609 /// Value must be between "0" and "50". |
| 2592 * | 2610 /// |
| 2593 * [mine] - The mine parameter can be used to instruct the API to only return | 2611 /// [mine] - The mine parameter can be used to instruct the API to only |
| 2594 * broadcasts owned by the authenticated user. Set the parameter value to true | 2612 /// return broadcasts owned by the authenticated user. Set the parameter |
| 2595 * to only retrieve your own broadcasts. | 2613 /// value to true to only retrieve your own broadcasts. |
| 2596 * | 2614 /// |
| 2597 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 2615 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 2598 * YouTube content partners. | 2616 /// for YouTube content partners. |
| 2599 * | 2617 /// |
| 2600 * The onBehalfOfContentOwner parameter indicates that the request's | 2618 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 2601 * authorization credentials identify a YouTube CMS user who is acting on | 2619 /// authorization credentials identify a YouTube CMS user who is acting on |
| 2602 * behalf of the content owner specified in the parameter value. This | 2620 /// behalf of the content owner specified in the parameter value. This |
| 2603 * parameter is intended for YouTube content partners that own and manage many | 2621 /// parameter is intended for YouTube content partners that own and manage |
| 2604 * different YouTube channels. It allows content owners to authenticate once | 2622 /// many different YouTube channels. It allows content owners to authenticate |
| 2605 * and get access to all their video and channel data, without having to | 2623 /// once and get access to all their video and channel data, without having |
| 2606 * provide authentication credentials for each individual channel. The CMS | 2624 /// to provide authentication credentials for each individual channel. The |
| 2607 * account that the user authenticates with must be linked to the specified | 2625 /// CMS account that the user authenticates with must be linked to the |
| 2608 * YouTube content owner. | 2626 /// specified YouTube content owner. |
| 2609 * | 2627 /// |
| 2610 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 2628 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 2611 * properly authorized request. Note: This parameter is intended exclusively | 2629 /// properly authorized request. Note: This parameter is intended exclusively |
| 2612 * for YouTube content partners. | 2630 /// for YouTube content partners. |
| 2613 * | 2631 /// |
| 2614 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 2632 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 2615 * ID of the channel to which a video is being added. This parameter is | 2633 /// ID of the channel to which a video is being added. This parameter is |
| 2616 * required when a request specifies a value for the onBehalfOfContentOwner | 2634 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 2617 * parameter, and it can only be used in conjunction with that parameter. In | 2635 /// parameter, and it can only be used in conjunction with that parameter. In |
| 2618 * addition, the request must be authorized using a CMS account that is linked | 2636 /// addition, the request must be authorized using a CMS account that is |
| 2619 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 2637 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 2620 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 2638 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 2621 * specifies must be linked to the content owner that the | 2639 /// parameter value specifies must be linked to the content owner that the |
| 2622 * onBehalfOfContentOwner parameter specifies. | 2640 /// onBehalfOfContentOwner parameter specifies. |
| 2623 * | 2641 /// |
| 2624 * This parameter is intended for YouTube content partners that own and manage | 2642 /// This parameter is intended for YouTube content partners that own and |
| 2625 * many different YouTube channels. It allows content owners to authenticate | 2643 /// manage many different YouTube channels. It allows content owners to |
| 2626 * once and perform actions on behalf of the channel specified in the | 2644 /// authenticate once and perform actions on behalf of the channel specified |
| 2627 * parameter value, without having to provide authentication credentials for | 2645 /// in the parameter value, without having to provide authentication |
| 2628 * each separate channel. | 2646 /// credentials for each separate channel. |
| 2629 * | 2647 /// |
| 2630 * [pageToken] - The pageToken parameter identifies a specific page in the | 2648 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 2631 * result set that should be returned. In an API response, the nextPageToken | 2649 /// result set that should be returned. In an API response, the nextPageToken |
| 2632 * and prevPageToken properties identify other pages that could be retrieved. | 2650 /// and prevPageToken properties identify other pages that could be |
| 2633 * | 2651 /// retrieved. |
| 2634 * Completes with a [LiveBroadcastListResponse]. | 2652 /// |
| 2635 * | 2653 /// Completes with a [LiveBroadcastListResponse]. |
| 2636 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2654 /// |
| 2637 * error. | 2655 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2638 * | 2656 /// an error. |
| 2639 * If the used [http.Client] completes with an error when making a REST call, | 2657 /// |
| 2640 * this method will complete with the same error. | 2658 /// If the used [http.Client] completes with an error when making a REST |
| 2641 */ | 2659 /// call, this method will complete with the same error. |
| 2642 async.Future<LiveBroadcastListResponse> list(core.String part, {core.String br
oadcastStatus, core.String broadcastType, core.String id, core.int maxResults, c
ore.bool mine, core.String onBehalfOfContentOwner, core.String onBehalfOfContent
OwnerChannel, core.String pageToken}) { | 2660 async.Future<LiveBroadcastListResponse> list(core.String part, |
| 2661 {core.String broadcastStatus, |
| 2662 core.String broadcastType, |
| 2663 core.String id, |
| 2664 core.int maxResults, |
| 2665 core.bool mine, |
| 2666 core.String onBehalfOfContentOwner, |
| 2667 core.String onBehalfOfContentOwnerChannel, |
| 2668 core.String pageToken}) { |
| 2643 var _url = null; | 2669 var _url = null; |
| 2644 var _queryParams = new core.Map(); | 2670 var _queryParams = new core.Map(); |
| 2645 var _uploadMedia = null; | 2671 var _uploadMedia = null; |
| 2646 var _uploadOptions = null; | 2672 var _uploadOptions = null; |
| 2647 var _downloadOptions = commons.DownloadOptions.Metadata; | 2673 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2648 var _body = null; | 2674 var _body = null; |
| 2649 | 2675 |
| 2650 if (part == null) { | 2676 if (part == null) { |
| 2651 throw new core.ArgumentError("Parameter part is required."); | 2677 throw new core.ArgumentError("Parameter part is required."); |
| 2652 } | 2678 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2663 if (maxResults != null) { | 2689 if (maxResults != null) { |
| 2664 _queryParams["maxResults"] = ["${maxResults}"]; | 2690 _queryParams["maxResults"] = ["${maxResults}"]; |
| 2665 } | 2691 } |
| 2666 if (mine != null) { | 2692 if (mine != null) { |
| 2667 _queryParams["mine"] = ["${mine}"]; | 2693 _queryParams["mine"] = ["${mine}"]; |
| 2668 } | 2694 } |
| 2669 if (onBehalfOfContentOwner != null) { | 2695 if (onBehalfOfContentOwner != null) { |
| 2670 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2696 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 2671 } | 2697 } |
| 2672 if (onBehalfOfContentOwnerChannel != null) { | 2698 if (onBehalfOfContentOwnerChannel != null) { |
| 2673 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 2699 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 2700 onBehalfOfContentOwnerChannel |
| 2701 ]; |
| 2674 } | 2702 } |
| 2675 if (pageToken != null) { | 2703 if (pageToken != null) { |
| 2676 _queryParams["pageToken"] = [pageToken]; | 2704 _queryParams["pageToken"] = [pageToken]; |
| 2677 } | 2705 } |
| 2678 | 2706 |
| 2679 _url = 'liveBroadcasts'; | 2707 _url = 'liveBroadcasts'; |
| 2680 | 2708 |
| 2681 var _response = _requester.request(_url, | 2709 var _response = _requester.request(_url, "GET", |
| 2682 "GET", | 2710 body: _body, |
| 2683 body: _body, | 2711 queryParams: _queryParams, |
| 2684 queryParams: _queryParams, | 2712 uploadOptions: _uploadOptions, |
| 2685 uploadOptions: _uploadOptions, | 2713 uploadMedia: _uploadMedia, |
| 2686 uploadMedia: _uploadMedia, | 2714 downloadOptions: _downloadOptions); |
| 2687 downloadOptions: _downloadOptions); | 2715 return _response |
| 2688 return _response.then((data) => new LiveBroadcastListResponse.fromJson(data)
); | 2716 .then((data) => new LiveBroadcastListResponse.fromJson(data)); |
| 2689 } | 2717 } |
| 2690 | 2718 |
| 2691 /** | 2719 /// Changes the status of a YouTube live broadcast and initiates any |
| 2692 * Changes the status of a YouTube live broadcast and initiates any processes | 2720 /// processes associated with the new status. For example, when you |
| 2693 * associated with the new status. For example, when you transition a | 2721 /// transition a broadcast's status to testing, YouTube starts to transmit |
| 2694 * broadcast's status to testing, YouTube starts to transmit video to that | 2722 /// video to that broadcast's monitor stream. Before calling this method, you |
| 2695 * broadcast's monitor stream. Before calling this method, you should confirm | 2723 /// should confirm that the value of the status.streamStatus property for the |
| 2696 * that the value of the status.streamStatus property for the stream bound to | 2724 /// stream bound to your broadcast is active. |
| 2697 * your broadcast is active. | 2725 /// |
| 2698 * | 2726 /// Request parameters: |
| 2699 * Request parameters: | 2727 /// |
| 2700 * | 2728 /// [broadcastStatus] - The broadcastStatus parameter identifies the state to |
| 2701 * [broadcastStatus] - The broadcastStatus parameter identifies the state to | 2729 /// which the broadcast is changing. Note that to transition a broadcast to |
| 2702 * which the broadcast is changing. Note that to transition a broadcast to | 2730 /// either the testing or live state, the status.streamStatus must be active |
| 2703 * either the testing or live state, the status.streamStatus must be active | 2731 /// for the stream that the broadcast is bound to. |
| 2704 * for the stream that the broadcast is bound to. | 2732 /// Possible string values are: |
| 2705 * Possible string values are: | 2733 /// - "complete" : The broadcast is over. YouTube stops transmitting video. |
| 2706 * - "complete" : The broadcast is over. YouTube stops transmitting video. | 2734 /// - "live" : The broadcast is visible to its audience. YouTube transmits |
| 2707 * - "live" : The broadcast is visible to its audience. YouTube transmits | 2735 /// video to the broadcast's monitor stream and its broadcast stream. |
| 2708 * video to the broadcast's monitor stream and its broadcast stream. | 2736 /// - "testing" : Start testing the broadcast. YouTube transmits video to the |
| 2709 * - "testing" : Start testing the broadcast. YouTube transmits video to the | 2737 /// broadcast's monitor stream. Note that you can only transition a broadcast |
| 2710 * broadcast's monitor stream. Note that you can only transition a broadcast | 2738 /// to the testing state if its |
| 2711 * to the testing state if its | 2739 /// contentDetails.monitorStream.enableMonitorStream property is set to true. |
| 2712 * contentDetails.monitorStream.enableMonitorStream property is set to true. | 2740 /// |
| 2713 * | 2741 /// [id] - The id parameter specifies the unique ID of the broadcast that is |
| 2714 * [id] - The id parameter specifies the unique ID of the broadcast that is | 2742 /// transitioning to another status. |
| 2715 * transitioning to another status. | 2743 /// |
| 2716 * | 2744 /// [part] - The part parameter specifies a comma-separated list of one or |
| 2717 * [part] - The part parameter specifies a comma-separated list of one or more | 2745 /// more liveBroadcast resource properties that the API response will |
| 2718 * liveBroadcast resource properties that the API response will include. The | 2746 /// include. The part names that you can include in the parameter value are |
| 2719 * part names that you can include in the parameter value are id, snippet, | 2747 /// id, snippet, contentDetails, and status. |
| 2720 * contentDetails, and status. | 2748 /// |
| 2721 * | 2749 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 2722 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 2750 /// for YouTube content partners. |
| 2723 * YouTube content partners. | 2751 /// |
| 2724 * | 2752 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 2725 * The onBehalfOfContentOwner parameter indicates that the request's | 2753 /// authorization credentials identify a YouTube CMS user who is acting on |
| 2726 * authorization credentials identify a YouTube CMS user who is acting on | 2754 /// behalf of the content owner specified in the parameter value. This |
| 2727 * behalf of the content owner specified in the parameter value. This | 2755 /// parameter is intended for YouTube content partners that own and manage |
| 2728 * parameter is intended for YouTube content partners that own and manage many | 2756 /// many different YouTube channels. It allows content owners to authenticate |
| 2729 * different YouTube channels. It allows content owners to authenticate once | 2757 /// once and get access to all their video and channel data, without having |
| 2730 * and get access to all their video and channel data, without having to | 2758 /// to provide authentication credentials for each individual channel. The |
| 2731 * provide authentication credentials for each individual channel. The CMS | 2759 /// CMS account that the user authenticates with must be linked to the |
| 2732 * account that the user authenticates with must be linked to the specified | 2760 /// specified YouTube content owner. |
| 2733 * YouTube content owner. | 2761 /// |
| 2734 * | 2762 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 2735 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 2763 /// properly authorized request. Note: This parameter is intended exclusively |
| 2736 * properly authorized request. Note: This parameter is intended exclusively | 2764 /// for YouTube content partners. |
| 2737 * for YouTube content partners. | 2765 /// |
| 2738 * | 2766 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 2739 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 2767 /// ID of the channel to which a video is being added. This parameter is |
| 2740 * ID of the channel to which a video is being added. This parameter is | 2768 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 2741 * required when a request specifies a value for the onBehalfOfContentOwner | 2769 /// parameter, and it can only be used in conjunction with that parameter. In |
| 2742 * parameter, and it can only be used in conjunction with that parameter. In | 2770 /// addition, the request must be authorized using a CMS account that is |
| 2743 * addition, the request must be authorized using a CMS account that is linked | 2771 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 2744 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 2772 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 2745 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 2773 /// parameter value specifies must be linked to the content owner that the |
| 2746 * specifies must be linked to the content owner that the | 2774 /// onBehalfOfContentOwner parameter specifies. |
| 2747 * onBehalfOfContentOwner parameter specifies. | 2775 /// |
| 2748 * | 2776 /// This parameter is intended for YouTube content partners that own and |
| 2749 * This parameter is intended for YouTube content partners that own and manage | 2777 /// manage many different YouTube channels. It allows content owners to |
| 2750 * many different YouTube channels. It allows content owners to authenticate | 2778 /// authenticate once and perform actions on behalf of the channel specified |
| 2751 * once and perform actions on behalf of the channel specified in the | 2779 /// in the parameter value, without having to provide authentication |
| 2752 * parameter value, without having to provide authentication credentials for | 2780 /// credentials for each separate channel. |
| 2753 * each separate channel. | 2781 /// |
| 2754 * | 2782 /// Completes with a [LiveBroadcast]. |
| 2755 * Completes with a [LiveBroadcast]. | 2783 /// |
| 2756 * | 2784 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2757 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2785 /// an error. |
| 2758 * error. | 2786 /// |
| 2759 * | 2787 /// If the used [http.Client] completes with an error when making a REST |
| 2760 * If the used [http.Client] completes with an error when making a REST call, | 2788 /// call, this method will complete with the same error. |
| 2761 * this method will complete with the same error. | 2789 async.Future<LiveBroadcast> transition( |
| 2762 */ | 2790 core.String broadcastStatus, core.String id, core.String part, |
| 2763 async.Future<LiveBroadcast> transition(core.String broadcastStatus, core.Strin
g id, core.String part, {core.String onBehalfOfContentOwner, core.String onBehal
fOfContentOwnerChannel}) { | 2791 {core.String onBehalfOfContentOwner, |
| 2792 core.String onBehalfOfContentOwnerChannel}) { |
| 2764 var _url = null; | 2793 var _url = null; |
| 2765 var _queryParams = new core.Map(); | 2794 var _queryParams = new core.Map(); |
| 2766 var _uploadMedia = null; | 2795 var _uploadMedia = null; |
| 2767 var _uploadOptions = null; | 2796 var _uploadOptions = null; |
| 2768 var _downloadOptions = commons.DownloadOptions.Metadata; | 2797 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2769 var _body = null; | 2798 var _body = null; |
| 2770 | 2799 |
| 2771 if (broadcastStatus == null) { | 2800 if (broadcastStatus == null) { |
| 2772 throw new core.ArgumentError("Parameter broadcastStatus is required."); | 2801 throw new core.ArgumentError("Parameter broadcastStatus is required."); |
| 2773 } | 2802 } |
| 2774 _queryParams["broadcastStatus"] = [broadcastStatus]; | 2803 _queryParams["broadcastStatus"] = [broadcastStatus]; |
| 2775 if (id == null) { | 2804 if (id == null) { |
| 2776 throw new core.ArgumentError("Parameter id is required."); | 2805 throw new core.ArgumentError("Parameter id is required."); |
| 2777 } | 2806 } |
| 2778 _queryParams["id"] = [id]; | 2807 _queryParams["id"] = [id]; |
| 2779 if (part == null) { | 2808 if (part == null) { |
| 2780 throw new core.ArgumentError("Parameter part is required."); | 2809 throw new core.ArgumentError("Parameter part is required."); |
| 2781 } | 2810 } |
| 2782 _queryParams["part"] = [part]; | 2811 _queryParams["part"] = [part]; |
| 2783 if (onBehalfOfContentOwner != null) { | 2812 if (onBehalfOfContentOwner != null) { |
| 2784 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2813 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 2785 } | 2814 } |
| 2786 if (onBehalfOfContentOwnerChannel != null) { | 2815 if (onBehalfOfContentOwnerChannel != null) { |
| 2787 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 2816 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 2817 onBehalfOfContentOwnerChannel |
| 2818 ]; |
| 2788 } | 2819 } |
| 2789 | 2820 |
| 2790 _url = 'liveBroadcasts/transition'; | 2821 _url = 'liveBroadcasts/transition'; |
| 2791 | 2822 |
| 2792 var _response = _requester.request(_url, | 2823 var _response = _requester.request(_url, "POST", |
| 2793 "POST", | 2824 body: _body, |
| 2794 body: _body, | 2825 queryParams: _queryParams, |
| 2795 queryParams: _queryParams, | 2826 uploadOptions: _uploadOptions, |
| 2796 uploadOptions: _uploadOptions, | 2827 uploadMedia: _uploadMedia, |
| 2797 uploadMedia: _uploadMedia, | 2828 downloadOptions: _downloadOptions); |
| 2798 downloadOptions: _downloadOptions); | |
| 2799 return _response.then((data) => new LiveBroadcast.fromJson(data)); | 2829 return _response.then((data) => new LiveBroadcast.fromJson(data)); |
| 2800 } | 2830 } |
| 2801 | 2831 |
| 2802 /** | 2832 /// Updates a broadcast. For example, you could modify the broadcast settings |
| 2803 * Updates a broadcast. For example, you could modify the broadcast settings | 2833 /// defined in the liveBroadcast resource's contentDetails object. |
| 2804 * defined in the liveBroadcast resource's contentDetails object. | 2834 /// |
| 2805 * | 2835 /// [request] - The metadata request object. |
| 2806 * [request] - The metadata request object. | 2836 /// |
| 2807 * | 2837 /// Request parameters: |
| 2808 * Request parameters: | 2838 /// |
| 2809 * | 2839 /// [part] - The part parameter serves two purposes in this operation. It |
| 2810 * [part] - The part parameter serves two purposes in this operation. It | 2840 /// identifies the properties that the write operation will set as well as |
| 2811 * identifies the properties that the write operation will set as well as the | 2841 /// the properties that the API response will include. |
| 2812 * properties that the API response will include. | 2842 /// |
| 2813 * | 2843 /// The part properties that you can include in the parameter value are id, |
| 2814 * The part properties that you can include in the parameter value are id, | 2844 /// snippet, contentDetails, and status. |
| 2815 * snippet, contentDetails, and status. | 2845 /// |
| 2816 * | 2846 /// Note that this method will override the existing values for all of the |
| 2817 * Note that this method will override the existing values for all of the | 2847 /// mutable properties that are contained in any parts that the parameter |
| 2818 * mutable properties that are contained in any parts that the parameter value | 2848 /// value specifies. For example, a broadcast's privacy status is defined in |
| 2819 * specifies. For example, a broadcast's privacy status is defined in the | 2849 /// the status part. As such, if your request is updating a private or |
| 2820 * status part. As such, if your request is updating a private or unlisted | 2850 /// unlisted broadcast, and the request's part parameter value includes the |
| 2821 * broadcast, and the request's part parameter value includes the status part, | 2851 /// status part, the broadcast's privacy setting will be updated to whatever |
| 2822 * the broadcast's privacy setting will be updated to whatever value the | 2852 /// value the request body specifies. If the request body does not specify a |
| 2823 * request body specifies. If the request body does not specify a value, the | 2853 /// value, the existing privacy setting will be removed and the broadcast |
| 2824 * existing privacy setting will be removed and the broadcast will revert to | 2854 /// will revert to the default privacy setting. |
| 2825 * the default privacy setting. | 2855 /// |
| 2826 * | 2856 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 2827 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 2857 /// for YouTube content partners. |
| 2828 * YouTube content partners. | 2858 /// |
| 2829 * | 2859 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 2830 * The onBehalfOfContentOwner parameter indicates that the request's | 2860 /// authorization credentials identify a YouTube CMS user who is acting on |
| 2831 * authorization credentials identify a YouTube CMS user who is acting on | 2861 /// behalf of the content owner specified in the parameter value. This |
| 2832 * behalf of the content owner specified in the parameter value. This | 2862 /// parameter is intended for YouTube content partners that own and manage |
| 2833 * parameter is intended for YouTube content partners that own and manage many | 2863 /// many different YouTube channels. It allows content owners to authenticate |
| 2834 * different YouTube channels. It allows content owners to authenticate once | 2864 /// once and get access to all their video and channel data, without having |
| 2835 * and get access to all their video and channel data, without having to | 2865 /// to provide authentication credentials for each individual channel. The |
| 2836 * provide authentication credentials for each individual channel. The CMS | 2866 /// CMS account that the user authenticates with must be linked to the |
| 2837 * account that the user authenticates with must be linked to the specified | 2867 /// specified YouTube content owner. |
| 2838 * YouTube content owner. | 2868 /// |
| 2839 * | 2869 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 2840 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 2870 /// properly authorized request. Note: This parameter is intended exclusively |
| 2841 * properly authorized request. Note: This parameter is intended exclusively | 2871 /// for YouTube content partners. |
| 2842 * for YouTube content partners. | 2872 /// |
| 2843 * | 2873 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 2844 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 2874 /// ID of the channel to which a video is being added. This parameter is |
| 2845 * ID of the channel to which a video is being added. This parameter is | 2875 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 2846 * required when a request specifies a value for the onBehalfOfContentOwner | 2876 /// parameter, and it can only be used in conjunction with that parameter. In |
| 2847 * parameter, and it can only be used in conjunction with that parameter. In | 2877 /// addition, the request must be authorized using a CMS account that is |
| 2848 * addition, the request must be authorized using a CMS account that is linked | 2878 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 2849 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 2879 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 2850 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 2880 /// parameter value specifies must be linked to the content owner that the |
| 2851 * specifies must be linked to the content owner that the | 2881 /// onBehalfOfContentOwner parameter specifies. |
| 2852 * onBehalfOfContentOwner parameter specifies. | 2882 /// |
| 2853 * | 2883 /// This parameter is intended for YouTube content partners that own and |
| 2854 * This parameter is intended for YouTube content partners that own and manage | 2884 /// manage many different YouTube channels. It allows content owners to |
| 2855 * many different YouTube channels. It allows content owners to authenticate | 2885 /// authenticate once and perform actions on behalf of the channel specified |
| 2856 * once and perform actions on behalf of the channel specified in the | 2886 /// in the parameter value, without having to provide authentication |
| 2857 * parameter value, without having to provide authentication credentials for | 2887 /// credentials for each separate channel. |
| 2858 * each separate channel. | 2888 /// |
| 2859 * | 2889 /// Completes with a [LiveBroadcast]. |
| 2860 * Completes with a [LiveBroadcast]. | 2890 /// |
| 2861 * | 2891 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2862 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2892 /// an error. |
| 2863 * error. | 2893 /// |
| 2864 * | 2894 /// If the used [http.Client] completes with an error when making a REST |
| 2865 * If the used [http.Client] completes with an error when making a REST call, | 2895 /// call, this method will complete with the same error. |
| 2866 * this method will complete with the same error. | 2896 async.Future<LiveBroadcast> update(LiveBroadcast request, core.String part, |
| 2867 */ | 2897 {core.String onBehalfOfContentOwner, |
| 2868 async.Future<LiveBroadcast> update(LiveBroadcast request, core.String part, {c
ore.String onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 2898 core.String onBehalfOfContentOwnerChannel}) { |
| 2869 var _url = null; | 2899 var _url = null; |
| 2870 var _queryParams = new core.Map(); | 2900 var _queryParams = new core.Map(); |
| 2871 var _uploadMedia = null; | 2901 var _uploadMedia = null; |
| 2872 var _uploadOptions = null; | 2902 var _uploadOptions = null; |
| 2873 var _downloadOptions = commons.DownloadOptions.Metadata; | 2903 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2874 var _body = null; | 2904 var _body = null; |
| 2875 | 2905 |
| 2876 if (request != null) { | 2906 if (request != null) { |
| 2877 _body = convert.JSON.encode((request).toJson()); | 2907 _body = convert.JSON.encode((request).toJson()); |
| 2878 } | 2908 } |
| 2879 if (part == null) { | 2909 if (part == null) { |
| 2880 throw new core.ArgumentError("Parameter part is required."); | 2910 throw new core.ArgumentError("Parameter part is required."); |
| 2881 } | 2911 } |
| 2882 _queryParams["part"] = [part]; | 2912 _queryParams["part"] = [part]; |
| 2883 if (onBehalfOfContentOwner != null) { | 2913 if (onBehalfOfContentOwner != null) { |
| 2884 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 2914 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 2885 } | 2915 } |
| 2886 if (onBehalfOfContentOwnerChannel != null) { | 2916 if (onBehalfOfContentOwnerChannel != null) { |
| 2887 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 2917 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 2918 onBehalfOfContentOwnerChannel |
| 2919 ]; |
| 2888 } | 2920 } |
| 2889 | 2921 |
| 2890 _url = 'liveBroadcasts'; | 2922 _url = 'liveBroadcasts'; |
| 2891 | 2923 |
| 2892 var _response = _requester.request(_url, | 2924 var _response = _requester.request(_url, "PUT", |
| 2893 "PUT", | 2925 body: _body, |
| 2894 body: _body, | 2926 queryParams: _queryParams, |
| 2895 queryParams: _queryParams, | 2927 uploadOptions: _uploadOptions, |
| 2896 uploadOptions: _uploadOptions, | 2928 uploadMedia: _uploadMedia, |
| 2897 uploadMedia: _uploadMedia, | 2929 downloadOptions: _downloadOptions); |
| 2898 downloadOptions: _downloadOptions); | |
| 2899 return _response.then((data) => new LiveBroadcast.fromJson(data)); | 2930 return _response.then((data) => new LiveBroadcast.fromJson(data)); |
| 2900 } | 2931 } |
| 2901 | |
| 2902 } | 2932 } |
| 2903 | 2933 |
| 2904 | |
| 2905 class LiveChatBansResourceApi { | 2934 class LiveChatBansResourceApi { |
| 2906 final commons.ApiRequester _requester; | 2935 final commons.ApiRequester _requester; |
| 2907 | 2936 |
| 2908 LiveChatBansResourceApi(commons.ApiRequester client) : | 2937 LiveChatBansResourceApi(commons.ApiRequester client) : _requester = client; |
| 2909 _requester = client; | |
| 2910 | 2938 |
| 2911 /** | 2939 /// Removes a chat ban. |
| 2912 * Removes a chat ban. | 2940 /// |
| 2913 * | 2941 /// Request parameters: |
| 2914 * Request parameters: | 2942 /// |
| 2915 * | 2943 /// [id] - The id parameter identifies the chat ban to remove. The value |
| 2916 * [id] - The id parameter identifies the chat ban to remove. The value | 2944 /// uniquely identifies both the ban and the chat. |
| 2917 * uniquely identifies both the ban and the chat. | 2945 /// |
| 2918 * | 2946 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2919 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2947 /// an error. |
| 2920 * error. | 2948 /// |
| 2921 * | 2949 /// If the used [http.Client] completes with an error when making a REST |
| 2922 * If the used [http.Client] completes with an error when making a REST call, | 2950 /// call, this method will complete with the same error. |
| 2923 * this method will complete with the same error. | |
| 2924 */ | |
| 2925 async.Future delete(core.String id) { | 2951 async.Future delete(core.String id) { |
| 2926 var _url = null; | 2952 var _url = null; |
| 2927 var _queryParams = new core.Map(); | 2953 var _queryParams = new core.Map(); |
| 2928 var _uploadMedia = null; | 2954 var _uploadMedia = null; |
| 2929 var _uploadOptions = null; | 2955 var _uploadOptions = null; |
| 2930 var _downloadOptions = commons.DownloadOptions.Metadata; | 2956 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2931 var _body = null; | 2957 var _body = null; |
| 2932 | 2958 |
| 2933 if (id == null) { | 2959 if (id == null) { |
| 2934 throw new core.ArgumentError("Parameter id is required."); | 2960 throw new core.ArgumentError("Parameter id is required."); |
| 2935 } | 2961 } |
| 2936 _queryParams["id"] = [id]; | 2962 _queryParams["id"] = [id]; |
| 2937 | 2963 |
| 2938 _downloadOptions = null; | 2964 _downloadOptions = null; |
| 2939 | 2965 |
| 2940 _url = 'liveChat/bans'; | 2966 _url = 'liveChat/bans'; |
| 2941 | 2967 |
| 2942 var _response = _requester.request(_url, | 2968 var _response = _requester.request(_url, "DELETE", |
| 2943 "DELETE", | 2969 body: _body, |
| 2944 body: _body, | 2970 queryParams: _queryParams, |
| 2945 queryParams: _queryParams, | 2971 uploadOptions: _uploadOptions, |
| 2946 uploadOptions: _uploadOptions, | 2972 uploadMedia: _uploadMedia, |
| 2947 uploadMedia: _uploadMedia, | 2973 downloadOptions: _downloadOptions); |
| 2948 downloadOptions: _downloadOptions); | |
| 2949 return _response.then((data) => null); | 2974 return _response.then((data) => null); |
| 2950 } | 2975 } |
| 2951 | 2976 |
| 2952 /** | 2977 /// Adds a new ban to the chat. |
| 2953 * Adds a new ban to the chat. | 2978 /// |
| 2954 * | 2979 /// [request] - The metadata request object. |
| 2955 * [request] - The metadata request object. | 2980 /// |
| 2956 * | 2981 /// Request parameters: |
| 2957 * Request parameters: | 2982 /// |
| 2958 * | 2983 /// [part] - The part parameter serves two purposes in this operation. It |
| 2959 * [part] - The part parameter serves two purposes in this operation. It | 2984 /// identifies the properties that the write operation will set as well as |
| 2960 * identifies the properties that the write operation will set as well as the | 2985 /// the properties that the API response returns. Set the parameter value to |
| 2961 * properties that the API response returns. Set the parameter value to | 2986 /// snippet. |
| 2962 * snippet. | 2987 /// |
| 2963 * | 2988 /// Completes with a [LiveChatBan]. |
| 2964 * Completes with a [LiveChatBan]. | 2989 /// |
| 2965 * | 2990 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 2966 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2991 /// an error. |
| 2967 * error. | 2992 /// |
| 2968 * | 2993 /// If the used [http.Client] completes with an error when making a REST |
| 2969 * If the used [http.Client] completes with an error when making a REST call, | 2994 /// call, this method will complete with the same error. |
| 2970 * this method will complete with the same error. | |
| 2971 */ | |
| 2972 async.Future<LiveChatBan> insert(LiveChatBan request, core.String part) { | 2995 async.Future<LiveChatBan> insert(LiveChatBan request, core.String part) { |
| 2973 var _url = null; | 2996 var _url = null; |
| 2974 var _queryParams = new core.Map(); | 2997 var _queryParams = new core.Map(); |
| 2975 var _uploadMedia = null; | 2998 var _uploadMedia = null; |
| 2976 var _uploadOptions = null; | 2999 var _uploadOptions = null; |
| 2977 var _downloadOptions = commons.DownloadOptions.Metadata; | 3000 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2978 var _body = null; | 3001 var _body = null; |
| 2979 | 3002 |
| 2980 if (request != null) { | 3003 if (request != null) { |
| 2981 _body = convert.JSON.encode((request).toJson()); | 3004 _body = convert.JSON.encode((request).toJson()); |
| 2982 } | 3005 } |
| 2983 if (part == null) { | 3006 if (part == null) { |
| 2984 throw new core.ArgumentError("Parameter part is required."); | 3007 throw new core.ArgumentError("Parameter part is required."); |
| 2985 } | 3008 } |
| 2986 _queryParams["part"] = [part]; | 3009 _queryParams["part"] = [part]; |
| 2987 | 3010 |
| 2988 _url = 'liveChat/bans'; | 3011 _url = 'liveChat/bans'; |
| 2989 | 3012 |
| 2990 var _response = _requester.request(_url, | 3013 var _response = _requester.request(_url, "POST", |
| 2991 "POST", | 3014 body: _body, |
| 2992 body: _body, | 3015 queryParams: _queryParams, |
| 2993 queryParams: _queryParams, | 3016 uploadOptions: _uploadOptions, |
| 2994 uploadOptions: _uploadOptions, | 3017 uploadMedia: _uploadMedia, |
| 2995 uploadMedia: _uploadMedia, | 3018 downloadOptions: _downloadOptions); |
| 2996 downloadOptions: _downloadOptions); | |
| 2997 return _response.then((data) => new LiveChatBan.fromJson(data)); | 3019 return _response.then((data) => new LiveChatBan.fromJson(data)); |
| 2998 } | 3020 } |
| 2999 | |
| 3000 } | 3021 } |
| 3001 | 3022 |
| 3002 | |
| 3003 class LiveChatMessagesResourceApi { | 3023 class LiveChatMessagesResourceApi { |
| 3004 final commons.ApiRequester _requester; | 3024 final commons.ApiRequester _requester; |
| 3005 | 3025 |
| 3006 LiveChatMessagesResourceApi(commons.ApiRequester client) : | 3026 LiveChatMessagesResourceApi(commons.ApiRequester client) |
| 3007 _requester = client; | 3027 : _requester = client; |
| 3008 | 3028 |
| 3009 /** | 3029 /// Deletes a chat message. |
| 3010 * Deletes a chat message. | 3030 /// |
| 3011 * | 3031 /// Request parameters: |
| 3012 * Request parameters: | 3032 /// |
| 3013 * | 3033 /// [id] - The id parameter specifies the YouTube chat message ID of the |
| 3014 * [id] - The id parameter specifies the YouTube chat message ID of the | 3034 /// resource that is being deleted. |
| 3015 * resource that is being deleted. | 3035 /// |
| 3016 * | 3036 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3017 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3037 /// an error. |
| 3018 * error. | 3038 /// |
| 3019 * | 3039 /// If the used [http.Client] completes with an error when making a REST |
| 3020 * If the used [http.Client] completes with an error when making a REST call, | 3040 /// call, this method will complete with the same error. |
| 3021 * this method will complete with the same error. | |
| 3022 */ | |
| 3023 async.Future delete(core.String id) { | 3041 async.Future delete(core.String id) { |
| 3024 var _url = null; | 3042 var _url = null; |
| 3025 var _queryParams = new core.Map(); | 3043 var _queryParams = new core.Map(); |
| 3026 var _uploadMedia = null; | 3044 var _uploadMedia = null; |
| 3027 var _uploadOptions = null; | 3045 var _uploadOptions = null; |
| 3028 var _downloadOptions = commons.DownloadOptions.Metadata; | 3046 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3029 var _body = null; | 3047 var _body = null; |
| 3030 | 3048 |
| 3031 if (id == null) { | 3049 if (id == null) { |
| 3032 throw new core.ArgumentError("Parameter id is required."); | 3050 throw new core.ArgumentError("Parameter id is required."); |
| 3033 } | 3051 } |
| 3034 _queryParams["id"] = [id]; | 3052 _queryParams["id"] = [id]; |
| 3035 | 3053 |
| 3036 _downloadOptions = null; | 3054 _downloadOptions = null; |
| 3037 | 3055 |
| 3038 _url = 'liveChat/messages'; | 3056 _url = 'liveChat/messages'; |
| 3039 | 3057 |
| 3040 var _response = _requester.request(_url, | 3058 var _response = _requester.request(_url, "DELETE", |
| 3041 "DELETE", | 3059 body: _body, |
| 3042 body: _body, | 3060 queryParams: _queryParams, |
| 3043 queryParams: _queryParams, | 3061 uploadOptions: _uploadOptions, |
| 3044 uploadOptions: _uploadOptions, | 3062 uploadMedia: _uploadMedia, |
| 3045 uploadMedia: _uploadMedia, | 3063 downloadOptions: _downloadOptions); |
| 3046 downloadOptions: _downloadOptions); | |
| 3047 return _response.then((data) => null); | 3064 return _response.then((data) => null); |
| 3048 } | 3065 } |
| 3049 | 3066 |
| 3050 /** | 3067 /// Adds a message to a live chat. |
| 3051 * Adds a message to a live chat. | 3068 /// |
| 3052 * | 3069 /// [request] - The metadata request object. |
| 3053 * [request] - The metadata request object. | 3070 /// |
| 3054 * | 3071 /// Request parameters: |
| 3055 * Request parameters: | 3072 /// |
| 3056 * | 3073 /// [part] - The part parameter serves two purposes. It identifies the |
| 3057 * [part] - The part parameter serves two purposes. It identifies the | 3074 /// properties that the write operation will set as well as the properties |
| 3058 * properties that the write operation will set as well as the properties that | 3075 /// that the API response will include. Set the parameter value to snippet. |
| 3059 * the API response will include. Set the parameter value to snippet. | 3076 /// |
| 3060 * | 3077 /// Completes with a [LiveChatMessage]. |
| 3061 * Completes with a [LiveChatMessage]. | 3078 /// |
| 3062 * | 3079 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3063 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3080 /// an error. |
| 3064 * error. | 3081 /// |
| 3065 * | 3082 /// If the used [http.Client] completes with an error when making a REST |
| 3066 * If the used [http.Client] completes with an error when making a REST call, | 3083 /// call, this method will complete with the same error. |
| 3067 * this method will complete with the same error. | 3084 async.Future<LiveChatMessage> insert( |
| 3068 */ | 3085 LiveChatMessage request, core.String part) { |
| 3069 async.Future<LiveChatMessage> insert(LiveChatMessage request, core.String part
) { | |
| 3070 var _url = null; | 3086 var _url = null; |
| 3071 var _queryParams = new core.Map(); | 3087 var _queryParams = new core.Map(); |
| 3072 var _uploadMedia = null; | 3088 var _uploadMedia = null; |
| 3073 var _uploadOptions = null; | 3089 var _uploadOptions = null; |
| 3074 var _downloadOptions = commons.DownloadOptions.Metadata; | 3090 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3075 var _body = null; | 3091 var _body = null; |
| 3076 | 3092 |
| 3077 if (request != null) { | 3093 if (request != null) { |
| 3078 _body = convert.JSON.encode((request).toJson()); | 3094 _body = convert.JSON.encode((request).toJson()); |
| 3079 } | 3095 } |
| 3080 if (part == null) { | 3096 if (part == null) { |
| 3081 throw new core.ArgumentError("Parameter part is required."); | 3097 throw new core.ArgumentError("Parameter part is required."); |
| 3082 } | 3098 } |
| 3083 _queryParams["part"] = [part]; | 3099 _queryParams["part"] = [part]; |
| 3084 | 3100 |
| 3085 _url = 'liveChat/messages'; | 3101 _url = 'liveChat/messages'; |
| 3086 | 3102 |
| 3087 var _response = _requester.request(_url, | 3103 var _response = _requester.request(_url, "POST", |
| 3088 "POST", | 3104 body: _body, |
| 3089 body: _body, | 3105 queryParams: _queryParams, |
| 3090 queryParams: _queryParams, | 3106 uploadOptions: _uploadOptions, |
| 3091 uploadOptions: _uploadOptions, | 3107 uploadMedia: _uploadMedia, |
| 3092 uploadMedia: _uploadMedia, | 3108 downloadOptions: _downloadOptions); |
| 3093 downloadOptions: _downloadOptions); | |
| 3094 return _response.then((data) => new LiveChatMessage.fromJson(data)); | 3109 return _response.then((data) => new LiveChatMessage.fromJson(data)); |
| 3095 } | 3110 } |
| 3096 | 3111 |
| 3097 /** | 3112 /// Lists live chat messages for a specific chat. |
| 3098 * Lists live chat messages for a specific chat. | 3113 /// |
| 3099 * | 3114 /// Request parameters: |
| 3100 * Request parameters: | 3115 /// |
| 3101 * | 3116 /// [liveChatId] - The liveChatId parameter specifies the ID of the chat |
| 3102 * [liveChatId] - The liveChatId parameter specifies the ID of the chat whose | 3117 /// whose messages will be returned. |
| 3103 * messages will be returned. | 3118 /// |
| 3104 * | 3119 /// [part] - The part parameter specifies the liveChatComment resource parts |
| 3105 * [part] - The part parameter specifies the liveChatComment resource parts | 3120 /// that the API response will include. Supported values are id and snippet. |
| 3106 * that the API response will include. Supported values are id and snippet. | 3121 /// |
| 3107 * | 3122 /// [hl] - The hl parameter instructs the API to retrieve localized resource |
| 3108 * [hl] - The hl parameter instructs the API to retrieve localized resource | 3123 /// metadata for a specific application language that the YouTube website |
| 3109 * metadata for a specific application language that the YouTube website | 3124 /// supports. The parameter value must be a language code included in the |
| 3110 * supports. The parameter value must be a language code included in the list | 3125 /// list returned by the i18nLanguages.list method. |
| 3111 * returned by the i18nLanguages.list method. | 3126 /// |
| 3112 * | 3127 /// If localized resource details are available in that language, the |
| 3113 * If localized resource details are available in that language, the | 3128 /// resource's snippet.localized object will contain the localized values. |
| 3114 * resource's snippet.localized object will contain the localized values. | 3129 /// However, if localized details are not available, the snippet.localized |
| 3115 * However, if localized details are not available, the snippet.localized | 3130 /// object will contain resource details in the resource's default language. |
| 3116 * object will contain resource details in the resource's default language. | 3131 /// |
| 3117 * | 3132 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 3118 * [maxResults] - The maxResults parameter specifies the maximum number of | 3133 /// messages that should be returned in the result set. |
| 3119 * messages that should be returned in the result set. | 3134 /// Value must be between "200" and "2000". |
| 3120 * Value must be between "200" and "2000". | 3135 /// |
| 3121 * | 3136 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 3122 * [pageToken] - The pageToken parameter identifies a specific page in the | 3137 /// result set that should be returned. In an API response, the nextPageToken |
| 3123 * result set that should be returned. In an API response, the nextPageToken | 3138 /// property identify other pages that could be retrieved. |
| 3124 * property identify other pages that could be retrieved. | 3139 /// |
| 3125 * | 3140 /// [profileImageSize] - The profileImageSize parameter specifies the size of |
| 3126 * [profileImageSize] - The profileImageSize parameter specifies the size of | 3141 /// the user profile pictures that should be returned in the result set. |
| 3127 * the user profile pictures that should be returned in the result set. | 3142 /// Default: 88. |
| 3128 * Default: 88. | 3143 /// Value must be between "16" and "720". |
| 3129 * Value must be between "16" and "720". | 3144 /// |
| 3130 * | 3145 /// Completes with a [LiveChatMessageListResponse]. |
| 3131 * Completes with a [LiveChatMessageListResponse]. | 3146 /// |
| 3132 * | 3147 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3133 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3148 /// an error. |
| 3134 * error. | 3149 /// |
| 3135 * | 3150 /// If the used [http.Client] completes with an error when making a REST |
| 3136 * If the used [http.Client] completes with an error when making a REST call, | 3151 /// call, this method will complete with the same error. |
| 3137 * this method will complete with the same error. | 3152 async.Future<LiveChatMessageListResponse> list( |
| 3138 */ | 3153 core.String liveChatId, core.String part, |
| 3139 async.Future<LiveChatMessageListResponse> list(core.String liveChatId, core.St
ring part, {core.String hl, core.int maxResults, core.String pageToken, core.int
profileImageSize}) { | 3154 {core.String hl, |
| 3155 core.int maxResults, |
| 3156 core.String pageToken, |
| 3157 core.int profileImageSize}) { |
| 3140 var _url = null; | 3158 var _url = null; |
| 3141 var _queryParams = new core.Map(); | 3159 var _queryParams = new core.Map(); |
| 3142 var _uploadMedia = null; | 3160 var _uploadMedia = null; |
| 3143 var _uploadOptions = null; | 3161 var _uploadOptions = null; |
| 3144 var _downloadOptions = commons.DownloadOptions.Metadata; | 3162 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3145 var _body = null; | 3163 var _body = null; |
| 3146 | 3164 |
| 3147 if (liveChatId == null) { | 3165 if (liveChatId == null) { |
| 3148 throw new core.ArgumentError("Parameter liveChatId is required."); | 3166 throw new core.ArgumentError("Parameter liveChatId is required."); |
| 3149 } | 3167 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 3160 } | 3178 } |
| 3161 if (pageToken != null) { | 3179 if (pageToken != null) { |
| 3162 _queryParams["pageToken"] = [pageToken]; | 3180 _queryParams["pageToken"] = [pageToken]; |
| 3163 } | 3181 } |
| 3164 if (profileImageSize != null) { | 3182 if (profileImageSize != null) { |
| 3165 _queryParams["profileImageSize"] = ["${profileImageSize}"]; | 3183 _queryParams["profileImageSize"] = ["${profileImageSize}"]; |
| 3166 } | 3184 } |
| 3167 | 3185 |
| 3168 _url = 'liveChat/messages'; | 3186 _url = 'liveChat/messages'; |
| 3169 | 3187 |
| 3170 var _response = _requester.request(_url, | 3188 var _response = _requester.request(_url, "GET", |
| 3171 "GET", | 3189 body: _body, |
| 3172 body: _body, | 3190 queryParams: _queryParams, |
| 3173 queryParams: _queryParams, | 3191 uploadOptions: _uploadOptions, |
| 3174 uploadOptions: _uploadOptions, | 3192 uploadMedia: _uploadMedia, |
| 3175 uploadMedia: _uploadMedia, | 3193 downloadOptions: _downloadOptions); |
| 3176 downloadOptions: _downloadOptions); | 3194 return _response |
| 3177 return _response.then((data) => new LiveChatMessageListResponse.fromJson(dat
a)); | 3195 .then((data) => new LiveChatMessageListResponse.fromJson(data)); |
| 3178 } | 3196 } |
| 3179 | |
| 3180 } | 3197 } |
| 3181 | 3198 |
| 3182 | |
| 3183 class LiveChatModeratorsResourceApi { | 3199 class LiveChatModeratorsResourceApi { |
| 3184 final commons.ApiRequester _requester; | 3200 final commons.ApiRequester _requester; |
| 3185 | 3201 |
| 3186 LiveChatModeratorsResourceApi(commons.ApiRequester client) : | 3202 LiveChatModeratorsResourceApi(commons.ApiRequester client) |
| 3187 _requester = client; | 3203 : _requester = client; |
| 3188 | 3204 |
| 3189 /** | 3205 /// Removes a chat moderator. |
| 3190 * Removes a chat moderator. | 3206 /// |
| 3191 * | 3207 /// Request parameters: |
| 3192 * Request parameters: | 3208 /// |
| 3193 * | 3209 /// [id] - The id parameter identifies the chat moderator to remove. The |
| 3194 * [id] - The id parameter identifies the chat moderator to remove. The value | 3210 /// value uniquely identifies both the moderator and the chat. |
| 3195 * uniquely identifies both the moderator and the chat. | 3211 /// |
| 3196 * | 3212 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3213 /// an error. |
| 3198 * error. | 3214 /// |
| 3199 * | 3215 /// If the used [http.Client] completes with an error when making a REST |
| 3200 * If the used [http.Client] completes with an error when making a REST call, | 3216 /// call, this method will complete with the same error. |
| 3201 * this method will complete with the same error. | |
| 3202 */ | |
| 3203 async.Future delete(core.String id) { | 3217 async.Future delete(core.String id) { |
| 3204 var _url = null; | 3218 var _url = null; |
| 3205 var _queryParams = new core.Map(); | 3219 var _queryParams = new core.Map(); |
| 3206 var _uploadMedia = null; | 3220 var _uploadMedia = null; |
| 3207 var _uploadOptions = null; | 3221 var _uploadOptions = null; |
| 3208 var _downloadOptions = commons.DownloadOptions.Metadata; | 3222 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3209 var _body = null; | 3223 var _body = null; |
| 3210 | 3224 |
| 3211 if (id == null) { | 3225 if (id == null) { |
| 3212 throw new core.ArgumentError("Parameter id is required."); | 3226 throw new core.ArgumentError("Parameter id is required."); |
| 3213 } | 3227 } |
| 3214 _queryParams["id"] = [id]; | 3228 _queryParams["id"] = [id]; |
| 3215 | 3229 |
| 3216 _downloadOptions = null; | 3230 _downloadOptions = null; |
| 3217 | 3231 |
| 3218 _url = 'liveChat/moderators'; | 3232 _url = 'liveChat/moderators'; |
| 3219 | 3233 |
| 3220 var _response = _requester.request(_url, | 3234 var _response = _requester.request(_url, "DELETE", |
| 3221 "DELETE", | 3235 body: _body, |
| 3222 body: _body, | 3236 queryParams: _queryParams, |
| 3223 queryParams: _queryParams, | 3237 uploadOptions: _uploadOptions, |
| 3224 uploadOptions: _uploadOptions, | 3238 uploadMedia: _uploadMedia, |
| 3225 uploadMedia: _uploadMedia, | 3239 downloadOptions: _downloadOptions); |
| 3226 downloadOptions: _downloadOptions); | |
| 3227 return _response.then((data) => null); | 3240 return _response.then((data) => null); |
| 3228 } | 3241 } |
| 3229 | 3242 |
| 3230 /** | 3243 /// Adds a new moderator for the chat. |
| 3231 * Adds a new moderator for the chat. | 3244 /// |
| 3232 * | 3245 /// [request] - The metadata request object. |
| 3233 * [request] - The metadata request object. | 3246 /// |
| 3234 * | 3247 /// Request parameters: |
| 3235 * Request parameters: | 3248 /// |
| 3236 * | 3249 /// [part] - The part parameter serves two purposes in this operation. It |
| 3237 * [part] - The part parameter serves two purposes in this operation. It | 3250 /// identifies the properties that the write operation will set as well as |
| 3238 * identifies the properties that the write operation will set as well as the | 3251 /// the properties that the API response returns. Set the parameter value to |
| 3239 * properties that the API response returns. Set the parameter value to | 3252 /// snippet. |
| 3240 * snippet. | 3253 /// |
| 3241 * | 3254 /// Completes with a [LiveChatModerator]. |
| 3242 * Completes with a [LiveChatModerator]. | 3255 /// |
| 3243 * | 3256 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3244 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3257 /// an error. |
| 3245 * error. | 3258 /// |
| 3246 * | 3259 /// If the used [http.Client] completes with an error when making a REST |
| 3247 * If the used [http.Client] completes with an error when making a REST call, | 3260 /// call, this method will complete with the same error. |
| 3248 * this method will complete with the same error. | 3261 async.Future<LiveChatModerator> insert( |
| 3249 */ | 3262 LiveChatModerator request, core.String part) { |
| 3250 async.Future<LiveChatModerator> insert(LiveChatModerator request, core.String
part) { | |
| 3251 var _url = null; | 3263 var _url = null; |
| 3252 var _queryParams = new core.Map(); | 3264 var _queryParams = new core.Map(); |
| 3253 var _uploadMedia = null; | 3265 var _uploadMedia = null; |
| 3254 var _uploadOptions = null; | 3266 var _uploadOptions = null; |
| 3255 var _downloadOptions = commons.DownloadOptions.Metadata; | 3267 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3256 var _body = null; | 3268 var _body = null; |
| 3257 | 3269 |
| 3258 if (request != null) { | 3270 if (request != null) { |
| 3259 _body = convert.JSON.encode((request).toJson()); | 3271 _body = convert.JSON.encode((request).toJson()); |
| 3260 } | 3272 } |
| 3261 if (part == null) { | 3273 if (part == null) { |
| 3262 throw new core.ArgumentError("Parameter part is required."); | 3274 throw new core.ArgumentError("Parameter part is required."); |
| 3263 } | 3275 } |
| 3264 _queryParams["part"] = [part]; | 3276 _queryParams["part"] = [part]; |
| 3265 | 3277 |
| 3266 _url = 'liveChat/moderators'; | 3278 _url = 'liveChat/moderators'; |
| 3267 | 3279 |
| 3268 var _response = _requester.request(_url, | 3280 var _response = _requester.request(_url, "POST", |
| 3269 "POST", | 3281 body: _body, |
| 3270 body: _body, | 3282 queryParams: _queryParams, |
| 3271 queryParams: _queryParams, | 3283 uploadOptions: _uploadOptions, |
| 3272 uploadOptions: _uploadOptions, | 3284 uploadMedia: _uploadMedia, |
| 3273 uploadMedia: _uploadMedia, | 3285 downloadOptions: _downloadOptions); |
| 3274 downloadOptions: _downloadOptions); | |
| 3275 return _response.then((data) => new LiveChatModerator.fromJson(data)); | 3286 return _response.then((data) => new LiveChatModerator.fromJson(data)); |
| 3276 } | 3287 } |
| 3277 | 3288 |
| 3278 /** | 3289 /// Lists moderators for a live chat. |
| 3279 * Lists moderators for a live chat. | 3290 /// |
| 3280 * | 3291 /// Request parameters: |
| 3281 * Request parameters: | 3292 /// |
| 3282 * | 3293 /// [liveChatId] - The liveChatId parameter specifies the YouTube live chat |
| 3283 * [liveChatId] - The liveChatId parameter specifies the YouTube live chat for | 3294 /// for which the API should return moderators. |
| 3284 * which the API should return moderators. | 3295 /// |
| 3285 * | 3296 /// [part] - The part parameter specifies the liveChatModerator resource |
| 3286 * [part] - The part parameter specifies the liveChatModerator resource parts | 3297 /// parts that the API response will include. Supported values are id and |
| 3287 * that the API response will include. Supported values are id and snippet. | 3298 /// snippet. |
| 3288 * | 3299 /// |
| 3289 * [maxResults] - The maxResults parameter specifies the maximum number of | 3300 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 3290 * items that should be returned in the result set. | 3301 /// items that should be returned in the result set. |
| 3291 * Value must be between "0" and "50". | 3302 /// Value must be between "0" and "50". |
| 3292 * | 3303 /// |
| 3293 * [pageToken] - The pageToken parameter identifies a specific page in the | 3304 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 3294 * result set that should be returned. In an API response, the nextPageToken | 3305 /// result set that should be returned. In an API response, the nextPageToken |
| 3295 * and prevPageToken properties identify other pages that could be retrieved. | 3306 /// and prevPageToken properties identify other pages that could be |
| 3296 * | 3307 /// retrieved. |
| 3297 * Completes with a [LiveChatModeratorListResponse]. | 3308 /// |
| 3298 * | 3309 /// Completes with a [LiveChatModeratorListResponse]. |
| 3299 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3310 /// |
| 3300 * error. | 3311 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3301 * | 3312 /// an error. |
| 3302 * If the used [http.Client] completes with an error when making a REST call, | 3313 /// |
| 3303 * this method will complete with the same error. | 3314 /// If the used [http.Client] completes with an error when making a REST |
| 3304 */ | 3315 /// call, this method will complete with the same error. |
| 3305 async.Future<LiveChatModeratorListResponse> list(core.String liveChatId, core.
String part, {core.int maxResults, core.String pageToken}) { | 3316 async.Future<LiveChatModeratorListResponse> list( |
| 3317 core.String liveChatId, core.String part, |
| 3318 {core.int maxResults, core.String pageToken}) { |
| 3306 var _url = null; | 3319 var _url = null; |
| 3307 var _queryParams = new core.Map(); | 3320 var _queryParams = new core.Map(); |
| 3308 var _uploadMedia = null; | 3321 var _uploadMedia = null; |
| 3309 var _uploadOptions = null; | 3322 var _uploadOptions = null; |
| 3310 var _downloadOptions = commons.DownloadOptions.Metadata; | 3323 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3311 var _body = null; | 3324 var _body = null; |
| 3312 | 3325 |
| 3313 if (liveChatId == null) { | 3326 if (liveChatId == null) { |
| 3314 throw new core.ArgumentError("Parameter liveChatId is required."); | 3327 throw new core.ArgumentError("Parameter liveChatId is required."); |
| 3315 } | 3328 } |
| 3316 _queryParams["liveChatId"] = [liveChatId]; | 3329 _queryParams["liveChatId"] = [liveChatId]; |
| 3317 if (part == null) { | 3330 if (part == null) { |
| 3318 throw new core.ArgumentError("Parameter part is required."); | 3331 throw new core.ArgumentError("Parameter part is required."); |
| 3319 } | 3332 } |
| 3320 _queryParams["part"] = [part]; | 3333 _queryParams["part"] = [part]; |
| 3321 if (maxResults != null) { | 3334 if (maxResults != null) { |
| 3322 _queryParams["maxResults"] = ["${maxResults}"]; | 3335 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3323 } | 3336 } |
| 3324 if (pageToken != null) { | 3337 if (pageToken != null) { |
| 3325 _queryParams["pageToken"] = [pageToken]; | 3338 _queryParams["pageToken"] = [pageToken]; |
| 3326 } | 3339 } |
| 3327 | 3340 |
| 3328 _url = 'liveChat/moderators'; | 3341 _url = 'liveChat/moderators'; |
| 3329 | 3342 |
| 3330 var _response = _requester.request(_url, | 3343 var _response = _requester.request(_url, "GET", |
| 3331 "GET", | 3344 body: _body, |
| 3332 body: _body, | 3345 queryParams: _queryParams, |
| 3333 queryParams: _queryParams, | 3346 uploadOptions: _uploadOptions, |
| 3334 uploadOptions: _uploadOptions, | 3347 uploadMedia: _uploadMedia, |
| 3335 uploadMedia: _uploadMedia, | 3348 downloadOptions: _downloadOptions); |
| 3336 downloadOptions: _downloadOptions); | 3349 return _response |
| 3337 return _response.then((data) => new LiveChatModeratorListResponse.fromJson(d
ata)); | 3350 .then((data) => new LiveChatModeratorListResponse.fromJson(data)); |
| 3338 } | 3351 } |
| 3339 | |
| 3340 } | 3352 } |
| 3341 | 3353 |
| 3342 | |
| 3343 class LiveStreamsResourceApi { | 3354 class LiveStreamsResourceApi { |
| 3344 final commons.ApiRequester _requester; | 3355 final commons.ApiRequester _requester; |
| 3345 | 3356 |
| 3346 LiveStreamsResourceApi(commons.ApiRequester client) : | 3357 LiveStreamsResourceApi(commons.ApiRequester client) : _requester = client; |
| 3347 _requester = client; | |
| 3348 | 3358 |
| 3349 /** | 3359 /// Deletes a video stream. |
| 3350 * Deletes a video stream. | 3360 /// |
| 3351 * | 3361 /// Request parameters: |
| 3352 * Request parameters: | 3362 /// |
| 3353 * | 3363 /// [id] - The id parameter specifies the YouTube live stream ID for the |
| 3354 * [id] - The id parameter specifies the YouTube live stream ID for the | 3364 /// resource that is being deleted. |
| 3355 * resource that is being deleted. | 3365 /// |
| 3356 * | 3366 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 3357 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3367 /// for YouTube content partners. |
| 3358 * YouTube content partners. | 3368 /// |
| 3359 * | 3369 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 3360 * The onBehalfOfContentOwner parameter indicates that the request's | 3370 /// authorization credentials identify a YouTube CMS user who is acting on |
| 3361 * authorization credentials identify a YouTube CMS user who is acting on | 3371 /// behalf of the content owner specified in the parameter value. This |
| 3362 * behalf of the content owner specified in the parameter value. This | 3372 /// parameter is intended for YouTube content partners that own and manage |
| 3363 * parameter is intended for YouTube content partners that own and manage many | 3373 /// many different YouTube channels. It allows content owners to authenticate |
| 3364 * different YouTube channels. It allows content owners to authenticate once | 3374 /// once and get access to all their video and channel data, without having |
| 3365 * and get access to all their video and channel data, without having to | 3375 /// to provide authentication credentials for each individual channel. The |
| 3366 * provide authentication credentials for each individual channel. The CMS | 3376 /// CMS account that the user authenticates with must be linked to the |
| 3367 * account that the user authenticates with must be linked to the specified | 3377 /// specified YouTube content owner. |
| 3368 * YouTube content owner. | 3378 /// |
| 3369 * | 3379 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 3370 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 3380 /// properly authorized request. Note: This parameter is intended exclusively |
| 3371 * properly authorized request. Note: This parameter is intended exclusively | 3381 /// for YouTube content partners. |
| 3372 * for YouTube content partners. | 3382 /// |
| 3373 * | 3383 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 3374 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 3384 /// ID of the channel to which a video is being added. This parameter is |
| 3375 * ID of the channel to which a video is being added. This parameter is | 3385 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 3376 * required when a request specifies a value for the onBehalfOfContentOwner | 3386 /// parameter, and it can only be used in conjunction with that parameter. In |
| 3377 * parameter, and it can only be used in conjunction with that parameter. In | 3387 /// addition, the request must be authorized using a CMS account that is |
| 3378 * addition, the request must be authorized using a CMS account that is linked | 3388 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 3379 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 3389 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 3380 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 3390 /// parameter value specifies must be linked to the content owner that the |
| 3381 * specifies must be linked to the content owner that the | 3391 /// onBehalfOfContentOwner parameter specifies. |
| 3382 * onBehalfOfContentOwner parameter specifies. | 3392 /// |
| 3383 * | 3393 /// This parameter is intended for YouTube content partners that own and |
| 3384 * This parameter is intended for YouTube content partners that own and manage | 3394 /// manage many different YouTube channels. It allows content owners to |
| 3385 * many different YouTube channels. It allows content owners to authenticate | 3395 /// authenticate once and perform actions on behalf of the channel specified |
| 3386 * once and perform actions on behalf of the channel specified in the | 3396 /// in the parameter value, without having to provide authentication |
| 3387 * parameter value, without having to provide authentication credentials for | 3397 /// credentials for each separate channel. |
| 3388 * each separate channel. | 3398 /// |
| 3389 * | 3399 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3390 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3400 /// an error. |
| 3391 * error. | 3401 /// |
| 3392 * | 3402 /// If the used [http.Client] completes with an error when making a REST |
| 3393 * If the used [http.Client] completes with an error when making a REST call, | 3403 /// call, this method will complete with the same error. |
| 3394 * this method will complete with the same error. | 3404 async.Future delete(core.String id, |
| 3395 */ | 3405 {core.String onBehalfOfContentOwner, |
| 3396 async.Future delete(core.String id, {core.String onBehalfOfContentOwner, core.
String onBehalfOfContentOwnerChannel}) { | 3406 core.String onBehalfOfContentOwnerChannel}) { |
| 3397 var _url = null; | 3407 var _url = null; |
| 3398 var _queryParams = new core.Map(); | 3408 var _queryParams = new core.Map(); |
| 3399 var _uploadMedia = null; | 3409 var _uploadMedia = null; |
| 3400 var _uploadOptions = null; | 3410 var _uploadOptions = null; |
| 3401 var _downloadOptions = commons.DownloadOptions.Metadata; | 3411 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3402 var _body = null; | 3412 var _body = null; |
| 3403 | 3413 |
| 3404 if (id == null) { | 3414 if (id == null) { |
| 3405 throw new core.ArgumentError("Parameter id is required."); | 3415 throw new core.ArgumentError("Parameter id is required."); |
| 3406 } | 3416 } |
| 3407 _queryParams["id"] = [id]; | 3417 _queryParams["id"] = [id]; |
| 3408 if (onBehalfOfContentOwner != null) { | 3418 if (onBehalfOfContentOwner != null) { |
| 3409 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 3419 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 3410 } | 3420 } |
| 3411 if (onBehalfOfContentOwnerChannel != null) { | 3421 if (onBehalfOfContentOwnerChannel != null) { |
| 3412 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 3422 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 3423 onBehalfOfContentOwnerChannel |
| 3424 ]; |
| 3413 } | 3425 } |
| 3414 | 3426 |
| 3415 _downloadOptions = null; | 3427 _downloadOptions = null; |
| 3416 | 3428 |
| 3417 _url = 'liveStreams'; | 3429 _url = 'liveStreams'; |
| 3418 | 3430 |
| 3419 var _response = _requester.request(_url, | 3431 var _response = _requester.request(_url, "DELETE", |
| 3420 "DELETE", | 3432 body: _body, |
| 3421 body: _body, | 3433 queryParams: _queryParams, |
| 3422 queryParams: _queryParams, | 3434 uploadOptions: _uploadOptions, |
| 3423 uploadOptions: _uploadOptions, | 3435 uploadMedia: _uploadMedia, |
| 3424 uploadMedia: _uploadMedia, | 3436 downloadOptions: _downloadOptions); |
| 3425 downloadOptions: _downloadOptions); | |
| 3426 return _response.then((data) => null); | 3437 return _response.then((data) => null); |
| 3427 } | 3438 } |
| 3428 | 3439 |
| 3429 /** | 3440 /// Creates a video stream. The stream enables you to send your video to |
| 3430 * Creates a video stream. The stream enables you to send your video to | 3441 /// YouTube, which can then broadcast the video to your audience. |
| 3431 * YouTube, which can then broadcast the video to your audience. | 3442 /// |
| 3432 * | 3443 /// [request] - The metadata request object. |
| 3433 * [request] - The metadata request object. | 3444 /// |
| 3434 * | 3445 /// Request parameters: |
| 3435 * Request parameters: | 3446 /// |
| 3436 * | 3447 /// [part] - The part parameter serves two purposes in this operation. It |
| 3437 * [part] - The part parameter serves two purposes in this operation. It | 3448 /// identifies the properties that the write operation will set as well as |
| 3438 * identifies the properties that the write operation will set as well as the | 3449 /// the properties that the API response will include. |
| 3439 * properties that the API response will include. | 3450 /// |
| 3440 * | 3451 /// The part properties that you can include in the parameter value are id, |
| 3441 * The part properties that you can include in the parameter value are id, | 3452 /// snippet, cdn, and status. |
| 3442 * snippet, cdn, and status. | 3453 /// |
| 3443 * | 3454 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 3444 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3455 /// for YouTube content partners. |
| 3445 * YouTube content partners. | 3456 /// |
| 3446 * | 3457 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 3447 * The onBehalfOfContentOwner parameter indicates that the request's | 3458 /// authorization credentials identify a YouTube CMS user who is acting on |
| 3448 * authorization credentials identify a YouTube CMS user who is acting on | 3459 /// behalf of the content owner specified in the parameter value. This |
| 3449 * behalf of the content owner specified in the parameter value. This | 3460 /// parameter is intended for YouTube content partners that own and manage |
| 3450 * parameter is intended for YouTube content partners that own and manage many | 3461 /// many different YouTube channels. It allows content owners to authenticate |
| 3451 * different YouTube channels. It allows content owners to authenticate once | 3462 /// once and get access to all their video and channel data, without having |
| 3452 * and get access to all their video and channel data, without having to | 3463 /// to provide authentication credentials for each individual channel. The |
| 3453 * provide authentication credentials for each individual channel. The CMS | 3464 /// CMS account that the user authenticates with must be linked to the |
| 3454 * account that the user authenticates with must be linked to the specified | 3465 /// specified YouTube content owner. |
| 3455 * YouTube content owner. | 3466 /// |
| 3456 * | 3467 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 3457 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 3468 /// properly authorized request. Note: This parameter is intended exclusively |
| 3458 * properly authorized request. Note: This parameter is intended exclusively | 3469 /// for YouTube content partners. |
| 3459 * for YouTube content partners. | 3470 /// |
| 3460 * | 3471 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 3461 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 3472 /// ID of the channel to which a video is being added. This parameter is |
| 3462 * ID of the channel to which a video is being added. This parameter is | 3473 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 3463 * required when a request specifies a value for the onBehalfOfContentOwner | 3474 /// parameter, and it can only be used in conjunction with that parameter. In |
| 3464 * parameter, and it can only be used in conjunction with that parameter. In | 3475 /// addition, the request must be authorized using a CMS account that is |
| 3465 * addition, the request must be authorized using a CMS account that is linked | 3476 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 3466 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 3477 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 3467 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 3478 /// parameter value specifies must be linked to the content owner that the |
| 3468 * specifies must be linked to the content owner that the | 3479 /// onBehalfOfContentOwner parameter specifies. |
| 3469 * onBehalfOfContentOwner parameter specifies. | 3480 /// |
| 3470 * | 3481 /// This parameter is intended for YouTube content partners that own and |
| 3471 * This parameter is intended for YouTube content partners that own and manage | 3482 /// manage many different YouTube channels. It allows content owners to |
| 3472 * many different YouTube channels. It allows content owners to authenticate | 3483 /// authenticate once and perform actions on behalf of the channel specified |
| 3473 * once and perform actions on behalf of the channel specified in the | 3484 /// in the parameter value, without having to provide authentication |
| 3474 * parameter value, without having to provide authentication credentials for | 3485 /// credentials for each separate channel. |
| 3475 * each separate channel. | 3486 /// |
| 3476 * | 3487 /// Completes with a [LiveStream]. |
| 3477 * Completes with a [LiveStream]. | 3488 /// |
| 3478 * | 3489 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3479 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3490 /// an error. |
| 3480 * error. | 3491 /// |
| 3481 * | 3492 /// If the used [http.Client] completes with an error when making a REST |
| 3482 * If the used [http.Client] completes with an error when making a REST call, | 3493 /// call, this method will complete with the same error. |
| 3483 * this method will complete with the same error. | 3494 async.Future<LiveStream> insert(LiveStream request, core.String part, |
| 3484 */ | 3495 {core.String onBehalfOfContentOwner, |
| 3485 async.Future<LiveStream> insert(LiveStream request, core.String part, {core.St
ring onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 3496 core.String onBehalfOfContentOwnerChannel}) { |
| 3486 var _url = null; | 3497 var _url = null; |
| 3487 var _queryParams = new core.Map(); | 3498 var _queryParams = new core.Map(); |
| 3488 var _uploadMedia = null; | 3499 var _uploadMedia = null; |
| 3489 var _uploadOptions = null; | 3500 var _uploadOptions = null; |
| 3490 var _downloadOptions = commons.DownloadOptions.Metadata; | 3501 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3491 var _body = null; | 3502 var _body = null; |
| 3492 | 3503 |
| 3493 if (request != null) { | 3504 if (request != null) { |
| 3494 _body = convert.JSON.encode((request).toJson()); | 3505 _body = convert.JSON.encode((request).toJson()); |
| 3495 } | 3506 } |
| 3496 if (part == null) { | 3507 if (part == null) { |
| 3497 throw new core.ArgumentError("Parameter part is required."); | 3508 throw new core.ArgumentError("Parameter part is required."); |
| 3498 } | 3509 } |
| 3499 _queryParams["part"] = [part]; | 3510 _queryParams["part"] = [part]; |
| 3500 if (onBehalfOfContentOwner != null) { | 3511 if (onBehalfOfContentOwner != null) { |
| 3501 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 3512 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 3502 } | 3513 } |
| 3503 if (onBehalfOfContentOwnerChannel != null) { | 3514 if (onBehalfOfContentOwnerChannel != null) { |
| 3504 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 3515 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 3516 onBehalfOfContentOwnerChannel |
| 3517 ]; |
| 3505 } | 3518 } |
| 3506 | 3519 |
| 3507 _url = 'liveStreams'; | 3520 _url = 'liveStreams'; |
| 3508 | 3521 |
| 3509 var _response = _requester.request(_url, | 3522 var _response = _requester.request(_url, "POST", |
| 3510 "POST", | 3523 body: _body, |
| 3511 body: _body, | 3524 queryParams: _queryParams, |
| 3512 queryParams: _queryParams, | 3525 uploadOptions: _uploadOptions, |
| 3513 uploadOptions: _uploadOptions, | 3526 uploadMedia: _uploadMedia, |
| 3514 uploadMedia: _uploadMedia, | 3527 downloadOptions: _downloadOptions); |
| 3515 downloadOptions: _downloadOptions); | |
| 3516 return _response.then((data) => new LiveStream.fromJson(data)); | 3528 return _response.then((data) => new LiveStream.fromJson(data)); |
| 3517 } | 3529 } |
| 3518 | 3530 |
| 3519 /** | 3531 /// Returns a list of video streams that match the API request parameters. |
| 3520 * Returns a list of video streams that match the API request parameters. | 3532 /// |
| 3521 * | 3533 /// Request parameters: |
| 3522 * Request parameters: | 3534 /// |
| 3523 * | 3535 /// [part] - The part parameter specifies a comma-separated list of one or |
| 3524 * [part] - The part parameter specifies a comma-separated list of one or more | 3536 /// more liveStream resource properties that the API response will include. |
| 3525 * liveStream resource properties that the API response will include. The part | 3537 /// The part names that you can include in the parameter value are id, |
| 3526 * names that you can include in the parameter value are id, snippet, cdn, and | 3538 /// snippet, cdn, and status. |
| 3527 * status. | 3539 /// |
| 3528 * | 3540 /// [id] - The id parameter specifies a comma-separated list of YouTube |
| 3529 * [id] - The id parameter specifies a comma-separated list of YouTube stream | 3541 /// stream IDs that identify the streams being retrieved. In a liveStream |
| 3530 * IDs that identify the streams being retrieved. In a liveStream resource, | 3542 /// resource, the id property specifies the stream's ID. |
| 3531 * the id property specifies the stream's ID. | 3543 /// |
| 3532 * | 3544 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 3533 * [maxResults] - The maxResults parameter specifies the maximum number of | 3545 /// items that should be returned in the result set. |
| 3534 * items that should be returned in the result set. | 3546 /// Value must be between "0" and "50". |
| 3535 * Value must be between "0" and "50". | 3547 /// |
| 3536 * | 3548 /// [mine] - The mine parameter can be used to instruct the API to only |
| 3537 * [mine] - The mine parameter can be used to instruct the API to only return | 3549 /// return streams owned by the authenticated user. Set the parameter value |
| 3538 * streams owned by the authenticated user. Set the parameter value to true to | 3550 /// to true to only retrieve your own streams. |
| 3539 * only retrieve your own streams. | 3551 /// |
| 3540 * | 3552 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 3541 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3553 /// for YouTube content partners. |
| 3542 * YouTube content partners. | 3554 /// |
| 3543 * | 3555 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 3544 * The onBehalfOfContentOwner parameter indicates that the request's | 3556 /// authorization credentials identify a YouTube CMS user who is acting on |
| 3545 * authorization credentials identify a YouTube CMS user who is acting on | 3557 /// behalf of the content owner specified in the parameter value. This |
| 3546 * behalf of the content owner specified in the parameter value. This | 3558 /// parameter is intended for YouTube content partners that own and manage |
| 3547 * parameter is intended for YouTube content partners that own and manage many | 3559 /// many different YouTube channels. It allows content owners to authenticate |
| 3548 * different YouTube channels. It allows content owners to authenticate once | 3560 /// once and get access to all their video and channel data, without having |
| 3549 * and get access to all their video and channel data, without having to | 3561 /// to provide authentication credentials for each individual channel. The |
| 3550 * provide authentication credentials for each individual channel. The CMS | 3562 /// CMS account that the user authenticates with must be linked to the |
| 3551 * account that the user authenticates with must be linked to the specified | 3563 /// specified YouTube content owner. |
| 3552 * YouTube content owner. | 3564 /// |
| 3553 * | 3565 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 3554 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 3566 /// properly authorized request. Note: This parameter is intended exclusively |
| 3555 * properly authorized request. Note: This parameter is intended exclusively | 3567 /// for YouTube content partners. |
| 3556 * for YouTube content partners. | 3568 /// |
| 3557 * | 3569 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 3558 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 3570 /// ID of the channel to which a video is being added. This parameter is |
| 3559 * ID of the channel to which a video is being added. This parameter is | 3571 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 3560 * required when a request specifies a value for the onBehalfOfContentOwner | 3572 /// parameter, and it can only be used in conjunction with that parameter. In |
| 3561 * parameter, and it can only be used in conjunction with that parameter. In | 3573 /// addition, the request must be authorized using a CMS account that is |
| 3562 * addition, the request must be authorized using a CMS account that is linked | 3574 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 3563 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 3575 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 3564 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 3576 /// parameter value specifies must be linked to the content owner that the |
| 3565 * specifies must be linked to the content owner that the | 3577 /// onBehalfOfContentOwner parameter specifies. |
| 3566 * onBehalfOfContentOwner parameter specifies. | 3578 /// |
| 3567 * | 3579 /// This parameter is intended for YouTube content partners that own and |
| 3568 * This parameter is intended for YouTube content partners that own and manage | 3580 /// manage many different YouTube channels. It allows content owners to |
| 3569 * many different YouTube channels. It allows content owners to authenticate | 3581 /// authenticate once and perform actions on behalf of the channel specified |
| 3570 * once and perform actions on behalf of the channel specified in the | 3582 /// in the parameter value, without having to provide authentication |
| 3571 * parameter value, without having to provide authentication credentials for | 3583 /// credentials for each separate channel. |
| 3572 * each separate channel. | 3584 /// |
| 3573 * | 3585 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 3574 * [pageToken] - The pageToken parameter identifies a specific page in the | 3586 /// result set that should be returned. In an API response, the nextPageToken |
| 3575 * result set that should be returned. In an API response, the nextPageToken | 3587 /// and prevPageToken properties identify other pages that could be |
| 3576 * and prevPageToken properties identify other pages that could be retrieved. | 3588 /// retrieved. |
| 3577 * | 3589 /// |
| 3578 * Completes with a [LiveStreamListResponse]. | 3590 /// Completes with a [LiveStreamListResponse]. |
| 3579 * | 3591 /// |
| 3580 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3592 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3581 * error. | 3593 /// an error. |
| 3582 * | 3594 /// |
| 3583 * If the used [http.Client] completes with an error when making a REST call, | 3595 /// If the used [http.Client] completes with an error when making a REST |
| 3584 * this method will complete with the same error. | 3596 /// call, this method will complete with the same error. |
| 3585 */ | 3597 async.Future<LiveStreamListResponse> list(core.String part, |
| 3586 async.Future<LiveStreamListResponse> list(core.String part, {core.String id, c
ore.int maxResults, core.bool mine, core.String onBehalfOfContentOwner, core.Str
ing onBehalfOfContentOwnerChannel, core.String pageToken}) { | 3598 {core.String id, |
| 3599 core.int maxResults, |
| 3600 core.bool mine, |
| 3601 core.String onBehalfOfContentOwner, |
| 3602 core.String onBehalfOfContentOwnerChannel, |
| 3603 core.String pageToken}) { |
| 3587 var _url = null; | 3604 var _url = null; |
| 3588 var _queryParams = new core.Map(); | 3605 var _queryParams = new core.Map(); |
| 3589 var _uploadMedia = null; | 3606 var _uploadMedia = null; |
| 3590 var _uploadOptions = null; | 3607 var _uploadOptions = null; |
| 3591 var _downloadOptions = commons.DownloadOptions.Metadata; | 3608 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3592 var _body = null; | 3609 var _body = null; |
| 3593 | 3610 |
| 3594 if (part == null) { | 3611 if (part == null) { |
| 3595 throw new core.ArgumentError("Parameter part is required."); | 3612 throw new core.ArgumentError("Parameter part is required."); |
| 3596 } | 3613 } |
| 3597 _queryParams["part"] = [part]; | 3614 _queryParams["part"] = [part]; |
| 3598 if (id != null) { | 3615 if (id != null) { |
| 3599 _queryParams["id"] = [id]; | 3616 _queryParams["id"] = [id]; |
| 3600 } | 3617 } |
| 3601 if (maxResults != null) { | 3618 if (maxResults != null) { |
| 3602 _queryParams["maxResults"] = ["${maxResults}"]; | 3619 _queryParams["maxResults"] = ["${maxResults}"]; |
| 3603 } | 3620 } |
| 3604 if (mine != null) { | 3621 if (mine != null) { |
| 3605 _queryParams["mine"] = ["${mine}"]; | 3622 _queryParams["mine"] = ["${mine}"]; |
| 3606 } | 3623 } |
| 3607 if (onBehalfOfContentOwner != null) { | 3624 if (onBehalfOfContentOwner != null) { |
| 3608 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 3625 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 3609 } | 3626 } |
| 3610 if (onBehalfOfContentOwnerChannel != null) { | 3627 if (onBehalfOfContentOwnerChannel != null) { |
| 3611 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 3628 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 3629 onBehalfOfContentOwnerChannel |
| 3630 ]; |
| 3612 } | 3631 } |
| 3613 if (pageToken != null) { | 3632 if (pageToken != null) { |
| 3614 _queryParams["pageToken"] = [pageToken]; | 3633 _queryParams["pageToken"] = [pageToken]; |
| 3615 } | 3634 } |
| 3616 | 3635 |
| 3617 _url = 'liveStreams'; | 3636 _url = 'liveStreams'; |
| 3618 | 3637 |
| 3619 var _response = _requester.request(_url, | 3638 var _response = _requester.request(_url, "GET", |
| 3620 "GET", | 3639 body: _body, |
| 3621 body: _body, | 3640 queryParams: _queryParams, |
| 3622 queryParams: _queryParams, | 3641 uploadOptions: _uploadOptions, |
| 3623 uploadOptions: _uploadOptions, | 3642 uploadMedia: _uploadMedia, |
| 3624 uploadMedia: _uploadMedia, | 3643 downloadOptions: _downloadOptions); |
| 3625 downloadOptions: _downloadOptions); | |
| 3626 return _response.then((data) => new LiveStreamListResponse.fromJson(data)); | 3644 return _response.then((data) => new LiveStreamListResponse.fromJson(data)); |
| 3627 } | 3645 } |
| 3628 | 3646 |
| 3629 /** | 3647 /// Updates a video stream. If the properties that you want to change cannot |
| 3630 * Updates a video stream. If the properties that you want to change cannot be | 3648 /// be updated, then you need to create a new stream with the proper |
| 3631 * updated, then you need to create a new stream with the proper settings. | 3649 /// settings. |
| 3632 * | 3650 /// |
| 3633 * [request] - The metadata request object. | 3651 /// [request] - The metadata request object. |
| 3634 * | 3652 /// |
| 3635 * Request parameters: | 3653 /// Request parameters: |
| 3636 * | 3654 /// |
| 3637 * [part] - The part parameter serves two purposes in this operation. It | 3655 /// [part] - The part parameter serves two purposes in this operation. It |
| 3638 * identifies the properties that the write operation will set as well as the | 3656 /// identifies the properties that the write operation will set as well as |
| 3639 * properties that the API response will include. | 3657 /// the properties that the API response will include. |
| 3640 * | 3658 /// |
| 3641 * The part properties that you can include in the parameter value are id, | 3659 /// The part properties that you can include in the parameter value are id, |
| 3642 * snippet, cdn, and status. | 3660 /// snippet, cdn, and status. |
| 3643 * | 3661 /// |
| 3644 * Note that this method will override the existing values for all of the | 3662 /// Note that this method will override the existing values for all of the |
| 3645 * mutable properties that are contained in any parts that the parameter value | 3663 /// mutable properties that are contained in any parts that the parameter |
| 3646 * specifies. If the request body does not specify a value for a mutable | 3664 /// value specifies. If the request body does not specify a value for a |
| 3647 * property, the existing value for that property will be removed. | 3665 /// mutable property, the existing value for that property will be removed. |
| 3648 * | 3666 /// |
| 3649 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3667 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 3650 * YouTube content partners. | 3668 /// for YouTube content partners. |
| 3651 * | 3669 /// |
| 3652 * The onBehalfOfContentOwner parameter indicates that the request's | 3670 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 3653 * authorization credentials identify a YouTube CMS user who is acting on | 3671 /// authorization credentials identify a YouTube CMS user who is acting on |
| 3654 * behalf of the content owner specified in the parameter value. This | 3672 /// behalf of the content owner specified in the parameter value. This |
| 3655 * parameter is intended for YouTube content partners that own and manage many | 3673 /// parameter is intended for YouTube content partners that own and manage |
| 3656 * different YouTube channels. It allows content owners to authenticate once | 3674 /// many different YouTube channels. It allows content owners to authenticate |
| 3657 * and get access to all their video and channel data, without having to | 3675 /// once and get access to all their video and channel data, without having |
| 3658 * provide authentication credentials for each individual channel. The CMS | 3676 /// to provide authentication credentials for each individual channel. The |
| 3659 * account that the user authenticates with must be linked to the specified | 3677 /// CMS account that the user authenticates with must be linked to the |
| 3660 * YouTube content owner. | 3678 /// specified YouTube content owner. |
| 3661 * | 3679 /// |
| 3662 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 3680 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 3663 * properly authorized request. Note: This parameter is intended exclusively | 3681 /// properly authorized request. Note: This parameter is intended exclusively |
| 3664 * for YouTube content partners. | 3682 /// for YouTube content partners. |
| 3665 * | 3683 /// |
| 3666 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 3684 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 3667 * ID of the channel to which a video is being added. This parameter is | 3685 /// ID of the channel to which a video is being added. This parameter is |
| 3668 * required when a request specifies a value for the onBehalfOfContentOwner | 3686 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 3669 * parameter, and it can only be used in conjunction with that parameter. In | 3687 /// parameter, and it can only be used in conjunction with that parameter. In |
| 3670 * addition, the request must be authorized using a CMS account that is linked | 3688 /// addition, the request must be authorized using a CMS account that is |
| 3671 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 3689 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 3672 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 3690 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 3673 * specifies must be linked to the content owner that the | 3691 /// parameter value specifies must be linked to the content owner that the |
| 3674 * onBehalfOfContentOwner parameter specifies. | 3692 /// onBehalfOfContentOwner parameter specifies. |
| 3675 * | 3693 /// |
| 3676 * This parameter is intended for YouTube content partners that own and manage | 3694 /// This parameter is intended for YouTube content partners that own and |
| 3677 * many different YouTube channels. It allows content owners to authenticate | 3695 /// manage many different YouTube channels. It allows content owners to |
| 3678 * once and perform actions on behalf of the channel specified in the | 3696 /// authenticate once and perform actions on behalf of the channel specified |
| 3679 * parameter value, without having to provide authentication credentials for | 3697 /// in the parameter value, without having to provide authentication |
| 3680 * each separate channel. | 3698 /// credentials for each separate channel. |
| 3681 * | 3699 /// |
| 3682 * Completes with a [LiveStream]. | 3700 /// Completes with a [LiveStream]. |
| 3683 * | 3701 /// |
| 3684 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3702 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3685 * error. | 3703 /// an error. |
| 3686 * | 3704 /// |
| 3687 * If the used [http.Client] completes with an error when making a REST call, | 3705 /// If the used [http.Client] completes with an error when making a REST |
| 3688 * this method will complete with the same error. | 3706 /// call, this method will complete with the same error. |
| 3689 */ | 3707 async.Future<LiveStream> update(LiveStream request, core.String part, |
| 3690 async.Future<LiveStream> update(LiveStream request, core.String part, {core.St
ring onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 3708 {core.String onBehalfOfContentOwner, |
| 3709 core.String onBehalfOfContentOwnerChannel}) { |
| 3691 var _url = null; | 3710 var _url = null; |
| 3692 var _queryParams = new core.Map(); | 3711 var _queryParams = new core.Map(); |
| 3693 var _uploadMedia = null; | 3712 var _uploadMedia = null; |
| 3694 var _uploadOptions = null; | 3713 var _uploadOptions = null; |
| 3695 var _downloadOptions = commons.DownloadOptions.Metadata; | 3714 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3696 var _body = null; | 3715 var _body = null; |
| 3697 | 3716 |
| 3698 if (request != null) { | 3717 if (request != null) { |
| 3699 _body = convert.JSON.encode((request).toJson()); | 3718 _body = convert.JSON.encode((request).toJson()); |
| 3700 } | 3719 } |
| 3701 if (part == null) { | 3720 if (part == null) { |
| 3702 throw new core.ArgumentError("Parameter part is required."); | 3721 throw new core.ArgumentError("Parameter part is required."); |
| 3703 } | 3722 } |
| 3704 _queryParams["part"] = [part]; | 3723 _queryParams["part"] = [part]; |
| 3705 if (onBehalfOfContentOwner != null) { | 3724 if (onBehalfOfContentOwner != null) { |
| 3706 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 3725 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 3707 } | 3726 } |
| 3708 if (onBehalfOfContentOwnerChannel != null) { | 3727 if (onBehalfOfContentOwnerChannel != null) { |
| 3709 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 3728 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 3729 onBehalfOfContentOwnerChannel |
| 3730 ]; |
| 3710 } | 3731 } |
| 3711 | 3732 |
| 3712 _url = 'liveStreams'; | 3733 _url = 'liveStreams'; |
| 3713 | 3734 |
| 3714 var _response = _requester.request(_url, | 3735 var _response = _requester.request(_url, "PUT", |
| 3715 "PUT", | 3736 body: _body, |
| 3716 body: _body, | 3737 queryParams: _queryParams, |
| 3717 queryParams: _queryParams, | 3738 uploadOptions: _uploadOptions, |
| 3718 uploadOptions: _uploadOptions, | 3739 uploadMedia: _uploadMedia, |
| 3719 uploadMedia: _uploadMedia, | 3740 downloadOptions: _downloadOptions); |
| 3720 downloadOptions: _downloadOptions); | |
| 3721 return _response.then((data) => new LiveStream.fromJson(data)); | 3741 return _response.then((data) => new LiveStream.fromJson(data)); |
| 3722 } | 3742 } |
| 3723 | |
| 3724 } | 3743 } |
| 3725 | 3744 |
| 3726 | |
| 3727 class PlaylistItemsResourceApi { | 3745 class PlaylistItemsResourceApi { |
| 3728 final commons.ApiRequester _requester; | 3746 final commons.ApiRequester _requester; |
| 3729 | 3747 |
| 3730 PlaylistItemsResourceApi(commons.ApiRequester client) : | 3748 PlaylistItemsResourceApi(commons.ApiRequester client) : _requester = client; |
| 3731 _requester = client; | |
| 3732 | 3749 |
| 3733 /** | 3750 /// Deletes a playlist item. |
| 3734 * Deletes a playlist item. | 3751 /// |
| 3735 * | 3752 /// Request parameters: |
| 3736 * Request parameters: | 3753 /// |
| 3737 * | 3754 /// [id] - The id parameter specifies the YouTube playlist item ID for the |
| 3738 * [id] - The id parameter specifies the YouTube playlist item ID for the | 3755 /// playlist item that is being deleted. In a playlistItem resource, the id |
| 3739 * playlist item that is being deleted. In a playlistItem resource, the id | 3756 /// property specifies the playlist item's ID. |
| 3740 * property specifies the playlist item's ID. | 3757 /// |
| 3741 * | 3758 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 3742 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3759 /// for YouTube content partners. |
| 3743 * YouTube content partners. | 3760 /// |
| 3744 * | 3761 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 3745 * The onBehalfOfContentOwner parameter indicates that the request's | 3762 /// authorization credentials identify a YouTube CMS user who is acting on |
| 3746 * authorization credentials identify a YouTube CMS user who is acting on | 3763 /// behalf of the content owner specified in the parameter value. This |
| 3747 * behalf of the content owner specified in the parameter value. This | 3764 /// parameter is intended for YouTube content partners that own and manage |
| 3748 * parameter is intended for YouTube content partners that own and manage many | 3765 /// many different YouTube channels. It allows content owners to authenticate |
| 3749 * different YouTube channels. It allows content owners to authenticate once | 3766 /// once and get access to all their video and channel data, without having |
| 3750 * and get access to all their video and channel data, without having to | 3767 /// to provide authentication credentials for each individual channel. The |
| 3751 * provide authentication credentials for each individual channel. The CMS | 3768 /// CMS account that the user authenticates with must be linked to the |
| 3752 * account that the user authenticates with must be linked to the specified | 3769 /// specified YouTube content owner. |
| 3753 * YouTube content owner. | 3770 /// |
| 3754 * | 3771 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3755 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3772 /// an error. |
| 3756 * error. | 3773 /// |
| 3757 * | 3774 /// If the used [http.Client] completes with an error when making a REST |
| 3758 * If the used [http.Client] completes with an error when making a REST call, | 3775 /// call, this method will complete with the same error. |
| 3759 * this method will complete with the same error. | |
| 3760 */ | |
| 3761 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { | 3776 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { |
| 3762 var _url = null; | 3777 var _url = null; |
| 3763 var _queryParams = new core.Map(); | 3778 var _queryParams = new core.Map(); |
| 3764 var _uploadMedia = null; | 3779 var _uploadMedia = null; |
| 3765 var _uploadOptions = null; | 3780 var _uploadOptions = null; |
| 3766 var _downloadOptions = commons.DownloadOptions.Metadata; | 3781 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3767 var _body = null; | 3782 var _body = null; |
| 3768 | 3783 |
| 3769 if (id == null) { | 3784 if (id == null) { |
| 3770 throw new core.ArgumentError("Parameter id is required."); | 3785 throw new core.ArgumentError("Parameter id is required."); |
| 3771 } | 3786 } |
| 3772 _queryParams["id"] = [id]; | 3787 _queryParams["id"] = [id]; |
| 3773 if (onBehalfOfContentOwner != null) { | 3788 if (onBehalfOfContentOwner != null) { |
| 3774 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 3789 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 3775 } | 3790 } |
| 3776 | 3791 |
| 3777 _downloadOptions = null; | 3792 _downloadOptions = null; |
| 3778 | 3793 |
| 3779 _url = 'playlistItems'; | 3794 _url = 'playlistItems'; |
| 3780 | 3795 |
| 3781 var _response = _requester.request(_url, | 3796 var _response = _requester.request(_url, "DELETE", |
| 3782 "DELETE", | 3797 body: _body, |
| 3783 body: _body, | 3798 queryParams: _queryParams, |
| 3784 queryParams: _queryParams, | 3799 uploadOptions: _uploadOptions, |
| 3785 uploadOptions: _uploadOptions, | 3800 uploadMedia: _uploadMedia, |
| 3786 uploadMedia: _uploadMedia, | 3801 downloadOptions: _downloadOptions); |
| 3787 downloadOptions: _downloadOptions); | |
| 3788 return _response.then((data) => null); | 3802 return _response.then((data) => null); |
| 3789 } | 3803 } |
| 3790 | 3804 |
| 3791 /** | 3805 /// Adds a resource to a playlist. |
| 3792 * Adds a resource to a playlist. | 3806 /// |
| 3793 * | 3807 /// [request] - The metadata request object. |
| 3794 * [request] - The metadata request object. | 3808 /// |
| 3795 * | 3809 /// Request parameters: |
| 3796 * Request parameters: | 3810 /// |
| 3797 * | 3811 /// [part] - The part parameter serves two purposes in this operation. It |
| 3798 * [part] - The part parameter serves two purposes in this operation. It | 3812 /// identifies the properties that the write operation will set as well as |
| 3799 * identifies the properties that the write operation will set as well as the | 3813 /// the properties that the API response will include. |
| 3800 * properties that the API response will include. | 3814 /// |
| 3801 * | 3815 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 3802 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3816 /// for YouTube content partners. |
| 3803 * YouTube content partners. | 3817 /// |
| 3804 * | 3818 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 3805 * The onBehalfOfContentOwner parameter indicates that the request's | 3819 /// authorization credentials identify a YouTube CMS user who is acting on |
| 3806 * authorization credentials identify a YouTube CMS user who is acting on | 3820 /// behalf of the content owner specified in the parameter value. This |
| 3807 * behalf of the content owner specified in the parameter value. This | 3821 /// parameter is intended for YouTube content partners that own and manage |
| 3808 * parameter is intended for YouTube content partners that own and manage many | 3822 /// many different YouTube channels. It allows content owners to authenticate |
| 3809 * different YouTube channels. It allows content owners to authenticate once | 3823 /// once and get access to all their video and channel data, without having |
| 3810 * and get access to all their video and channel data, without having to | 3824 /// to provide authentication credentials for each individual channel. The |
| 3811 * provide authentication credentials for each individual channel. The CMS | 3825 /// CMS account that the user authenticates with must be linked to the |
| 3812 * account that the user authenticates with must be linked to the specified | 3826 /// specified YouTube content owner. |
| 3813 * YouTube content owner. | 3827 /// |
| 3814 * | 3828 /// Completes with a [PlaylistItem]. |
| 3815 * Completes with a [PlaylistItem]. | 3829 /// |
| 3816 * | 3830 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3817 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3831 /// an error. |
| 3818 * error. | 3832 /// |
| 3819 * | 3833 /// If the used [http.Client] completes with an error when making a REST |
| 3820 * If the used [http.Client] completes with an error when making a REST call, | 3834 /// call, this method will complete with the same error. |
| 3821 * this method will complete with the same error. | 3835 async.Future<PlaylistItem> insert(PlaylistItem request, core.String part, |
| 3822 */ | 3836 {core.String onBehalfOfContentOwner}) { |
| 3823 async.Future<PlaylistItem> insert(PlaylistItem request, core.String part, {cor
e.String onBehalfOfContentOwner}) { | |
| 3824 var _url = null; | 3837 var _url = null; |
| 3825 var _queryParams = new core.Map(); | 3838 var _queryParams = new core.Map(); |
| 3826 var _uploadMedia = null; | 3839 var _uploadMedia = null; |
| 3827 var _uploadOptions = null; | 3840 var _uploadOptions = null; |
| 3828 var _downloadOptions = commons.DownloadOptions.Metadata; | 3841 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3829 var _body = null; | 3842 var _body = null; |
| 3830 | 3843 |
| 3831 if (request != null) { | 3844 if (request != null) { |
| 3832 _body = convert.JSON.encode((request).toJson()); | 3845 _body = convert.JSON.encode((request).toJson()); |
| 3833 } | 3846 } |
| 3834 if (part == null) { | 3847 if (part == null) { |
| 3835 throw new core.ArgumentError("Parameter part is required."); | 3848 throw new core.ArgumentError("Parameter part is required."); |
| 3836 } | 3849 } |
| 3837 _queryParams["part"] = [part]; | 3850 _queryParams["part"] = [part]; |
| 3838 if (onBehalfOfContentOwner != null) { | 3851 if (onBehalfOfContentOwner != null) { |
| 3839 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 3852 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 3840 } | 3853 } |
| 3841 | 3854 |
| 3842 _url = 'playlistItems'; | 3855 _url = 'playlistItems'; |
| 3843 | 3856 |
| 3844 var _response = _requester.request(_url, | 3857 var _response = _requester.request(_url, "POST", |
| 3845 "POST", | 3858 body: _body, |
| 3846 body: _body, | 3859 queryParams: _queryParams, |
| 3847 queryParams: _queryParams, | 3860 uploadOptions: _uploadOptions, |
| 3848 uploadOptions: _uploadOptions, | 3861 uploadMedia: _uploadMedia, |
| 3849 uploadMedia: _uploadMedia, | 3862 downloadOptions: _downloadOptions); |
| 3850 downloadOptions: _downloadOptions); | |
| 3851 return _response.then((data) => new PlaylistItem.fromJson(data)); | 3863 return _response.then((data) => new PlaylistItem.fromJson(data)); |
| 3852 } | 3864 } |
| 3853 | 3865 |
| 3854 /** | 3866 /// Returns a collection of playlist items that match the API request |
| 3855 * Returns a collection of playlist items that match the API request | 3867 /// parameters. You can retrieve all of the playlist items in a specified |
| 3856 * parameters. You can retrieve all of the playlist items in a specified | 3868 /// playlist or retrieve one or more playlist items by their unique IDs. |
| 3857 * playlist or retrieve one or more playlist items by their unique IDs. | 3869 /// |
| 3858 * | 3870 /// Request parameters: |
| 3859 * Request parameters: | 3871 /// |
| 3860 * | 3872 /// [part] - The part parameter specifies a comma-separated list of one or |
| 3861 * [part] - The part parameter specifies a comma-separated list of one or more | 3873 /// more playlistItem resource properties that the API response will include. |
| 3862 * playlistItem resource properties that the API response will include. | 3874 /// |
| 3863 * | 3875 /// If the parameter identifies a property that contains child properties, |
| 3864 * If the parameter identifies a property that contains child properties, the | 3876 /// the child properties will be included in the response. For example, in a |
| 3865 * child properties will be included in the response. For example, in a | 3877 /// playlistItem resource, the snippet property contains numerous fields, |
| 3866 * playlistItem resource, the snippet property contains numerous fields, | 3878 /// including the title, description, position, and resourceId properties. As |
| 3867 * including the title, description, position, and resourceId properties. As | 3879 /// such, if you set part=snippet, the API response will contain all of those |
| 3868 * such, if you set part=snippet, the API response will contain all of those | 3880 /// properties. |
| 3869 * properties. | 3881 /// |
| 3870 * | 3882 /// [id] - The id parameter specifies a comma-separated list of one or more |
| 3871 * [id] - The id parameter specifies a comma-separated list of one or more | 3883 /// unique playlist item IDs. |
| 3872 * unique playlist item IDs. | 3884 /// |
| 3873 * | 3885 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 3874 * [maxResults] - The maxResults parameter specifies the maximum number of | 3886 /// items that should be returned in the result set. |
| 3875 * items that should be returned in the result set. | 3887 /// Value must be between "0" and "50". |
| 3876 * Value must be between "0" and "50". | 3888 /// |
| 3877 * | 3889 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 3878 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3890 /// for YouTube content partners. |
| 3879 * YouTube content partners. | 3891 /// |
| 3880 * | 3892 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 3881 * The onBehalfOfContentOwner parameter indicates that the request's | 3893 /// authorization credentials identify a YouTube CMS user who is acting on |
| 3882 * authorization credentials identify a YouTube CMS user who is acting on | 3894 /// behalf of the content owner specified in the parameter value. This |
| 3883 * behalf of the content owner specified in the parameter value. This | 3895 /// parameter is intended for YouTube content partners that own and manage |
| 3884 * parameter is intended for YouTube content partners that own and manage many | 3896 /// many different YouTube channels. It allows content owners to authenticate |
| 3885 * different YouTube channels. It allows content owners to authenticate once | 3897 /// once and get access to all their video and channel data, without having |
| 3886 * and get access to all their video and channel data, without having to | 3898 /// to provide authentication credentials for each individual channel. The |
| 3887 * provide authentication credentials for each individual channel. The CMS | 3899 /// CMS account that the user authenticates with must be linked to the |
| 3888 * account that the user authenticates with must be linked to the specified | 3900 /// specified YouTube content owner. |
| 3889 * YouTube content owner. | 3901 /// |
| 3890 * | 3902 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 3891 * [pageToken] - The pageToken parameter identifies a specific page in the | 3903 /// result set that should be returned. In an API response, the nextPageToken |
| 3892 * result set that should be returned. In an API response, the nextPageToken | 3904 /// and prevPageToken properties identify other pages that could be |
| 3893 * and prevPageToken properties identify other pages that could be retrieved. | 3905 /// retrieved. |
| 3894 * | 3906 /// |
| 3895 * [playlistId] - The playlistId parameter specifies the unique ID of the | 3907 /// [playlistId] - The playlistId parameter specifies the unique ID of the |
| 3896 * playlist for which you want to retrieve playlist items. Note that even | 3908 /// playlist for which you want to retrieve playlist items. Note that even |
| 3897 * though this is an optional parameter, every request to retrieve playlist | 3909 /// though this is an optional parameter, every request to retrieve playlist |
| 3898 * items must specify a value for either the id parameter or the playlistId | 3910 /// items must specify a value for either the id parameter or the playlistId |
| 3899 * parameter. | 3911 /// parameter. |
| 3900 * | 3912 /// |
| 3901 * [videoId] - The videoId parameter specifies that the request should return | 3913 /// [videoId] - The videoId parameter specifies that the request should |
| 3902 * only the playlist items that contain the specified video. | 3914 /// return only the playlist items that contain the specified video. |
| 3903 * | 3915 /// |
| 3904 * Completes with a [PlaylistItemListResponse]. | 3916 /// Completes with a [PlaylistItemListResponse]. |
| 3905 * | 3917 /// |
| 3906 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 3918 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3907 * error. | 3919 /// an error. |
| 3908 * | 3920 /// |
| 3909 * If the used [http.Client] completes with an error when making a REST call, | 3921 /// If the used [http.Client] completes with an error when making a REST |
| 3910 * this method will complete with the same error. | 3922 /// call, this method will complete with the same error. |
| 3911 */ | 3923 async.Future<PlaylistItemListResponse> list(core.String part, |
| 3912 async.Future<PlaylistItemListResponse> list(core.String part, {core.String id,
core.int maxResults, core.String onBehalfOfContentOwner, core.String pageToken,
core.String playlistId, core.String videoId}) { | 3924 {core.String id, |
| 3925 core.int maxResults, |
| 3926 core.String onBehalfOfContentOwner, |
| 3927 core.String pageToken, |
| 3928 core.String playlistId, |
| 3929 core.String videoId}) { |
| 3913 var _url = null; | 3930 var _url = null; |
| 3914 var _queryParams = new core.Map(); | 3931 var _queryParams = new core.Map(); |
| 3915 var _uploadMedia = null; | 3932 var _uploadMedia = null; |
| 3916 var _uploadOptions = null; | 3933 var _uploadOptions = null; |
| 3917 var _downloadOptions = commons.DownloadOptions.Metadata; | 3934 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 3918 var _body = null; | 3935 var _body = null; |
| 3919 | 3936 |
| 3920 if (part == null) { | 3937 if (part == null) { |
| 3921 throw new core.ArgumentError("Parameter part is required."); | 3938 throw new core.ArgumentError("Parameter part is required."); |
| 3922 } | 3939 } |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3935 } | 3952 } |
| 3936 if (playlistId != null) { | 3953 if (playlistId != null) { |
| 3937 _queryParams["playlistId"] = [playlistId]; | 3954 _queryParams["playlistId"] = [playlistId]; |
| 3938 } | 3955 } |
| 3939 if (videoId != null) { | 3956 if (videoId != null) { |
| 3940 _queryParams["videoId"] = [videoId]; | 3957 _queryParams["videoId"] = [videoId]; |
| 3941 } | 3958 } |
| 3942 | 3959 |
| 3943 _url = 'playlistItems'; | 3960 _url = 'playlistItems'; |
| 3944 | 3961 |
| 3945 var _response = _requester.request(_url, | 3962 var _response = _requester.request(_url, "GET", |
| 3946 "GET", | 3963 body: _body, |
| 3947 body: _body, | 3964 queryParams: _queryParams, |
| 3948 queryParams: _queryParams, | 3965 uploadOptions: _uploadOptions, |
| 3949 uploadOptions: _uploadOptions, | 3966 uploadMedia: _uploadMedia, |
| 3950 uploadMedia: _uploadMedia, | 3967 downloadOptions: _downloadOptions); |
| 3951 downloadOptions: _downloadOptions); | 3968 return _response |
| 3952 return _response.then((data) => new PlaylistItemListResponse.fromJson(data))
; | 3969 .then((data) => new PlaylistItemListResponse.fromJson(data)); |
| 3953 } | 3970 } |
| 3954 | 3971 |
| 3955 /** | 3972 /// Modifies a playlist item. For example, you could update the item's |
| 3956 * Modifies a playlist item. For example, you could update the item's position | 3973 /// position in the playlist. |
| 3957 * in the playlist. | 3974 /// |
| 3958 * | 3975 /// [request] - The metadata request object. |
| 3959 * [request] - The metadata request object. | 3976 /// |
| 3960 * | 3977 /// Request parameters: |
| 3961 * Request parameters: | 3978 /// |
| 3962 * | 3979 /// [part] - The part parameter serves two purposes in this operation. It |
| 3963 * [part] - The part parameter serves two purposes in this operation. It | 3980 /// identifies the properties that the write operation will set as well as |
| 3964 * identifies the properties that the write operation will set as well as the | 3981 /// the properties that the API response will include. |
| 3965 * properties that the API response will include. | 3982 /// |
| 3966 * | 3983 /// Note that this method will override the existing values for all of the |
| 3967 * Note that this method will override the existing values for all of the | 3984 /// mutable properties that are contained in any parts that the parameter |
| 3968 * mutable properties that are contained in any parts that the parameter value | 3985 /// value specifies. For example, a playlist item can specify a start time |
| 3969 * specifies. For example, a playlist item can specify a start time and end | 3986 /// and end time, which identify the times portion of the video that should |
| 3970 * time, which identify the times portion of the video that should play when | 3987 /// play when users watch the video in the playlist. If your request is |
| 3971 * users watch the video in the playlist. If your request is updating a | 3988 /// updating a playlist item that sets these values, and the request's part |
| 3972 * playlist item that sets these values, and the request's part parameter | 3989 /// parameter value includes the contentDetails part, the playlist item's |
| 3973 * value includes the contentDetails part, the playlist item's start and end | 3990 /// start and end times will be updated to whatever value the request body |
| 3974 * times will be updated to whatever value the request body specifies. If the | 3991 /// specifies. If the request body does not specify values, the existing |
| 3975 * request body does not specify values, the existing start and end times will | 3992 /// start and end times will be removed and replaced with the default |
| 3976 * be removed and replaced with the default settings. | 3993 /// settings. |
| 3977 * | 3994 /// |
| 3978 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 3995 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 3979 * YouTube content partners. | 3996 /// for YouTube content partners. |
| 3980 * | 3997 /// |
| 3981 * The onBehalfOfContentOwner parameter indicates that the request's | 3998 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 3982 * authorization credentials identify a YouTube CMS user who is acting on | 3999 /// authorization credentials identify a YouTube CMS user who is acting on |
| 3983 * behalf of the content owner specified in the parameter value. This | 4000 /// behalf of the content owner specified in the parameter value. This |
| 3984 * parameter is intended for YouTube content partners that own and manage many | 4001 /// parameter is intended for YouTube content partners that own and manage |
| 3985 * different YouTube channels. It allows content owners to authenticate once | 4002 /// many different YouTube channels. It allows content owners to authenticate |
| 3986 * and get access to all their video and channel data, without having to | 4003 /// once and get access to all their video and channel data, without having |
| 3987 * provide authentication credentials for each individual channel. The CMS | 4004 /// to provide authentication credentials for each individual channel. The |
| 3988 * account that the user authenticates with must be linked to the specified | 4005 /// CMS account that the user authenticates with must be linked to the |
| 3989 * YouTube content owner. | 4006 /// specified YouTube content owner. |
| 3990 * | 4007 /// |
| 3991 * Completes with a [PlaylistItem]. | 4008 /// Completes with a [PlaylistItem]. |
| 3992 * | 4009 /// |
| 3993 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4010 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 3994 * error. | 4011 /// an error. |
| 3995 * | 4012 /// |
| 3996 * If the used [http.Client] completes with an error when making a REST call, | 4013 /// If the used [http.Client] completes with an error when making a REST |
| 3997 * this method will complete with the same error. | 4014 /// call, this method will complete with the same error. |
| 3998 */ | 4015 async.Future<PlaylistItem> update(PlaylistItem request, core.String part, |
| 3999 async.Future<PlaylistItem> update(PlaylistItem request, core.String part, {cor
e.String onBehalfOfContentOwner}) { | 4016 {core.String onBehalfOfContentOwner}) { |
| 4000 var _url = null; | 4017 var _url = null; |
| 4001 var _queryParams = new core.Map(); | 4018 var _queryParams = new core.Map(); |
| 4002 var _uploadMedia = null; | 4019 var _uploadMedia = null; |
| 4003 var _uploadOptions = null; | 4020 var _uploadOptions = null; |
| 4004 var _downloadOptions = commons.DownloadOptions.Metadata; | 4021 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4005 var _body = null; | 4022 var _body = null; |
| 4006 | 4023 |
| 4007 if (request != null) { | 4024 if (request != null) { |
| 4008 _body = convert.JSON.encode((request).toJson()); | 4025 _body = convert.JSON.encode((request).toJson()); |
| 4009 } | 4026 } |
| 4010 if (part == null) { | 4027 if (part == null) { |
| 4011 throw new core.ArgumentError("Parameter part is required."); | 4028 throw new core.ArgumentError("Parameter part is required."); |
| 4012 } | 4029 } |
| 4013 _queryParams["part"] = [part]; | 4030 _queryParams["part"] = [part]; |
| 4014 if (onBehalfOfContentOwner != null) { | 4031 if (onBehalfOfContentOwner != null) { |
| 4015 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4032 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 4016 } | 4033 } |
| 4017 | 4034 |
| 4018 _url = 'playlistItems'; | 4035 _url = 'playlistItems'; |
| 4019 | 4036 |
| 4020 var _response = _requester.request(_url, | 4037 var _response = _requester.request(_url, "PUT", |
| 4021 "PUT", | 4038 body: _body, |
| 4022 body: _body, | 4039 queryParams: _queryParams, |
| 4023 queryParams: _queryParams, | 4040 uploadOptions: _uploadOptions, |
| 4024 uploadOptions: _uploadOptions, | 4041 uploadMedia: _uploadMedia, |
| 4025 uploadMedia: _uploadMedia, | 4042 downloadOptions: _downloadOptions); |
| 4026 downloadOptions: _downloadOptions); | |
| 4027 return _response.then((data) => new PlaylistItem.fromJson(data)); | 4043 return _response.then((data) => new PlaylistItem.fromJson(data)); |
| 4028 } | 4044 } |
| 4029 | |
| 4030 } | 4045 } |
| 4031 | 4046 |
| 4032 | |
| 4033 class PlaylistsResourceApi { | 4047 class PlaylistsResourceApi { |
| 4034 final commons.ApiRequester _requester; | 4048 final commons.ApiRequester _requester; |
| 4035 | 4049 |
| 4036 PlaylistsResourceApi(commons.ApiRequester client) : | 4050 PlaylistsResourceApi(commons.ApiRequester client) : _requester = client; |
| 4037 _requester = client; | |
| 4038 | 4051 |
| 4039 /** | 4052 /// Deletes a playlist. |
| 4040 * Deletes a playlist. | 4053 /// |
| 4041 * | 4054 /// Request parameters: |
| 4042 * Request parameters: | 4055 /// |
| 4043 * | 4056 /// [id] - The id parameter specifies the YouTube playlist ID for the |
| 4044 * [id] - The id parameter specifies the YouTube playlist ID for the playlist | 4057 /// playlist that is being deleted. In a playlist resource, the id property |
| 4045 * that is being deleted. In a playlist resource, the id property specifies | 4058 /// specifies the playlist's ID. |
| 4046 * the playlist's ID. | 4059 /// |
| 4047 * | 4060 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 4048 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 4061 /// for YouTube content partners. |
| 4049 * YouTube content partners. | 4062 /// |
| 4050 * | 4063 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 4051 * The onBehalfOfContentOwner parameter indicates that the request's | 4064 /// authorization credentials identify a YouTube CMS user who is acting on |
| 4052 * authorization credentials identify a YouTube CMS user who is acting on | 4065 /// behalf of the content owner specified in the parameter value. This |
| 4053 * behalf of the content owner specified in the parameter value. This | 4066 /// parameter is intended for YouTube content partners that own and manage |
| 4054 * parameter is intended for YouTube content partners that own and manage many | 4067 /// many different YouTube channels. It allows content owners to authenticate |
| 4055 * different YouTube channels. It allows content owners to authenticate once | 4068 /// once and get access to all their video and channel data, without having |
| 4056 * and get access to all their video and channel data, without having to | 4069 /// to provide authentication credentials for each individual channel. The |
| 4057 * provide authentication credentials for each individual channel. The CMS | 4070 /// CMS account that the user authenticates with must be linked to the |
| 4058 * account that the user authenticates with must be linked to the specified | 4071 /// specified YouTube content owner. |
| 4059 * YouTube content owner. | 4072 /// |
| 4060 * | 4073 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 4061 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4074 /// an error. |
| 4062 * error. | 4075 /// |
| 4063 * | 4076 /// If the used [http.Client] completes with an error when making a REST |
| 4064 * If the used [http.Client] completes with an error when making a REST call, | 4077 /// call, this method will complete with the same error. |
| 4065 * this method will complete with the same error. | |
| 4066 */ | |
| 4067 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { | 4078 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { |
| 4068 var _url = null; | 4079 var _url = null; |
| 4069 var _queryParams = new core.Map(); | 4080 var _queryParams = new core.Map(); |
| 4070 var _uploadMedia = null; | 4081 var _uploadMedia = null; |
| 4071 var _uploadOptions = null; | 4082 var _uploadOptions = null; |
| 4072 var _downloadOptions = commons.DownloadOptions.Metadata; | 4083 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4073 var _body = null; | 4084 var _body = null; |
| 4074 | 4085 |
| 4075 if (id == null) { | 4086 if (id == null) { |
| 4076 throw new core.ArgumentError("Parameter id is required."); | 4087 throw new core.ArgumentError("Parameter id is required."); |
| 4077 } | 4088 } |
| 4078 _queryParams["id"] = [id]; | 4089 _queryParams["id"] = [id]; |
| 4079 if (onBehalfOfContentOwner != null) { | 4090 if (onBehalfOfContentOwner != null) { |
| 4080 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4091 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 4081 } | 4092 } |
| 4082 | 4093 |
| 4083 _downloadOptions = null; | 4094 _downloadOptions = null; |
| 4084 | 4095 |
| 4085 _url = 'playlists'; | 4096 _url = 'playlists'; |
| 4086 | 4097 |
| 4087 var _response = _requester.request(_url, | 4098 var _response = _requester.request(_url, "DELETE", |
| 4088 "DELETE", | 4099 body: _body, |
| 4089 body: _body, | 4100 queryParams: _queryParams, |
| 4090 queryParams: _queryParams, | 4101 uploadOptions: _uploadOptions, |
| 4091 uploadOptions: _uploadOptions, | 4102 uploadMedia: _uploadMedia, |
| 4092 uploadMedia: _uploadMedia, | 4103 downloadOptions: _downloadOptions); |
| 4093 downloadOptions: _downloadOptions); | |
| 4094 return _response.then((data) => null); | 4104 return _response.then((data) => null); |
| 4095 } | 4105 } |
| 4096 | 4106 |
| 4097 /** | 4107 /// Creates a playlist. |
| 4098 * Creates a playlist. | 4108 /// |
| 4099 * | 4109 /// [request] - The metadata request object. |
| 4100 * [request] - The metadata request object. | 4110 /// |
| 4101 * | 4111 /// Request parameters: |
| 4102 * Request parameters: | 4112 /// |
| 4103 * | 4113 /// [part] - The part parameter serves two purposes in this operation. It |
| 4104 * [part] - The part parameter serves two purposes in this operation. It | 4114 /// identifies the properties that the write operation will set as well as |
| 4105 * identifies the properties that the write operation will set as well as the | 4115 /// the properties that the API response will include. |
| 4106 * properties that the API response will include. | 4116 /// |
| 4107 * | 4117 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 4108 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 4118 /// for YouTube content partners. |
| 4109 * YouTube content partners. | 4119 /// |
| 4110 * | 4120 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 4111 * The onBehalfOfContentOwner parameter indicates that the request's | 4121 /// authorization credentials identify a YouTube CMS user who is acting on |
| 4112 * authorization credentials identify a YouTube CMS user who is acting on | 4122 /// behalf of the content owner specified in the parameter value. This |
| 4113 * behalf of the content owner specified in the parameter value. This | 4123 /// parameter is intended for YouTube content partners that own and manage |
| 4114 * parameter is intended for YouTube content partners that own and manage many | 4124 /// many different YouTube channels. It allows content owners to authenticate |
| 4115 * different YouTube channels. It allows content owners to authenticate once | 4125 /// once and get access to all their video and channel data, without having |
| 4116 * and get access to all their video and channel data, without having to | 4126 /// to provide authentication credentials for each individual channel. The |
| 4117 * provide authentication credentials for each individual channel. The CMS | 4127 /// CMS account that the user authenticates with must be linked to the |
| 4118 * account that the user authenticates with must be linked to the specified | 4128 /// specified YouTube content owner. |
| 4119 * YouTube content owner. | 4129 /// |
| 4120 * | 4130 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 4121 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 4131 /// properly authorized request. Note: This parameter is intended exclusively |
| 4122 * properly authorized request. Note: This parameter is intended exclusively | 4132 /// for YouTube content partners. |
| 4123 * for YouTube content partners. | 4133 /// |
| 4124 * | 4134 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 4125 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 4135 /// ID of the channel to which a video is being added. This parameter is |
| 4126 * ID of the channel to which a video is being added. This parameter is | 4136 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 4127 * required when a request specifies a value for the onBehalfOfContentOwner | 4137 /// parameter, and it can only be used in conjunction with that parameter. In |
| 4128 * parameter, and it can only be used in conjunction with that parameter. In | 4138 /// addition, the request must be authorized using a CMS account that is |
| 4129 * addition, the request must be authorized using a CMS account that is linked | 4139 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 4130 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 4140 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 4131 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 4141 /// parameter value specifies must be linked to the content owner that the |
| 4132 * specifies must be linked to the content owner that the | 4142 /// onBehalfOfContentOwner parameter specifies. |
| 4133 * onBehalfOfContentOwner parameter specifies. | 4143 /// |
| 4134 * | 4144 /// This parameter is intended for YouTube content partners that own and |
| 4135 * This parameter is intended for YouTube content partners that own and manage | 4145 /// manage many different YouTube channels. It allows content owners to |
| 4136 * many different YouTube channels. It allows content owners to authenticate | 4146 /// authenticate once and perform actions on behalf of the channel specified |
| 4137 * once and perform actions on behalf of the channel specified in the | 4147 /// in the parameter value, without having to provide authentication |
| 4138 * parameter value, without having to provide authentication credentials for | 4148 /// credentials for each separate channel. |
| 4139 * each separate channel. | 4149 /// |
| 4140 * | 4150 /// Completes with a [Playlist]. |
| 4141 * Completes with a [Playlist]. | 4151 /// |
| 4142 * | 4152 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 4143 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4153 /// an error. |
| 4144 * error. | 4154 /// |
| 4145 * | 4155 /// If the used [http.Client] completes with an error when making a REST |
| 4146 * If the used [http.Client] completes with an error when making a REST call, | 4156 /// call, this method will complete with the same error. |
| 4147 * this method will complete with the same error. | 4157 async.Future<Playlist> insert(Playlist request, core.String part, |
| 4148 */ | 4158 {core.String onBehalfOfContentOwner, |
| 4149 async.Future<Playlist> insert(Playlist request, core.String part, {core.String
onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel}) { | 4159 core.String onBehalfOfContentOwnerChannel}) { |
| 4150 var _url = null; | 4160 var _url = null; |
| 4151 var _queryParams = new core.Map(); | 4161 var _queryParams = new core.Map(); |
| 4152 var _uploadMedia = null; | 4162 var _uploadMedia = null; |
| 4153 var _uploadOptions = null; | 4163 var _uploadOptions = null; |
| 4154 var _downloadOptions = commons.DownloadOptions.Metadata; | 4164 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4155 var _body = null; | 4165 var _body = null; |
| 4156 | 4166 |
| 4157 if (request != null) { | 4167 if (request != null) { |
| 4158 _body = convert.JSON.encode((request).toJson()); | 4168 _body = convert.JSON.encode((request).toJson()); |
| 4159 } | 4169 } |
| 4160 if (part == null) { | 4170 if (part == null) { |
| 4161 throw new core.ArgumentError("Parameter part is required."); | 4171 throw new core.ArgumentError("Parameter part is required."); |
| 4162 } | 4172 } |
| 4163 _queryParams["part"] = [part]; | 4173 _queryParams["part"] = [part]; |
| 4164 if (onBehalfOfContentOwner != null) { | 4174 if (onBehalfOfContentOwner != null) { |
| 4165 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4175 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 4166 } | 4176 } |
| 4167 if (onBehalfOfContentOwnerChannel != null) { | 4177 if (onBehalfOfContentOwnerChannel != null) { |
| 4168 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 4178 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 4179 onBehalfOfContentOwnerChannel |
| 4180 ]; |
| 4169 } | 4181 } |
| 4170 | 4182 |
| 4171 _url = 'playlists'; | 4183 _url = 'playlists'; |
| 4172 | 4184 |
| 4173 var _response = _requester.request(_url, | 4185 var _response = _requester.request(_url, "POST", |
| 4174 "POST", | 4186 body: _body, |
| 4175 body: _body, | 4187 queryParams: _queryParams, |
| 4176 queryParams: _queryParams, | 4188 uploadOptions: _uploadOptions, |
| 4177 uploadOptions: _uploadOptions, | 4189 uploadMedia: _uploadMedia, |
| 4178 uploadMedia: _uploadMedia, | 4190 downloadOptions: _downloadOptions); |
| 4179 downloadOptions: _downloadOptions); | |
| 4180 return _response.then((data) => new Playlist.fromJson(data)); | 4191 return _response.then((data) => new Playlist.fromJson(data)); |
| 4181 } | 4192 } |
| 4182 | 4193 |
| 4183 /** | 4194 /// Returns a collection of playlists that match the API request parameters. |
| 4184 * Returns a collection of playlists that match the API request parameters. | 4195 /// For example, you can retrieve all playlists that the authenticated user |
| 4185 * For example, you can retrieve all playlists that the authenticated user | 4196 /// owns, or you can retrieve one or more playlists by their unique IDs. |
| 4186 * owns, or you can retrieve one or more playlists by their unique IDs. | 4197 /// |
| 4187 * | 4198 /// Request parameters: |
| 4188 * Request parameters: | 4199 /// |
| 4189 * | 4200 /// [part] - The part parameter specifies a comma-separated list of one or |
| 4190 * [part] - The part parameter specifies a comma-separated list of one or more | 4201 /// more playlist resource properties that the API response will include. |
| 4191 * playlist resource properties that the API response will include. | 4202 /// |
| 4192 * | 4203 /// If the parameter identifies a property that contains child properties, |
| 4193 * If the parameter identifies a property that contains child properties, the | 4204 /// the child properties will be included in the response. For example, in a |
| 4194 * child properties will be included in the response. For example, in a | 4205 /// playlist resource, the snippet property contains properties like author, |
| 4195 * playlist resource, the snippet property contains properties like author, | 4206 /// title, description, tags, and timeCreated. As such, if you set |
| 4196 * title, description, tags, and timeCreated. As such, if you set | 4207 /// part=snippet, the API response will contain all of those properties. |
| 4197 * part=snippet, the API response will contain all of those properties. | 4208 /// |
| 4198 * | 4209 /// [channelId] - This value indicates that the API should only return the |
| 4199 * [channelId] - This value indicates that the API should only return the | 4210 /// specified channel's playlists. |
| 4200 * specified channel's playlists. | 4211 /// |
| 4201 * | 4212 /// [hl] - The hl parameter should be used for filter out the properties that |
| 4202 * [hl] - The hl parameter should be used for filter out the properties that | 4213 /// are not in the given language. Used for the snippet part. |
| 4203 * are not in the given language. Used for the snippet part. | 4214 /// |
| 4204 * | 4215 /// [id] - The id parameter specifies a comma-separated list of the YouTube |
| 4205 * [id] - The id parameter specifies a comma-separated list of the YouTube | 4216 /// playlist ID(s) for the resource(s) that are being retrieved. In a |
| 4206 * playlist ID(s) for the resource(s) that are being retrieved. In a playlist | 4217 /// playlist resource, the id property specifies the playlist's YouTube |
| 4207 * resource, the id property specifies the playlist's YouTube playlist ID. | 4218 /// playlist ID. |
| 4208 * | 4219 /// |
| 4209 * [maxResults] - The maxResults parameter specifies the maximum number of | 4220 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 4210 * items that should be returned in the result set. | 4221 /// items that should be returned in the result set. |
| 4211 * Value must be between "0" and "50". | 4222 /// Value must be between "0" and "50". |
| 4212 * | 4223 /// |
| 4213 * [mine] - Set this parameter's value to true to instruct the API to only | 4224 /// [mine] - Set this parameter's value to true to instruct the API to only |
| 4214 * return playlists owned by the authenticated user. | 4225 /// return playlists owned by the authenticated user. |
| 4215 * | 4226 /// |
| 4216 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 4227 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 4217 * YouTube content partners. | 4228 /// for YouTube content partners. |
| 4218 * | 4229 /// |
| 4219 * The onBehalfOfContentOwner parameter indicates that the request's | 4230 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 4220 * authorization credentials identify a YouTube CMS user who is acting on | 4231 /// authorization credentials identify a YouTube CMS user who is acting on |
| 4221 * behalf of the content owner specified in the parameter value. This | 4232 /// behalf of the content owner specified in the parameter value. This |
| 4222 * parameter is intended for YouTube content partners that own and manage many | 4233 /// parameter is intended for YouTube content partners that own and manage |
| 4223 * different YouTube channels. It allows content owners to authenticate once | 4234 /// many different YouTube channels. It allows content owners to authenticate |
| 4224 * and get access to all their video and channel data, without having to | 4235 /// once and get access to all their video and channel data, without having |
| 4225 * provide authentication credentials for each individual channel. The CMS | 4236 /// to provide authentication credentials for each individual channel. The |
| 4226 * account that the user authenticates with must be linked to the specified | 4237 /// CMS account that the user authenticates with must be linked to the |
| 4227 * YouTube content owner. | 4238 /// specified YouTube content owner. |
| 4228 * | 4239 /// |
| 4229 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 4240 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 4230 * properly authorized request. Note: This parameter is intended exclusively | 4241 /// properly authorized request. Note: This parameter is intended exclusively |
| 4231 * for YouTube content partners. | 4242 /// for YouTube content partners. |
| 4232 * | 4243 /// |
| 4233 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 4244 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 4234 * ID of the channel to which a video is being added. This parameter is | 4245 /// ID of the channel to which a video is being added. This parameter is |
| 4235 * required when a request specifies a value for the onBehalfOfContentOwner | 4246 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 4236 * parameter, and it can only be used in conjunction with that parameter. In | 4247 /// parameter, and it can only be used in conjunction with that parameter. In |
| 4237 * addition, the request must be authorized using a CMS account that is linked | 4248 /// addition, the request must be authorized using a CMS account that is |
| 4238 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 4249 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 4239 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 4250 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 4240 * specifies must be linked to the content owner that the | 4251 /// parameter value specifies must be linked to the content owner that the |
| 4241 * onBehalfOfContentOwner parameter specifies. | 4252 /// onBehalfOfContentOwner parameter specifies. |
| 4242 * | 4253 /// |
| 4243 * This parameter is intended for YouTube content partners that own and manage | 4254 /// This parameter is intended for YouTube content partners that own and |
| 4244 * many different YouTube channels. It allows content owners to authenticate | 4255 /// manage many different YouTube channels. It allows content owners to |
| 4245 * once and perform actions on behalf of the channel specified in the | 4256 /// authenticate once and perform actions on behalf of the channel specified |
| 4246 * parameter value, without having to provide authentication credentials for | 4257 /// in the parameter value, without having to provide authentication |
| 4247 * each separate channel. | 4258 /// credentials for each separate channel. |
| 4248 * | 4259 /// |
| 4249 * [pageToken] - The pageToken parameter identifies a specific page in the | 4260 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 4250 * result set that should be returned. In an API response, the nextPageToken | 4261 /// result set that should be returned. In an API response, the nextPageToken |
| 4251 * and prevPageToken properties identify other pages that could be retrieved. | 4262 /// and prevPageToken properties identify other pages that could be |
| 4252 * | 4263 /// retrieved. |
| 4253 * Completes with a [PlaylistListResponse]. | 4264 /// |
| 4254 * | 4265 /// Completes with a [PlaylistListResponse]. |
| 4255 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4266 /// |
| 4256 * error. | 4267 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 4257 * | 4268 /// an error. |
| 4258 * If the used [http.Client] completes with an error when making a REST call, | 4269 /// |
| 4259 * this method will complete with the same error. | 4270 /// If the used [http.Client] completes with an error when making a REST |
| 4260 */ | 4271 /// call, this method will complete with the same error. |
| 4261 async.Future<PlaylistListResponse> list(core.String part, {core.String channel
Id, core.String hl, core.String id, core.int maxResults, core.bool mine, core.St
ring onBehalfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.Str
ing pageToken}) { | 4272 async.Future<PlaylistListResponse> list(core.String part, |
| 4273 {core.String channelId, |
| 4274 core.String hl, |
| 4275 core.String id, |
| 4276 core.int maxResults, |
| 4277 core.bool mine, |
| 4278 core.String onBehalfOfContentOwner, |
| 4279 core.String onBehalfOfContentOwnerChannel, |
| 4280 core.String pageToken}) { |
| 4262 var _url = null; | 4281 var _url = null; |
| 4263 var _queryParams = new core.Map(); | 4282 var _queryParams = new core.Map(); |
| 4264 var _uploadMedia = null; | 4283 var _uploadMedia = null; |
| 4265 var _uploadOptions = null; | 4284 var _uploadOptions = null; |
| 4266 var _downloadOptions = commons.DownloadOptions.Metadata; | 4285 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4267 var _body = null; | 4286 var _body = null; |
| 4268 | 4287 |
| 4269 if (part == null) { | 4288 if (part == null) { |
| 4270 throw new core.ArgumentError("Parameter part is required."); | 4289 throw new core.ArgumentError("Parameter part is required."); |
| 4271 } | 4290 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 4282 if (maxResults != null) { | 4301 if (maxResults != null) { |
| 4283 _queryParams["maxResults"] = ["${maxResults}"]; | 4302 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4284 } | 4303 } |
| 4285 if (mine != null) { | 4304 if (mine != null) { |
| 4286 _queryParams["mine"] = ["${mine}"]; | 4305 _queryParams["mine"] = ["${mine}"]; |
| 4287 } | 4306 } |
| 4288 if (onBehalfOfContentOwner != null) { | 4307 if (onBehalfOfContentOwner != null) { |
| 4289 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4308 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 4290 } | 4309 } |
| 4291 if (onBehalfOfContentOwnerChannel != null) { | 4310 if (onBehalfOfContentOwnerChannel != null) { |
| 4292 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 4311 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 4312 onBehalfOfContentOwnerChannel |
| 4313 ]; |
| 4293 } | 4314 } |
| 4294 if (pageToken != null) { | 4315 if (pageToken != null) { |
| 4295 _queryParams["pageToken"] = [pageToken]; | 4316 _queryParams["pageToken"] = [pageToken]; |
| 4296 } | 4317 } |
| 4297 | 4318 |
| 4298 _url = 'playlists'; | 4319 _url = 'playlists'; |
| 4299 | 4320 |
| 4300 var _response = _requester.request(_url, | 4321 var _response = _requester.request(_url, "GET", |
| 4301 "GET", | 4322 body: _body, |
| 4302 body: _body, | 4323 queryParams: _queryParams, |
| 4303 queryParams: _queryParams, | 4324 uploadOptions: _uploadOptions, |
| 4304 uploadOptions: _uploadOptions, | 4325 uploadMedia: _uploadMedia, |
| 4305 uploadMedia: _uploadMedia, | 4326 downloadOptions: _downloadOptions); |
| 4306 downloadOptions: _downloadOptions); | |
| 4307 return _response.then((data) => new PlaylistListResponse.fromJson(data)); | 4327 return _response.then((data) => new PlaylistListResponse.fromJson(data)); |
| 4308 } | 4328 } |
| 4309 | 4329 |
| 4310 /** | 4330 /// Modifies a playlist. For example, you could change a playlist's title, |
| 4311 * Modifies a playlist. For example, you could change a playlist's title, | 4331 /// description, or privacy status. |
| 4312 * description, or privacy status. | 4332 /// |
| 4313 * | 4333 /// [request] - The metadata request object. |
| 4314 * [request] - The metadata request object. | 4334 /// |
| 4315 * | 4335 /// Request parameters: |
| 4316 * Request parameters: | 4336 /// |
| 4317 * | 4337 /// [part] - The part parameter serves two purposes in this operation. It |
| 4318 * [part] - The part parameter serves two purposes in this operation. It | 4338 /// identifies the properties that the write operation will set as well as |
| 4319 * identifies the properties that the write operation will set as well as the | 4339 /// the properties that the API response will include. |
| 4320 * properties that the API response will include. | 4340 /// |
| 4321 * | 4341 /// Note that this method will override the existing values for mutable |
| 4322 * Note that this method will override the existing values for mutable | 4342 /// properties that are contained in any parts that the request body |
| 4323 * properties that are contained in any parts that the request body specifies. | 4343 /// specifies. For example, a playlist's description is contained in the |
| 4324 * For example, a playlist's description is contained in the snippet part, | 4344 /// snippet part, which must be included in the request body. If the request |
| 4325 * which must be included in the request body. If the request does not specify | 4345 /// does not specify a value for the snippet.description property, the |
| 4326 * a value for the snippet.description property, the playlist's existing | 4346 /// playlist's existing description will be deleted. |
| 4327 * description will be deleted. | 4347 /// |
| 4328 * | 4348 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 4329 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 4349 /// for YouTube content partners. |
| 4330 * YouTube content partners. | 4350 /// |
| 4331 * | 4351 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 4332 * The onBehalfOfContentOwner parameter indicates that the request's | 4352 /// authorization credentials identify a YouTube CMS user who is acting on |
| 4333 * authorization credentials identify a YouTube CMS user who is acting on | 4353 /// behalf of the content owner specified in the parameter value. This |
| 4334 * behalf of the content owner specified in the parameter value. This | 4354 /// parameter is intended for YouTube content partners that own and manage |
| 4335 * parameter is intended for YouTube content partners that own and manage many | 4355 /// many different YouTube channels. It allows content owners to authenticate |
| 4336 * different YouTube channels. It allows content owners to authenticate once | 4356 /// once and get access to all their video and channel data, without having |
| 4337 * and get access to all their video and channel data, without having to | 4357 /// to provide authentication credentials for each individual channel. The |
| 4338 * provide authentication credentials for each individual channel. The CMS | 4358 /// CMS account that the user authenticates with must be linked to the |
| 4339 * account that the user authenticates with must be linked to the specified | 4359 /// specified YouTube content owner. |
| 4340 * YouTube content owner. | 4360 /// |
| 4341 * | 4361 /// Completes with a [Playlist]. |
| 4342 * Completes with a [Playlist]. | 4362 /// |
| 4343 * | 4363 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 4344 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4364 /// an error. |
| 4345 * error. | 4365 /// |
| 4346 * | 4366 /// If the used [http.Client] completes with an error when making a REST |
| 4347 * If the used [http.Client] completes with an error when making a REST call, | 4367 /// call, this method will complete with the same error. |
| 4348 * this method will complete with the same error. | 4368 async.Future<Playlist> update(Playlist request, core.String part, |
| 4349 */ | 4369 {core.String onBehalfOfContentOwner}) { |
| 4350 async.Future<Playlist> update(Playlist request, core.String part, {core.String
onBehalfOfContentOwner}) { | |
| 4351 var _url = null; | 4370 var _url = null; |
| 4352 var _queryParams = new core.Map(); | 4371 var _queryParams = new core.Map(); |
| 4353 var _uploadMedia = null; | 4372 var _uploadMedia = null; |
| 4354 var _uploadOptions = null; | 4373 var _uploadOptions = null; |
| 4355 var _downloadOptions = commons.DownloadOptions.Metadata; | 4374 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4356 var _body = null; | 4375 var _body = null; |
| 4357 | 4376 |
| 4358 if (request != null) { | 4377 if (request != null) { |
| 4359 _body = convert.JSON.encode((request).toJson()); | 4378 _body = convert.JSON.encode((request).toJson()); |
| 4360 } | 4379 } |
| 4361 if (part == null) { | 4380 if (part == null) { |
| 4362 throw new core.ArgumentError("Parameter part is required."); | 4381 throw new core.ArgumentError("Parameter part is required."); |
| 4363 } | 4382 } |
| 4364 _queryParams["part"] = [part]; | 4383 _queryParams["part"] = [part]; |
| 4365 if (onBehalfOfContentOwner != null) { | 4384 if (onBehalfOfContentOwner != null) { |
| 4366 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 4385 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 4367 } | 4386 } |
| 4368 | 4387 |
| 4369 _url = 'playlists'; | 4388 _url = 'playlists'; |
| 4370 | 4389 |
| 4371 var _response = _requester.request(_url, | 4390 var _response = _requester.request(_url, "PUT", |
| 4372 "PUT", | 4391 body: _body, |
| 4373 body: _body, | 4392 queryParams: _queryParams, |
| 4374 queryParams: _queryParams, | 4393 uploadOptions: _uploadOptions, |
| 4375 uploadOptions: _uploadOptions, | 4394 uploadMedia: _uploadMedia, |
| 4376 uploadMedia: _uploadMedia, | 4395 downloadOptions: _downloadOptions); |
| 4377 downloadOptions: _downloadOptions); | |
| 4378 return _response.then((data) => new Playlist.fromJson(data)); | 4396 return _response.then((data) => new Playlist.fromJson(data)); |
| 4379 } | 4397 } |
| 4380 | |
| 4381 } | 4398 } |
| 4382 | 4399 |
| 4383 | |
| 4384 class SearchResourceApi { | 4400 class SearchResourceApi { |
| 4385 final commons.ApiRequester _requester; | 4401 final commons.ApiRequester _requester; |
| 4386 | 4402 |
| 4387 SearchResourceApi(commons.ApiRequester client) : | 4403 SearchResourceApi(commons.ApiRequester client) : _requester = client; |
| 4388 _requester = client; | 4404 |
| 4389 | 4405 /// Returns a collection of search results that match the query parameters |
| 4390 /** | 4406 /// specified in the API request. By default, a search result set identifies |
| 4391 * Returns a collection of search results that match the query parameters | 4407 /// matching video, channel, and playlist resources, but you can also |
| 4392 * specified in the API request. By default, a search result set identifies | 4408 /// configure queries to only retrieve a specific type of resource. |
| 4393 * matching video, channel, and playlist resources, but you can also configure | 4409 /// |
| 4394 * queries to only retrieve a specific type of resource. | 4410 /// Request parameters: |
| 4395 * | 4411 /// |
| 4396 * Request parameters: | 4412 /// [part] - The part parameter specifies a comma-separated list of one or |
| 4397 * | 4413 /// more search resource properties that the API response will include. Set |
| 4398 * [part] - The part parameter specifies a comma-separated list of one or more | 4414 /// the parameter value to snippet. |
| 4399 * search resource properties that the API response will include. Set the | 4415 /// |
| 4400 * parameter value to snippet. | 4416 /// [channelId] - The channelId parameter indicates that the API response |
| 4401 * | 4417 /// should only contain resources created by the channel |
| 4402 * [channelId] - The channelId parameter indicates that the API response | 4418 /// |
| 4403 * should only contain resources created by the channel | 4419 /// [channelType] - The channelType parameter lets you restrict a search to a |
| 4404 * | 4420 /// particular type of channel. |
| 4405 * [channelType] - The channelType parameter lets you restrict a search to a | 4421 /// Possible string values are: |
| 4406 * particular type of channel. | 4422 /// - "any" : Return all channels. |
| 4407 * Possible string values are: | 4423 /// - "show" : Only retrieve shows. |
| 4408 * - "any" : Return all channels. | 4424 /// |
| 4409 * - "show" : Only retrieve shows. | 4425 /// [eventType] - The eventType parameter restricts a search to broadcast |
| 4410 * | 4426 /// events. If you specify a value for this parameter, you must also set the |
| 4411 * [eventType] - The eventType parameter restricts a search to broadcast | 4427 /// type parameter's value to video. |
| 4412 * events. If you specify a value for this parameter, you must also set the | 4428 /// Possible string values are: |
| 4413 * type parameter's value to video. | 4429 /// - "completed" : Only include completed broadcasts. |
| 4414 * Possible string values are: | 4430 /// - "live" : Only include active broadcasts. |
| 4415 * - "completed" : Only include completed broadcasts. | 4431 /// - "upcoming" : Only include upcoming broadcasts. |
| 4416 * - "live" : Only include active broadcasts. | 4432 /// |
| 4417 * - "upcoming" : Only include upcoming broadcasts. | 4433 /// [forContentOwner] - Note: This parameter is intended exclusively for |
| 4418 * | 4434 /// YouTube content partners. |
| 4419 * [forContentOwner] - Note: This parameter is intended exclusively for | 4435 /// |
| 4420 * YouTube content partners. | 4436 /// The forContentOwner parameter restricts the search to only retrieve |
| 4421 * | 4437 /// resources owned by the content owner specified by the |
| 4422 * The forContentOwner parameter restricts the search to only retrieve | 4438 /// onBehalfOfContentOwner parameter. The user must be authenticated using a |
| 4423 * resources owned by the content owner specified by the | 4439 /// CMS account linked to the specified content owner and |
| 4424 * onBehalfOfContentOwner parameter. The user must be authenticated using a | 4440 /// onBehalfOfContentOwner must be provided. |
| 4425 * CMS account linked to the specified content owner and | 4441 /// |
| 4426 * onBehalfOfContentOwner must be provided. | 4442 /// [forDeveloper] - The forDeveloper parameter restricts the search to only |
| 4427 * | 4443 /// retrieve videos uploaded via the developer's application or website. The |
| 4428 * [forDeveloper] - The forDeveloper parameter restricts the search to only | 4444 /// API server uses the request's authorization credentials to identify the |
| 4429 * retrieve videos uploaded via the developer's application or website. The | 4445 /// developer. Therefore, a developer can restrict results to videos uploaded |
| 4430 * API server uses the request's authorization credentials to identify the | 4446 /// through the developer's own app or website but not to videos uploaded |
| 4431 * developer. Therefore, a developer can restrict results to videos uploaded | 4447 /// through other apps or sites. |
| 4432 * through the developer's own app or website but not to videos uploaded | 4448 /// |
| 4433 * through other apps or sites. | 4449 /// [forMine] - The forMine parameter restricts the search to only retrieve |
| 4434 * | 4450 /// videos owned by the authenticated user. If you set this parameter to |
| 4435 * [forMine] - The forMine parameter restricts the search to only retrieve | 4451 /// true, then the type parameter's value must also be set to video. |
| 4436 * videos owned by the authenticated user. If you set this parameter to true, | 4452 /// |
| 4437 * then the type parameter's value must also be set to video. | 4453 /// [location] - The location parameter, in conjunction with the |
| 4438 * | 4454 /// locationRadius parameter, defines a circular geographic area and also |
| 4439 * [location] - The location parameter, in conjunction with the locationRadius | 4455 /// restricts a search to videos that specify, in their metadata, a |
| 4440 * parameter, defines a circular geographic area and also restricts a search | 4456 /// geographic location that falls within that area. The parameter value is a |
| 4441 * to videos that specify, in their metadata, a geographic location that falls | 4457 /// string that specifies latitude/longitude coordinates e.g. |
| 4442 * within that area. The parameter value is a string that specifies | 4458 /// (37.42307,-122.08427). |
| 4443 * latitude/longitude coordinates e.g. (37.42307,-122.08427). | 4459 /// |
| 4444 * | 4460 /// |
| 4445 * | 4461 /// - The location parameter value identifies the point at the center of the |
| 4446 * - The location parameter value identifies the point at the center of the | 4462 /// area. |
| 4447 * area. | 4463 /// - The locationRadius parameter specifies the maximum distance that the |
| 4448 * - The locationRadius parameter specifies the maximum distance that the | 4464 /// location associated with a video can be from that point for the video to |
| 4449 * location associated with a video can be from that point for the video to | 4465 /// still be included in the search results.The API returns an error if your |
| 4450 * still be included in the search results.The API returns an error if your | 4466 /// request specifies a value for the location parameter but does not also |
| 4451 * request specifies a value for the location parameter but does not also | 4467 /// specify a value for the locationRadius parameter. |
| 4452 * specify a value for the locationRadius parameter. | 4468 /// |
| 4453 * | 4469 /// [locationRadius] - The locationRadius parameter, in conjunction with the |
| 4454 * [locationRadius] - The locationRadius parameter, in conjunction with the | 4470 /// location parameter, defines a circular geographic area. |
| 4455 * location parameter, defines a circular geographic area. | 4471 /// |
| 4456 * | 4472 /// The parameter value must be a floating point number followed by a |
| 4457 * The parameter value must be a floating point number followed by a | 4473 /// measurement unit. Valid measurement units are m, km, ft, and mi. For |
| 4458 * measurement unit. Valid measurement units are m, km, ft, and mi. For | 4474 /// example, valid parameter values include 1500m, 5km, 10000ft, and 0.75mi. |
| 4459 * example, valid parameter values include 1500m, 5km, 10000ft, and 0.75mi. | 4475 /// The API does not support locationRadius parameter values larger than 1000 |
| 4460 * The API does not support locationRadius parameter values larger than 1000 | 4476 /// kilometers. |
| 4461 * kilometers. | 4477 /// |
| 4462 * | 4478 /// Note: See the definition of the location parameter for more information. |
| 4463 * Note: See the definition of the location parameter for more information. | 4479 /// |
| 4464 * | 4480 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 4465 * [maxResults] - The maxResults parameter specifies the maximum number of | 4481 /// items that should be returned in the result set. |
| 4466 * items that should be returned in the result set. | 4482 /// Value must be between "0" and "50". |
| 4467 * Value must be between "0" and "50". | 4483 /// |
| 4468 * | 4484 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 4469 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 4485 /// for YouTube content partners. |
| 4470 * YouTube content partners. | 4486 /// |
| 4471 * | 4487 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 4472 * The onBehalfOfContentOwner parameter indicates that the request's | 4488 /// authorization credentials identify a YouTube CMS user who is acting on |
| 4473 * authorization credentials identify a YouTube CMS user who is acting on | 4489 /// behalf of the content owner specified in the parameter value. This |
| 4474 * behalf of the content owner specified in the parameter value. This | 4490 /// parameter is intended for YouTube content partners that own and manage |
| 4475 * parameter is intended for YouTube content partners that own and manage many | 4491 /// many different YouTube channels. It allows content owners to authenticate |
| 4476 * different YouTube channels. It allows content owners to authenticate once | 4492 /// once and get access to all their video and channel data, without having |
| 4477 * and get access to all their video and channel data, without having to | 4493 /// to provide authentication credentials for each individual channel. The |
| 4478 * provide authentication credentials for each individual channel. The CMS | 4494 /// CMS account that the user authenticates with must be linked to the |
| 4479 * account that the user authenticates with must be linked to the specified | 4495 /// specified YouTube content owner. |
| 4480 * YouTube content owner. | 4496 /// |
| 4481 * | 4497 /// [order] - The order parameter specifies the method that will be used to |
| 4482 * [order] - The order parameter specifies the method that will be used to | 4498 /// order resources in the API response. |
| 4483 * order resources in the API response. | 4499 /// Possible string values are: |
| 4484 * Possible string values are: | 4500 /// - "date" : Resources are sorted in reverse chronological order based on |
| 4485 * - "date" : Resources are sorted in reverse chronological order based on the | 4501 /// the date they were created. |
| 4486 * date they were created. | 4502 /// - "rating" : Resources are sorted from highest to lowest rating. |
| 4487 * - "rating" : Resources are sorted from highest to lowest rating. | 4503 /// - "relevance" : Resources are sorted based on their relevance to the |
| 4488 * - "relevance" : Resources are sorted based on their relevance to the search | 4504 /// search query. This is the default value for this parameter. |
| 4489 * query. This is the default value for this parameter. | 4505 /// - "title" : Resources are sorted alphabetically by title. |
| 4490 * - "title" : Resources are sorted alphabetically by title. | 4506 /// - "videoCount" : Channels are sorted in descending order of their number |
| 4491 * - "videoCount" : Channels are sorted in descending order of their number of | 4507 /// of uploaded videos. |
| 4492 * uploaded videos. | 4508 /// - "viewCount" : Resources are sorted from highest to lowest number of |
| 4493 * - "viewCount" : Resources are sorted from highest to lowest number of | 4509 /// views. |
| 4494 * views. | 4510 /// |
| 4495 * | 4511 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 4496 * [pageToken] - The pageToken parameter identifies a specific page in the | 4512 /// result set that should be returned. In an API response, the nextPageToken |
| 4497 * result set that should be returned. In an API response, the nextPageToken | 4513 /// and prevPageToken properties identify other pages that could be |
| 4498 * and prevPageToken properties identify other pages that could be retrieved. | 4514 /// retrieved. |
| 4499 * | 4515 /// |
| 4500 * [publishedAfter] - The publishedAfter parameter indicates that the API | 4516 /// [publishedAfter] - The publishedAfter parameter indicates that the API |
| 4501 * response should only contain resources created after the specified time. | 4517 /// response should only contain resources created after the specified time. |
| 4502 * The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). | 4518 /// The value is an RFC 3339 formatted date-time value |
| 4503 * | 4519 /// (1970-01-01T00:00:00Z). |
| 4504 * [publishedBefore] - The publishedBefore parameter indicates that the API | 4520 /// |
| 4505 * response should only contain resources created before the specified time. | 4521 /// [publishedBefore] - The publishedBefore parameter indicates that the API |
| 4506 * The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z). | 4522 /// response should only contain resources created before the specified time. |
| 4507 * | 4523 /// The value is an RFC 3339 formatted date-time value |
| 4508 * [q] - The q parameter specifies the query term to search for. | 4524 /// (1970-01-01T00:00:00Z). |
| 4509 * | 4525 /// |
| 4510 * Your request can also use the Boolean NOT (-) and OR (|) operators to | 4526 /// [q] - The q parameter specifies the query term to search for. |
| 4511 * exclude videos or to find videos that are associated with one of several | 4527 /// |
| 4512 * search terms. For example, to search for videos matching either "boating" | 4528 /// Your request can also use the Boolean NOT (-) and OR (|) operators to |
| 4513 * or "sailing", set the q parameter value to boating|sailing. Similarly, to | 4529 /// exclude videos or to find videos that are associated with one of several |
| 4514 * search for videos matching either "boating" or "sailing" but not "fishing", | 4530 /// search terms. For example, to search for videos matching either "boating" |
| 4515 * set the q parameter value to boating|sailing -fishing. Note that the pipe | 4531 /// or "sailing", set the q parameter value to boating|sailing. Similarly, to |
| 4516 * character must be URL-escaped when it is sent in your API request. The | 4532 /// search for videos matching either "boating" or "sailing" but not |
| 4517 * URL-escaped value for the pipe character is %7C. | 4533 /// "fishing", set the q parameter value to boating|sailing -fishing. Note |
| 4518 * | 4534 /// that the pipe character must be URL-escaped when it is sent in your API |
| 4519 * [regionCode] - The regionCode parameter instructs the API to return search | 4535 /// request. The URL-escaped value for the pipe character is %7C. |
| 4520 * results for the specified country. The parameter value is an ISO 3166-1 | 4536 /// |
| 4521 * alpha-2 country code. | 4537 /// [regionCode] - The regionCode parameter instructs the API to return |
| 4522 * | 4538 /// search results for the specified country. The parameter value is an ISO |
| 4523 * [relatedToVideoId] - The relatedToVideoId parameter retrieves a list of | 4539 /// 3166-1 alpha-2 country code. |
| 4524 * videos that are related to the video that the parameter value identifies. | 4540 /// |
| 4525 * The parameter value must be set to a YouTube video ID and, if you are using | 4541 /// [relatedToVideoId] - The relatedToVideoId parameter retrieves a list of |
| 4526 * this parameter, the type parameter must be set to video. | 4542 /// videos that are related to the video that the parameter value identifies. |
| 4527 * | 4543 /// The parameter value must be set to a YouTube video ID and, if you are |
| 4528 * [relevanceLanguage] - The relevanceLanguage parameter instructs the API to | 4544 /// using this parameter, the type parameter must be set to video. |
| 4529 * return search results that are most relevant to the specified language. The | 4545 /// |
| 4530 * parameter value is typically an ISO 639-1 two-letter language code. | 4546 /// [relevanceLanguage] - The relevanceLanguage parameter instructs the API |
| 4531 * However, you should use the values zh-Hans for simplified Chinese and | 4547 /// to return search results that are most relevant to the specified |
| 4532 * zh-Hant for traditional Chinese. Please note that results in other | 4548 /// language. The parameter value is typically an ISO 639-1 two-letter |
| 4533 * languages will still be returned if they are highly relevant to the search | 4549 /// language code. However, you should use the values zh-Hans for simplified |
| 4534 * query term. | 4550 /// Chinese and zh-Hant for traditional Chinese. Please note that results in |
| 4535 * | 4551 /// other languages will still be returned if they are highly relevant to the |
| 4536 * [safeSearch] - The safeSearch parameter indicates whether the search | 4552 /// search query term. |
| 4537 * results should include restricted content as well as standard content. | 4553 /// |
| 4538 * Possible string values are: | 4554 /// [safeSearch] - The safeSearch parameter indicates whether the search |
| 4539 * - "moderate" : YouTube will filter some content from search results and, at | 4555 /// results should include restricted content as well as standard content. |
| 4540 * the least, will filter content that is restricted in your locale. Based on | 4556 /// Possible string values are: |
| 4541 * their content, search results could be removed from search results or | 4557 /// - "moderate" : YouTube will filter some content from search results and, |
| 4542 * demoted in search results. This is the default parameter value. | 4558 /// at the least, will filter content that is restricted in your locale. |
| 4543 * - "none" : YouTube will not filter the search result set. | 4559 /// Based on their content, search results could be removed from search |
| 4544 * - "strict" : YouTube will try to exclude all restricted content from the | 4560 /// results or demoted in search results. This is the default parameter |
| 4545 * search result set. Based on their content, search results could be removed | 4561 /// value. |
| 4546 * from search results or demoted in search results. | 4562 /// - "none" : YouTube will not filter the search result set. |
| 4547 * | 4563 /// - "strict" : YouTube will try to exclude all restricted content from the |
| 4548 * [topicId] - The topicId parameter indicates that the API response should | 4564 /// search result set. Based on their content, search results could be |
| 4549 * only contain resources associated with the specified topic. The value | 4565 /// removed from search results or demoted in search results. |
| 4550 * identifies a Freebase topic ID. | 4566 /// |
| 4551 * | 4567 /// [topicId] - The topicId parameter indicates that the API response should |
| 4552 * [type] - The type parameter restricts a search query to only retrieve a | 4568 /// only contain resources associated with the specified topic. The value |
| 4553 * particular type of resource. The value is a comma-separated list of | 4569 /// identifies a Freebase topic ID. |
| 4554 * resource types. | 4570 /// |
| 4555 * | 4571 /// [type] - The type parameter restricts a search query to only retrieve a |
| 4556 * [videoCaption] - The videoCaption parameter indicates whether the API | 4572 /// particular type of resource. The value is a comma-separated list of |
| 4557 * should filter video search results based on whether they have captions. If | 4573 /// resource types. |
| 4558 * you specify a value for this parameter, you must also set the type | 4574 /// |
| 4559 * parameter's value to video. | 4575 /// [videoCaption] - The videoCaption parameter indicates whether the API |
| 4560 * Possible string values are: | 4576 /// should filter video search results based on whether they have captions. |
| 4561 * - "any" : Do not filter results based on caption availability. | 4577 /// If you specify a value for this parameter, you must also set the type |
| 4562 * - "closedCaption" : Only include videos that have captions. | 4578 /// parameter's value to video. |
| 4563 * - "none" : Only include videos that do not have captions. | 4579 /// Possible string values are: |
| 4564 * | 4580 /// - "any" : Do not filter results based on caption availability. |
| 4565 * [videoCategoryId] - The videoCategoryId parameter filters video search | 4581 /// - "closedCaption" : Only include videos that have captions. |
| 4566 * results based on their category. If you specify a value for this parameter, | 4582 /// - "none" : Only include videos that do not have captions. |
| 4567 * you must also set the type parameter's value to video. | 4583 /// |
| 4568 * | 4584 /// [videoCategoryId] - The videoCategoryId parameter filters video search |
| 4569 * [videoDefinition] - The videoDefinition parameter lets you restrict a | 4585 /// results based on their category. If you specify a value for this |
| 4570 * search to only include either high definition (HD) or standard definition | 4586 /// parameter, you must also set the type parameter's value to video. |
| 4571 * (SD) videos. HD videos are available for playback in at least 720p, though | 4587 /// |
| 4572 * higher resolutions, like 1080p, might also be available. If you specify a | 4588 /// [videoDefinition] - The videoDefinition parameter lets you restrict a |
| 4573 * value for this parameter, you must also set the type parameter's value to | 4589 /// search to only include either high definition (HD) or standard definition |
| 4574 * video. | 4590 /// (SD) videos. HD videos are available for playback in at least 720p, |
| 4575 * Possible string values are: | 4591 /// though higher resolutions, like 1080p, might also be available. If you |
| 4576 * - "any" : Return all videos, regardless of their resolution. | 4592 /// specify a value for this parameter, you must also set the type |
| 4577 * - "high" : Only retrieve HD videos. | 4593 /// parameter's value to video. |
| 4578 * - "standard" : Only retrieve videos in standard definition. | 4594 /// Possible string values are: |
| 4579 * | 4595 /// - "any" : Return all videos, regardless of their resolution. |
| 4580 * [videoDimension] - The videoDimension parameter lets you restrict a search | 4596 /// - "high" : Only retrieve HD videos. |
| 4581 * to only retrieve 2D or 3D videos. If you specify a value for this | 4597 /// - "standard" : Only retrieve videos in standard definition. |
| 4582 * parameter, you must also set the type parameter's value to video. | 4598 /// |
| 4583 * Possible string values are: | 4599 /// [videoDimension] - The videoDimension parameter lets you restrict a |
| 4584 * - "2d" : Restrict search results to exclude 3D videos. | 4600 /// search to only retrieve 2D or 3D videos. If you specify a value for this |
| 4585 * - "3d" : Restrict search results to only include 3D videos. | 4601 /// parameter, you must also set the type parameter's value to video. |
| 4586 * - "any" : Include both 3D and non-3D videos in returned results. This is | 4602 /// Possible string values are: |
| 4587 * the default value. | 4603 /// - "2d" : Restrict search results to exclude 3D videos. |
| 4588 * | 4604 /// - "3d" : Restrict search results to only include 3D videos. |
| 4589 * [videoDuration] - The videoDuration parameter filters video search results | 4605 /// - "any" : Include both 3D and non-3D videos in returned results. This is |
| 4590 * based on their duration. If you specify a value for this parameter, you | 4606 /// the default value. |
| 4591 * must also set the type parameter's value to video. | 4607 /// |
| 4592 * Possible string values are: | 4608 /// [videoDuration] - The videoDuration parameter filters video search |
| 4593 * - "any" : Do not filter video search results based on their duration. This | 4609 /// results based on their duration. If you specify a value for this |
| 4594 * is the default value. | 4610 /// parameter, you must also set the type parameter's value to video. |
| 4595 * - "long" : Only include videos longer than 20 minutes. | 4611 /// Possible string values are: |
| 4596 * - "medium" : Only include videos that are between four and 20 minutes long | 4612 /// - "any" : Do not filter video search results based on their duration. |
| 4597 * (inclusive). | 4613 /// This is the default value. |
| 4598 * - "short" : Only include videos that are less than four minutes long. | 4614 /// - "long" : Only include videos longer than 20 minutes. |
| 4599 * | 4615 /// - "medium" : Only include videos that are between four and 20 minutes |
| 4600 * [videoEmbeddable] - The videoEmbeddable parameter lets you to restrict a | 4616 /// long (inclusive). |
| 4601 * search to only videos that can be embedded into a webpage. If you specify a | 4617 /// - "short" : Only include videos that are less than four minutes long. |
| 4602 * value for this parameter, you must also set the type parameter's value to | 4618 /// |
| 4603 * video. | 4619 /// [videoEmbeddable] - The videoEmbeddable parameter lets you to restrict a |
| 4604 * Possible string values are: | 4620 /// search to only videos that can be embedded into a webpage. If you specify |
| 4605 * - "any" : Return all videos, embeddable or not. | 4621 /// a value for this parameter, you must also set the type parameter's value |
| 4606 * - "true" : Only retrieve embeddable videos. | 4622 /// to video. |
| 4607 * | 4623 /// Possible string values are: |
| 4608 * [videoLicense] - The videoLicense parameter filters search results to only | 4624 /// - "any" : Return all videos, embeddable or not. |
| 4609 * include videos with a particular license. YouTube lets video uploaders | 4625 /// - "true" : Only retrieve embeddable videos. |
| 4610 * choose to attach either the Creative Commons license or the standard | 4626 /// |
| 4611 * YouTube license to each of their videos. If you specify a value for this | 4627 /// [videoLicense] - The videoLicense parameter filters search results to |
| 4612 * parameter, you must also set the type parameter's value to video. | 4628 /// only include videos with a particular license. YouTube lets video |
| 4613 * Possible string values are: | 4629 /// uploaders choose to attach either the Creative Commons license or the |
| 4614 * - "any" : Return all videos, regardless of which license they have, that | 4630 /// standard YouTube license to each of their videos. If you specify a value |
| 4615 * match the query parameters. | 4631 /// for this parameter, you must also set the type parameter's value to |
| 4616 * - "creativeCommon" : Only return videos that have a Creative Commons | 4632 /// video. |
| 4617 * license. Users can reuse videos with this license in other videos that they | 4633 /// Possible string values are: |
| 4618 * create. Learn more. | 4634 /// - "any" : Return all videos, regardless of which license they have, that |
| 4619 * - "youtube" : Only return videos that have the standard YouTube license. | 4635 /// match the query parameters. |
| 4620 * | 4636 /// - "creativeCommon" : Only return videos that have a Creative Commons |
| 4621 * [videoSyndicated] - The videoSyndicated parameter lets you to restrict a | 4637 /// license. Users can reuse videos with this license in other videos that |
| 4622 * search to only videos that can be played outside youtube.com. If you | 4638 /// they create. Learn more. |
| 4623 * specify a value for this parameter, you must also set the type parameter's | 4639 /// - "youtube" : Only return videos that have the standard YouTube license. |
| 4624 * value to video. | 4640 /// |
| 4625 * Possible string values are: | 4641 /// [videoSyndicated] - The videoSyndicated parameter lets you to restrict a |
| 4626 * - "any" : Return all videos, syndicated or not. | 4642 /// search to only videos that can be played outside youtube.com. If you |
| 4627 * - "true" : Only retrieve syndicated videos. | 4643 /// specify a value for this parameter, you must also set the type |
| 4628 * | 4644 /// parameter's value to video. |
| 4629 * [videoType] - The videoType parameter lets you restrict a search to a | 4645 /// Possible string values are: |
| 4630 * particular type of videos. If you specify a value for this parameter, you | 4646 /// - "any" : Return all videos, syndicated or not. |
| 4631 * must also set the type parameter's value to video. | 4647 /// - "true" : Only retrieve syndicated videos. |
| 4632 * Possible string values are: | 4648 /// |
| 4633 * - "any" : Return all videos. | 4649 /// [videoType] - The videoType parameter lets you restrict a search to a |
| 4634 * - "episode" : Only retrieve episodes of shows. | 4650 /// particular type of videos. If you specify a value for this parameter, you |
| 4635 * - "movie" : Only retrieve movies. | 4651 /// must also set the type parameter's value to video. |
| 4636 * | 4652 /// Possible string values are: |
| 4637 * Completes with a [SearchListResponse]. | 4653 /// - "any" : Return all videos. |
| 4638 * | 4654 /// - "episode" : Only retrieve episodes of shows. |
| 4639 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4655 /// - "movie" : Only retrieve movies. |
| 4640 * error. | 4656 /// |
| 4641 * | 4657 /// Completes with a [SearchListResponse]. |
| 4642 * If the used [http.Client] completes with an error when making a REST call, | 4658 /// |
| 4643 * this method will complete with the same error. | 4659 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 4644 */ | 4660 /// an error. |
| 4645 async.Future<SearchListResponse> list(core.String part, {core.String channelId
, core.String channelType, core.String eventType, core.bool forContentOwner, cor
e.bool forDeveloper, core.bool forMine, core.String location, core.String locati
onRadius, core.int maxResults, core.String onBehalfOfContentOwner, core.String o
rder, core.String pageToken, core.DateTime publishedAfter, core.DateTime publish
edBefore, core.String q, core.String regionCode, core.String relatedToVideoId, c
ore.String relevanceLanguage, core.String safeSearch, core.String topicId, core.
String type, core.String videoCaption, core.String videoCategoryId, core.String
videoDefinition, core.String videoDimension, core.String videoDuration, core.Str
ing videoEmbeddable, core.String videoLicense, core.String videoSyndicated, core
.String videoType}) { | 4661 /// |
| 4662 /// If the used [http.Client] completes with an error when making a REST |
| 4663 /// call, this method will complete with the same error. |
| 4664 async.Future<SearchListResponse> list(core.String part, |
| 4665 {core.String channelId, |
| 4666 core.String channelType, |
| 4667 core.String eventType, |
| 4668 core.bool forContentOwner, |
| 4669 core.bool forDeveloper, |
| 4670 core.bool forMine, |
| 4671 core.String location, |
| 4672 core.String locationRadius, |
| 4673 core.int maxResults, |
| 4674 core.String onBehalfOfContentOwner, |
| 4675 core.String order, |
| 4676 core.String pageToken, |
| 4677 core.DateTime publishedAfter, |
| 4678 core.DateTime publishedBefore, |
| 4679 core.String q, |
| 4680 core.String regionCode, |
| 4681 core.String relatedToVideoId, |
| 4682 core.String relevanceLanguage, |
| 4683 core.String safeSearch, |
| 4684 core.String topicId, |
| 4685 core.String type, |
| 4686 core.String videoCaption, |
| 4687 core.String videoCategoryId, |
| 4688 core.String videoDefinition, |
| 4689 core.String videoDimension, |
| 4690 core.String videoDuration, |
| 4691 core.String videoEmbeddable, |
| 4692 core.String videoLicense, |
| 4693 core.String videoSyndicated, |
| 4694 core.String videoType}) { |
| 4646 var _url = null; | 4695 var _url = null; |
| 4647 var _queryParams = new core.Map(); | 4696 var _queryParams = new core.Map(); |
| 4648 var _uploadMedia = null; | 4697 var _uploadMedia = null; |
| 4649 var _uploadOptions = null; | 4698 var _uploadOptions = null; |
| 4650 var _downloadOptions = commons.DownloadOptions.Metadata; | 4699 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4651 var _body = null; | 4700 var _body = null; |
| 4652 | 4701 |
| 4653 if (part == null) { | 4702 if (part == null) { |
| 4654 throw new core.ArgumentError("Parameter part is required."); | 4703 throw new core.ArgumentError("Parameter part is required."); |
| 4655 } | 4704 } |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4740 } | 4789 } |
| 4741 if (videoSyndicated != null) { | 4790 if (videoSyndicated != null) { |
| 4742 _queryParams["videoSyndicated"] = [videoSyndicated]; | 4791 _queryParams["videoSyndicated"] = [videoSyndicated]; |
| 4743 } | 4792 } |
| 4744 if (videoType != null) { | 4793 if (videoType != null) { |
| 4745 _queryParams["videoType"] = [videoType]; | 4794 _queryParams["videoType"] = [videoType]; |
| 4746 } | 4795 } |
| 4747 | 4796 |
| 4748 _url = 'search'; | 4797 _url = 'search'; |
| 4749 | 4798 |
| 4750 var _response = _requester.request(_url, | 4799 var _response = _requester.request(_url, "GET", |
| 4751 "GET", | 4800 body: _body, |
| 4752 body: _body, | 4801 queryParams: _queryParams, |
| 4753 queryParams: _queryParams, | 4802 uploadOptions: _uploadOptions, |
| 4754 uploadOptions: _uploadOptions, | 4803 uploadMedia: _uploadMedia, |
| 4755 uploadMedia: _uploadMedia, | 4804 downloadOptions: _downloadOptions); |
| 4756 downloadOptions: _downloadOptions); | |
| 4757 return _response.then((data) => new SearchListResponse.fromJson(data)); | 4805 return _response.then((data) => new SearchListResponse.fromJson(data)); |
| 4758 } | 4806 } |
| 4759 | |
| 4760 } | 4807 } |
| 4761 | 4808 |
| 4762 | |
| 4763 class SponsorsResourceApi { | 4809 class SponsorsResourceApi { |
| 4764 final commons.ApiRequester _requester; | 4810 final commons.ApiRequester _requester; |
| 4765 | 4811 |
| 4766 SponsorsResourceApi(commons.ApiRequester client) : | 4812 SponsorsResourceApi(commons.ApiRequester client) : _requester = client; |
| 4767 _requester = client; | |
| 4768 | 4813 |
| 4769 /** | 4814 /// Lists sponsors for a channel. |
| 4770 * Lists sponsors for a channel. | 4815 /// |
| 4771 * | 4816 /// Request parameters: |
| 4772 * Request parameters: | 4817 /// |
| 4773 * | 4818 /// [part] - The part parameter specifies the sponsor resource parts that the |
| 4774 * [part] - The part parameter specifies the sponsor resource parts that the | 4819 /// API response will include. Supported values are id and snippet. |
| 4775 * API response will include. Supported values are id and snippet. | 4820 /// |
| 4776 * | 4821 /// [filter] - The filter parameter specifies which channel sponsors to |
| 4777 * [filter] - The filter parameter specifies which channel sponsors to return. | 4822 /// return. |
| 4778 * Possible string values are: | 4823 /// Possible string values are: |
| 4779 * - "all" : Return all sponsors, from newest to oldest. | 4824 /// - "all" : Return all sponsors, from newest to oldest. |
| 4780 * - "newest" : Return the most recent sponsors, from newest to oldest. | 4825 /// - "newest" : Return the most recent sponsors, from newest to oldest. |
| 4781 * | 4826 /// |
| 4782 * [maxResults] - The maxResults parameter specifies the maximum number of | 4827 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 4783 * items that should be returned in the result set. | 4828 /// items that should be returned in the result set. |
| 4784 * Value must be between "0" and "50". | 4829 /// Value must be between "0" and "50". |
| 4785 * | 4830 /// |
| 4786 * [pageToken] - The pageToken parameter identifies a specific page in the | 4831 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 4787 * result set that should be returned. In an API response, the nextPageToken | 4832 /// result set that should be returned. In an API response, the nextPageToken |
| 4788 * and prevPageToken properties identify other pages that could be retrieved. | 4833 /// and prevPageToken properties identify other pages that could be |
| 4789 * | 4834 /// retrieved. |
| 4790 * Completes with a [SponsorListResponse]. | 4835 /// |
| 4791 * | 4836 /// Completes with a [SponsorListResponse]. |
| 4792 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4837 /// |
| 4793 * error. | 4838 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 4794 * | 4839 /// an error. |
| 4795 * If the used [http.Client] completes with an error when making a REST call, | 4840 /// |
| 4796 * this method will complete with the same error. | 4841 /// If the used [http.Client] completes with an error when making a REST |
| 4797 */ | 4842 /// call, this method will complete with the same error. |
| 4798 async.Future<SponsorListResponse> list(core.String part, {core.String filter,
core.int maxResults, core.String pageToken}) { | 4843 async.Future<SponsorListResponse> list(core.String part, |
| 4844 {core.String filter, core.int maxResults, core.String pageToken}) { |
| 4799 var _url = null; | 4845 var _url = null; |
| 4800 var _queryParams = new core.Map(); | 4846 var _queryParams = new core.Map(); |
| 4801 var _uploadMedia = null; | 4847 var _uploadMedia = null; |
| 4802 var _uploadOptions = null; | 4848 var _uploadOptions = null; |
| 4803 var _downloadOptions = commons.DownloadOptions.Metadata; | 4849 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4804 var _body = null; | 4850 var _body = null; |
| 4805 | 4851 |
| 4806 if (part == null) { | 4852 if (part == null) { |
| 4807 throw new core.ArgumentError("Parameter part is required."); | 4853 throw new core.ArgumentError("Parameter part is required."); |
| 4808 } | 4854 } |
| 4809 _queryParams["part"] = [part]; | 4855 _queryParams["part"] = [part]; |
| 4810 if (filter != null) { | 4856 if (filter != null) { |
| 4811 _queryParams["filter"] = [filter]; | 4857 _queryParams["filter"] = [filter]; |
| 4812 } | 4858 } |
| 4813 if (maxResults != null) { | 4859 if (maxResults != null) { |
| 4814 _queryParams["maxResults"] = ["${maxResults}"]; | 4860 _queryParams["maxResults"] = ["${maxResults}"]; |
| 4815 } | 4861 } |
| 4816 if (pageToken != null) { | 4862 if (pageToken != null) { |
| 4817 _queryParams["pageToken"] = [pageToken]; | 4863 _queryParams["pageToken"] = [pageToken]; |
| 4818 } | 4864 } |
| 4819 | 4865 |
| 4820 _url = 'sponsors'; | 4866 _url = 'sponsors'; |
| 4821 | 4867 |
| 4822 var _response = _requester.request(_url, | 4868 var _response = _requester.request(_url, "GET", |
| 4823 "GET", | 4869 body: _body, |
| 4824 body: _body, | 4870 queryParams: _queryParams, |
| 4825 queryParams: _queryParams, | 4871 uploadOptions: _uploadOptions, |
| 4826 uploadOptions: _uploadOptions, | 4872 uploadMedia: _uploadMedia, |
| 4827 uploadMedia: _uploadMedia, | 4873 downloadOptions: _downloadOptions); |
| 4828 downloadOptions: _downloadOptions); | |
| 4829 return _response.then((data) => new SponsorListResponse.fromJson(data)); | 4874 return _response.then((data) => new SponsorListResponse.fromJson(data)); |
| 4830 } | 4875 } |
| 4831 | |
| 4832 } | 4876 } |
| 4833 | 4877 |
| 4834 | |
| 4835 class SubscriptionsResourceApi { | 4878 class SubscriptionsResourceApi { |
| 4836 final commons.ApiRequester _requester; | 4879 final commons.ApiRequester _requester; |
| 4837 | 4880 |
| 4838 SubscriptionsResourceApi(commons.ApiRequester client) : | 4881 SubscriptionsResourceApi(commons.ApiRequester client) : _requester = client; |
| 4839 _requester = client; | |
| 4840 | 4882 |
| 4841 /** | 4883 /// Deletes a subscription. |
| 4842 * Deletes a subscription. | 4884 /// |
| 4843 * | 4885 /// Request parameters: |
| 4844 * Request parameters: | 4886 /// |
| 4845 * | 4887 /// [id] - The id parameter specifies the YouTube subscription ID for the |
| 4846 * [id] - The id parameter specifies the YouTube subscription ID for the | 4888 /// resource that is being deleted. In a subscription resource, the id |
| 4847 * resource that is being deleted. In a subscription resource, the id property | 4889 /// property specifies the YouTube subscription ID. |
| 4848 * specifies the YouTube subscription ID. | 4890 /// |
| 4849 * | 4891 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 4850 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4892 /// an error. |
| 4851 * error. | 4893 /// |
| 4852 * | 4894 /// If the used [http.Client] completes with an error when making a REST |
| 4853 * If the used [http.Client] completes with an error when making a REST call, | 4895 /// call, this method will complete with the same error. |
| 4854 * this method will complete with the same error. | |
| 4855 */ | |
| 4856 async.Future delete(core.String id) { | 4896 async.Future delete(core.String id) { |
| 4857 var _url = null; | 4897 var _url = null; |
| 4858 var _queryParams = new core.Map(); | 4898 var _queryParams = new core.Map(); |
| 4859 var _uploadMedia = null; | 4899 var _uploadMedia = null; |
| 4860 var _uploadOptions = null; | 4900 var _uploadOptions = null; |
| 4861 var _downloadOptions = commons.DownloadOptions.Metadata; | 4901 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4862 var _body = null; | 4902 var _body = null; |
| 4863 | 4903 |
| 4864 if (id == null) { | 4904 if (id == null) { |
| 4865 throw new core.ArgumentError("Parameter id is required."); | 4905 throw new core.ArgumentError("Parameter id is required."); |
| 4866 } | 4906 } |
| 4867 _queryParams["id"] = [id]; | 4907 _queryParams["id"] = [id]; |
| 4868 | 4908 |
| 4869 _downloadOptions = null; | 4909 _downloadOptions = null; |
| 4870 | 4910 |
| 4871 _url = 'subscriptions'; | 4911 _url = 'subscriptions'; |
| 4872 | 4912 |
| 4873 var _response = _requester.request(_url, | 4913 var _response = _requester.request(_url, "DELETE", |
| 4874 "DELETE", | 4914 body: _body, |
| 4875 body: _body, | 4915 queryParams: _queryParams, |
| 4876 queryParams: _queryParams, | 4916 uploadOptions: _uploadOptions, |
| 4877 uploadOptions: _uploadOptions, | 4917 uploadMedia: _uploadMedia, |
| 4878 uploadMedia: _uploadMedia, | 4918 downloadOptions: _downloadOptions); |
| 4879 downloadOptions: _downloadOptions); | |
| 4880 return _response.then((data) => null); | 4919 return _response.then((data) => null); |
| 4881 } | 4920 } |
| 4882 | 4921 |
| 4883 /** | 4922 /// Adds a subscription for the authenticated user's channel. |
| 4884 * Adds a subscription for the authenticated user's channel. | 4923 /// |
| 4885 * | 4924 /// [request] - The metadata request object. |
| 4886 * [request] - The metadata request object. | 4925 /// |
| 4887 * | 4926 /// Request parameters: |
| 4888 * Request parameters: | 4927 /// |
| 4889 * | 4928 /// [part] - The part parameter serves two purposes in this operation. It |
| 4890 * [part] - The part parameter serves two purposes in this operation. It | 4929 /// identifies the properties that the write operation will set as well as |
| 4891 * identifies the properties that the write operation will set as well as the | 4930 /// the properties that the API response will include. |
| 4892 * properties that the API response will include. | 4931 /// |
| 4893 * | 4932 /// Completes with a [Subscription]. |
| 4894 * Completes with a [Subscription]. | 4933 /// |
| 4895 * | 4934 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 4896 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4935 /// an error. |
| 4897 * error. | 4936 /// |
| 4898 * | 4937 /// If the used [http.Client] completes with an error when making a REST |
| 4899 * If the used [http.Client] completes with an error when making a REST call, | 4938 /// call, this method will complete with the same error. |
| 4900 * this method will complete with the same error. | |
| 4901 */ | |
| 4902 async.Future<Subscription> insert(Subscription request, core.String part) { | 4939 async.Future<Subscription> insert(Subscription request, core.String part) { |
| 4903 var _url = null; | 4940 var _url = null; |
| 4904 var _queryParams = new core.Map(); | 4941 var _queryParams = new core.Map(); |
| 4905 var _uploadMedia = null; | 4942 var _uploadMedia = null; |
| 4906 var _uploadOptions = null; | 4943 var _uploadOptions = null; |
| 4907 var _downloadOptions = commons.DownloadOptions.Metadata; | 4944 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 4908 var _body = null; | 4945 var _body = null; |
| 4909 | 4946 |
| 4910 if (request != null) { | 4947 if (request != null) { |
| 4911 _body = convert.JSON.encode((request).toJson()); | 4948 _body = convert.JSON.encode((request).toJson()); |
| 4912 } | 4949 } |
| 4913 if (part == null) { | 4950 if (part == null) { |
| 4914 throw new core.ArgumentError("Parameter part is required."); | 4951 throw new core.ArgumentError("Parameter part is required."); |
| 4915 } | 4952 } |
| 4916 _queryParams["part"] = [part]; | 4953 _queryParams["part"] = [part]; |
| 4917 | 4954 |
| 4918 _url = 'subscriptions'; | 4955 _url = 'subscriptions'; |
| 4919 | 4956 |
| 4920 var _response = _requester.request(_url, | 4957 var _response = _requester.request(_url, "POST", |
| 4921 "POST", | 4958 body: _body, |
| 4922 body: _body, | 4959 queryParams: _queryParams, |
| 4923 queryParams: _queryParams, | 4960 uploadOptions: _uploadOptions, |
| 4924 uploadOptions: _uploadOptions, | 4961 uploadMedia: _uploadMedia, |
| 4925 uploadMedia: _uploadMedia, | 4962 downloadOptions: _downloadOptions); |
| 4926 downloadOptions: _downloadOptions); | |
| 4927 return _response.then((data) => new Subscription.fromJson(data)); | 4963 return _response.then((data) => new Subscription.fromJson(data)); |
| 4928 } | 4964 } |
| 4929 | 4965 |
| 4930 /** | 4966 /// Returns subscription resources that match the API request criteria. |
| 4931 * Returns subscription resources that match the API request criteria. | 4967 /// |
| 4932 * | 4968 /// Request parameters: |
| 4933 * Request parameters: | 4969 /// |
| 4934 * | 4970 /// [part] - The part parameter specifies a comma-separated list of one or |
| 4935 * [part] - The part parameter specifies a comma-separated list of one or more | 4971 /// more subscription resource properties that the API response will include. |
| 4936 * subscription resource properties that the API response will include. | 4972 /// |
| 4937 * | 4973 /// If the parameter identifies a property that contains child properties, |
| 4938 * If the parameter identifies a property that contains child properties, the | 4974 /// the child properties will be included in the response. For example, in a |
| 4939 * child properties will be included in the response. For example, in a | 4975 /// subscription resource, the snippet property contains other properties, |
| 4940 * subscription resource, the snippet property contains other properties, such | 4976 /// such as a display title for the subscription. If you set part=snippet, |
| 4941 * as a display title for the subscription. If you set part=snippet, the API | 4977 /// the API response will also contain all of those nested properties. |
| 4942 * response will also contain all of those nested properties. | 4978 /// |
| 4943 * | 4979 /// [channelId] - The channelId parameter specifies a YouTube channel ID. The |
| 4944 * [channelId] - The channelId parameter specifies a YouTube channel ID. The | 4980 /// API will only return that channel's subscriptions. |
| 4945 * API will only return that channel's subscriptions. | 4981 /// |
| 4946 * | 4982 /// [forChannelId] - The forChannelId parameter specifies a comma-separated |
| 4947 * [forChannelId] - The forChannelId parameter specifies a comma-separated | 4983 /// list of channel IDs. The API response will then only contain |
| 4948 * list of channel IDs. The API response will then only contain subscriptions | 4984 /// subscriptions matching those channels. |
| 4949 * matching those channels. | 4985 /// |
| 4950 * | 4986 /// [id] - The id parameter specifies a comma-separated list of the YouTube |
| 4951 * [id] - The id parameter specifies a comma-separated list of the YouTube | 4987 /// subscription ID(s) for the resource(s) that are being retrieved. In a |
| 4952 * subscription ID(s) for the resource(s) that are being retrieved. In a | 4988 /// subscription resource, the id property specifies the YouTube subscription |
| 4953 * subscription resource, the id property specifies the YouTube subscription | 4989 /// ID. |
| 4954 * ID. | 4990 /// |
| 4955 * | 4991 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 4956 * [maxResults] - The maxResults parameter specifies the maximum number of | 4992 /// items that should be returned in the result set. |
| 4957 * items that should be returned in the result set. | 4993 /// Value must be between "0" and "50". |
| 4958 * Value must be between "0" and "50". | 4994 /// |
| 4959 * | 4995 /// [mine] - Set this parameter's value to true to retrieve a feed of the |
| 4960 * [mine] - Set this parameter's value to true to retrieve a feed of the | 4996 /// authenticated user's subscriptions. |
| 4961 * authenticated user's subscriptions. | 4997 /// |
| 4962 * | 4998 /// [myRecentSubscribers] - Set this parameter's value to true to retrieve a |
| 4963 * [myRecentSubscribers] - Set this parameter's value to true to retrieve a | 4999 /// feed of the subscribers of the authenticated user in reverse |
| 4964 * feed of the subscribers of the authenticated user in reverse chronological | 5000 /// chronological order (newest first). |
| 4965 * order (newest first). | 5001 /// |
| 4966 * | 5002 /// [mySubscribers] - Set this parameter's value to true to retrieve a feed |
| 4967 * [mySubscribers] - Set this parameter's value to true to retrieve a feed of | 5003 /// of the subscribers of the authenticated user in no particular order. |
| 4968 * the subscribers of the authenticated user in no particular order. | 5004 /// |
| 4969 * | 5005 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 4970 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5006 /// for YouTube content partners. |
| 4971 * YouTube content partners. | 5007 /// |
| 4972 * | 5008 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 4973 * The onBehalfOfContentOwner parameter indicates that the request's | 5009 /// authorization credentials identify a YouTube CMS user who is acting on |
| 4974 * authorization credentials identify a YouTube CMS user who is acting on | 5010 /// behalf of the content owner specified in the parameter value. This |
| 4975 * behalf of the content owner specified in the parameter value. This | 5011 /// parameter is intended for YouTube content partners that own and manage |
| 4976 * parameter is intended for YouTube content partners that own and manage many | 5012 /// many different YouTube channels. It allows content owners to authenticate |
| 4977 * different YouTube channels. It allows content owners to authenticate once | 5013 /// once and get access to all their video and channel data, without having |
| 4978 * and get access to all their video and channel data, without having to | 5014 /// to provide authentication credentials for each individual channel. The |
| 4979 * provide authentication credentials for each individual channel. The CMS | 5015 /// CMS account that the user authenticates with must be linked to the |
| 4980 * account that the user authenticates with must be linked to the specified | 5016 /// specified YouTube content owner. |
| 4981 * YouTube content owner. | 5017 /// |
| 4982 * | 5018 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 4983 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 5019 /// properly authorized request. Note: This parameter is intended exclusively |
| 4984 * properly authorized request. Note: This parameter is intended exclusively | 5020 /// for YouTube content partners. |
| 4985 * for YouTube content partners. | 5021 /// |
| 4986 * | 5022 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 4987 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 5023 /// ID of the channel to which a video is being added. This parameter is |
| 4988 * ID of the channel to which a video is being added. This parameter is | 5024 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 4989 * required when a request specifies a value for the onBehalfOfContentOwner | 5025 /// parameter, and it can only be used in conjunction with that parameter. In |
| 4990 * parameter, and it can only be used in conjunction with that parameter. In | 5026 /// addition, the request must be authorized using a CMS account that is |
| 4991 * addition, the request must be authorized using a CMS account that is linked | 5027 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 4992 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 5028 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 4993 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 5029 /// parameter value specifies must be linked to the content owner that the |
| 4994 * specifies must be linked to the content owner that the | 5030 /// onBehalfOfContentOwner parameter specifies. |
| 4995 * onBehalfOfContentOwner parameter specifies. | 5031 /// |
| 4996 * | 5032 /// This parameter is intended for YouTube content partners that own and |
| 4997 * This parameter is intended for YouTube content partners that own and manage | 5033 /// manage many different YouTube channels. It allows content owners to |
| 4998 * many different YouTube channels. It allows content owners to authenticate | 5034 /// authenticate once and perform actions on behalf of the channel specified |
| 4999 * once and perform actions on behalf of the channel specified in the | 5035 /// in the parameter value, without having to provide authentication |
| 5000 * parameter value, without having to provide authentication credentials for | 5036 /// credentials for each separate channel. |
| 5001 * each separate channel. | 5037 /// |
| 5002 * | 5038 /// [order] - The order parameter specifies the method that will be used to |
| 5003 * [order] - The order parameter specifies the method that will be used to | 5039 /// sort resources in the API response. |
| 5004 * sort resources in the API response. | 5040 /// Possible string values are: |
| 5005 * Possible string values are: | 5041 /// - "alphabetical" : Sort alphabetically. |
| 5006 * - "alphabetical" : Sort alphabetically. | 5042 /// - "relevance" : Sort by relevance. |
| 5007 * - "relevance" : Sort by relevance. | 5043 /// - "unread" : Sort by order of activity. |
| 5008 * - "unread" : Sort by order of activity. | 5044 /// |
| 5009 * | 5045 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 5010 * [pageToken] - The pageToken parameter identifies a specific page in the | 5046 /// result set that should be returned. In an API response, the nextPageToken |
| 5011 * result set that should be returned. In an API response, the nextPageToken | 5047 /// and prevPageToken properties identify other pages that could be |
| 5012 * and prevPageToken properties identify other pages that could be retrieved. | 5048 /// retrieved. |
| 5013 * | 5049 /// |
| 5014 * Completes with a [SubscriptionListResponse]. | 5050 /// Completes with a [SubscriptionListResponse]. |
| 5015 * | 5051 /// |
| 5016 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5052 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5017 * error. | 5053 /// an error. |
| 5018 * | 5054 /// |
| 5019 * If the used [http.Client] completes with an error when making a REST call, | 5055 /// If the used [http.Client] completes with an error when making a REST |
| 5020 * this method will complete with the same error. | 5056 /// call, this method will complete with the same error. |
| 5021 */ | 5057 async.Future<SubscriptionListResponse> list(core.String part, |
| 5022 async.Future<SubscriptionListResponse> list(core.String part, {core.String cha
nnelId, core.String forChannelId, core.String id, core.int maxResults, core.bool
mine, core.bool myRecentSubscribers, core.bool mySubscribers, core.String onBeh
alfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.String order,
core.String pageToken}) { | 5058 {core.String channelId, |
| 5059 core.String forChannelId, |
| 5060 core.String id, |
| 5061 core.int maxResults, |
| 5062 core.bool mine, |
| 5063 core.bool myRecentSubscribers, |
| 5064 core.bool mySubscribers, |
| 5065 core.String onBehalfOfContentOwner, |
| 5066 core.String onBehalfOfContentOwnerChannel, |
| 5067 core.String order, |
| 5068 core.String pageToken}) { |
| 5023 var _url = null; | 5069 var _url = null; |
| 5024 var _queryParams = new core.Map(); | 5070 var _queryParams = new core.Map(); |
| 5025 var _uploadMedia = null; | 5071 var _uploadMedia = null; |
| 5026 var _uploadOptions = null; | 5072 var _uploadOptions = null; |
| 5027 var _downloadOptions = commons.DownloadOptions.Metadata; | 5073 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5028 var _body = null; | 5074 var _body = null; |
| 5029 | 5075 |
| 5030 if (part == null) { | 5076 if (part == null) { |
| 5031 throw new core.ArgumentError("Parameter part is required."); | 5077 throw new core.ArgumentError("Parameter part is required."); |
| 5032 } | 5078 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 5049 if (myRecentSubscribers != null) { | 5095 if (myRecentSubscribers != null) { |
| 5050 _queryParams["myRecentSubscribers"] = ["${myRecentSubscribers}"]; | 5096 _queryParams["myRecentSubscribers"] = ["${myRecentSubscribers}"]; |
| 5051 } | 5097 } |
| 5052 if (mySubscribers != null) { | 5098 if (mySubscribers != null) { |
| 5053 _queryParams["mySubscribers"] = ["${mySubscribers}"]; | 5099 _queryParams["mySubscribers"] = ["${mySubscribers}"]; |
| 5054 } | 5100 } |
| 5055 if (onBehalfOfContentOwner != null) { | 5101 if (onBehalfOfContentOwner != null) { |
| 5056 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5102 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 5057 } | 5103 } |
| 5058 if (onBehalfOfContentOwnerChannel != null) { | 5104 if (onBehalfOfContentOwnerChannel != null) { |
| 5059 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 5105 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 5106 onBehalfOfContentOwnerChannel |
| 5107 ]; |
| 5060 } | 5108 } |
| 5061 if (order != null) { | 5109 if (order != null) { |
| 5062 _queryParams["order"] = [order]; | 5110 _queryParams["order"] = [order]; |
| 5063 } | 5111 } |
| 5064 if (pageToken != null) { | 5112 if (pageToken != null) { |
| 5065 _queryParams["pageToken"] = [pageToken]; | 5113 _queryParams["pageToken"] = [pageToken]; |
| 5066 } | 5114 } |
| 5067 | 5115 |
| 5068 _url = 'subscriptions'; | 5116 _url = 'subscriptions'; |
| 5069 | 5117 |
| 5070 var _response = _requester.request(_url, | 5118 var _response = _requester.request(_url, "GET", |
| 5071 "GET", | 5119 body: _body, |
| 5072 body: _body, | 5120 queryParams: _queryParams, |
| 5073 queryParams: _queryParams, | 5121 uploadOptions: _uploadOptions, |
| 5074 uploadOptions: _uploadOptions, | 5122 uploadMedia: _uploadMedia, |
| 5075 uploadMedia: _uploadMedia, | 5123 downloadOptions: _downloadOptions); |
| 5076 downloadOptions: _downloadOptions); | 5124 return _response |
| 5077 return _response.then((data) => new SubscriptionListResponse.fromJson(data))
; | 5125 .then((data) => new SubscriptionListResponse.fromJson(data)); |
| 5078 } | 5126 } |
| 5079 | |
| 5080 } | 5127 } |
| 5081 | 5128 |
| 5082 | |
| 5083 class SuperChatEventsResourceApi { | 5129 class SuperChatEventsResourceApi { |
| 5084 final commons.ApiRequester _requester; | 5130 final commons.ApiRequester _requester; |
| 5085 | 5131 |
| 5086 SuperChatEventsResourceApi(commons.ApiRequester client) : | 5132 SuperChatEventsResourceApi(commons.ApiRequester client) : _requester = client; |
| 5087 _requester = client; | |
| 5088 | 5133 |
| 5089 /** | 5134 /// Lists Super Chat events for a channel. |
| 5090 * Lists Super Chat events for a channel. | 5135 /// |
| 5091 * | 5136 /// Request parameters: |
| 5092 * Request parameters: | 5137 /// |
| 5093 * | 5138 /// [part] - The part parameter specifies the superChatEvent resource parts |
| 5094 * [part] - The part parameter specifies the superChatEvent resource parts | 5139 /// that the API response will include. Supported values are id and snippet. |
| 5095 * that the API response will include. Supported values are id and snippet. | 5140 /// |
| 5096 * | 5141 /// [hl] - The hl parameter instructs the API to retrieve localized resource |
| 5097 * [hl] - The hl parameter instructs the API to retrieve localized resource | 5142 /// metadata for a specific application language that the YouTube website |
| 5098 * metadata for a specific application language that the YouTube website | 5143 /// supports. The parameter value must be a language code included in the |
| 5099 * supports. The parameter value must be a language code included in the list | 5144 /// list returned by the i18nLanguages.list method. |
| 5100 * returned by the i18nLanguages.list method. | 5145 /// |
| 5101 * | 5146 /// If localized resource details are available in that language, the |
| 5102 * If localized resource details are available in that language, the | 5147 /// resource's snippet.localized object will contain the localized values. |
| 5103 * resource's snippet.localized object will contain the localized values. | 5148 /// However, if localized details are not available, the snippet.localized |
| 5104 * However, if localized details are not available, the snippet.localized | 5149 /// object will contain resource details in the resource's default language. |
| 5105 * object will contain resource details in the resource's default language. | 5150 /// |
| 5106 * | 5151 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 5107 * [maxResults] - The maxResults parameter specifies the maximum number of | 5152 /// items that should be returned in the result set. |
| 5108 * items that should be returned in the result set. | 5153 /// Value must be between "0" and "50". |
| 5109 * Value must be between "0" and "50". | 5154 /// |
| 5110 * | 5155 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 5111 * [pageToken] - The pageToken parameter identifies a specific page in the | 5156 /// result set that should be returned. In an API response, the nextPageToken |
| 5112 * result set that should be returned. In an API response, the nextPageToken | 5157 /// and prevPageToken properties identify other pages that could be |
| 5113 * and prevPageToken properties identify other pages that could be retrieved. | 5158 /// retrieved. |
| 5114 * | 5159 /// |
| 5115 * Completes with a [SuperChatEventListResponse]. | 5160 /// Completes with a [SuperChatEventListResponse]. |
| 5116 * | 5161 /// |
| 5117 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5162 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5118 * error. | 5163 /// an error. |
| 5119 * | 5164 /// |
| 5120 * If the used [http.Client] completes with an error when making a REST call, | 5165 /// If the used [http.Client] completes with an error when making a REST |
| 5121 * this method will complete with the same error. | 5166 /// call, this method will complete with the same error. |
| 5122 */ | 5167 async.Future<SuperChatEventListResponse> list(core.String part, |
| 5123 async.Future<SuperChatEventListResponse> list(core.String part, {core.String h
l, core.int maxResults, core.String pageToken}) { | 5168 {core.String hl, core.int maxResults, core.String pageToken}) { |
| 5124 var _url = null; | 5169 var _url = null; |
| 5125 var _queryParams = new core.Map(); | 5170 var _queryParams = new core.Map(); |
| 5126 var _uploadMedia = null; | 5171 var _uploadMedia = null; |
| 5127 var _uploadOptions = null; | 5172 var _uploadOptions = null; |
| 5128 var _downloadOptions = commons.DownloadOptions.Metadata; | 5173 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5129 var _body = null; | 5174 var _body = null; |
| 5130 | 5175 |
| 5131 if (part == null) { | 5176 if (part == null) { |
| 5132 throw new core.ArgumentError("Parameter part is required."); | 5177 throw new core.ArgumentError("Parameter part is required."); |
| 5133 } | 5178 } |
| 5134 _queryParams["part"] = [part]; | 5179 _queryParams["part"] = [part]; |
| 5135 if (hl != null) { | 5180 if (hl != null) { |
| 5136 _queryParams["hl"] = [hl]; | 5181 _queryParams["hl"] = [hl]; |
| 5137 } | 5182 } |
| 5138 if (maxResults != null) { | 5183 if (maxResults != null) { |
| 5139 _queryParams["maxResults"] = ["${maxResults}"]; | 5184 _queryParams["maxResults"] = ["${maxResults}"]; |
| 5140 } | 5185 } |
| 5141 if (pageToken != null) { | 5186 if (pageToken != null) { |
| 5142 _queryParams["pageToken"] = [pageToken]; | 5187 _queryParams["pageToken"] = [pageToken]; |
| 5143 } | 5188 } |
| 5144 | 5189 |
| 5145 _url = 'superChatEvents'; | 5190 _url = 'superChatEvents'; |
| 5146 | 5191 |
| 5147 var _response = _requester.request(_url, | 5192 var _response = _requester.request(_url, "GET", |
| 5148 "GET", | 5193 body: _body, |
| 5149 body: _body, | 5194 queryParams: _queryParams, |
| 5150 queryParams: _queryParams, | 5195 uploadOptions: _uploadOptions, |
| 5151 uploadOptions: _uploadOptions, | 5196 uploadMedia: _uploadMedia, |
| 5152 uploadMedia: _uploadMedia, | 5197 downloadOptions: _downloadOptions); |
| 5153 downloadOptions: _downloadOptions); | 5198 return _response |
| 5154 return _response.then((data) => new SuperChatEventListResponse.fromJson(data
)); | 5199 .then((data) => new SuperChatEventListResponse.fromJson(data)); |
| 5155 } | 5200 } |
| 5156 | |
| 5157 } | 5201 } |
| 5158 | 5202 |
| 5159 | |
| 5160 class ThumbnailsResourceApi { | 5203 class ThumbnailsResourceApi { |
| 5161 final commons.ApiRequester _requester; | 5204 final commons.ApiRequester _requester; |
| 5162 | 5205 |
| 5163 ThumbnailsResourceApi(commons.ApiRequester client) : | 5206 ThumbnailsResourceApi(commons.ApiRequester client) : _requester = client; |
| 5164 _requester = client; | |
| 5165 | 5207 |
| 5166 /** | 5208 /// Uploads a custom video thumbnail to YouTube and sets it for a video. |
| 5167 * Uploads a custom video thumbnail to YouTube and sets it for a video. | 5209 /// |
| 5168 * | 5210 /// Request parameters: |
| 5169 * Request parameters: | 5211 /// |
| 5170 * | 5212 /// [videoId] - The videoId parameter specifies a YouTube video ID for which |
| 5171 * [videoId] - The videoId parameter specifies a YouTube video ID for which | 5213 /// the custom video thumbnail is being provided. |
| 5172 * the custom video thumbnail is being provided. | 5214 /// |
| 5173 * | 5215 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 5174 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5216 /// for YouTube content partners. |
| 5175 * YouTube content partners. | 5217 /// |
| 5176 * | 5218 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 5177 * The onBehalfOfContentOwner parameter indicates that the request's | 5219 /// authorization credentials identify a YouTube CMS user who is acting on |
| 5178 * authorization credentials identify a YouTube CMS user who is acting on | 5220 /// behalf of the content owner specified in the parameter value. This |
| 5179 * behalf of the content owner specified in the parameter value. This | 5221 /// parameter is intended for YouTube content partners that own and manage |
| 5180 * parameter is intended for YouTube content partners that own and manage many | 5222 /// many different YouTube channels. It allows content owners to authenticate |
| 5181 * different YouTube channels. It allows content owners to authenticate once | 5223 /// once and get access to all their video and channel data, without having |
| 5182 * and get access to all their video and channel data, without having to | 5224 /// to provide authentication credentials for each individual channel. The |
| 5183 * provide authentication credentials for each individual channel. The actual | 5225 /// actual CMS account that the user authenticates with must be linked to the |
| 5184 * CMS account that the user authenticates with must be linked to the | 5226 /// specified YouTube content owner. |
| 5185 * specified YouTube content owner. | 5227 /// |
| 5186 * | 5228 /// [uploadMedia] - The media to upload. |
| 5187 * [uploadMedia] - The media to upload. | 5229 /// |
| 5188 * | 5230 /// [uploadOptions] - Options for the media upload. Streaming Media without |
| 5189 * [uploadOptions] - Options for the media upload. Streaming Media without the | 5231 /// the length being known ahead of time is only supported via resumable |
| 5190 * length being known ahead of time is only supported via resumable uploads. | 5232 /// uploads. |
| 5191 * | 5233 /// |
| 5192 * Completes with a [ThumbnailSetResponse]. | 5234 /// Completes with a [ThumbnailSetResponse]. |
| 5193 * | 5235 /// |
| 5194 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5236 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5195 * error. | 5237 /// an error. |
| 5196 * | 5238 /// |
| 5197 * If the used [http.Client] completes with an error when making a REST call, | 5239 /// If the used [http.Client] completes with an error when making a REST |
| 5198 * this method will complete with the same error. | 5240 /// call, this method will complete with the same error. |
| 5199 */ | 5241 async.Future<ThumbnailSetResponse> set(core.String videoId, |
| 5200 async.Future<ThumbnailSetResponse> set(core.String videoId, {core.String onBeh
alfOfContentOwner, commons.UploadOptions uploadOptions : commons.UploadOptions.D
efault, commons.Media uploadMedia}) { | 5242 {core.String onBehalfOfContentOwner, |
| 5243 commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 5244 commons.Media uploadMedia}) { |
| 5201 var _url = null; | 5245 var _url = null; |
| 5202 var _queryParams = new core.Map(); | 5246 var _queryParams = new core.Map(); |
| 5203 var _uploadMedia = null; | 5247 var _uploadMedia = null; |
| 5204 var _uploadOptions = null; | 5248 var _uploadOptions = null; |
| 5205 var _downloadOptions = commons.DownloadOptions.Metadata; | 5249 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5206 var _body = null; | 5250 var _body = null; |
| 5207 | 5251 |
| 5208 if (videoId == null) { | 5252 if (videoId == null) { |
| 5209 throw new core.ArgumentError("Parameter videoId is required."); | 5253 throw new core.ArgumentError("Parameter videoId is required."); |
| 5210 } | 5254 } |
| 5211 _queryParams["videoId"] = [videoId]; | 5255 _queryParams["videoId"] = [videoId]; |
| 5212 if (onBehalfOfContentOwner != null) { | 5256 if (onBehalfOfContentOwner != null) { |
| 5213 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5257 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 5214 } | 5258 } |
| 5215 | 5259 |
| 5216 _uploadMedia = uploadMedia; | 5260 _uploadMedia = uploadMedia; |
| 5217 _uploadOptions = uploadOptions; | 5261 _uploadOptions = uploadOptions; |
| 5218 | 5262 |
| 5219 if (_uploadMedia == null) { | 5263 if (_uploadMedia == null) { |
| 5220 _url = 'thumbnails/set'; | 5264 _url = 'thumbnails/set'; |
| 5221 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 5265 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 5222 _url = '/resumable/upload/youtube/v3/thumbnails/set'; | 5266 _url = '/resumable/upload/youtube/v3/thumbnails/set'; |
| 5223 } else { | 5267 } else { |
| 5224 _url = '/upload/youtube/v3/thumbnails/set'; | 5268 _url = '/upload/youtube/v3/thumbnails/set'; |
| 5225 } | 5269 } |
| 5226 | 5270 |
| 5227 | 5271 var _response = _requester.request(_url, "POST", |
| 5228 var _response = _requester.request(_url, | 5272 body: _body, |
| 5229 "POST", | 5273 queryParams: _queryParams, |
| 5230 body: _body, | 5274 uploadOptions: _uploadOptions, |
| 5231 queryParams: _queryParams, | 5275 uploadMedia: _uploadMedia, |
| 5232 uploadOptions: _uploadOptions, | 5276 downloadOptions: _downloadOptions); |
| 5233 uploadMedia: _uploadMedia, | |
| 5234 downloadOptions: _downloadOptions); | |
| 5235 return _response.then((data) => new ThumbnailSetResponse.fromJson(data)); | 5277 return _response.then((data) => new ThumbnailSetResponse.fromJson(data)); |
| 5236 } | 5278 } |
| 5237 | |
| 5238 } | 5279 } |
| 5239 | 5280 |
| 5240 | |
| 5241 class VideoAbuseReportReasonsResourceApi { | 5281 class VideoAbuseReportReasonsResourceApi { |
| 5242 final commons.ApiRequester _requester; | 5282 final commons.ApiRequester _requester; |
| 5243 | 5283 |
| 5244 VideoAbuseReportReasonsResourceApi(commons.ApiRequester client) : | 5284 VideoAbuseReportReasonsResourceApi(commons.ApiRequester client) |
| 5245 _requester = client; | 5285 : _requester = client; |
| 5246 | 5286 |
| 5247 /** | 5287 /// Returns a list of abuse reasons that can be used for reporting abusive |
| 5248 * Returns a list of abuse reasons that can be used for reporting abusive | 5288 /// videos. |
| 5249 * videos. | 5289 /// |
| 5250 * | 5290 /// Request parameters: |
| 5251 * Request parameters: | 5291 /// |
| 5252 * | 5292 /// [part] - The part parameter specifies the videoCategory resource parts |
| 5253 * [part] - The part parameter specifies the videoCategory resource parts that | 5293 /// that the API response will include. Supported values are id and snippet. |
| 5254 * the API response will include. Supported values are id and snippet. | 5294 /// |
| 5255 * | 5295 /// [hl] - The hl parameter specifies the language that should be used for |
| 5256 * [hl] - The hl parameter specifies the language that should be used for text | 5296 /// text values in the API response. |
| 5257 * values in the API response. | 5297 /// |
| 5258 * | 5298 /// Completes with a [VideoAbuseReportReasonListResponse]. |
| 5259 * Completes with a [VideoAbuseReportReasonListResponse]. | 5299 /// |
| 5260 * | 5300 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5261 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5301 /// an error. |
| 5262 * error. | 5302 /// |
| 5263 * | 5303 /// If the used [http.Client] completes with an error when making a REST |
| 5264 * If the used [http.Client] completes with an error when making a REST call, | 5304 /// call, this method will complete with the same error. |
| 5265 * this method will complete with the same error. | 5305 async.Future<VideoAbuseReportReasonListResponse> list(core.String part, |
| 5266 */ | 5306 {core.String hl}) { |
| 5267 async.Future<VideoAbuseReportReasonListResponse> list(core.String part, {core.
String hl}) { | |
| 5268 var _url = null; | 5307 var _url = null; |
| 5269 var _queryParams = new core.Map(); | 5308 var _queryParams = new core.Map(); |
| 5270 var _uploadMedia = null; | 5309 var _uploadMedia = null; |
| 5271 var _uploadOptions = null; | 5310 var _uploadOptions = null; |
| 5272 var _downloadOptions = commons.DownloadOptions.Metadata; | 5311 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5273 var _body = null; | 5312 var _body = null; |
| 5274 | 5313 |
| 5275 if (part == null) { | 5314 if (part == null) { |
| 5276 throw new core.ArgumentError("Parameter part is required."); | 5315 throw new core.ArgumentError("Parameter part is required."); |
| 5277 } | 5316 } |
| 5278 _queryParams["part"] = [part]; | 5317 _queryParams["part"] = [part]; |
| 5279 if (hl != null) { | 5318 if (hl != null) { |
| 5280 _queryParams["hl"] = [hl]; | 5319 _queryParams["hl"] = [hl]; |
| 5281 } | 5320 } |
| 5282 | 5321 |
| 5283 _url = 'videoAbuseReportReasons'; | 5322 _url = 'videoAbuseReportReasons'; |
| 5284 | 5323 |
| 5285 var _response = _requester.request(_url, | 5324 var _response = _requester.request(_url, "GET", |
| 5286 "GET", | 5325 body: _body, |
| 5287 body: _body, | 5326 queryParams: _queryParams, |
| 5288 queryParams: _queryParams, | 5327 uploadOptions: _uploadOptions, |
| 5289 uploadOptions: _uploadOptions, | 5328 uploadMedia: _uploadMedia, |
| 5290 uploadMedia: _uploadMedia, | 5329 downloadOptions: _downloadOptions); |
| 5291 downloadOptions: _downloadOptions); | 5330 return _response |
| 5292 return _response.then((data) => new VideoAbuseReportReasonListResponse.fromJ
son(data)); | 5331 .then((data) => new VideoAbuseReportReasonListResponse.fromJson(data)); |
| 5293 } | 5332 } |
| 5294 | |
| 5295 } | 5333 } |
| 5296 | 5334 |
| 5297 | |
| 5298 class VideoCategoriesResourceApi { | 5335 class VideoCategoriesResourceApi { |
| 5299 final commons.ApiRequester _requester; | 5336 final commons.ApiRequester _requester; |
| 5300 | 5337 |
| 5301 VideoCategoriesResourceApi(commons.ApiRequester client) : | 5338 VideoCategoriesResourceApi(commons.ApiRequester client) : _requester = client; |
| 5302 _requester = client; | |
| 5303 | 5339 |
| 5304 /** | 5340 /// Returns a list of categories that can be associated with YouTube videos. |
| 5305 * Returns a list of categories that can be associated with YouTube videos. | 5341 /// |
| 5306 * | 5342 /// Request parameters: |
| 5307 * Request parameters: | 5343 /// |
| 5308 * | 5344 /// [part] - The part parameter specifies the videoCategory resource |
| 5309 * [part] - The part parameter specifies the videoCategory resource properties | 5345 /// properties that the API response will include. Set the parameter value to |
| 5310 * that the API response will include. Set the parameter value to snippet. | 5346 /// snippet. |
| 5311 * | 5347 /// |
| 5312 * [hl] - The hl parameter specifies the language that should be used for text | 5348 /// [hl] - The hl parameter specifies the language that should be used for |
| 5313 * values in the API response. | 5349 /// text values in the API response. |
| 5314 * | 5350 /// |
| 5315 * [id] - The id parameter specifies a comma-separated list of video category | 5351 /// [id] - The id parameter specifies a comma-separated list of video |
| 5316 * IDs for the resources that you are retrieving. | 5352 /// category IDs for the resources that you are retrieving. |
| 5317 * | 5353 /// |
| 5318 * [regionCode] - The regionCode parameter instructs the API to return the | 5354 /// [regionCode] - The regionCode parameter instructs the API to return the |
| 5319 * list of video categories available in the specified country. The parameter | 5355 /// list of video categories available in the specified country. The |
| 5320 * value is an ISO 3166-1 alpha-2 country code. | 5356 /// parameter value is an ISO 3166-1 alpha-2 country code. |
| 5321 * | 5357 /// |
| 5322 * Completes with a [VideoCategoryListResponse]. | 5358 /// Completes with a [VideoCategoryListResponse]. |
| 5323 * | 5359 /// |
| 5324 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5360 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5325 * error. | 5361 /// an error. |
| 5326 * | 5362 /// |
| 5327 * If the used [http.Client] completes with an error when making a REST call, | 5363 /// If the used [http.Client] completes with an error when making a REST |
| 5328 * this method will complete with the same error. | 5364 /// call, this method will complete with the same error. |
| 5329 */ | 5365 async.Future<VideoCategoryListResponse> list(core.String part, |
| 5330 async.Future<VideoCategoryListResponse> list(core.String part, {core.String hl
, core.String id, core.String regionCode}) { | 5366 {core.String hl, core.String id, core.String regionCode}) { |
| 5331 var _url = null; | 5367 var _url = null; |
| 5332 var _queryParams = new core.Map(); | 5368 var _queryParams = new core.Map(); |
| 5333 var _uploadMedia = null; | 5369 var _uploadMedia = null; |
| 5334 var _uploadOptions = null; | 5370 var _uploadOptions = null; |
| 5335 var _downloadOptions = commons.DownloadOptions.Metadata; | 5371 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5336 var _body = null; | 5372 var _body = null; |
| 5337 | 5373 |
| 5338 if (part == null) { | 5374 if (part == null) { |
| 5339 throw new core.ArgumentError("Parameter part is required."); | 5375 throw new core.ArgumentError("Parameter part is required."); |
| 5340 } | 5376 } |
| 5341 _queryParams["part"] = [part]; | 5377 _queryParams["part"] = [part]; |
| 5342 if (hl != null) { | 5378 if (hl != null) { |
| 5343 _queryParams["hl"] = [hl]; | 5379 _queryParams["hl"] = [hl]; |
| 5344 } | 5380 } |
| 5345 if (id != null) { | 5381 if (id != null) { |
| 5346 _queryParams["id"] = [id]; | 5382 _queryParams["id"] = [id]; |
| 5347 } | 5383 } |
| 5348 if (regionCode != null) { | 5384 if (regionCode != null) { |
| 5349 _queryParams["regionCode"] = [regionCode]; | 5385 _queryParams["regionCode"] = [regionCode]; |
| 5350 } | 5386 } |
| 5351 | 5387 |
| 5352 _url = 'videoCategories'; | 5388 _url = 'videoCategories'; |
| 5353 | 5389 |
| 5354 var _response = _requester.request(_url, | 5390 var _response = _requester.request(_url, "GET", |
| 5355 "GET", | 5391 body: _body, |
| 5356 body: _body, | 5392 queryParams: _queryParams, |
| 5357 queryParams: _queryParams, | 5393 uploadOptions: _uploadOptions, |
| 5358 uploadOptions: _uploadOptions, | 5394 uploadMedia: _uploadMedia, |
| 5359 uploadMedia: _uploadMedia, | 5395 downloadOptions: _downloadOptions); |
| 5360 downloadOptions: _downloadOptions); | 5396 return _response |
| 5361 return _response.then((data) => new VideoCategoryListResponse.fromJson(data)
); | 5397 .then((data) => new VideoCategoryListResponse.fromJson(data)); |
| 5362 } | 5398 } |
| 5363 | |
| 5364 } | 5399 } |
| 5365 | 5400 |
| 5366 | |
| 5367 class VideosResourceApi { | 5401 class VideosResourceApi { |
| 5368 final commons.ApiRequester _requester; | 5402 final commons.ApiRequester _requester; |
| 5369 | 5403 |
| 5370 VideosResourceApi(commons.ApiRequester client) : | 5404 VideosResourceApi(commons.ApiRequester client) : _requester = client; |
| 5371 _requester = client; | |
| 5372 | 5405 |
| 5373 /** | 5406 /// Deletes a YouTube video. |
| 5374 * Deletes a YouTube video. | 5407 /// |
| 5375 * | 5408 /// Request parameters: |
| 5376 * Request parameters: | 5409 /// |
| 5377 * | 5410 /// [id] - The id parameter specifies the YouTube video ID for the resource |
| 5378 * [id] - The id parameter specifies the YouTube video ID for the resource | 5411 /// that is being deleted. In a video resource, the id property specifies the |
| 5379 * that is being deleted. In a video resource, the id property specifies the | 5412 /// video's ID. |
| 5380 * video's ID. | 5413 /// |
| 5381 * | 5414 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 5382 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5415 /// for YouTube content partners. |
| 5383 * YouTube content partners. | 5416 /// |
| 5384 * | 5417 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 5385 * The onBehalfOfContentOwner parameter indicates that the request's | 5418 /// authorization credentials identify a YouTube CMS user who is acting on |
| 5386 * authorization credentials identify a YouTube CMS user who is acting on | 5419 /// behalf of the content owner specified in the parameter value. This |
| 5387 * behalf of the content owner specified in the parameter value. This | 5420 /// parameter is intended for YouTube content partners that own and manage |
| 5388 * parameter is intended for YouTube content partners that own and manage many | 5421 /// many different YouTube channels. It allows content owners to authenticate |
| 5389 * different YouTube channels. It allows content owners to authenticate once | 5422 /// once and get access to all their video and channel data, without having |
| 5390 * and get access to all their video and channel data, without having to | 5423 /// to provide authentication credentials for each individual channel. The |
| 5391 * provide authentication credentials for each individual channel. The actual | 5424 /// actual CMS account that the user authenticates with must be linked to the |
| 5392 * CMS account that the user authenticates with must be linked to the | 5425 /// specified YouTube content owner. |
| 5393 * specified YouTube content owner. | 5426 /// |
| 5394 * | 5427 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5395 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5428 /// an error. |
| 5396 * error. | 5429 /// |
| 5397 * | 5430 /// If the used [http.Client] completes with an error when making a REST |
| 5398 * If the used [http.Client] completes with an error when making a REST call, | 5431 /// call, this method will complete with the same error. |
| 5399 * this method will complete with the same error. | |
| 5400 */ | |
| 5401 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { | 5432 async.Future delete(core.String id, {core.String onBehalfOfContentOwner}) { |
| 5402 var _url = null; | 5433 var _url = null; |
| 5403 var _queryParams = new core.Map(); | 5434 var _queryParams = new core.Map(); |
| 5404 var _uploadMedia = null; | 5435 var _uploadMedia = null; |
| 5405 var _uploadOptions = null; | 5436 var _uploadOptions = null; |
| 5406 var _downloadOptions = commons.DownloadOptions.Metadata; | 5437 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5407 var _body = null; | 5438 var _body = null; |
| 5408 | 5439 |
| 5409 if (id == null) { | 5440 if (id == null) { |
| 5410 throw new core.ArgumentError("Parameter id is required."); | 5441 throw new core.ArgumentError("Parameter id is required."); |
| 5411 } | 5442 } |
| 5412 _queryParams["id"] = [id]; | 5443 _queryParams["id"] = [id]; |
| 5413 if (onBehalfOfContentOwner != null) { | 5444 if (onBehalfOfContentOwner != null) { |
| 5414 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5445 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 5415 } | 5446 } |
| 5416 | 5447 |
| 5417 _downloadOptions = null; | 5448 _downloadOptions = null; |
| 5418 | 5449 |
| 5419 _url = 'videos'; | 5450 _url = 'videos'; |
| 5420 | 5451 |
| 5421 var _response = _requester.request(_url, | 5452 var _response = _requester.request(_url, "DELETE", |
| 5422 "DELETE", | 5453 body: _body, |
| 5423 body: _body, | 5454 queryParams: _queryParams, |
| 5424 queryParams: _queryParams, | 5455 uploadOptions: _uploadOptions, |
| 5425 uploadOptions: _uploadOptions, | 5456 uploadMedia: _uploadMedia, |
| 5426 uploadMedia: _uploadMedia, | 5457 downloadOptions: _downloadOptions); |
| 5427 downloadOptions: _downloadOptions); | |
| 5428 return _response.then((data) => null); | 5458 return _response.then((data) => null); |
| 5429 } | 5459 } |
| 5430 | 5460 |
| 5431 /** | 5461 /// Retrieves the ratings that the authorized user gave to a list of |
| 5432 * Retrieves the ratings that the authorized user gave to a list of specified | 5462 /// specified videos. |
| 5433 * videos. | 5463 /// |
| 5434 * | 5464 /// Request parameters: |
| 5435 * Request parameters: | 5465 /// |
| 5436 * | 5466 /// [id] - The id parameter specifies a comma-separated list of the YouTube |
| 5437 * [id] - The id parameter specifies a comma-separated list of the YouTube | 5467 /// video ID(s) for the resource(s) for which you are retrieving rating data. |
| 5438 * video ID(s) for the resource(s) for which you are retrieving rating data. | 5468 /// In a video resource, the id property specifies the video's ID. |
| 5439 * In a video resource, the id property specifies the video's ID. | 5469 /// |
| 5440 * | 5470 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 5441 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5471 /// for YouTube content partners. |
| 5442 * YouTube content partners. | 5472 /// |
| 5443 * | 5473 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 5444 * The onBehalfOfContentOwner parameter indicates that the request's | 5474 /// authorization credentials identify a YouTube CMS user who is acting on |
| 5445 * authorization credentials identify a YouTube CMS user who is acting on | 5475 /// behalf of the content owner specified in the parameter value. This |
| 5446 * behalf of the content owner specified in the parameter value. This | 5476 /// parameter is intended for YouTube content partners that own and manage |
| 5447 * parameter is intended for YouTube content partners that own and manage many | 5477 /// many different YouTube channels. It allows content owners to authenticate |
| 5448 * different YouTube channels. It allows content owners to authenticate once | 5478 /// once and get access to all their video and channel data, without having |
| 5449 * and get access to all their video and channel data, without having to | 5479 /// to provide authentication credentials for each individual channel. The |
| 5450 * provide authentication credentials for each individual channel. The CMS | 5480 /// CMS account that the user authenticates with must be linked to the |
| 5451 * account that the user authenticates with must be linked to the specified | 5481 /// specified YouTube content owner. |
| 5452 * YouTube content owner. | 5482 /// |
| 5453 * | 5483 /// Completes with a [VideoGetRatingResponse]. |
| 5454 * Completes with a [VideoGetRatingResponse]. | 5484 /// |
| 5455 * | 5485 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5456 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5486 /// an error. |
| 5457 * error. | 5487 /// |
| 5458 * | 5488 /// If the used [http.Client] completes with an error when making a REST |
| 5459 * If the used [http.Client] completes with an error when making a REST call, | 5489 /// call, this method will complete with the same error. |
| 5460 * this method will complete with the same error. | 5490 async.Future<VideoGetRatingResponse> getRating(core.String id, |
| 5461 */ | 5491 {core.String onBehalfOfContentOwner}) { |
| 5462 async.Future<VideoGetRatingResponse> getRating(core.String id, {core.String on
BehalfOfContentOwner}) { | |
| 5463 var _url = null; | 5492 var _url = null; |
| 5464 var _queryParams = new core.Map(); | 5493 var _queryParams = new core.Map(); |
| 5465 var _uploadMedia = null; | 5494 var _uploadMedia = null; |
| 5466 var _uploadOptions = null; | 5495 var _uploadOptions = null; |
| 5467 var _downloadOptions = commons.DownloadOptions.Metadata; | 5496 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5468 var _body = null; | 5497 var _body = null; |
| 5469 | 5498 |
| 5470 if (id == null) { | 5499 if (id == null) { |
| 5471 throw new core.ArgumentError("Parameter id is required."); | 5500 throw new core.ArgumentError("Parameter id is required."); |
| 5472 } | 5501 } |
| 5473 _queryParams["id"] = [id]; | 5502 _queryParams["id"] = [id]; |
| 5474 if (onBehalfOfContentOwner != null) { | 5503 if (onBehalfOfContentOwner != null) { |
| 5475 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5504 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 5476 } | 5505 } |
| 5477 | 5506 |
| 5478 _url = 'videos/getRating'; | 5507 _url = 'videos/getRating'; |
| 5479 | 5508 |
| 5480 var _response = _requester.request(_url, | 5509 var _response = _requester.request(_url, "GET", |
| 5481 "GET", | 5510 body: _body, |
| 5482 body: _body, | 5511 queryParams: _queryParams, |
| 5483 queryParams: _queryParams, | 5512 uploadOptions: _uploadOptions, |
| 5484 uploadOptions: _uploadOptions, | 5513 uploadMedia: _uploadMedia, |
| 5485 uploadMedia: _uploadMedia, | 5514 downloadOptions: _downloadOptions); |
| 5486 downloadOptions: _downloadOptions); | |
| 5487 return _response.then((data) => new VideoGetRatingResponse.fromJson(data)); | 5515 return _response.then((data) => new VideoGetRatingResponse.fromJson(data)); |
| 5488 } | 5516 } |
| 5489 | 5517 |
| 5490 /** | 5518 /// Uploads a video to YouTube and optionally sets the video's metadata. |
| 5491 * Uploads a video to YouTube and optionally sets the video's metadata. | 5519 /// |
| 5492 * | 5520 /// [request] - The metadata request object. |
| 5493 * [request] - The metadata request object. | 5521 /// |
| 5494 * | 5522 /// Request parameters: |
| 5495 * Request parameters: | 5523 /// |
| 5496 * | 5524 /// [part] - The part parameter serves two purposes in this operation. It |
| 5497 * [part] - The part parameter serves two purposes in this operation. It | 5525 /// identifies the properties that the write operation will set as well as |
| 5498 * identifies the properties that the write operation will set as well as the | 5526 /// the properties that the API response will include. |
| 5499 * properties that the API response will include. | 5527 /// |
| 5500 * | 5528 /// Note that not all parts contain properties that can be set when inserting |
| 5501 * Note that not all parts contain properties that can be set when inserting | 5529 /// or updating a video. For example, the statistics object encapsulates |
| 5502 * or updating a video. For example, the statistics object encapsulates | 5530 /// statistics that YouTube calculates for a video and does not contain |
| 5503 * statistics that YouTube calculates for a video and does not contain values | 5531 /// values that you can set or modify. If the parameter value specifies a |
| 5504 * that you can set or modify. If the parameter value specifies a part that | 5532 /// part that does not contain mutable values, that part will still be |
| 5505 * does not contain mutable values, that part will still be included in the | 5533 /// included in the API response. |
| 5506 * API response. | 5534 /// |
| 5507 * | 5535 /// [autoLevels] - The autoLevels parameter indicates whether YouTube should |
| 5508 * [autoLevels] - The autoLevels parameter indicates whether YouTube should | 5536 /// automatically enhance the video's lighting and color. |
| 5509 * automatically enhance the video's lighting and color. | 5537 /// |
| 5510 * | 5538 /// [notifySubscribers] - The notifySubscribers parameter indicates whether |
| 5511 * [notifySubscribers] - The notifySubscribers parameter indicates whether | 5539 /// YouTube should send a notification about the new video to users who |
| 5512 * YouTube should send a notification about the new video to users who | 5540 /// subscribe to the video's channel. A parameter value of True indicates |
| 5513 * subscribe to the video's channel. A parameter value of True indicates that | 5541 /// that subscribers will be notified of newly uploaded videos. However, a |
| 5514 * subscribers will be notified of newly uploaded videos. However, a channel | 5542 /// channel owner who is uploading many videos might prefer to set the value |
| 5515 * owner who is uploading many videos might prefer to set the value to False | 5543 /// to False to avoid sending a notification about each new video to the |
| 5516 * to avoid sending a notification about each new video to the channel's | 5544 /// channel's subscribers. |
| 5517 * subscribers. | 5545 /// |
| 5518 * | 5546 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 5519 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5547 /// for YouTube content partners. |
| 5520 * YouTube content partners. | 5548 /// |
| 5521 * | 5549 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 5522 * The onBehalfOfContentOwner parameter indicates that the request's | 5550 /// authorization credentials identify a YouTube CMS user who is acting on |
| 5523 * authorization credentials identify a YouTube CMS user who is acting on | 5551 /// behalf of the content owner specified in the parameter value. This |
| 5524 * behalf of the content owner specified in the parameter value. This | 5552 /// parameter is intended for YouTube content partners that own and manage |
| 5525 * parameter is intended for YouTube content partners that own and manage many | 5553 /// many different YouTube channels. It allows content owners to authenticate |
| 5526 * different YouTube channels. It allows content owners to authenticate once | 5554 /// once and get access to all their video and channel data, without having |
| 5527 * and get access to all their video and channel data, without having to | 5555 /// to provide authentication credentials for each individual channel. The |
| 5528 * provide authentication credentials for each individual channel. The CMS | 5556 /// CMS account that the user authenticates with must be linked to the |
| 5529 * account that the user authenticates with must be linked to the specified | 5557 /// specified YouTube content owner. |
| 5530 * YouTube content owner. | 5558 /// |
| 5531 * | 5559 /// [onBehalfOfContentOwnerChannel] - This parameter can only be used in a |
| 5532 * [onBehalfOfContentOwnerChannel] - This parameter can only be used in a | 5560 /// properly authorized request. Note: This parameter is intended exclusively |
| 5533 * properly authorized request. Note: This parameter is intended exclusively | 5561 /// for YouTube content partners. |
| 5534 * for YouTube content partners. | 5562 /// |
| 5535 * | 5563 /// The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel |
| 5536 * The onBehalfOfContentOwnerChannel parameter specifies the YouTube channel | 5564 /// ID of the channel to which a video is being added. This parameter is |
| 5537 * ID of the channel to which a video is being added. This parameter is | 5565 /// required when a request specifies a value for the onBehalfOfContentOwner |
| 5538 * required when a request specifies a value for the onBehalfOfContentOwner | 5566 /// parameter, and it can only be used in conjunction with that parameter. In |
| 5539 * parameter, and it can only be used in conjunction with that parameter. In | 5567 /// addition, the request must be authorized using a CMS account that is |
| 5540 * addition, the request must be authorized using a CMS account that is linked | 5568 /// linked to the content owner that the onBehalfOfContentOwner parameter |
| 5541 * to the content owner that the onBehalfOfContentOwner parameter specifies. | 5569 /// specifies. Finally, the channel that the onBehalfOfContentOwnerChannel |
| 5542 * Finally, the channel that the onBehalfOfContentOwnerChannel parameter value | 5570 /// parameter value specifies must be linked to the content owner that the |
| 5543 * specifies must be linked to the content owner that the | 5571 /// onBehalfOfContentOwner parameter specifies. |
| 5544 * onBehalfOfContentOwner parameter specifies. | 5572 /// |
| 5545 * | 5573 /// This parameter is intended for YouTube content partners that own and |
| 5546 * This parameter is intended for YouTube content partners that own and manage | 5574 /// manage many different YouTube channels. It allows content owners to |
| 5547 * many different YouTube channels. It allows content owners to authenticate | 5575 /// authenticate once and perform actions on behalf of the channel specified |
| 5548 * once and perform actions on behalf of the channel specified in the | 5576 /// in the parameter value, without having to provide authentication |
| 5549 * parameter value, without having to provide authentication credentials for | 5577 /// credentials for each separate channel. |
| 5550 * each separate channel. | 5578 /// |
| 5551 * | 5579 /// [stabilize] - The stabilize parameter indicates whether YouTube should |
| 5552 * [stabilize] - The stabilize parameter indicates whether YouTube should | 5580 /// adjust the video to remove shaky camera motions. |
| 5553 * adjust the video to remove shaky camera motions. | 5581 /// |
| 5554 * | 5582 /// [uploadMedia] - The media to upload. |
| 5555 * [uploadMedia] - The media to upload. | 5583 /// |
| 5556 * | 5584 /// [uploadOptions] - Options for the media upload. Streaming Media without |
| 5557 * [uploadOptions] - Options for the media upload. Streaming Media without the | 5585 /// the length being known ahead of time is only supported via resumable |
| 5558 * length being known ahead of time is only supported via resumable uploads. | 5586 /// uploads. |
| 5559 * | 5587 /// |
| 5560 * Completes with a [Video]. | 5588 /// Completes with a [Video]. |
| 5561 * | 5589 /// |
| 5562 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5590 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5563 * error. | 5591 /// an error. |
| 5564 * | 5592 /// |
| 5565 * If the used [http.Client] completes with an error when making a REST call, | 5593 /// If the used [http.Client] completes with an error when making a REST |
| 5566 * this method will complete with the same error. | 5594 /// call, this method will complete with the same error. |
| 5567 */ | 5595 async.Future<Video> insert(Video request, core.String part, |
| 5568 async.Future<Video> insert(Video request, core.String part, {core.bool autoLev
els, core.bool notifySubscribers, core.String onBehalfOfContentOwner, core.Strin
g onBehalfOfContentOwnerChannel, core.bool stabilize, commons.UploadOptions uplo
adOptions : commons.UploadOptions.Default, commons.Media uploadMedia}) { | 5596 {core.bool autoLevels, |
| 5597 core.bool notifySubscribers, |
| 5598 core.String onBehalfOfContentOwner, |
| 5599 core.String onBehalfOfContentOwnerChannel, |
| 5600 core.bool stabilize, |
| 5601 commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 5602 commons.Media uploadMedia}) { |
| 5569 var _url = null; | 5603 var _url = null; |
| 5570 var _queryParams = new core.Map(); | 5604 var _queryParams = new core.Map(); |
| 5571 var _uploadMedia = null; | 5605 var _uploadMedia = null; |
| 5572 var _uploadOptions = null; | 5606 var _uploadOptions = null; |
| 5573 var _downloadOptions = commons.DownloadOptions.Metadata; | 5607 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5574 var _body = null; | 5608 var _body = null; |
| 5575 | 5609 |
| 5576 if (request != null) { | 5610 if (request != null) { |
| 5577 _body = convert.JSON.encode((request).toJson()); | 5611 _body = convert.JSON.encode((request).toJson()); |
| 5578 } | 5612 } |
| 5579 if (part == null) { | 5613 if (part == null) { |
| 5580 throw new core.ArgumentError("Parameter part is required."); | 5614 throw new core.ArgumentError("Parameter part is required."); |
| 5581 } | 5615 } |
| 5582 _queryParams["part"] = [part]; | 5616 _queryParams["part"] = [part]; |
| 5583 if (autoLevels != null) { | 5617 if (autoLevels != null) { |
| 5584 _queryParams["autoLevels"] = ["${autoLevels}"]; | 5618 _queryParams["autoLevels"] = ["${autoLevels}"]; |
| 5585 } | 5619 } |
| 5586 if (notifySubscribers != null) { | 5620 if (notifySubscribers != null) { |
| 5587 _queryParams["notifySubscribers"] = ["${notifySubscribers}"]; | 5621 _queryParams["notifySubscribers"] = ["${notifySubscribers}"]; |
| 5588 } | 5622 } |
| 5589 if (onBehalfOfContentOwner != null) { | 5623 if (onBehalfOfContentOwner != null) { |
| 5590 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5624 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 5591 } | 5625 } |
| 5592 if (onBehalfOfContentOwnerChannel != null) { | 5626 if (onBehalfOfContentOwnerChannel != null) { |
| 5593 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 5627 _queryParams["onBehalfOfContentOwnerChannel"] = [ |
| 5628 onBehalfOfContentOwnerChannel |
| 5629 ]; |
| 5594 } | 5630 } |
| 5595 if (stabilize != null) { | 5631 if (stabilize != null) { |
| 5596 _queryParams["stabilize"] = ["${stabilize}"]; | 5632 _queryParams["stabilize"] = ["${stabilize}"]; |
| 5597 } | 5633 } |
| 5598 | 5634 |
| 5599 _uploadMedia = uploadMedia; | 5635 _uploadMedia = uploadMedia; |
| 5600 _uploadOptions = uploadOptions; | 5636 _uploadOptions = uploadOptions; |
| 5601 | 5637 |
| 5602 if (_uploadMedia == null) { | 5638 if (_uploadMedia == null) { |
| 5603 _url = 'videos'; | 5639 _url = 'videos'; |
| 5604 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 5640 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 5605 _url = '/resumable/upload/youtube/v3/videos'; | 5641 _url = '/resumable/upload/youtube/v3/videos'; |
| 5606 } else { | 5642 } else { |
| 5607 _url = '/upload/youtube/v3/videos'; | 5643 _url = '/upload/youtube/v3/videos'; |
| 5608 } | 5644 } |
| 5609 | 5645 |
| 5610 | 5646 var _response = _requester.request(_url, "POST", |
| 5611 var _response = _requester.request(_url, | 5647 body: _body, |
| 5612 "POST", | 5648 queryParams: _queryParams, |
| 5613 body: _body, | 5649 uploadOptions: _uploadOptions, |
| 5614 queryParams: _queryParams, | 5650 uploadMedia: _uploadMedia, |
| 5615 uploadOptions: _uploadOptions, | 5651 downloadOptions: _downloadOptions); |
| 5616 uploadMedia: _uploadMedia, | |
| 5617 downloadOptions: _downloadOptions); | |
| 5618 return _response.then((data) => new Video.fromJson(data)); | 5652 return _response.then((data) => new Video.fromJson(data)); |
| 5619 } | 5653 } |
| 5620 | 5654 |
| 5621 /** | 5655 /// Returns a list of videos that match the API request parameters. |
| 5622 * Returns a list of videos that match the API request parameters. | 5656 /// |
| 5623 * | 5657 /// Request parameters: |
| 5624 * Request parameters: | 5658 /// |
| 5625 * | 5659 /// [part] - The part parameter specifies a comma-separated list of one or |
| 5626 * [part] - The part parameter specifies a comma-separated list of one or more | 5660 /// more video resource properties that the API response will include. |
| 5627 * video resource properties that the API response will include. | 5661 /// |
| 5628 * | 5662 /// If the parameter identifies a property that contains child properties, |
| 5629 * If the parameter identifies a property that contains child properties, the | 5663 /// the child properties will be included in the response. For example, in a |
| 5630 * child properties will be included in the response. For example, in a video | 5664 /// video resource, the snippet property contains the channelId, title, |
| 5631 * resource, the snippet property contains the channelId, title, description, | 5665 /// description, tags, and categoryId properties. As such, if you set |
| 5632 * tags, and categoryId properties. As such, if you set part=snippet, the API | 5666 /// part=snippet, the API response will contain all of those properties. |
| 5633 * response will contain all of those properties. | 5667 /// |
| 5634 * | 5668 /// [chart] - The chart parameter identifies the chart that you want to |
| 5635 * [chart] - The chart parameter identifies the chart that you want to | 5669 /// retrieve. |
| 5636 * retrieve. | 5670 /// Possible string values are: |
| 5637 * Possible string values are: | 5671 /// - "mostPopular" : Return the most popular videos for the specified |
| 5638 * - "mostPopular" : Return the most popular videos for the specified content | 5672 /// content region and video category. |
| 5639 * region and video category. | 5673 /// |
| 5640 * | 5674 /// [hl] - The hl parameter instructs the API to retrieve localized resource |
| 5641 * [hl] - The hl parameter instructs the API to retrieve localized resource | 5675 /// metadata for a specific application language that the YouTube website |
| 5642 * metadata for a specific application language that the YouTube website | 5676 /// supports. The parameter value must be a language code included in the |
| 5643 * supports. The parameter value must be a language code included in the list | 5677 /// list returned by the i18nLanguages.list method. |
| 5644 * returned by the i18nLanguages.list method. | 5678 /// |
| 5645 * | 5679 /// If localized resource details are available in that language, the |
| 5646 * If localized resource details are available in that language, the | 5680 /// resource's snippet.localized object will contain the localized values. |
| 5647 * resource's snippet.localized object will contain the localized values. | 5681 /// However, if localized details are not available, the snippet.localized |
| 5648 * However, if localized details are not available, the snippet.localized | 5682 /// object will contain resource details in the resource's default language. |
| 5649 * object will contain resource details in the resource's default language. | 5683 /// |
| 5650 * | 5684 /// [id] - The id parameter specifies a comma-separated list of the YouTube |
| 5651 * [id] - The id parameter specifies a comma-separated list of the YouTube | 5685 /// video ID(s) for the resource(s) that are being retrieved. In a video |
| 5652 * video ID(s) for the resource(s) that are being retrieved. In a video | 5686 /// resource, the id property specifies the video's ID. |
| 5653 * resource, the id property specifies the video's ID. | 5687 /// |
| 5654 * | 5688 /// [locale] - DEPRECATED |
| 5655 * [locale] - DEPRECATED | 5689 /// |
| 5656 * | 5690 /// [maxHeight] - The maxHeight parameter specifies a maximum height of the |
| 5657 * [maxHeight] - The maxHeight parameter specifies a maximum height of the | 5691 /// embedded player. If maxWidth is provided, maxHeight may not be reached in |
| 5658 * embedded player. If maxWidth is provided, maxHeight may not be reached in | 5692 /// order to not violate the width request. |
| 5659 * order to not violate the width request. | 5693 /// Value must be between "72" and "8192". |
| 5660 * Value must be between "72" and "8192". | 5694 /// |
| 5661 * | 5695 /// [maxResults] - The maxResults parameter specifies the maximum number of |
| 5662 * [maxResults] - The maxResults parameter specifies the maximum number of | 5696 /// items that should be returned in the result set. |
| 5663 * items that should be returned in the result set. | 5697 /// |
| 5664 * | 5698 /// Note: This parameter is supported for use in conjunction with the |
| 5665 * Note: This parameter is supported for use in conjunction with the myRating | 5699 /// myRating and chart parameters, but it is not supported for use in |
| 5666 * and chart parameters, but it is not supported for use in conjunction with | 5700 /// conjunction with the id parameter. |
| 5667 * the id parameter. | 5701 /// Value must be between "1" and "50". |
| 5668 * Value must be between "1" and "50". | 5702 /// |
| 5669 * | 5703 /// [maxWidth] - The maxWidth parameter specifies a maximum width of the |
| 5670 * [maxWidth] - The maxWidth parameter specifies a maximum width of the | 5704 /// embedded player. If maxHeight is provided, maxWidth may not be reached in |
| 5671 * embedded player. If maxHeight is provided, maxWidth may not be reached in | 5705 /// order to not violate the height request. |
| 5672 * order to not violate the height request. | 5706 /// Value must be between "72" and "8192". |
| 5673 * Value must be between "72" and "8192". | 5707 /// |
| 5674 * | 5708 /// [myRating] - Set this parameter's value to like or dislike to instruct |
| 5675 * [myRating] - Set this parameter's value to like or dislike to instruct the | 5709 /// the API to only return videos liked or disliked by the authenticated |
| 5676 * API to only return videos liked or disliked by the authenticated user. | 5710 /// user. |
| 5677 * Possible string values are: | 5711 /// Possible string values are: |
| 5678 * - "dislike" : Returns only videos disliked by the authenticated user. | 5712 /// - "dislike" : Returns only videos disliked by the authenticated user. |
| 5679 * - "like" : Returns only video liked by the authenticated user. | 5713 /// - "like" : Returns only video liked by the authenticated user. |
| 5680 * | 5714 /// |
| 5681 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5715 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 5682 * YouTube content partners. | 5716 /// for YouTube content partners. |
| 5683 * | 5717 /// |
| 5684 * The onBehalfOfContentOwner parameter indicates that the request's | 5718 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 5685 * authorization credentials identify a YouTube CMS user who is acting on | 5719 /// authorization credentials identify a YouTube CMS user who is acting on |
| 5686 * behalf of the content owner specified in the parameter value. This | 5720 /// behalf of the content owner specified in the parameter value. This |
| 5687 * parameter is intended for YouTube content partners that own and manage many | 5721 /// parameter is intended for YouTube content partners that own and manage |
| 5688 * different YouTube channels. It allows content owners to authenticate once | 5722 /// many different YouTube channels. It allows content owners to authenticate |
| 5689 * and get access to all their video and channel data, without having to | 5723 /// once and get access to all their video and channel data, without having |
| 5690 * provide authentication credentials for each individual channel. The CMS | 5724 /// to provide authentication credentials for each individual channel. The |
| 5691 * account that the user authenticates with must be linked to the specified | 5725 /// CMS account that the user authenticates with must be linked to the |
| 5692 * YouTube content owner. | 5726 /// specified YouTube content owner. |
| 5693 * | 5727 /// |
| 5694 * [pageToken] - The pageToken parameter identifies a specific page in the | 5728 /// [pageToken] - The pageToken parameter identifies a specific page in the |
| 5695 * result set that should be returned. In an API response, the nextPageToken | 5729 /// result set that should be returned. In an API response, the nextPageToken |
| 5696 * and prevPageToken properties identify other pages that could be retrieved. | 5730 /// and prevPageToken properties identify other pages that could be |
| 5697 * | 5731 /// retrieved. |
| 5698 * Note: This parameter is supported for use in conjunction with the myRating | 5732 /// |
| 5699 * and chart parameters, but it is not supported for use in conjunction with | 5733 /// Note: This parameter is supported for use in conjunction with the |
| 5700 * the id parameter. | 5734 /// myRating and chart parameters, but it is not supported for use in |
| 5701 * | 5735 /// conjunction with the id parameter. |
| 5702 * [regionCode] - The regionCode parameter instructs the API to select a video | 5736 /// |
| 5703 * chart available in the specified region. This parameter can only be used in | 5737 /// [regionCode] - The regionCode parameter instructs the API to select a |
| 5704 * conjunction with the chart parameter. The parameter value is an ISO 3166-1 | 5738 /// video chart available in the specified region. This parameter can only be |
| 5705 * alpha-2 country code. | 5739 /// used in conjunction with the chart parameter. The parameter value is an |
| 5706 * | 5740 /// ISO 3166-1 alpha-2 country code. |
| 5707 * [videoCategoryId] - The videoCategoryId parameter identifies the video | 5741 /// |
| 5708 * category for which the chart should be retrieved. This parameter can only | 5742 /// [videoCategoryId] - The videoCategoryId parameter identifies the video |
| 5709 * be used in conjunction with the chart parameter. By default, charts are not | 5743 /// category for which the chart should be retrieved. This parameter can only |
| 5710 * restricted to a particular category. | 5744 /// be used in conjunction with the chart parameter. By default, charts are |
| 5711 * | 5745 /// not restricted to a particular category. |
| 5712 * Completes with a [VideoListResponse]. | 5746 /// |
| 5713 * | 5747 /// Completes with a [VideoListResponse]. |
| 5714 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5748 /// |
| 5715 * error. | 5749 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5716 * | 5750 /// an error. |
| 5717 * If the used [http.Client] completes with an error when making a REST call, | 5751 /// |
| 5718 * this method will complete with the same error. | 5752 /// If the used [http.Client] completes with an error when making a REST |
| 5719 */ | 5753 /// call, this method will complete with the same error. |
| 5720 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}) { | 5754 async.Future<VideoListResponse> list(core.String part, |
| 5755 {core.String chart, |
| 5756 core.String hl, |
| 5757 core.String id, |
| 5758 core.String locale, |
| 5759 core.int maxHeight, |
| 5760 core.int maxResults, |
| 5761 core.int maxWidth, |
| 5762 core.String myRating, |
| 5763 core.String onBehalfOfContentOwner, |
| 5764 core.String pageToken, |
| 5765 core.String regionCode, |
| 5766 core.String videoCategoryId}) { |
| 5721 var _url = null; | 5767 var _url = null; |
| 5722 var _queryParams = new core.Map(); | 5768 var _queryParams = new core.Map(); |
| 5723 var _uploadMedia = null; | 5769 var _uploadMedia = null; |
| 5724 var _uploadOptions = null; | 5770 var _uploadOptions = null; |
| 5725 var _downloadOptions = commons.DownloadOptions.Metadata; | 5771 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5726 var _body = null; | 5772 var _body = null; |
| 5727 | 5773 |
| 5728 if (part == null) { | 5774 if (part == null) { |
| 5729 throw new core.ArgumentError("Parameter part is required."); | 5775 throw new core.ArgumentError("Parameter part is required."); |
| 5730 } | 5776 } |
| (...skipping 30 matching lines...) Expand all Loading... |
| 5761 } | 5807 } |
| 5762 if (regionCode != null) { | 5808 if (regionCode != null) { |
| 5763 _queryParams["regionCode"] = [regionCode]; | 5809 _queryParams["regionCode"] = [regionCode]; |
| 5764 } | 5810 } |
| 5765 if (videoCategoryId != null) { | 5811 if (videoCategoryId != null) { |
| 5766 _queryParams["videoCategoryId"] = [videoCategoryId]; | 5812 _queryParams["videoCategoryId"] = [videoCategoryId]; |
| 5767 } | 5813 } |
| 5768 | 5814 |
| 5769 _url = 'videos'; | 5815 _url = 'videos'; |
| 5770 | 5816 |
| 5771 var _response = _requester.request(_url, | 5817 var _response = _requester.request(_url, "GET", |
| 5772 "GET", | 5818 body: _body, |
| 5773 body: _body, | 5819 queryParams: _queryParams, |
| 5774 queryParams: _queryParams, | 5820 uploadOptions: _uploadOptions, |
| 5775 uploadOptions: _uploadOptions, | 5821 uploadMedia: _uploadMedia, |
| 5776 uploadMedia: _uploadMedia, | 5822 downloadOptions: _downloadOptions); |
| 5777 downloadOptions: _downloadOptions); | |
| 5778 return _response.then((data) => new VideoListResponse.fromJson(data)); | 5823 return _response.then((data) => new VideoListResponse.fromJson(data)); |
| 5779 } | 5824 } |
| 5780 | 5825 |
| 5781 /** | 5826 /// Add a like or dislike rating to a video or remove a rating from a video. |
| 5782 * Add a like or dislike rating to a video or remove a rating from a video. | 5827 /// |
| 5783 * | 5828 /// Request parameters: |
| 5784 * Request parameters: | 5829 /// |
| 5785 * | 5830 /// [id] - The id parameter specifies the YouTube video ID of the video that |
| 5786 * [id] - The id parameter specifies the YouTube video ID of the video that is | 5831 /// is being rated or having its rating removed. |
| 5787 * being rated or having its rating removed. | 5832 /// |
| 5788 * | 5833 /// [rating] - Specifies the rating to record. |
| 5789 * [rating] - Specifies the rating to record. | 5834 /// Possible string values are: |
| 5790 * Possible string values are: | 5835 /// - "dislike" : Records that the authenticated user disliked the video. |
| 5791 * - "dislike" : Records that the authenticated user disliked the video. | 5836 /// - "like" : Records that the authenticated user liked the video. |
| 5792 * - "like" : Records that the authenticated user liked the video. | 5837 /// - "none" : Removes any rating that the authenticated user had previously |
| 5793 * - "none" : Removes any rating that the authenticated user had previously | 5838 /// set for the video. |
| 5794 * set for the video. | 5839 /// |
| 5795 * | 5840 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5796 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5841 /// an error. |
| 5797 * error. | 5842 /// |
| 5798 * | 5843 /// If the used [http.Client] completes with an error when making a REST |
| 5799 * If the used [http.Client] completes with an error when making a REST call, | 5844 /// call, this method will complete with the same error. |
| 5800 * this method will complete with the same error. | |
| 5801 */ | |
| 5802 async.Future rate(core.String id, core.String rating) { | 5845 async.Future rate(core.String id, core.String rating) { |
| 5803 var _url = null; | 5846 var _url = null; |
| 5804 var _queryParams = new core.Map(); | 5847 var _queryParams = new core.Map(); |
| 5805 var _uploadMedia = null; | 5848 var _uploadMedia = null; |
| 5806 var _uploadOptions = null; | 5849 var _uploadOptions = null; |
| 5807 var _downloadOptions = commons.DownloadOptions.Metadata; | 5850 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5808 var _body = null; | 5851 var _body = null; |
| 5809 | 5852 |
| 5810 if (id == null) { | 5853 if (id == null) { |
| 5811 throw new core.ArgumentError("Parameter id is required."); | 5854 throw new core.ArgumentError("Parameter id is required."); |
| 5812 } | 5855 } |
| 5813 _queryParams["id"] = [id]; | 5856 _queryParams["id"] = [id]; |
| 5814 if (rating == null) { | 5857 if (rating == null) { |
| 5815 throw new core.ArgumentError("Parameter rating is required."); | 5858 throw new core.ArgumentError("Parameter rating is required."); |
| 5816 } | 5859 } |
| 5817 _queryParams["rating"] = [rating]; | 5860 _queryParams["rating"] = [rating]; |
| 5818 | 5861 |
| 5819 _downloadOptions = null; | 5862 _downloadOptions = null; |
| 5820 | 5863 |
| 5821 _url = 'videos/rate'; | 5864 _url = 'videos/rate'; |
| 5822 | 5865 |
| 5823 var _response = _requester.request(_url, | 5866 var _response = _requester.request(_url, "POST", |
| 5824 "POST", | 5867 body: _body, |
| 5825 body: _body, | 5868 queryParams: _queryParams, |
| 5826 queryParams: _queryParams, | 5869 uploadOptions: _uploadOptions, |
| 5827 uploadOptions: _uploadOptions, | 5870 uploadMedia: _uploadMedia, |
| 5828 uploadMedia: _uploadMedia, | 5871 downloadOptions: _downloadOptions); |
| 5829 downloadOptions: _downloadOptions); | |
| 5830 return _response.then((data) => null); | 5872 return _response.then((data) => null); |
| 5831 } | 5873 } |
| 5832 | 5874 |
| 5833 /** | 5875 /// Report abuse for a video. |
| 5834 * Report abuse for a video. | 5876 /// |
| 5835 * | 5877 /// [request] - The metadata request object. |
| 5836 * [request] - The metadata request object. | 5878 /// |
| 5837 * | 5879 /// Request parameters: |
| 5838 * Request parameters: | 5880 /// |
| 5839 * | 5881 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 5840 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5882 /// for YouTube content partners. |
| 5841 * YouTube content partners. | 5883 /// |
| 5842 * | 5884 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 5843 * The onBehalfOfContentOwner parameter indicates that the request's | 5885 /// authorization credentials identify a YouTube CMS user who is acting on |
| 5844 * authorization credentials identify a YouTube CMS user who is acting on | 5886 /// behalf of the content owner specified in the parameter value. This |
| 5845 * behalf of the content owner specified in the parameter value. This | 5887 /// parameter is intended for YouTube content partners that own and manage |
| 5846 * parameter is intended for YouTube content partners that own and manage many | 5888 /// many different YouTube channels. It allows content owners to authenticate |
| 5847 * different YouTube channels. It allows content owners to authenticate once | 5889 /// once and get access to all their video and channel data, without having |
| 5848 * and get access to all their video and channel data, without having to | 5890 /// to provide authentication credentials for each individual channel. The |
| 5849 * provide authentication credentials for each individual channel. The CMS | 5891 /// CMS account that the user authenticates with must be linked to the |
| 5850 * account that the user authenticates with must be linked to the specified | 5892 /// specified YouTube content owner. |
| 5851 * YouTube content owner. | 5893 /// |
| 5852 * | 5894 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5853 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5895 /// an error. |
| 5854 * error. | 5896 /// |
| 5855 * | 5897 /// If the used [http.Client] completes with an error when making a REST |
| 5856 * If the used [http.Client] completes with an error when making a REST call, | 5898 /// call, this method will complete with the same error. |
| 5857 * this method will complete with the same error. | 5899 async.Future reportAbuse(VideoAbuseReport request, |
| 5858 */ | 5900 {core.String onBehalfOfContentOwner}) { |
| 5859 async.Future reportAbuse(VideoAbuseReport request, {core.String onBehalfOfCont
entOwner}) { | |
| 5860 var _url = null; | 5901 var _url = null; |
| 5861 var _queryParams = new core.Map(); | 5902 var _queryParams = new core.Map(); |
| 5862 var _uploadMedia = null; | 5903 var _uploadMedia = null; |
| 5863 var _uploadOptions = null; | 5904 var _uploadOptions = null; |
| 5864 var _downloadOptions = commons.DownloadOptions.Metadata; | 5905 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5865 var _body = null; | 5906 var _body = null; |
| 5866 | 5907 |
| 5867 if (request != null) { | 5908 if (request != null) { |
| 5868 _body = convert.JSON.encode((request).toJson()); | 5909 _body = convert.JSON.encode((request).toJson()); |
| 5869 } | 5910 } |
| 5870 if (onBehalfOfContentOwner != null) { | 5911 if (onBehalfOfContentOwner != null) { |
| 5871 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5912 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 5872 } | 5913 } |
| 5873 | 5914 |
| 5874 _downloadOptions = null; | 5915 _downloadOptions = null; |
| 5875 | 5916 |
| 5876 _url = 'videos/reportAbuse'; | 5917 _url = 'videos/reportAbuse'; |
| 5877 | 5918 |
| 5878 var _response = _requester.request(_url, | 5919 var _response = _requester.request(_url, "POST", |
| 5879 "POST", | 5920 body: _body, |
| 5880 body: _body, | 5921 queryParams: _queryParams, |
| 5881 queryParams: _queryParams, | 5922 uploadOptions: _uploadOptions, |
| 5882 uploadOptions: _uploadOptions, | 5923 uploadMedia: _uploadMedia, |
| 5883 uploadMedia: _uploadMedia, | 5924 downloadOptions: _downloadOptions); |
| 5884 downloadOptions: _downloadOptions); | |
| 5885 return _response.then((data) => null); | 5925 return _response.then((data) => null); |
| 5886 } | 5926 } |
| 5887 | 5927 |
| 5888 /** | 5928 /// Updates a video's metadata. |
| 5889 * Updates a video's metadata. | 5929 /// |
| 5890 * | 5930 /// [request] - The metadata request object. |
| 5891 * [request] - The metadata request object. | 5931 /// |
| 5892 * | 5932 /// Request parameters: |
| 5893 * Request parameters: | 5933 /// |
| 5894 * | 5934 /// [part] - The part parameter serves two purposes in this operation. It |
| 5895 * [part] - The part parameter serves two purposes in this operation. It | 5935 /// identifies the properties that the write operation will set as well as |
| 5896 * identifies the properties that the write operation will set as well as the | 5936 /// the properties that the API response will include. |
| 5897 * properties that the API response will include. | 5937 /// |
| 5898 * | 5938 /// Note that this method will override the existing values for all of the |
| 5899 * Note that this method will override the existing values for all of the | 5939 /// mutable properties that are contained in any parts that the parameter |
| 5900 * mutable properties that are contained in any parts that the parameter value | 5940 /// value specifies. For example, a video's privacy setting is contained in |
| 5901 * specifies. For example, a video's privacy setting is contained in the | 5941 /// the status part. As such, if your request is updating a private video, |
| 5902 * status part. As such, if your request is updating a private video, and the | 5942 /// and the request's part parameter value includes the status part, the |
| 5903 * request's part parameter value includes the status part, the video's | 5943 /// video's privacy setting will be updated to whatever value the request |
| 5904 * privacy setting will be updated to whatever value the request body | 5944 /// body specifies. If the request body does not specify a value, the |
| 5905 * specifies. If the request body does not specify a value, the existing | 5945 /// existing privacy setting will be removed and the video will revert to the |
| 5906 * privacy setting will be removed and the video will revert to the default | 5946 /// default privacy setting. |
| 5907 * privacy setting. | 5947 /// |
| 5908 * | 5948 /// In addition, not all parts contain properties that can be set when |
| 5909 * In addition, not all parts contain properties that can be set when | 5949 /// inserting or updating a video. For example, the statistics object |
| 5910 * inserting or updating a video. For example, the statistics object | 5950 /// encapsulates statistics that YouTube calculates for a video and does not |
| 5911 * encapsulates statistics that YouTube calculates for a video and does not | 5951 /// contain values that you can set or modify. If the parameter value |
| 5912 * contain values that you can set or modify. If the parameter value specifies | 5952 /// specifies a part that does not contain mutable values, that part will |
| 5913 * a part that does not contain mutable values, that part will still be | 5953 /// still be included in the API response. |
| 5914 * included in the API response. | 5954 /// |
| 5915 * | 5955 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 5916 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 5956 /// for YouTube content partners. |
| 5917 * YouTube content partners. | 5957 /// |
| 5918 * | 5958 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 5919 * The onBehalfOfContentOwner parameter indicates that the request's | 5959 /// authorization credentials identify a YouTube CMS user who is acting on |
| 5920 * authorization credentials identify a YouTube CMS user who is acting on | 5960 /// behalf of the content owner specified in the parameter value. This |
| 5921 * behalf of the content owner specified in the parameter value. This | 5961 /// parameter is intended for YouTube content partners that own and manage |
| 5922 * parameter is intended for YouTube content partners that own and manage many | 5962 /// many different YouTube channels. It allows content owners to authenticate |
| 5923 * different YouTube channels. It allows content owners to authenticate once | 5963 /// once and get access to all their video and channel data, without having |
| 5924 * and get access to all their video and channel data, without having to | 5964 /// to provide authentication credentials for each individual channel. The |
| 5925 * provide authentication credentials for each individual channel. The actual | 5965 /// actual CMS account that the user authenticates with must be linked to the |
| 5926 * CMS account that the user authenticates with must be linked to the | 5966 /// specified YouTube content owner. |
| 5927 * specified YouTube content owner. | 5967 /// |
| 5928 * | 5968 /// Completes with a [Video]. |
| 5929 * Completes with a [Video]. | 5969 /// |
| 5930 * | 5970 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 5931 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 5971 /// an error. |
| 5932 * error. | 5972 /// |
| 5933 * | 5973 /// If the used [http.Client] completes with an error when making a REST |
| 5934 * If the used [http.Client] completes with an error when making a REST call, | 5974 /// call, this method will complete with the same error. |
| 5935 * this method will complete with the same error. | 5975 async.Future<Video> update(Video request, core.String part, |
| 5936 */ | 5976 {core.String onBehalfOfContentOwner}) { |
| 5937 async.Future<Video> update(Video request, core.String part, {core.String onBeh
alfOfContentOwner}) { | |
| 5938 var _url = null; | 5977 var _url = null; |
| 5939 var _queryParams = new core.Map(); | 5978 var _queryParams = new core.Map(); |
| 5940 var _uploadMedia = null; | 5979 var _uploadMedia = null; |
| 5941 var _uploadOptions = null; | 5980 var _uploadOptions = null; |
| 5942 var _downloadOptions = commons.DownloadOptions.Metadata; | 5981 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 5943 var _body = null; | 5982 var _body = null; |
| 5944 | 5983 |
| 5945 if (request != null) { | 5984 if (request != null) { |
| 5946 _body = convert.JSON.encode((request).toJson()); | 5985 _body = convert.JSON.encode((request).toJson()); |
| 5947 } | 5986 } |
| 5948 if (part == null) { | 5987 if (part == null) { |
| 5949 throw new core.ArgumentError("Parameter part is required."); | 5988 throw new core.ArgumentError("Parameter part is required."); |
| 5950 } | 5989 } |
| 5951 _queryParams["part"] = [part]; | 5990 _queryParams["part"] = [part]; |
| 5952 if (onBehalfOfContentOwner != null) { | 5991 if (onBehalfOfContentOwner != null) { |
| 5953 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5992 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 5954 } | 5993 } |
| 5955 | 5994 |
| 5956 _url = 'videos'; | 5995 _url = 'videos'; |
| 5957 | 5996 |
| 5958 var _response = _requester.request(_url, | 5997 var _response = _requester.request(_url, "PUT", |
| 5959 "PUT", | 5998 body: _body, |
| 5960 body: _body, | 5999 queryParams: _queryParams, |
| 5961 queryParams: _queryParams, | 6000 uploadOptions: _uploadOptions, |
| 5962 uploadOptions: _uploadOptions, | 6001 uploadMedia: _uploadMedia, |
| 5963 uploadMedia: _uploadMedia, | 6002 downloadOptions: _downloadOptions); |
| 5964 downloadOptions: _downloadOptions); | |
| 5965 return _response.then((data) => new Video.fromJson(data)); | 6003 return _response.then((data) => new Video.fromJson(data)); |
| 5966 } | 6004 } |
| 5967 | |
| 5968 } | 6005 } |
| 5969 | 6006 |
| 5970 | |
| 5971 class WatermarksResourceApi { | 6007 class WatermarksResourceApi { |
| 5972 final commons.ApiRequester _requester; | 6008 final commons.ApiRequester _requester; |
| 5973 | 6009 |
| 5974 WatermarksResourceApi(commons.ApiRequester client) : | 6010 WatermarksResourceApi(commons.ApiRequester client) : _requester = client; |
| 5975 _requester = client; | |
| 5976 | 6011 |
| 5977 /** | 6012 /// Uploads a watermark image to YouTube and sets it for a channel. |
| 5978 * Uploads a watermark image to YouTube and sets it for a channel. | 6013 /// |
| 5979 * | 6014 /// [request] - The metadata request object. |
| 5980 * [request] - The metadata request object. | 6015 /// |
| 5981 * | 6016 /// Request parameters: |
| 5982 * Request parameters: | 6017 /// |
| 5983 * | 6018 /// [channelId] - The channelId parameter specifies the YouTube channel ID |
| 5984 * [channelId] - The channelId parameter specifies the YouTube channel ID for | 6019 /// for which the watermark is being provided. |
| 5985 * which the watermark is being provided. | 6020 /// |
| 5986 * | 6021 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 5987 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 6022 /// for YouTube content partners. |
| 5988 * YouTube content partners. | 6023 /// |
| 5989 * | 6024 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 5990 * The onBehalfOfContentOwner parameter indicates that the request's | 6025 /// authorization credentials identify a YouTube CMS user who is acting on |
| 5991 * authorization credentials identify a YouTube CMS user who is acting on | 6026 /// behalf of the content owner specified in the parameter value. This |
| 5992 * behalf of the content owner specified in the parameter value. This | 6027 /// parameter is intended for YouTube content partners that own and manage |
| 5993 * parameter is intended for YouTube content partners that own and manage many | 6028 /// many different YouTube channels. It allows content owners to authenticate |
| 5994 * different YouTube channels. It allows content owners to authenticate once | 6029 /// once and get access to all their video and channel data, without having |
| 5995 * and get access to all their video and channel data, without having to | 6030 /// to provide authentication credentials for each individual channel. The |
| 5996 * provide authentication credentials for each individual channel. The CMS | 6031 /// CMS account that the user authenticates with must be linked to the |
| 5997 * account that the user authenticates with must be linked to the specified | 6032 /// specified YouTube content owner. |
| 5998 * YouTube content owner. | 6033 /// |
| 5999 * | 6034 /// [uploadMedia] - The media to upload. |
| 6000 * [uploadMedia] - The media to upload. | 6035 /// |
| 6001 * | 6036 /// [uploadOptions] - Options for the media upload. Streaming Media without |
| 6002 * [uploadOptions] - Options for the media upload. Streaming Media without the | 6037 /// the length being known ahead of time is only supported via resumable |
| 6003 * length being known ahead of time is only supported via resumable uploads. | 6038 /// uploads. |
| 6004 * | 6039 /// |
| 6005 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 6040 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 6006 * error. | 6041 /// an error. |
| 6007 * | 6042 /// |
| 6008 * If the used [http.Client] completes with an error when making a REST call, | 6043 /// If the used [http.Client] completes with an error when making a REST |
| 6009 * this method will complete with the same error. | 6044 /// call, this method will complete with the same error. |
| 6010 */ | 6045 async.Future set(InvideoBranding request, core.String channelId, |
| 6011 async.Future set(InvideoBranding request, core.String channelId, {core.String
onBehalfOfContentOwner, commons.UploadOptions uploadOptions : commons.UploadOpti
ons.Default, commons.Media uploadMedia}) { | 6046 {core.String onBehalfOfContentOwner, |
| 6047 commons.UploadOptions uploadOptions: commons.UploadOptions.Default, |
| 6048 commons.Media uploadMedia}) { |
| 6012 var _url = null; | 6049 var _url = null; |
| 6013 var _queryParams = new core.Map(); | 6050 var _queryParams = new core.Map(); |
| 6014 var _uploadMedia = null; | 6051 var _uploadMedia = null; |
| 6015 var _uploadOptions = null; | 6052 var _uploadOptions = null; |
| 6016 var _downloadOptions = commons.DownloadOptions.Metadata; | 6053 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6017 var _body = null; | 6054 var _body = null; |
| 6018 | 6055 |
| 6019 if (request != null) { | 6056 if (request != null) { |
| 6020 _body = convert.JSON.encode((request).toJson()); | 6057 _body = convert.JSON.encode((request).toJson()); |
| 6021 } | 6058 } |
| 6022 if (channelId == null) { | 6059 if (channelId == null) { |
| 6023 throw new core.ArgumentError("Parameter channelId is required."); | 6060 throw new core.ArgumentError("Parameter channelId is required."); |
| 6024 } | 6061 } |
| 6025 _queryParams["channelId"] = [channelId]; | 6062 _queryParams["channelId"] = [channelId]; |
| 6026 if (onBehalfOfContentOwner != null) { | 6063 if (onBehalfOfContentOwner != null) { |
| 6027 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 6064 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 6028 } | 6065 } |
| 6029 | 6066 |
| 6030 | 6067 _uploadMedia = uploadMedia; |
| 6031 _uploadMedia = uploadMedia; | 6068 _uploadOptions = uploadOptions; |
| 6032 _uploadOptions = uploadOptions; | |
| 6033 _downloadOptions = null; | 6069 _downloadOptions = null; |
| 6034 | 6070 |
| 6035 if (_uploadMedia == null) { | 6071 if (_uploadMedia == null) { |
| 6036 _url = 'watermarks/set'; | 6072 _url = 'watermarks/set'; |
| 6037 } else if (_uploadOptions is commons.ResumableUploadOptions) { | 6073 } else if (_uploadOptions is commons.ResumableUploadOptions) { |
| 6038 _url = '/resumable/upload/youtube/v3/watermarks/set'; | 6074 _url = '/resumable/upload/youtube/v3/watermarks/set'; |
| 6039 } else { | 6075 } else { |
| 6040 _url = '/upload/youtube/v3/watermarks/set'; | 6076 _url = '/upload/youtube/v3/watermarks/set'; |
| 6041 } | 6077 } |
| 6042 | 6078 |
| 6043 | 6079 var _response = _requester.request(_url, "POST", |
| 6044 var _response = _requester.request(_url, | 6080 body: _body, |
| 6045 "POST", | 6081 queryParams: _queryParams, |
| 6046 body: _body, | 6082 uploadOptions: _uploadOptions, |
| 6047 queryParams: _queryParams, | 6083 uploadMedia: _uploadMedia, |
| 6048 uploadOptions: _uploadOptions, | 6084 downloadOptions: _downloadOptions); |
| 6049 uploadMedia: _uploadMedia, | |
| 6050 downloadOptions: _downloadOptions); | |
| 6051 return _response.then((data) => null); | 6085 return _response.then((data) => null); |
| 6052 } | 6086 } |
| 6053 | 6087 |
| 6054 /** | 6088 /// Deletes a channel's watermark image. |
| 6055 * Deletes a channel's watermark image. | 6089 /// |
| 6056 * | 6090 /// Request parameters: |
| 6057 * Request parameters: | 6091 /// |
| 6058 * | 6092 /// [channelId] - The channelId parameter specifies the YouTube channel ID |
| 6059 * [channelId] - The channelId parameter specifies the YouTube channel ID for | 6093 /// for which the watermark is being unset. |
| 6060 * which the watermark is being unset. | 6094 /// |
| 6061 * | 6095 /// [onBehalfOfContentOwner] - Note: This parameter is intended exclusively |
| 6062 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 6096 /// for YouTube content partners. |
| 6063 * YouTube content partners. | 6097 /// |
| 6064 * | 6098 /// The onBehalfOfContentOwner parameter indicates that the request's |
| 6065 * The onBehalfOfContentOwner parameter indicates that the request's | 6099 /// authorization credentials identify a YouTube CMS user who is acting on |
| 6066 * authorization credentials identify a YouTube CMS user who is acting on | 6100 /// behalf of the content owner specified in the parameter value. This |
| 6067 * behalf of the content owner specified in the parameter value. This | 6101 /// parameter is intended for YouTube content partners that own and manage |
| 6068 * parameter is intended for YouTube content partners that own and manage many | 6102 /// many different YouTube channels. It allows content owners to authenticate |
| 6069 * different YouTube channels. It allows content owners to authenticate once | 6103 /// once and get access to all their video and channel data, without having |
| 6070 * and get access to all their video and channel data, without having to | 6104 /// to provide authentication credentials for each individual channel. The |
| 6071 * provide authentication credentials for each individual channel. The CMS | 6105 /// CMS account that the user authenticates with must be linked to the |
| 6072 * account that the user authenticates with must be linked to the specified | 6106 /// specified YouTube content owner. |
| 6073 * YouTube content owner. | 6107 /// |
| 6074 * | 6108 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 6075 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 6109 /// an error. |
| 6076 * error. | 6110 /// |
| 6077 * | 6111 /// If the used [http.Client] completes with an error when making a REST |
| 6078 * If the used [http.Client] completes with an error when making a REST call, | 6112 /// call, this method will complete with the same error. |
| 6079 * this method will complete with the same error. | 6113 async.Future unset(core.String channelId, |
| 6080 */ | 6114 {core.String onBehalfOfContentOwner}) { |
| 6081 async.Future unset(core.String channelId, {core.String onBehalfOfContentOwner}
) { | |
| 6082 var _url = null; | 6115 var _url = null; |
| 6083 var _queryParams = new core.Map(); | 6116 var _queryParams = new core.Map(); |
| 6084 var _uploadMedia = null; | 6117 var _uploadMedia = null; |
| 6085 var _uploadOptions = null; | 6118 var _uploadOptions = null; |
| 6086 var _downloadOptions = commons.DownloadOptions.Metadata; | 6119 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 6087 var _body = null; | 6120 var _body = null; |
| 6088 | 6121 |
| 6089 if (channelId == null) { | 6122 if (channelId == null) { |
| 6090 throw new core.ArgumentError("Parameter channelId is required."); | 6123 throw new core.ArgumentError("Parameter channelId is required."); |
| 6091 } | 6124 } |
| 6092 _queryParams["channelId"] = [channelId]; | 6125 _queryParams["channelId"] = [channelId]; |
| 6093 if (onBehalfOfContentOwner != null) { | 6126 if (onBehalfOfContentOwner != null) { |
| 6094 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 6127 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
| 6095 } | 6128 } |
| 6096 | 6129 |
| 6097 _downloadOptions = null; | 6130 _downloadOptions = null; |
| 6098 | 6131 |
| 6099 _url = 'watermarks/unset'; | 6132 _url = 'watermarks/unset'; |
| 6100 | 6133 |
| 6101 var _response = _requester.request(_url, | 6134 var _response = _requester.request(_url, "POST", |
| 6102 "POST", | 6135 body: _body, |
| 6103 body: _body, | 6136 queryParams: _queryParams, |
| 6104 queryParams: _queryParams, | 6137 uploadOptions: _uploadOptions, |
| 6105 uploadOptions: _uploadOptions, | 6138 uploadMedia: _uploadMedia, |
| 6106 uploadMedia: _uploadMedia, | 6139 downloadOptions: _downloadOptions); |
| 6107 downloadOptions: _downloadOptions); | |
| 6108 return _response.then((data) => null); | 6140 return _response.then((data) => null); |
| 6109 } | 6141 } |
| 6110 | |
| 6111 } | 6142 } |
| 6112 | 6143 |
| 6144 /// Rights management policy for YouTube resources. |
| 6145 class AccessPolicy { |
| 6146 /// The value of allowed indicates whether the access to the policy is |
| 6147 /// allowed or denied by default. |
| 6148 core.bool allowed; |
| 6113 | 6149 |
| 6114 | 6150 /// A list of region codes that identify countries where the default policy |
| 6115 /** Rights management policy for YouTube resources. */ | 6151 /// do not apply. |
| 6116 class AccessPolicy { | |
| 6117 /** | |
| 6118 * The value of allowed indicates whether the access to the policy is allowed | |
| 6119 * or denied by default. | |
| 6120 */ | |
| 6121 core.bool allowed; | |
| 6122 /** | |
| 6123 * A list of region codes that identify countries where the default policy do | |
| 6124 * not apply. | |
| 6125 */ | |
| 6126 core.List<core.String> exception; | 6152 core.List<core.String> exception; |
| 6127 | 6153 |
| 6128 AccessPolicy(); | 6154 AccessPolicy(); |
| 6129 | 6155 |
| 6130 AccessPolicy.fromJson(core.Map _json) { | 6156 AccessPolicy.fromJson(core.Map _json) { |
| 6131 if (_json.containsKey("allowed")) { | 6157 if (_json.containsKey("allowed")) { |
| 6132 allowed = _json["allowed"]; | 6158 allowed = _json["allowed"]; |
| 6133 } | 6159 } |
| 6134 if (_json.containsKey("exception")) { | 6160 if (_json.containsKey("exception")) { |
| 6135 exception = _json["exception"]; | 6161 exception = _json["exception"]; |
| 6136 } | 6162 } |
| 6137 } | 6163 } |
| 6138 | 6164 |
| 6139 core.Map<core.String, core.Object> toJson() { | 6165 core.Map<core.String, core.Object> toJson() { |
| 6140 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6166 final core.Map<core.String, core.Object> _json = |
| 6167 new core.Map<core.String, core.Object>(); |
| 6141 if (allowed != null) { | 6168 if (allowed != null) { |
| 6142 _json["allowed"] = allowed; | 6169 _json["allowed"] = allowed; |
| 6143 } | 6170 } |
| 6144 if (exception != null) { | 6171 if (exception != null) { |
| 6145 _json["exception"] = exception; | 6172 _json["exception"] = exception; |
| 6146 } | 6173 } |
| 6147 return _json; | 6174 return _json; |
| 6148 } | 6175 } |
| 6149 } | 6176 } |
| 6150 | 6177 |
| 6151 /** | 6178 /// An activity resource contains information about an action that a particular |
| 6152 * An activity resource contains information about an action that a particular | 6179 /// channel, or user, has taken on YouTube.The actions reported in activity |
| 6153 * channel, or user, has taken on YouTube.The actions reported in activity feeds | 6180 /// feeds include rating a video, sharing a video, marking a video as a |
| 6154 * include rating a video, sharing a video, marking a video as a favorite, | 6181 /// favorite, commenting on a video, uploading a video, and so forth. Each |
| 6155 * commenting on a video, uploading a video, and so forth. Each activity | 6182 /// activity resource identifies the type of action, the channel associated |
| 6156 * resource identifies the type of action, the channel associated with the | 6183 /// with the action, and the resource(s) associated with the action, such as |
| 6157 * action, and the resource(s) associated with the action, such as the video | 6184 /// the video that was rated or uploaded. |
| 6158 * that was rated or uploaded. | |
| 6159 */ | |
| 6160 class Activity { | 6185 class Activity { |
| 6161 /** | 6186 /// The contentDetails object contains information about the content |
| 6162 * The contentDetails object contains information about the content associated | 6187 /// associated with the activity. For example, if the snippet.type value is |
| 6163 * with the activity. For example, if the snippet.type value is videoRated, | 6188 /// videoRated, then the contentDetails object's content identifies the rated |
| 6164 * then the contentDetails object's content identifies the rated video. | 6189 /// video. |
| 6165 */ | |
| 6166 ActivityContentDetails contentDetails; | 6190 ActivityContentDetails contentDetails; |
| 6167 /** Etag of this resource. */ | 6191 |
| 6192 /// Etag of this resource. |
| 6168 core.String etag; | 6193 core.String etag; |
| 6169 /** The ID that YouTube uses to uniquely identify the activity. */ | 6194 |
| 6195 /// The ID that YouTube uses to uniquely identify the activity. |
| 6170 core.String id; | 6196 core.String id; |
| 6171 /** | 6197 |
| 6172 * Identifies what kind of resource this is. Value: the fixed string | 6198 /// Identifies what kind of resource this is. Value: the fixed string |
| 6173 * "youtube#activity". | 6199 /// "youtube#activity". |
| 6174 */ | |
| 6175 core.String kind; | 6200 core.String kind; |
| 6176 /** | 6201 |
| 6177 * The snippet object contains basic details about the activity, including the | 6202 /// The snippet object contains basic details about the activity, including |
| 6178 * activity's type and group ID. | 6203 /// the activity's type and group ID. |
| 6179 */ | |
| 6180 ActivitySnippet snippet; | 6204 ActivitySnippet snippet; |
| 6181 | 6205 |
| 6182 Activity(); | 6206 Activity(); |
| 6183 | 6207 |
| 6184 Activity.fromJson(core.Map _json) { | 6208 Activity.fromJson(core.Map _json) { |
| 6185 if (_json.containsKey("contentDetails")) { | 6209 if (_json.containsKey("contentDetails")) { |
| 6186 contentDetails = new ActivityContentDetails.fromJson(_json["contentDetails
"]); | 6210 contentDetails = |
| 6211 new ActivityContentDetails.fromJson(_json["contentDetails"]); |
| 6187 } | 6212 } |
| 6188 if (_json.containsKey("etag")) { | 6213 if (_json.containsKey("etag")) { |
| 6189 etag = _json["etag"]; | 6214 etag = _json["etag"]; |
| 6190 } | 6215 } |
| 6191 if (_json.containsKey("id")) { | 6216 if (_json.containsKey("id")) { |
| 6192 id = _json["id"]; | 6217 id = _json["id"]; |
| 6193 } | 6218 } |
| 6194 if (_json.containsKey("kind")) { | 6219 if (_json.containsKey("kind")) { |
| 6195 kind = _json["kind"]; | 6220 kind = _json["kind"]; |
| 6196 } | 6221 } |
| 6197 if (_json.containsKey("snippet")) { | 6222 if (_json.containsKey("snippet")) { |
| 6198 snippet = new ActivitySnippet.fromJson(_json["snippet"]); | 6223 snippet = new ActivitySnippet.fromJson(_json["snippet"]); |
| 6199 } | 6224 } |
| 6200 } | 6225 } |
| 6201 | 6226 |
| 6202 core.Map<core.String, core.Object> toJson() { | 6227 core.Map<core.String, core.Object> toJson() { |
| 6203 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6228 final core.Map<core.String, core.Object> _json = |
| 6229 new core.Map<core.String, core.Object>(); |
| 6204 if (contentDetails != null) { | 6230 if (contentDetails != null) { |
| 6205 _json["contentDetails"] = (contentDetails).toJson(); | 6231 _json["contentDetails"] = (contentDetails).toJson(); |
| 6206 } | 6232 } |
| 6207 if (etag != null) { | 6233 if (etag != null) { |
| 6208 _json["etag"] = etag; | 6234 _json["etag"] = etag; |
| 6209 } | 6235 } |
| 6210 if (id != null) { | 6236 if (id != null) { |
| 6211 _json["id"] = id; | 6237 _json["id"] = id; |
| 6212 } | 6238 } |
| 6213 if (kind != null) { | 6239 if (kind != null) { |
| 6214 _json["kind"] = kind; | 6240 _json["kind"] = kind; |
| 6215 } | 6241 } |
| 6216 if (snippet != null) { | 6242 if (snippet != null) { |
| 6217 _json["snippet"] = (snippet).toJson(); | 6243 _json["snippet"] = (snippet).toJson(); |
| 6218 } | 6244 } |
| 6219 return _json; | 6245 return _json; |
| 6220 } | 6246 } |
| 6221 } | 6247 } |
| 6222 | 6248 |
| 6223 /** | 6249 /// Details about the content of an activity: the video that was shared, the |
| 6224 * Details about the content of an activity: the video that was shared, the | 6250 /// channel that was subscribed to, etc. |
| 6225 * channel that was subscribed to, etc. | |
| 6226 */ | |
| 6227 class ActivityContentDetails { | 6251 class ActivityContentDetails { |
| 6228 /** | 6252 /// The bulletin object contains details about a channel bulletin post. This |
| 6229 * The bulletin object contains details about a channel bulletin post. This | 6253 /// object is only present if the snippet.type is bulletin. |
| 6230 * object is only present if the snippet.type is bulletin. | |
| 6231 */ | |
| 6232 ActivityContentDetailsBulletin bulletin; | 6254 ActivityContentDetailsBulletin bulletin; |
| 6233 /** | 6255 |
| 6234 * The channelItem object contains details about a resource which was added to | 6256 /// The channelItem object contains details about a resource which was added |
| 6235 * a channel. This property is only present if the snippet.type is | 6257 /// to a channel. This property is only present if the snippet.type is |
| 6236 * channelItem. | 6258 /// channelItem. |
| 6237 */ | |
| 6238 ActivityContentDetailsChannelItem channelItem; | 6259 ActivityContentDetailsChannelItem channelItem; |
| 6239 /** | 6260 |
| 6240 * The comment object contains information about a resource that received a | 6261 /// The comment object contains information about a resource that received a |
| 6241 * comment. This property is only present if the snippet.type is comment. | 6262 /// comment. This property is only present if the snippet.type is comment. |
| 6242 */ | |
| 6243 ActivityContentDetailsComment comment; | 6263 ActivityContentDetailsComment comment; |
| 6244 /** | 6264 |
| 6245 * The favorite object contains information about a video that was marked as a | 6265 /// The favorite object contains information about a video that was marked as |
| 6246 * favorite video. This property is only present if the snippet.type is | 6266 /// a favorite video. This property is only present if the snippet.type is |
| 6247 * favorite. | 6267 /// favorite. |
| 6248 */ | |
| 6249 ActivityContentDetailsFavorite favorite; | 6268 ActivityContentDetailsFavorite favorite; |
| 6250 /** | 6269 |
| 6251 * The like object contains information about a resource that received a | 6270 /// The like object contains information about a resource that received a |
| 6252 * positive (like) rating. This property is only present if the snippet.type | 6271 /// positive (like) rating. This property is only present if the snippet.type |
| 6253 * is like. | 6272 /// is like. |
| 6254 */ | |
| 6255 ActivityContentDetailsLike like; | 6273 ActivityContentDetailsLike like; |
| 6256 /** | 6274 |
| 6257 * The playlistItem object contains information about a new playlist item. | 6275 /// The playlistItem object contains information about a new playlist item. |
| 6258 * This property is only present if the snippet.type is playlistItem. | 6276 /// This property is only present if the snippet.type is playlistItem. |
| 6259 */ | |
| 6260 ActivityContentDetailsPlaylistItem playlistItem; | 6277 ActivityContentDetailsPlaylistItem playlistItem; |
| 6261 /** | 6278 |
| 6262 * The promotedItem object contains details about a resource which is being | 6279 /// The promotedItem object contains details about a resource which is being |
| 6263 * promoted. This property is only present if the snippet.type is | 6280 /// promoted. This property is only present if the snippet.type is |
| 6264 * promotedItem. | 6281 /// promotedItem. |
| 6265 */ | |
| 6266 ActivityContentDetailsPromotedItem promotedItem; | 6282 ActivityContentDetailsPromotedItem promotedItem; |
| 6267 /** | 6283 |
| 6268 * The recommendation object contains information about a recommended | 6284 /// The recommendation object contains information about a recommended |
| 6269 * resource. This property is only present if the snippet.type is | 6285 /// resource. This property is only present if the snippet.type is |
| 6270 * recommendation. | 6286 /// recommendation. |
| 6271 */ | |
| 6272 ActivityContentDetailsRecommendation recommendation; | 6287 ActivityContentDetailsRecommendation recommendation; |
| 6273 /** | 6288 |
| 6274 * The social object contains details about a social network post. This | 6289 /// The social object contains details about a social network post. This |
| 6275 * property is only present if the snippet.type is social. | 6290 /// property is only present if the snippet.type is social. |
| 6276 */ | |
| 6277 ActivityContentDetailsSocial social; | 6291 ActivityContentDetailsSocial social; |
| 6278 /** | 6292 |
| 6279 * The subscription object contains information about a channel that a user | 6293 /// The subscription object contains information about a channel that a user |
| 6280 * subscribed to. This property is only present if the snippet.type is | 6294 /// subscribed to. This property is only present if the snippet.type is |
| 6281 * subscription. | 6295 /// subscription. |
| 6282 */ | |
| 6283 ActivityContentDetailsSubscription subscription; | 6296 ActivityContentDetailsSubscription subscription; |
| 6284 /** | 6297 |
| 6285 * The upload object contains information about the uploaded video. This | 6298 /// The upload object contains information about the uploaded video. This |
| 6286 * property is only present if the snippet.type is upload. | 6299 /// property is only present if the snippet.type is upload. |
| 6287 */ | |
| 6288 ActivityContentDetailsUpload upload; | 6300 ActivityContentDetailsUpload upload; |
| 6289 | 6301 |
| 6290 ActivityContentDetails(); | 6302 ActivityContentDetails(); |
| 6291 | 6303 |
| 6292 ActivityContentDetails.fromJson(core.Map _json) { | 6304 ActivityContentDetails.fromJson(core.Map _json) { |
| 6293 if (_json.containsKey("bulletin")) { | 6305 if (_json.containsKey("bulletin")) { |
| 6294 bulletin = new ActivityContentDetailsBulletin.fromJson(_json["bulletin"]); | 6306 bulletin = new ActivityContentDetailsBulletin.fromJson(_json["bulletin"]); |
| 6295 } | 6307 } |
| 6296 if (_json.containsKey("channelItem")) { | 6308 if (_json.containsKey("channelItem")) { |
| 6297 channelItem = new ActivityContentDetailsChannelItem.fromJson(_json["channe
lItem"]); | 6309 channelItem = |
| 6310 new ActivityContentDetailsChannelItem.fromJson(_json["channelItem"]); |
| 6298 } | 6311 } |
| 6299 if (_json.containsKey("comment")) { | 6312 if (_json.containsKey("comment")) { |
| 6300 comment = new ActivityContentDetailsComment.fromJson(_json["comment"]); | 6313 comment = new ActivityContentDetailsComment.fromJson(_json["comment"]); |
| 6301 } | 6314 } |
| 6302 if (_json.containsKey("favorite")) { | 6315 if (_json.containsKey("favorite")) { |
| 6303 favorite = new ActivityContentDetailsFavorite.fromJson(_json["favorite"]); | 6316 favorite = new ActivityContentDetailsFavorite.fromJson(_json["favorite"]); |
| 6304 } | 6317 } |
| 6305 if (_json.containsKey("like")) { | 6318 if (_json.containsKey("like")) { |
| 6306 like = new ActivityContentDetailsLike.fromJson(_json["like"]); | 6319 like = new ActivityContentDetailsLike.fromJson(_json["like"]); |
| 6307 } | 6320 } |
| 6308 if (_json.containsKey("playlistItem")) { | 6321 if (_json.containsKey("playlistItem")) { |
| 6309 playlistItem = new ActivityContentDetailsPlaylistItem.fromJson(_json["play
listItem"]); | 6322 playlistItem = new ActivityContentDetailsPlaylistItem.fromJson( |
| 6323 _json["playlistItem"]); |
| 6310 } | 6324 } |
| 6311 if (_json.containsKey("promotedItem")) { | 6325 if (_json.containsKey("promotedItem")) { |
| 6312 promotedItem = new ActivityContentDetailsPromotedItem.fromJson(_json["prom
otedItem"]); | 6326 promotedItem = new ActivityContentDetailsPromotedItem.fromJson( |
| 6327 _json["promotedItem"]); |
| 6313 } | 6328 } |
| 6314 if (_json.containsKey("recommendation")) { | 6329 if (_json.containsKey("recommendation")) { |
| 6315 recommendation = new ActivityContentDetailsRecommendation.fromJson(_json["
recommendation"]); | 6330 recommendation = new ActivityContentDetailsRecommendation.fromJson( |
| 6331 _json["recommendation"]); |
| 6316 } | 6332 } |
| 6317 if (_json.containsKey("social")) { | 6333 if (_json.containsKey("social")) { |
| 6318 social = new ActivityContentDetailsSocial.fromJson(_json["social"]); | 6334 social = new ActivityContentDetailsSocial.fromJson(_json["social"]); |
| 6319 } | 6335 } |
| 6320 if (_json.containsKey("subscription")) { | 6336 if (_json.containsKey("subscription")) { |
| 6321 subscription = new ActivityContentDetailsSubscription.fromJson(_json["subs
cription"]); | 6337 subscription = new ActivityContentDetailsSubscription.fromJson( |
| 6338 _json["subscription"]); |
| 6322 } | 6339 } |
| 6323 if (_json.containsKey("upload")) { | 6340 if (_json.containsKey("upload")) { |
| 6324 upload = new ActivityContentDetailsUpload.fromJson(_json["upload"]); | 6341 upload = new ActivityContentDetailsUpload.fromJson(_json["upload"]); |
| 6325 } | 6342 } |
| 6326 } | 6343 } |
| 6327 | 6344 |
| 6328 core.Map<core.String, core.Object> toJson() { | 6345 core.Map<core.String, core.Object> toJson() { |
| 6329 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6346 final core.Map<core.String, core.Object> _json = |
| 6347 new core.Map<core.String, core.Object>(); |
| 6330 if (bulletin != null) { | 6348 if (bulletin != null) { |
| 6331 _json["bulletin"] = (bulletin).toJson(); | 6349 _json["bulletin"] = (bulletin).toJson(); |
| 6332 } | 6350 } |
| 6333 if (channelItem != null) { | 6351 if (channelItem != null) { |
| 6334 _json["channelItem"] = (channelItem).toJson(); | 6352 _json["channelItem"] = (channelItem).toJson(); |
| 6335 } | 6353 } |
| 6336 if (comment != null) { | 6354 if (comment != null) { |
| 6337 _json["comment"] = (comment).toJson(); | 6355 _json["comment"] = (comment).toJson(); |
| 6338 } | 6356 } |
| 6339 if (favorite != null) { | 6357 if (favorite != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 6357 if (subscription != null) { | 6375 if (subscription != null) { |
| 6358 _json["subscription"] = (subscription).toJson(); | 6376 _json["subscription"] = (subscription).toJson(); |
| 6359 } | 6377 } |
| 6360 if (upload != null) { | 6378 if (upload != null) { |
| 6361 _json["upload"] = (upload).toJson(); | 6379 _json["upload"] = (upload).toJson(); |
| 6362 } | 6380 } |
| 6363 return _json; | 6381 return _json; |
| 6364 } | 6382 } |
| 6365 } | 6383 } |
| 6366 | 6384 |
| 6367 /** Details about a channel bulletin post. */ | 6385 /// Details about a channel bulletin post. |
| 6368 class ActivityContentDetailsBulletin { | 6386 class ActivityContentDetailsBulletin { |
| 6369 /** | 6387 /// The resourceId object contains information that identifies the resource |
| 6370 * The resourceId object contains information that identifies the resource | 6388 /// associated with a bulletin post. |
| 6371 * associated with a bulletin post. | |
| 6372 */ | |
| 6373 ResourceId resourceId; | 6389 ResourceId resourceId; |
| 6374 | 6390 |
| 6375 ActivityContentDetailsBulletin(); | 6391 ActivityContentDetailsBulletin(); |
| 6376 | 6392 |
| 6377 ActivityContentDetailsBulletin.fromJson(core.Map _json) { | 6393 ActivityContentDetailsBulletin.fromJson(core.Map _json) { |
| 6378 if (_json.containsKey("resourceId")) { | 6394 if (_json.containsKey("resourceId")) { |
| 6379 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6395 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6380 } | 6396 } |
| 6381 } | 6397 } |
| 6382 | 6398 |
| 6383 core.Map<core.String, core.Object> toJson() { | 6399 core.Map<core.String, core.Object> toJson() { |
| 6384 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6400 final core.Map<core.String, core.Object> _json = |
| 6401 new core.Map<core.String, core.Object>(); |
| 6385 if (resourceId != null) { | 6402 if (resourceId != null) { |
| 6386 _json["resourceId"] = (resourceId).toJson(); | 6403 _json["resourceId"] = (resourceId).toJson(); |
| 6387 } | 6404 } |
| 6388 return _json; | 6405 return _json; |
| 6389 } | 6406 } |
| 6390 } | 6407 } |
| 6391 | 6408 |
| 6392 /** Details about a resource which was added to a channel. */ | 6409 /// Details about a resource which was added to a channel. |
| 6393 class ActivityContentDetailsChannelItem { | 6410 class ActivityContentDetailsChannelItem { |
| 6394 /** | 6411 /// The resourceId object contains information that identifies the resource |
| 6395 * The resourceId object contains information that identifies the resource | 6412 /// that was added to the channel. |
| 6396 * that was added to the channel. | |
| 6397 */ | |
| 6398 ResourceId resourceId; | 6413 ResourceId resourceId; |
| 6399 | 6414 |
| 6400 ActivityContentDetailsChannelItem(); | 6415 ActivityContentDetailsChannelItem(); |
| 6401 | 6416 |
| 6402 ActivityContentDetailsChannelItem.fromJson(core.Map _json) { | 6417 ActivityContentDetailsChannelItem.fromJson(core.Map _json) { |
| 6403 if (_json.containsKey("resourceId")) { | 6418 if (_json.containsKey("resourceId")) { |
| 6404 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6419 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6405 } | 6420 } |
| 6406 } | 6421 } |
| 6407 | 6422 |
| 6408 core.Map<core.String, core.Object> toJson() { | 6423 core.Map<core.String, core.Object> toJson() { |
| 6409 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6424 final core.Map<core.String, core.Object> _json = |
| 6425 new core.Map<core.String, core.Object>(); |
| 6410 if (resourceId != null) { | 6426 if (resourceId != null) { |
| 6411 _json["resourceId"] = (resourceId).toJson(); | 6427 _json["resourceId"] = (resourceId).toJson(); |
| 6412 } | 6428 } |
| 6413 return _json; | 6429 return _json; |
| 6414 } | 6430 } |
| 6415 } | 6431 } |
| 6416 | 6432 |
| 6417 /** Information about a resource that received a comment. */ | 6433 /// Information about a resource that received a comment. |
| 6418 class ActivityContentDetailsComment { | 6434 class ActivityContentDetailsComment { |
| 6419 /** | 6435 /// The resourceId object contains information that identifies the resource |
| 6420 * The resourceId object contains information that identifies the resource | 6436 /// associated with the comment. |
| 6421 * associated with the comment. | |
| 6422 */ | |
| 6423 ResourceId resourceId; | 6437 ResourceId resourceId; |
| 6424 | 6438 |
| 6425 ActivityContentDetailsComment(); | 6439 ActivityContentDetailsComment(); |
| 6426 | 6440 |
| 6427 ActivityContentDetailsComment.fromJson(core.Map _json) { | 6441 ActivityContentDetailsComment.fromJson(core.Map _json) { |
| 6428 if (_json.containsKey("resourceId")) { | 6442 if (_json.containsKey("resourceId")) { |
| 6429 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6443 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6430 } | 6444 } |
| 6431 } | 6445 } |
| 6432 | 6446 |
| 6433 core.Map<core.String, core.Object> toJson() { | 6447 core.Map<core.String, core.Object> toJson() { |
| 6434 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6448 final core.Map<core.String, core.Object> _json = |
| 6449 new core.Map<core.String, core.Object>(); |
| 6435 if (resourceId != null) { | 6450 if (resourceId != null) { |
| 6436 _json["resourceId"] = (resourceId).toJson(); | 6451 _json["resourceId"] = (resourceId).toJson(); |
| 6437 } | 6452 } |
| 6438 return _json; | 6453 return _json; |
| 6439 } | 6454 } |
| 6440 } | 6455 } |
| 6441 | 6456 |
| 6442 /** Information about a video that was marked as a favorite video. */ | 6457 /// Information about a video that was marked as a favorite video. |
| 6443 class ActivityContentDetailsFavorite { | 6458 class ActivityContentDetailsFavorite { |
| 6444 /** | 6459 /// The resourceId object contains information that identifies the resource |
| 6445 * The resourceId object contains information that identifies the resource | 6460 /// that was marked as a favorite. |
| 6446 * that was marked as a favorite. | |
| 6447 */ | |
| 6448 ResourceId resourceId; | 6461 ResourceId resourceId; |
| 6449 | 6462 |
| 6450 ActivityContentDetailsFavorite(); | 6463 ActivityContentDetailsFavorite(); |
| 6451 | 6464 |
| 6452 ActivityContentDetailsFavorite.fromJson(core.Map _json) { | 6465 ActivityContentDetailsFavorite.fromJson(core.Map _json) { |
| 6453 if (_json.containsKey("resourceId")) { | 6466 if (_json.containsKey("resourceId")) { |
| 6454 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6467 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6455 } | 6468 } |
| 6456 } | 6469 } |
| 6457 | 6470 |
| 6458 core.Map<core.String, core.Object> toJson() { | 6471 core.Map<core.String, core.Object> toJson() { |
| 6459 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6472 final core.Map<core.String, core.Object> _json = |
| 6473 new core.Map<core.String, core.Object>(); |
| 6460 if (resourceId != null) { | 6474 if (resourceId != null) { |
| 6461 _json["resourceId"] = (resourceId).toJson(); | 6475 _json["resourceId"] = (resourceId).toJson(); |
| 6462 } | 6476 } |
| 6463 return _json; | 6477 return _json; |
| 6464 } | 6478 } |
| 6465 } | 6479 } |
| 6466 | 6480 |
| 6467 /** Information about a resource that received a positive (like) rating. */ | 6481 /// Information about a resource that received a positive (like) rating. |
| 6468 class ActivityContentDetailsLike { | 6482 class ActivityContentDetailsLike { |
| 6469 /** | 6483 /// The resourceId object contains information that identifies the rated |
| 6470 * The resourceId object contains information that identifies the rated | 6484 /// resource. |
| 6471 * resource. | |
| 6472 */ | |
| 6473 ResourceId resourceId; | 6485 ResourceId resourceId; |
| 6474 | 6486 |
| 6475 ActivityContentDetailsLike(); | 6487 ActivityContentDetailsLike(); |
| 6476 | 6488 |
| 6477 ActivityContentDetailsLike.fromJson(core.Map _json) { | 6489 ActivityContentDetailsLike.fromJson(core.Map _json) { |
| 6478 if (_json.containsKey("resourceId")) { | 6490 if (_json.containsKey("resourceId")) { |
| 6479 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6491 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6480 } | 6492 } |
| 6481 } | 6493 } |
| 6482 | 6494 |
| 6483 core.Map<core.String, core.Object> toJson() { | 6495 core.Map<core.String, core.Object> toJson() { |
| 6484 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6496 final core.Map<core.String, core.Object> _json = |
| 6497 new core.Map<core.String, core.Object>(); |
| 6485 if (resourceId != null) { | 6498 if (resourceId != null) { |
| 6486 _json["resourceId"] = (resourceId).toJson(); | 6499 _json["resourceId"] = (resourceId).toJson(); |
| 6487 } | 6500 } |
| 6488 return _json; | 6501 return _json; |
| 6489 } | 6502 } |
| 6490 } | 6503 } |
| 6491 | 6504 |
| 6492 /** Information about a new playlist item. */ | 6505 /// Information about a new playlist item. |
| 6493 class ActivityContentDetailsPlaylistItem { | 6506 class ActivityContentDetailsPlaylistItem { |
| 6494 /** The value that YouTube uses to uniquely identify the playlist. */ | 6507 /// The value that YouTube uses to uniquely identify the playlist. |
| 6495 core.String playlistId; | 6508 core.String playlistId; |
| 6496 /** ID of the item within the playlist. */ | 6509 |
| 6510 /// ID of the item within the playlist. |
| 6497 core.String playlistItemId; | 6511 core.String playlistItemId; |
| 6498 /** | 6512 |
| 6499 * The resourceId object contains information about the resource that was | 6513 /// The resourceId object contains information about the resource that was |
| 6500 * added to the playlist. | 6514 /// added to the playlist. |
| 6501 */ | |
| 6502 ResourceId resourceId; | 6515 ResourceId resourceId; |
| 6503 | 6516 |
| 6504 ActivityContentDetailsPlaylistItem(); | 6517 ActivityContentDetailsPlaylistItem(); |
| 6505 | 6518 |
| 6506 ActivityContentDetailsPlaylistItem.fromJson(core.Map _json) { | 6519 ActivityContentDetailsPlaylistItem.fromJson(core.Map _json) { |
| 6507 if (_json.containsKey("playlistId")) { | 6520 if (_json.containsKey("playlistId")) { |
| 6508 playlistId = _json["playlistId"]; | 6521 playlistId = _json["playlistId"]; |
| 6509 } | 6522 } |
| 6510 if (_json.containsKey("playlistItemId")) { | 6523 if (_json.containsKey("playlistItemId")) { |
| 6511 playlistItemId = _json["playlistItemId"]; | 6524 playlistItemId = _json["playlistItemId"]; |
| 6512 } | 6525 } |
| 6513 if (_json.containsKey("resourceId")) { | 6526 if (_json.containsKey("resourceId")) { |
| 6514 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6527 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6515 } | 6528 } |
| 6516 } | 6529 } |
| 6517 | 6530 |
| 6518 core.Map<core.String, core.Object> toJson() { | 6531 core.Map<core.String, core.Object> toJson() { |
| 6519 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6532 final core.Map<core.String, core.Object> _json = |
| 6533 new core.Map<core.String, core.Object>(); |
| 6520 if (playlistId != null) { | 6534 if (playlistId != null) { |
| 6521 _json["playlistId"] = playlistId; | 6535 _json["playlistId"] = playlistId; |
| 6522 } | 6536 } |
| 6523 if (playlistItemId != null) { | 6537 if (playlistItemId != null) { |
| 6524 _json["playlistItemId"] = playlistItemId; | 6538 _json["playlistItemId"] = playlistItemId; |
| 6525 } | 6539 } |
| 6526 if (resourceId != null) { | 6540 if (resourceId != null) { |
| 6527 _json["resourceId"] = (resourceId).toJson(); | 6541 _json["resourceId"] = (resourceId).toJson(); |
| 6528 } | 6542 } |
| 6529 return _json; | 6543 return _json; |
| 6530 } | 6544 } |
| 6531 } | 6545 } |
| 6532 | 6546 |
| 6533 /** Details about a resource which is being promoted. */ | 6547 /// Details about a resource which is being promoted. |
| 6534 class ActivityContentDetailsPromotedItem { | 6548 class ActivityContentDetailsPromotedItem { |
| 6535 /** The URL the client should fetch to request a promoted item. */ | 6549 /// The URL the client should fetch to request a promoted item. |
| 6536 core.String adTag; | 6550 core.String adTag; |
| 6537 /** | 6551 |
| 6538 * The URL the client should ping to indicate that the user clicked through on | 6552 /// The URL the client should ping to indicate that the user clicked through |
| 6539 * this promoted item. | 6553 /// on this promoted item. |
| 6540 */ | |
| 6541 core.String clickTrackingUrl; | 6554 core.String clickTrackingUrl; |
| 6542 /** | 6555 |
| 6543 * The URL the client should ping to indicate that the user was shown this | 6556 /// The URL the client should ping to indicate that the user was shown this |
| 6544 * promoted item. | 6557 /// promoted item. |
| 6545 */ | |
| 6546 core.String creativeViewUrl; | 6558 core.String creativeViewUrl; |
| 6547 /** | 6559 |
| 6548 * The type of call-to-action, a message to the user indicating action that | 6560 /// The type of call-to-action, a message to the user indicating action that |
| 6549 * can be taken. | 6561 /// can be taken. |
| 6550 * Possible string values are: | 6562 /// Possible string values are: |
| 6551 * - "unspecified" | 6563 /// - "unspecified" |
| 6552 * - "visitAdvertiserSite" | 6564 /// - "visitAdvertiserSite" |
| 6553 */ | |
| 6554 core.String ctaType; | 6565 core.String ctaType; |
| 6555 /** | 6566 |
| 6556 * The custom call-to-action button text. If specified, it will override the | 6567 /// The custom call-to-action button text. If specified, it will override the |
| 6557 * default button text for the cta_type. | 6568 /// default button text for the cta_type. |
| 6558 */ | |
| 6559 core.String customCtaButtonText; | 6569 core.String customCtaButtonText; |
| 6560 /** The text description to accompany the promoted item. */ | 6570 |
| 6571 /// The text description to accompany the promoted item. |
| 6561 core.String descriptionText; | 6572 core.String descriptionText; |
| 6562 /** | 6573 |
| 6563 * The URL the client should direct the user to, if the user chooses to visit | 6574 /// The URL the client should direct the user to, if the user chooses to |
| 6564 * the advertiser's website. | 6575 /// visit the advertiser's website. |
| 6565 */ | |
| 6566 core.String destinationUrl; | 6576 core.String destinationUrl; |
| 6567 /** | 6577 |
| 6568 * The list of forecasting URLs. The client should ping all of these URLs when | 6578 /// The list of forecasting URLs. The client should ping all of these URLs |
| 6569 * a promoted item is not available, to indicate that a promoted item could | 6579 /// when a promoted item is not available, to indicate that a promoted item |
| 6570 * have been shown. | 6580 /// could have been shown. |
| 6571 */ | |
| 6572 core.List<core.String> forecastingUrl; | 6581 core.List<core.String> forecastingUrl; |
| 6573 /** | 6582 |
| 6574 * The list of impression URLs. The client should ping all of these URLs to | 6583 /// The list of impression URLs. The client should ping all of these URLs to |
| 6575 * indicate that the user was shown this promoted item. | 6584 /// indicate that the user was shown this promoted item. |
| 6576 */ | |
| 6577 core.List<core.String> impressionUrl; | 6585 core.List<core.String> impressionUrl; |
| 6578 /** The ID that YouTube uses to uniquely identify the promoted video. */ | 6586 |
| 6587 /// The ID that YouTube uses to uniquely identify the promoted video. |
| 6579 core.String videoId; | 6588 core.String videoId; |
| 6580 | 6589 |
| 6581 ActivityContentDetailsPromotedItem(); | 6590 ActivityContentDetailsPromotedItem(); |
| 6582 | 6591 |
| 6583 ActivityContentDetailsPromotedItem.fromJson(core.Map _json) { | 6592 ActivityContentDetailsPromotedItem.fromJson(core.Map _json) { |
| 6584 if (_json.containsKey("adTag")) { | 6593 if (_json.containsKey("adTag")) { |
| 6585 adTag = _json["adTag"]; | 6594 adTag = _json["adTag"]; |
| 6586 } | 6595 } |
| 6587 if (_json.containsKey("clickTrackingUrl")) { | 6596 if (_json.containsKey("clickTrackingUrl")) { |
| 6588 clickTrackingUrl = _json["clickTrackingUrl"]; | 6597 clickTrackingUrl = _json["clickTrackingUrl"]; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 6607 } | 6616 } |
| 6608 if (_json.containsKey("impressionUrl")) { | 6617 if (_json.containsKey("impressionUrl")) { |
| 6609 impressionUrl = _json["impressionUrl"]; | 6618 impressionUrl = _json["impressionUrl"]; |
| 6610 } | 6619 } |
| 6611 if (_json.containsKey("videoId")) { | 6620 if (_json.containsKey("videoId")) { |
| 6612 videoId = _json["videoId"]; | 6621 videoId = _json["videoId"]; |
| 6613 } | 6622 } |
| 6614 } | 6623 } |
| 6615 | 6624 |
| 6616 core.Map<core.String, core.Object> toJson() { | 6625 core.Map<core.String, core.Object> toJson() { |
| 6617 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6626 final core.Map<core.String, core.Object> _json = |
| 6627 new core.Map<core.String, core.Object>(); |
| 6618 if (adTag != null) { | 6628 if (adTag != null) { |
| 6619 _json["adTag"] = adTag; | 6629 _json["adTag"] = adTag; |
| 6620 } | 6630 } |
| 6621 if (clickTrackingUrl != null) { | 6631 if (clickTrackingUrl != null) { |
| 6622 _json["clickTrackingUrl"] = clickTrackingUrl; | 6632 _json["clickTrackingUrl"] = clickTrackingUrl; |
| 6623 } | 6633 } |
| 6624 if (creativeViewUrl != null) { | 6634 if (creativeViewUrl != null) { |
| 6625 _json["creativeViewUrl"] = creativeViewUrl; | 6635 _json["creativeViewUrl"] = creativeViewUrl; |
| 6626 } | 6636 } |
| 6627 if (ctaType != null) { | 6637 if (ctaType != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 6642 if (impressionUrl != null) { | 6652 if (impressionUrl != null) { |
| 6643 _json["impressionUrl"] = impressionUrl; | 6653 _json["impressionUrl"] = impressionUrl; |
| 6644 } | 6654 } |
| 6645 if (videoId != null) { | 6655 if (videoId != null) { |
| 6646 _json["videoId"] = videoId; | 6656 _json["videoId"] = videoId; |
| 6647 } | 6657 } |
| 6648 return _json; | 6658 return _json; |
| 6649 } | 6659 } |
| 6650 } | 6660 } |
| 6651 | 6661 |
| 6652 /** Information that identifies the recommended resource. */ | 6662 /// Information that identifies the recommended resource. |
| 6653 class ActivityContentDetailsRecommendation { | 6663 class ActivityContentDetailsRecommendation { |
| 6654 /** | 6664 /// The reason that the resource is recommended to the user. |
| 6655 * The reason that the resource is recommended to the user. | 6665 /// Possible string values are: |
| 6656 * Possible string values are: | 6666 /// - "unspecified" |
| 6657 * - "unspecified" | 6667 /// - "videoFavorited" |
| 6658 * - "videoFavorited" | 6668 /// - "videoLiked" |
| 6659 * - "videoLiked" | 6669 /// - "videoWatched" |
| 6660 * - "videoWatched" | |
| 6661 */ | |
| 6662 core.String reason; | 6670 core.String reason; |
| 6663 /** | 6671 |
| 6664 * The resourceId object contains information that identifies the recommended | 6672 /// The resourceId object contains information that identifies the |
| 6665 * resource. | 6673 /// recommended resource. |
| 6666 */ | |
| 6667 ResourceId resourceId; | 6674 ResourceId resourceId; |
| 6668 /** | 6675 |
| 6669 * The seedResourceId object contains information about the resource that | 6676 /// The seedResourceId object contains information about the resource that |
| 6670 * caused the recommendation. | 6677 /// caused the recommendation. |
| 6671 */ | |
| 6672 ResourceId seedResourceId; | 6678 ResourceId seedResourceId; |
| 6673 | 6679 |
| 6674 ActivityContentDetailsRecommendation(); | 6680 ActivityContentDetailsRecommendation(); |
| 6675 | 6681 |
| 6676 ActivityContentDetailsRecommendation.fromJson(core.Map _json) { | 6682 ActivityContentDetailsRecommendation.fromJson(core.Map _json) { |
| 6677 if (_json.containsKey("reason")) { | 6683 if (_json.containsKey("reason")) { |
| 6678 reason = _json["reason"]; | 6684 reason = _json["reason"]; |
| 6679 } | 6685 } |
| 6680 if (_json.containsKey("resourceId")) { | 6686 if (_json.containsKey("resourceId")) { |
| 6681 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6687 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6682 } | 6688 } |
| 6683 if (_json.containsKey("seedResourceId")) { | 6689 if (_json.containsKey("seedResourceId")) { |
| 6684 seedResourceId = new ResourceId.fromJson(_json["seedResourceId"]); | 6690 seedResourceId = new ResourceId.fromJson(_json["seedResourceId"]); |
| 6685 } | 6691 } |
| 6686 } | 6692 } |
| 6687 | 6693 |
| 6688 core.Map<core.String, core.Object> toJson() { | 6694 core.Map<core.String, core.Object> toJson() { |
| 6689 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6695 final core.Map<core.String, core.Object> _json = |
| 6696 new core.Map<core.String, core.Object>(); |
| 6690 if (reason != null) { | 6697 if (reason != null) { |
| 6691 _json["reason"] = reason; | 6698 _json["reason"] = reason; |
| 6692 } | 6699 } |
| 6693 if (resourceId != null) { | 6700 if (resourceId != null) { |
| 6694 _json["resourceId"] = (resourceId).toJson(); | 6701 _json["resourceId"] = (resourceId).toJson(); |
| 6695 } | 6702 } |
| 6696 if (seedResourceId != null) { | 6703 if (seedResourceId != null) { |
| 6697 _json["seedResourceId"] = (seedResourceId).toJson(); | 6704 _json["seedResourceId"] = (seedResourceId).toJson(); |
| 6698 } | 6705 } |
| 6699 return _json; | 6706 return _json; |
| 6700 } | 6707 } |
| 6701 } | 6708 } |
| 6702 | 6709 |
| 6703 /** Details about a social network post. */ | 6710 /// Details about a social network post. |
| 6704 class ActivityContentDetailsSocial { | 6711 class ActivityContentDetailsSocial { |
| 6705 /** The author of the social network post. */ | 6712 /// The author of the social network post. |
| 6706 core.String author; | 6713 core.String author; |
| 6707 /** An image of the post's author. */ | 6714 |
| 6715 /// An image of the post's author. |
| 6708 core.String imageUrl; | 6716 core.String imageUrl; |
| 6709 /** The URL of the social network post. */ | 6717 |
| 6718 /// The URL of the social network post. |
| 6710 core.String referenceUrl; | 6719 core.String referenceUrl; |
| 6711 /** | 6720 |
| 6712 * The resourceId object encapsulates information that identifies the resource | 6721 /// The resourceId object encapsulates information that identifies the |
| 6713 * associated with a social network post. | 6722 /// resource associated with a social network post. |
| 6714 */ | |
| 6715 ResourceId resourceId; | 6723 ResourceId resourceId; |
| 6716 /** | 6724 |
| 6717 * The name of the social network. | 6725 /// The name of the social network. |
| 6718 * Possible string values are: | 6726 /// Possible string values are: |
| 6719 * - "facebook" | 6727 /// - "facebook" |
| 6720 * - "googlePlus" | 6728 /// - "googlePlus" |
| 6721 * - "twitter" | 6729 /// - "twitter" |
| 6722 * - "unspecified" | 6730 /// - "unspecified" |
| 6723 */ | |
| 6724 core.String type; | 6731 core.String type; |
| 6725 | 6732 |
| 6726 ActivityContentDetailsSocial(); | 6733 ActivityContentDetailsSocial(); |
| 6727 | 6734 |
| 6728 ActivityContentDetailsSocial.fromJson(core.Map _json) { | 6735 ActivityContentDetailsSocial.fromJson(core.Map _json) { |
| 6729 if (_json.containsKey("author")) { | 6736 if (_json.containsKey("author")) { |
| 6730 author = _json["author"]; | 6737 author = _json["author"]; |
| 6731 } | 6738 } |
| 6732 if (_json.containsKey("imageUrl")) { | 6739 if (_json.containsKey("imageUrl")) { |
| 6733 imageUrl = _json["imageUrl"]; | 6740 imageUrl = _json["imageUrl"]; |
| 6734 } | 6741 } |
| 6735 if (_json.containsKey("referenceUrl")) { | 6742 if (_json.containsKey("referenceUrl")) { |
| 6736 referenceUrl = _json["referenceUrl"]; | 6743 referenceUrl = _json["referenceUrl"]; |
| 6737 } | 6744 } |
| 6738 if (_json.containsKey("resourceId")) { | 6745 if (_json.containsKey("resourceId")) { |
| 6739 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6746 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6740 } | 6747 } |
| 6741 if (_json.containsKey("type")) { | 6748 if (_json.containsKey("type")) { |
| 6742 type = _json["type"]; | 6749 type = _json["type"]; |
| 6743 } | 6750 } |
| 6744 } | 6751 } |
| 6745 | 6752 |
| 6746 core.Map<core.String, core.Object> toJson() { | 6753 core.Map<core.String, core.Object> toJson() { |
| 6747 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6754 final core.Map<core.String, core.Object> _json = |
| 6755 new core.Map<core.String, core.Object>(); |
| 6748 if (author != null) { | 6756 if (author != null) { |
| 6749 _json["author"] = author; | 6757 _json["author"] = author; |
| 6750 } | 6758 } |
| 6751 if (imageUrl != null) { | 6759 if (imageUrl != null) { |
| 6752 _json["imageUrl"] = imageUrl; | 6760 _json["imageUrl"] = imageUrl; |
| 6753 } | 6761 } |
| 6754 if (referenceUrl != null) { | 6762 if (referenceUrl != null) { |
| 6755 _json["referenceUrl"] = referenceUrl; | 6763 _json["referenceUrl"] = referenceUrl; |
| 6756 } | 6764 } |
| 6757 if (resourceId != null) { | 6765 if (resourceId != null) { |
| 6758 _json["resourceId"] = (resourceId).toJson(); | 6766 _json["resourceId"] = (resourceId).toJson(); |
| 6759 } | 6767 } |
| 6760 if (type != null) { | 6768 if (type != null) { |
| 6761 _json["type"] = type; | 6769 _json["type"] = type; |
| 6762 } | 6770 } |
| 6763 return _json; | 6771 return _json; |
| 6764 } | 6772 } |
| 6765 } | 6773 } |
| 6766 | 6774 |
| 6767 /** Information about a channel that a user subscribed to. */ | 6775 /// Information about a channel that a user subscribed to. |
| 6768 class ActivityContentDetailsSubscription { | 6776 class ActivityContentDetailsSubscription { |
| 6769 /** | 6777 /// The resourceId object contains information that identifies the resource |
| 6770 * The resourceId object contains information that identifies the resource | 6778 /// that the user subscribed to. |
| 6771 * that the user subscribed to. | |
| 6772 */ | |
| 6773 ResourceId resourceId; | 6779 ResourceId resourceId; |
| 6774 | 6780 |
| 6775 ActivityContentDetailsSubscription(); | 6781 ActivityContentDetailsSubscription(); |
| 6776 | 6782 |
| 6777 ActivityContentDetailsSubscription.fromJson(core.Map _json) { | 6783 ActivityContentDetailsSubscription.fromJson(core.Map _json) { |
| 6778 if (_json.containsKey("resourceId")) { | 6784 if (_json.containsKey("resourceId")) { |
| 6779 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 6785 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 6780 } | 6786 } |
| 6781 } | 6787 } |
| 6782 | 6788 |
| 6783 core.Map<core.String, core.Object> toJson() { | 6789 core.Map<core.String, core.Object> toJson() { |
| 6784 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6790 final core.Map<core.String, core.Object> _json = |
| 6791 new core.Map<core.String, core.Object>(); |
| 6785 if (resourceId != null) { | 6792 if (resourceId != null) { |
| 6786 _json["resourceId"] = (resourceId).toJson(); | 6793 _json["resourceId"] = (resourceId).toJson(); |
| 6787 } | 6794 } |
| 6788 return _json; | 6795 return _json; |
| 6789 } | 6796 } |
| 6790 } | 6797 } |
| 6791 | 6798 |
| 6792 /** Information about the uploaded video. */ | 6799 /// Information about the uploaded video. |
| 6793 class ActivityContentDetailsUpload { | 6800 class ActivityContentDetailsUpload { |
| 6794 /** The ID that YouTube uses to uniquely identify the uploaded video. */ | 6801 /// The ID that YouTube uses to uniquely identify the uploaded video. |
| 6795 core.String videoId; | 6802 core.String videoId; |
| 6796 | 6803 |
| 6797 ActivityContentDetailsUpload(); | 6804 ActivityContentDetailsUpload(); |
| 6798 | 6805 |
| 6799 ActivityContentDetailsUpload.fromJson(core.Map _json) { | 6806 ActivityContentDetailsUpload.fromJson(core.Map _json) { |
| 6800 if (_json.containsKey("videoId")) { | 6807 if (_json.containsKey("videoId")) { |
| 6801 videoId = _json["videoId"]; | 6808 videoId = _json["videoId"]; |
| 6802 } | 6809 } |
| 6803 } | 6810 } |
| 6804 | 6811 |
| 6805 core.Map<core.String, core.Object> toJson() { | 6812 core.Map<core.String, core.Object> toJson() { |
| 6806 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6813 final core.Map<core.String, core.Object> _json = |
| 6814 new core.Map<core.String, core.Object>(); |
| 6807 if (videoId != null) { | 6815 if (videoId != null) { |
| 6808 _json["videoId"] = videoId; | 6816 _json["videoId"] = videoId; |
| 6809 } | 6817 } |
| 6810 return _json; | 6818 return _json; |
| 6811 } | 6819 } |
| 6812 } | 6820 } |
| 6813 | 6821 |
| 6814 class ActivityListResponse { | 6822 class ActivityListResponse { |
| 6815 /** Etag of this resource. */ | 6823 /// Etag of this resource. |
| 6816 core.String etag; | 6824 core.String etag; |
| 6817 /** Serialized EventId of the request which produced this response. */ | 6825 |
| 6826 /// Serialized EventId of the request which produced this response. |
| 6818 core.String eventId; | 6827 core.String eventId; |
| 6819 /** A list of activities, or events, that match the request criteria. */ | 6828 |
| 6829 /// A list of activities, or events, that match the request criteria. |
| 6820 core.List<Activity> items; | 6830 core.List<Activity> items; |
| 6821 /** | 6831 |
| 6822 * Identifies what kind of resource this is. Value: the fixed string | 6832 /// Identifies what kind of resource this is. Value: the fixed string |
| 6823 * "youtube#activityListResponse". | 6833 /// "youtube#activityListResponse". |
| 6824 */ | |
| 6825 core.String kind; | 6834 core.String kind; |
| 6826 /** | 6835 |
| 6827 * The token that can be used as the value of the pageToken parameter to | 6836 /// The token that can be used as the value of the pageToken parameter to |
| 6828 * retrieve the next page in the result set. | 6837 /// retrieve the next page in the result set. |
| 6829 */ | |
| 6830 core.String nextPageToken; | 6838 core.String nextPageToken; |
| 6831 PageInfo pageInfo; | 6839 PageInfo pageInfo; |
| 6832 /** | 6840 |
| 6833 * The token that can be used as the value of the pageToken parameter to | 6841 /// The token that can be used as the value of the pageToken parameter to |
| 6834 * retrieve the previous page in the result set. | 6842 /// retrieve the previous page in the result set. |
| 6835 */ | |
| 6836 core.String prevPageToken; | 6843 core.String prevPageToken; |
| 6837 TokenPagination tokenPagination; | 6844 TokenPagination tokenPagination; |
| 6838 /** The visitorId identifies the visitor. */ | 6845 |
| 6846 /// The visitorId identifies the visitor. |
| 6839 core.String visitorId; | 6847 core.String visitorId; |
| 6840 | 6848 |
| 6841 ActivityListResponse(); | 6849 ActivityListResponse(); |
| 6842 | 6850 |
| 6843 ActivityListResponse.fromJson(core.Map _json) { | 6851 ActivityListResponse.fromJson(core.Map _json) { |
| 6844 if (_json.containsKey("etag")) { | 6852 if (_json.containsKey("etag")) { |
| 6845 etag = _json["etag"]; | 6853 etag = _json["etag"]; |
| 6846 } | 6854 } |
| 6847 if (_json.containsKey("eventId")) { | 6855 if (_json.containsKey("eventId")) { |
| 6848 eventId = _json["eventId"]; | 6856 eventId = _json["eventId"]; |
| 6849 } | 6857 } |
| 6850 if (_json.containsKey("items")) { | 6858 if (_json.containsKey("items")) { |
| 6851 items = _json["items"].map((value) => new Activity.fromJson(value)).toList
(); | 6859 items = |
| 6860 _json["items"].map((value) => new Activity.fromJson(value)).toList(); |
| 6852 } | 6861 } |
| 6853 if (_json.containsKey("kind")) { | 6862 if (_json.containsKey("kind")) { |
| 6854 kind = _json["kind"]; | 6863 kind = _json["kind"]; |
| 6855 } | 6864 } |
| 6856 if (_json.containsKey("nextPageToken")) { | 6865 if (_json.containsKey("nextPageToken")) { |
| 6857 nextPageToken = _json["nextPageToken"]; | 6866 nextPageToken = _json["nextPageToken"]; |
| 6858 } | 6867 } |
| 6859 if (_json.containsKey("pageInfo")) { | 6868 if (_json.containsKey("pageInfo")) { |
| 6860 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 6869 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 6861 } | 6870 } |
| 6862 if (_json.containsKey("prevPageToken")) { | 6871 if (_json.containsKey("prevPageToken")) { |
| 6863 prevPageToken = _json["prevPageToken"]; | 6872 prevPageToken = _json["prevPageToken"]; |
| 6864 } | 6873 } |
| 6865 if (_json.containsKey("tokenPagination")) { | 6874 if (_json.containsKey("tokenPagination")) { |
| 6866 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 6875 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 6867 } | 6876 } |
| 6868 if (_json.containsKey("visitorId")) { | 6877 if (_json.containsKey("visitorId")) { |
| 6869 visitorId = _json["visitorId"]; | 6878 visitorId = _json["visitorId"]; |
| 6870 } | 6879 } |
| 6871 } | 6880 } |
| 6872 | 6881 |
| 6873 core.Map<core.String, core.Object> toJson() { | 6882 core.Map<core.String, core.Object> toJson() { |
| 6874 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6883 final core.Map<core.String, core.Object> _json = |
| 6884 new core.Map<core.String, core.Object>(); |
| 6875 if (etag != null) { | 6885 if (etag != null) { |
| 6876 _json["etag"] = etag; | 6886 _json["etag"] = etag; |
| 6877 } | 6887 } |
| 6878 if (eventId != null) { | 6888 if (eventId != null) { |
| 6879 _json["eventId"] = eventId; | 6889 _json["eventId"] = eventId; |
| 6880 } | 6890 } |
| 6881 if (items != null) { | 6891 if (items != null) { |
| 6882 _json["items"] = items.map((value) => (value).toJson()).toList(); | 6892 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 6883 } | 6893 } |
| 6884 if (kind != null) { | 6894 if (kind != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 6896 if (tokenPagination != null) { | 6906 if (tokenPagination != null) { |
| 6897 _json["tokenPagination"] = (tokenPagination).toJson(); | 6907 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 6898 } | 6908 } |
| 6899 if (visitorId != null) { | 6909 if (visitorId != null) { |
| 6900 _json["visitorId"] = visitorId; | 6910 _json["visitorId"] = visitorId; |
| 6901 } | 6911 } |
| 6902 return _json; | 6912 return _json; |
| 6903 } | 6913 } |
| 6904 } | 6914 } |
| 6905 | 6915 |
| 6906 /** | 6916 /// Basic details about an activity, including title, description, thumbnails, |
| 6907 * Basic details about an activity, including title, description, thumbnails, | 6917 /// activity type and group. |
| 6908 * activity type and group. | |
| 6909 */ | |
| 6910 class ActivitySnippet { | 6918 class ActivitySnippet { |
| 6911 /** | 6919 /// The ID that YouTube uses to uniquely identify the channel associated with |
| 6912 * The ID that YouTube uses to uniquely identify the channel associated with | 6920 /// the activity. |
| 6913 * the activity. | |
| 6914 */ | |
| 6915 core.String channelId; | 6921 core.String channelId; |
| 6916 /** Channel title for the channel responsible for this activity */ | 6922 |
| 6923 /// Channel title for the channel responsible for this activity |
| 6917 core.String channelTitle; | 6924 core.String channelTitle; |
| 6918 /** | 6925 |
| 6919 * The description of the resource primarily associated with the activity. | 6926 /// The description of the resource primarily associated with the activity. |
| 6920 */ | |
| 6921 core.String description; | 6927 core.String description; |
| 6922 /** | 6928 |
| 6923 * The group ID associated with the activity. A group ID identifies user | 6929 /// The group ID associated with the activity. A group ID identifies user |
| 6924 * events that are associated with the same user and resource. For example, if | 6930 /// events that are associated with the same user and resource. For example, |
| 6925 * a user rates a video and marks the same video as a favorite, the entries | 6931 /// if a user rates a video and marks the same video as a favorite, the |
| 6926 * for those events would have the same group ID in the user's activity feed. | 6932 /// entries for those events would have the same group ID in the user's |
| 6927 * In your user interface, you can avoid repetition by grouping events with | 6933 /// activity feed. In your user interface, you can avoid repetition by |
| 6928 * the same groupId value. | 6934 /// grouping events with the same groupId value. |
| 6929 */ | |
| 6930 core.String groupId; | 6935 core.String groupId; |
| 6931 /** | 6936 |
| 6932 * The date and time that the video was uploaded. The value is specified in | 6937 /// The date and time that the video was uploaded. The value is specified in |
| 6933 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 6938 /// ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 6934 */ | |
| 6935 core.DateTime publishedAt; | 6939 core.DateTime publishedAt; |
| 6936 /** | 6940 |
| 6937 * A map of thumbnail images associated with the resource that is primarily | 6941 /// A map of thumbnail images associated with the resource that is primarily |
| 6938 * associated with the activity. For each object in the map, the key is the | 6942 /// associated with the activity. For each object in the map, the key is the |
| 6939 * name of the thumbnail image, and the value is an object that contains other | 6943 /// name of the thumbnail image, and the value is an object that contains |
| 6940 * information about the thumbnail. | 6944 /// other information about the thumbnail. |
| 6941 */ | |
| 6942 ThumbnailDetails thumbnails; | 6945 ThumbnailDetails thumbnails; |
| 6943 /** The title of the resource primarily associated with the activity. */ | 6946 |
| 6947 /// The title of the resource primarily associated with the activity. |
| 6944 core.String title; | 6948 core.String title; |
| 6945 /** | 6949 |
| 6946 * The type of activity that the resource describes. | 6950 /// The type of activity that the resource describes. |
| 6947 * Possible string values are: | 6951 /// Possible string values are: |
| 6948 * - "bulletin" | 6952 /// - "bulletin" |
| 6949 * - "channelItem" | 6953 /// - "channelItem" |
| 6950 * - "comment" | 6954 /// - "comment" |
| 6951 * - "favorite" | 6955 /// - "favorite" |
| 6952 * - "like" | 6956 /// - "like" |
| 6953 * - "playlistItem" | 6957 /// - "playlistItem" |
| 6954 * - "promotedItem" | 6958 /// - "promotedItem" |
| 6955 * - "recommendation" | 6959 /// - "recommendation" |
| 6956 * - "social" | 6960 /// - "social" |
| 6957 * - "subscription" | 6961 /// - "subscription" |
| 6958 * - "upload" | 6962 /// - "upload" |
| 6959 */ | |
| 6960 core.String type; | 6963 core.String type; |
| 6961 | 6964 |
| 6962 ActivitySnippet(); | 6965 ActivitySnippet(); |
| 6963 | 6966 |
| 6964 ActivitySnippet.fromJson(core.Map _json) { | 6967 ActivitySnippet.fromJson(core.Map _json) { |
| 6965 if (_json.containsKey("channelId")) { | 6968 if (_json.containsKey("channelId")) { |
| 6966 channelId = _json["channelId"]; | 6969 channelId = _json["channelId"]; |
| 6967 } | 6970 } |
| 6968 if (_json.containsKey("channelTitle")) { | 6971 if (_json.containsKey("channelTitle")) { |
| 6969 channelTitle = _json["channelTitle"]; | 6972 channelTitle = _json["channelTitle"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 6982 } | 6985 } |
| 6983 if (_json.containsKey("title")) { | 6986 if (_json.containsKey("title")) { |
| 6984 title = _json["title"]; | 6987 title = _json["title"]; |
| 6985 } | 6988 } |
| 6986 if (_json.containsKey("type")) { | 6989 if (_json.containsKey("type")) { |
| 6987 type = _json["type"]; | 6990 type = _json["type"]; |
| 6988 } | 6991 } |
| 6989 } | 6992 } |
| 6990 | 6993 |
| 6991 core.Map<core.String, core.Object> toJson() { | 6994 core.Map<core.String, core.Object> toJson() { |
| 6992 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 6995 final core.Map<core.String, core.Object> _json = |
| 6996 new core.Map<core.String, core.Object>(); |
| 6993 if (channelId != null) { | 6997 if (channelId != null) { |
| 6994 _json["channelId"] = channelId; | 6998 _json["channelId"] = channelId; |
| 6995 } | 6999 } |
| 6996 if (channelTitle != null) { | 7000 if (channelTitle != null) { |
| 6997 _json["channelTitle"] = channelTitle; | 7001 _json["channelTitle"] = channelTitle; |
| 6998 } | 7002 } |
| 6999 if (description != null) { | 7003 if (description != null) { |
| 7000 _json["description"] = description; | 7004 _json["description"] = description; |
| 7001 } | 7005 } |
| 7002 if (groupId != null) { | 7006 if (groupId != null) { |
| 7003 _json["groupId"] = groupId; | 7007 _json["groupId"] = groupId; |
| 7004 } | 7008 } |
| 7005 if (publishedAt != null) { | 7009 if (publishedAt != null) { |
| 7006 _json["publishedAt"] = (publishedAt).toIso8601String(); | 7010 _json["publishedAt"] = (publishedAt).toIso8601String(); |
| 7007 } | 7011 } |
| 7008 if (thumbnails != null) { | 7012 if (thumbnails != null) { |
| 7009 _json["thumbnails"] = (thumbnails).toJson(); | 7013 _json["thumbnails"] = (thumbnails).toJson(); |
| 7010 } | 7014 } |
| 7011 if (title != null) { | 7015 if (title != null) { |
| 7012 _json["title"] = title; | 7016 _json["title"] = title; |
| 7013 } | 7017 } |
| 7014 if (type != null) { | 7018 if (type != null) { |
| 7015 _json["type"] = type; | 7019 _json["type"] = type; |
| 7016 } | 7020 } |
| 7017 return _json; | 7021 return _json; |
| 7018 } | 7022 } |
| 7019 } | 7023 } |
| 7020 | 7024 |
| 7021 /** | 7025 /// A caption resource represents a YouTube caption track. A caption track is |
| 7022 * A caption resource represents a YouTube caption track. A caption track is | 7026 /// associated with exactly one YouTube video. |
| 7023 * associated with exactly one YouTube video. | |
| 7024 */ | |
| 7025 class Caption { | 7027 class Caption { |
| 7026 /** Etag of this resource. */ | 7028 /// Etag of this resource. |
| 7027 core.String etag; | 7029 core.String etag; |
| 7028 /** The ID that YouTube uses to uniquely identify the caption track. */ | 7030 |
| 7031 /// The ID that YouTube uses to uniquely identify the caption track. |
| 7029 core.String id; | 7032 core.String id; |
| 7030 /** | 7033 |
| 7031 * Identifies what kind of resource this is. Value: the fixed string | 7034 /// Identifies what kind of resource this is. Value: the fixed string |
| 7032 * "youtube#caption". | 7035 /// "youtube#caption". |
| 7033 */ | |
| 7034 core.String kind; | 7036 core.String kind; |
| 7035 /** The snippet object contains basic details about the caption. */ | 7037 |
| 7038 /// The snippet object contains basic details about the caption. |
| 7036 CaptionSnippet snippet; | 7039 CaptionSnippet snippet; |
| 7037 | 7040 |
| 7038 Caption(); | 7041 Caption(); |
| 7039 | 7042 |
| 7040 Caption.fromJson(core.Map _json) { | 7043 Caption.fromJson(core.Map _json) { |
| 7041 if (_json.containsKey("etag")) { | 7044 if (_json.containsKey("etag")) { |
| 7042 etag = _json["etag"]; | 7045 etag = _json["etag"]; |
| 7043 } | 7046 } |
| 7044 if (_json.containsKey("id")) { | 7047 if (_json.containsKey("id")) { |
| 7045 id = _json["id"]; | 7048 id = _json["id"]; |
| 7046 } | 7049 } |
| 7047 if (_json.containsKey("kind")) { | 7050 if (_json.containsKey("kind")) { |
| 7048 kind = _json["kind"]; | 7051 kind = _json["kind"]; |
| 7049 } | 7052 } |
| 7050 if (_json.containsKey("snippet")) { | 7053 if (_json.containsKey("snippet")) { |
| 7051 snippet = new CaptionSnippet.fromJson(_json["snippet"]); | 7054 snippet = new CaptionSnippet.fromJson(_json["snippet"]); |
| 7052 } | 7055 } |
| 7053 } | 7056 } |
| 7054 | 7057 |
| 7055 core.Map<core.String, core.Object> toJson() { | 7058 core.Map<core.String, core.Object> toJson() { |
| 7056 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7059 final core.Map<core.String, core.Object> _json = |
| 7060 new core.Map<core.String, core.Object>(); |
| 7057 if (etag != null) { | 7061 if (etag != null) { |
| 7058 _json["etag"] = etag; | 7062 _json["etag"] = etag; |
| 7059 } | 7063 } |
| 7060 if (id != null) { | 7064 if (id != null) { |
| 7061 _json["id"] = id; | 7065 _json["id"] = id; |
| 7062 } | 7066 } |
| 7063 if (kind != null) { | 7067 if (kind != null) { |
| 7064 _json["kind"] = kind; | 7068 _json["kind"] = kind; |
| 7065 } | 7069 } |
| 7066 if (snippet != null) { | 7070 if (snippet != null) { |
| 7067 _json["snippet"] = (snippet).toJson(); | 7071 _json["snippet"] = (snippet).toJson(); |
| 7068 } | 7072 } |
| 7069 return _json; | 7073 return _json; |
| 7070 } | 7074 } |
| 7071 } | 7075 } |
| 7072 | 7076 |
| 7073 class CaptionListResponse { | 7077 class CaptionListResponse { |
| 7074 /** Etag of this resource. */ | 7078 /// Etag of this resource. |
| 7075 core.String etag; | 7079 core.String etag; |
| 7076 /** Serialized EventId of the request which produced this response. */ | 7080 |
| 7081 /// Serialized EventId of the request which produced this response. |
| 7077 core.String eventId; | 7082 core.String eventId; |
| 7078 /** A list of captions that match the request criteria. */ | 7083 |
| 7084 /// A list of captions that match the request criteria. |
| 7079 core.List<Caption> items; | 7085 core.List<Caption> items; |
| 7080 /** | 7086 |
| 7081 * Identifies what kind of resource this is. Value: the fixed string | 7087 /// Identifies what kind of resource this is. Value: the fixed string |
| 7082 * "youtube#captionListResponse". | 7088 /// "youtube#captionListResponse". |
| 7083 */ | |
| 7084 core.String kind; | 7089 core.String kind; |
| 7085 /** The visitorId identifies the visitor. */ | 7090 |
| 7091 /// The visitorId identifies the visitor. |
| 7086 core.String visitorId; | 7092 core.String visitorId; |
| 7087 | 7093 |
| 7088 CaptionListResponse(); | 7094 CaptionListResponse(); |
| 7089 | 7095 |
| 7090 CaptionListResponse.fromJson(core.Map _json) { | 7096 CaptionListResponse.fromJson(core.Map _json) { |
| 7091 if (_json.containsKey("etag")) { | 7097 if (_json.containsKey("etag")) { |
| 7092 etag = _json["etag"]; | 7098 etag = _json["etag"]; |
| 7093 } | 7099 } |
| 7094 if (_json.containsKey("eventId")) { | 7100 if (_json.containsKey("eventId")) { |
| 7095 eventId = _json["eventId"]; | 7101 eventId = _json["eventId"]; |
| 7096 } | 7102 } |
| 7097 if (_json.containsKey("items")) { | 7103 if (_json.containsKey("items")) { |
| 7098 items = _json["items"].map((value) => new Caption.fromJson(value)).toList(
); | 7104 items = |
| 7105 _json["items"].map((value) => new Caption.fromJson(value)).toList(); |
| 7099 } | 7106 } |
| 7100 if (_json.containsKey("kind")) { | 7107 if (_json.containsKey("kind")) { |
| 7101 kind = _json["kind"]; | 7108 kind = _json["kind"]; |
| 7102 } | 7109 } |
| 7103 if (_json.containsKey("visitorId")) { | 7110 if (_json.containsKey("visitorId")) { |
| 7104 visitorId = _json["visitorId"]; | 7111 visitorId = _json["visitorId"]; |
| 7105 } | 7112 } |
| 7106 } | 7113 } |
| 7107 | 7114 |
| 7108 core.Map<core.String, core.Object> toJson() { | 7115 core.Map<core.String, core.Object> toJson() { |
| 7109 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7116 final core.Map<core.String, core.Object> _json = |
| 7117 new core.Map<core.String, core.Object>(); |
| 7110 if (etag != null) { | 7118 if (etag != null) { |
| 7111 _json["etag"] = etag; | 7119 _json["etag"] = etag; |
| 7112 } | 7120 } |
| 7113 if (eventId != null) { | 7121 if (eventId != null) { |
| 7114 _json["eventId"] = eventId; | 7122 _json["eventId"] = eventId; |
| 7115 } | 7123 } |
| 7116 if (items != null) { | 7124 if (items != null) { |
| 7117 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7125 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 7118 } | 7126 } |
| 7119 if (kind != null) { | 7127 if (kind != null) { |
| 7120 _json["kind"] = kind; | 7128 _json["kind"] = kind; |
| 7121 } | 7129 } |
| 7122 if (visitorId != null) { | 7130 if (visitorId != null) { |
| 7123 _json["visitorId"] = visitorId; | 7131 _json["visitorId"] = visitorId; |
| 7124 } | 7132 } |
| 7125 return _json; | 7133 return _json; |
| 7126 } | 7134 } |
| 7127 } | 7135 } |
| 7128 | 7136 |
| 7129 /** Basic details about a caption track, such as its language and name. */ | 7137 /// Basic details about a caption track, such as its language and name. |
| 7130 class CaptionSnippet { | 7138 class CaptionSnippet { |
| 7131 /** | 7139 /// The type of audio track associated with the caption track. |
| 7132 * The type of audio track associated with the caption track. | 7140 /// Possible string values are: |
| 7133 * Possible string values are: | 7141 /// - "commentary" |
| 7134 * - "commentary" | 7142 /// - "descriptive" |
| 7135 * - "descriptive" | 7143 /// - "primary" |
| 7136 * - "primary" | 7144 /// - "unknown" |
| 7137 * - "unknown" | |
| 7138 */ | |
| 7139 core.String audioTrackType; | 7145 core.String audioTrackType; |
| 7140 /** | 7146 |
| 7141 * The reason that YouTube failed to process the caption track. This property | 7147 /// The reason that YouTube failed to process the caption track. This |
| 7142 * is only present if the state property's value is failed. | 7148 /// property is only present if the state property's value is failed. |
| 7143 * Possible string values are: | 7149 /// Possible string values are: |
| 7144 * - "processingFailed" | 7150 /// - "processingFailed" |
| 7145 * - "unknownFormat" | 7151 /// - "unknownFormat" |
| 7146 * - "unsupportedFormat" | 7152 /// - "unsupportedFormat" |
| 7147 */ | |
| 7148 core.String failureReason; | 7153 core.String failureReason; |
| 7149 /** | 7154 |
| 7150 * Indicates whether YouTube synchronized the caption track to the audio track | 7155 /// Indicates whether YouTube synchronized the caption track to the audio |
| 7151 * in the video. The value will be true if a sync was explicitly requested | 7156 /// track in the video. The value will be true if a sync was explicitly |
| 7152 * when the caption track was uploaded. For example, when calling the | 7157 /// requested when the caption track was uploaded. For example, when calling |
| 7153 * captions.insert or captions.update methods, you can set the sync parameter | 7158 /// the captions.insert or captions.update methods, you can set the sync |
| 7154 * to true to instruct YouTube to sync the uploaded track to the video. If the | 7159 /// parameter to true to instruct YouTube to sync the uploaded track to the |
| 7155 * value is false, YouTube uses the time codes in the uploaded caption track | 7160 /// video. If the value is false, YouTube uses the time codes in the uploaded |
| 7156 * to determine when to display captions. | 7161 /// caption track to determine when to display captions. |
| 7157 */ | |
| 7158 core.bool isAutoSynced; | 7162 core.bool isAutoSynced; |
| 7159 /** | 7163 |
| 7160 * Indicates whether the track contains closed captions for the deaf and hard | 7164 /// Indicates whether the track contains closed captions for the deaf and |
| 7161 * of hearing. The default value is false. | 7165 /// hard of hearing. The default value is false. |
| 7162 */ | |
| 7163 core.bool isCC; | 7166 core.bool isCC; |
| 7164 /** | 7167 |
| 7165 * Indicates whether the caption track is a draft. If the value is true, then | 7168 /// Indicates whether the caption track is a draft. If the value is true, |
| 7166 * the track is not publicly visible. The default value is false. | 7169 /// then the track is not publicly visible. The default value is false. |
| 7167 */ | |
| 7168 core.bool isDraft; | 7170 core.bool isDraft; |
| 7169 /** | 7171 |
| 7170 * Indicates whether caption track is formatted for "easy reader," meaning it | 7172 /// Indicates whether caption track is formatted for "easy reader," meaning |
| 7171 * is at a third-grade level for language learners. The default value is | 7173 /// it is at a third-grade level for language learners. The default value is |
| 7172 * false. | 7174 /// false. |
| 7173 */ | |
| 7174 core.bool isEasyReader; | 7175 core.bool isEasyReader; |
| 7175 /** | 7176 |
| 7176 * Indicates whether the caption track uses large text for the | 7177 /// Indicates whether the caption track uses large text for the |
| 7177 * vision-impaired. The default value is false. | 7178 /// vision-impaired. The default value is false. |
| 7178 */ | |
| 7179 core.bool isLarge; | 7179 core.bool isLarge; |
| 7180 /** | 7180 |
| 7181 * The language of the caption track. The property value is a BCP-47 language | 7181 /// The language of the caption track. The property value is a BCP-47 |
| 7182 * tag. | 7182 /// language tag. |
| 7183 */ | |
| 7184 core.String language; | 7183 core.String language; |
| 7185 /** | 7184 |
| 7186 * The date and time when the caption track was last updated. The value is | 7185 /// The date and time when the caption track was last updated. The value is |
| 7187 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 7186 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 7188 */ | |
| 7189 core.DateTime lastUpdated; | 7187 core.DateTime lastUpdated; |
| 7190 /** | 7188 |
| 7191 * The name of the caption track. The name is intended to be visible to the | 7189 /// The name of the caption track. The name is intended to be visible to the |
| 7192 * user as an option during playback. | 7190 /// user as an option during playback. |
| 7193 */ | |
| 7194 core.String name; | 7191 core.String name; |
| 7195 /** | 7192 |
| 7196 * The caption track's status. | 7193 /// The caption track's status. |
| 7197 * Possible string values are: | 7194 /// Possible string values are: |
| 7198 * - "failed" | 7195 /// - "failed" |
| 7199 * - "serving" | 7196 /// - "serving" |
| 7200 * - "syncing" | 7197 /// - "syncing" |
| 7201 */ | |
| 7202 core.String status; | 7198 core.String status; |
| 7203 /** | 7199 |
| 7204 * The caption track's type. | 7200 /// The caption track's type. |
| 7205 * Possible string values are: | 7201 /// Possible string values are: |
| 7206 * - "ASR" | 7202 /// - "ASR" |
| 7207 * - "forced" | 7203 /// - "forced" |
| 7208 * - "standard" | 7204 /// - "standard" |
| 7209 */ | |
| 7210 core.String trackKind; | 7205 core.String trackKind; |
| 7211 /** | 7206 |
| 7212 * The ID that YouTube uses to uniquely identify the video associated with the | 7207 /// The ID that YouTube uses to uniquely identify the video associated with |
| 7213 * caption track. | 7208 /// the caption track. |
| 7214 */ | |
| 7215 core.String videoId; | 7209 core.String videoId; |
| 7216 | 7210 |
| 7217 CaptionSnippet(); | 7211 CaptionSnippet(); |
| 7218 | 7212 |
| 7219 CaptionSnippet.fromJson(core.Map _json) { | 7213 CaptionSnippet.fromJson(core.Map _json) { |
| 7220 if (_json.containsKey("audioTrackType")) { | 7214 if (_json.containsKey("audioTrackType")) { |
| 7221 audioTrackType = _json["audioTrackType"]; | 7215 audioTrackType = _json["audioTrackType"]; |
| 7222 } | 7216 } |
| 7223 if (_json.containsKey("failureReason")) { | 7217 if (_json.containsKey("failureReason")) { |
| 7224 failureReason = _json["failureReason"]; | 7218 failureReason = _json["failureReason"]; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7252 } | 7246 } |
| 7253 if (_json.containsKey("trackKind")) { | 7247 if (_json.containsKey("trackKind")) { |
| 7254 trackKind = _json["trackKind"]; | 7248 trackKind = _json["trackKind"]; |
| 7255 } | 7249 } |
| 7256 if (_json.containsKey("videoId")) { | 7250 if (_json.containsKey("videoId")) { |
| 7257 videoId = _json["videoId"]; | 7251 videoId = _json["videoId"]; |
| 7258 } | 7252 } |
| 7259 } | 7253 } |
| 7260 | 7254 |
| 7261 core.Map<core.String, core.Object> toJson() { | 7255 core.Map<core.String, core.Object> toJson() { |
| 7262 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7256 final core.Map<core.String, core.Object> _json = |
| 7257 new core.Map<core.String, core.Object>(); |
| 7263 if (audioTrackType != null) { | 7258 if (audioTrackType != null) { |
| 7264 _json["audioTrackType"] = audioTrackType; | 7259 _json["audioTrackType"] = audioTrackType; |
| 7265 } | 7260 } |
| 7266 if (failureReason != null) { | 7261 if (failureReason != null) { |
| 7267 _json["failureReason"] = failureReason; | 7262 _json["failureReason"] = failureReason; |
| 7268 } | 7263 } |
| 7269 if (isAutoSynced != null) { | 7264 if (isAutoSynced != null) { |
| 7270 _json["isAutoSynced"] = isAutoSynced; | 7265 _json["isAutoSynced"] = isAutoSynced; |
| 7271 } | 7266 } |
| 7272 if (isCC != null) { | 7267 if (isCC != null) { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 7296 if (trackKind != null) { | 7291 if (trackKind != null) { |
| 7297 _json["trackKind"] = trackKind; | 7292 _json["trackKind"] = trackKind; |
| 7298 } | 7293 } |
| 7299 if (videoId != null) { | 7294 if (videoId != null) { |
| 7300 _json["videoId"] = videoId; | 7295 _json["videoId"] = videoId; |
| 7301 } | 7296 } |
| 7302 return _json; | 7297 return _json; |
| 7303 } | 7298 } |
| 7304 } | 7299 } |
| 7305 | 7300 |
| 7306 /** Brief description of the live stream cdn settings. */ | 7301 /// Brief description of the live stream cdn settings. |
| 7307 class CdnSettings { | 7302 class CdnSettings { |
| 7308 /** The format of the video stream that you are sending to Youtube. */ | 7303 /// The format of the video stream that you are sending to Youtube. |
| 7309 core.String format; | 7304 core.String format; |
| 7310 /** | 7305 |
| 7311 * The frame rate of the inbound video data. | 7306 /// The frame rate of the inbound video data. |
| 7312 * Possible string values are: | 7307 /// Possible string values are: |
| 7313 * - "30fps" | 7308 /// - "30fps" |
| 7314 * - "60fps" | 7309 /// - "60fps" |
| 7315 */ | |
| 7316 core.String frameRate; | 7310 core.String frameRate; |
| 7317 /** | 7311 |
| 7318 * The ingestionInfo object contains information that YouTube provides that | 7312 /// The ingestionInfo object contains information that YouTube provides that |
| 7319 * you need to transmit your RTMP or HTTP stream to YouTube. | 7313 /// you need to transmit your RTMP or HTTP stream to YouTube. |
| 7320 */ | |
| 7321 IngestionInfo ingestionInfo; | 7314 IngestionInfo ingestionInfo; |
| 7322 /** | 7315 |
| 7323 * The method or protocol used to transmit the video stream. | 7316 /// The method or protocol used to transmit the video stream. |
| 7324 * Possible string values are: | 7317 /// Possible string values are: |
| 7325 * - "dash" | 7318 /// - "dash" |
| 7326 * - "rtmp" | 7319 /// - "rtmp" |
| 7327 */ | |
| 7328 core.String ingestionType; | 7320 core.String ingestionType; |
| 7329 /** | 7321 |
| 7330 * The resolution of the inbound video data. | 7322 /// The resolution of the inbound video data. |
| 7331 * Possible string values are: | 7323 /// Possible string values are: |
| 7332 * - "1080p" | 7324 /// - "1080p" |
| 7333 * - "1440p" | 7325 /// - "1440p" |
| 7334 * - "2160p" | 7326 /// - "2160p" |
| 7335 * - "240p" | 7327 /// - "240p" |
| 7336 * - "360p" | 7328 /// - "360p" |
| 7337 * - "480p" | 7329 /// - "480p" |
| 7338 * - "720p" | 7330 /// - "720p" |
| 7339 */ | |
| 7340 core.String resolution; | 7331 core.String resolution; |
| 7341 | 7332 |
| 7342 CdnSettings(); | 7333 CdnSettings(); |
| 7343 | 7334 |
| 7344 CdnSettings.fromJson(core.Map _json) { | 7335 CdnSettings.fromJson(core.Map _json) { |
| 7345 if (_json.containsKey("format")) { | 7336 if (_json.containsKey("format")) { |
| 7346 format = _json["format"]; | 7337 format = _json["format"]; |
| 7347 } | 7338 } |
| 7348 if (_json.containsKey("frameRate")) { | 7339 if (_json.containsKey("frameRate")) { |
| 7349 frameRate = _json["frameRate"]; | 7340 frameRate = _json["frameRate"]; |
| 7350 } | 7341 } |
| 7351 if (_json.containsKey("ingestionInfo")) { | 7342 if (_json.containsKey("ingestionInfo")) { |
| 7352 ingestionInfo = new IngestionInfo.fromJson(_json["ingestionInfo"]); | 7343 ingestionInfo = new IngestionInfo.fromJson(_json["ingestionInfo"]); |
| 7353 } | 7344 } |
| 7354 if (_json.containsKey("ingestionType")) { | 7345 if (_json.containsKey("ingestionType")) { |
| 7355 ingestionType = _json["ingestionType"]; | 7346 ingestionType = _json["ingestionType"]; |
| 7356 } | 7347 } |
| 7357 if (_json.containsKey("resolution")) { | 7348 if (_json.containsKey("resolution")) { |
| 7358 resolution = _json["resolution"]; | 7349 resolution = _json["resolution"]; |
| 7359 } | 7350 } |
| 7360 } | 7351 } |
| 7361 | 7352 |
| 7362 core.Map<core.String, core.Object> toJson() { | 7353 core.Map<core.String, core.Object> toJson() { |
| 7363 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7354 final core.Map<core.String, core.Object> _json = |
| 7355 new core.Map<core.String, core.Object>(); |
| 7364 if (format != null) { | 7356 if (format != null) { |
| 7365 _json["format"] = format; | 7357 _json["format"] = format; |
| 7366 } | 7358 } |
| 7367 if (frameRate != null) { | 7359 if (frameRate != null) { |
| 7368 _json["frameRate"] = frameRate; | 7360 _json["frameRate"] = frameRate; |
| 7369 } | 7361 } |
| 7370 if (ingestionInfo != null) { | 7362 if (ingestionInfo != null) { |
| 7371 _json["ingestionInfo"] = (ingestionInfo).toJson(); | 7363 _json["ingestionInfo"] = (ingestionInfo).toJson(); |
| 7372 } | 7364 } |
| 7373 if (ingestionType != null) { | 7365 if (ingestionType != null) { |
| 7374 _json["ingestionType"] = ingestionType; | 7366 _json["ingestionType"] = ingestionType; |
| 7375 } | 7367 } |
| 7376 if (resolution != null) { | 7368 if (resolution != null) { |
| 7377 _json["resolution"] = resolution; | 7369 _json["resolution"] = resolution; |
| 7378 } | 7370 } |
| 7379 return _json; | 7371 return _json; |
| 7380 } | 7372 } |
| 7381 } | 7373 } |
| 7382 | 7374 |
| 7383 /** A channel resource contains information about a YouTube channel. */ | 7375 /// A channel resource contains information about a YouTube channel. |
| 7384 class Channel { | 7376 class Channel { |
| 7385 /** | 7377 /// The auditionDetails object encapsulates channel data that is relevant for |
| 7386 * The auditionDetails object encapsulates channel data that is relevant for | 7378 /// YouTube Partners during the audition process. |
| 7387 * YouTube Partners during the audition process. | |
| 7388 */ | |
| 7389 ChannelAuditDetails auditDetails; | 7379 ChannelAuditDetails auditDetails; |
| 7390 /** | 7380 |
| 7391 * The brandingSettings object encapsulates information about the branding of | 7381 /// The brandingSettings object encapsulates information about the branding |
| 7392 * the channel. | 7382 /// of the channel. |
| 7393 */ | |
| 7394 ChannelBrandingSettings brandingSettings; | 7383 ChannelBrandingSettings brandingSettings; |
| 7395 /** | 7384 |
| 7396 * The contentDetails object encapsulates information about the channel's | 7385 /// The contentDetails object encapsulates information about the channel's |
| 7397 * content. | 7386 /// content. |
| 7398 */ | |
| 7399 ChannelContentDetails contentDetails; | 7387 ChannelContentDetails contentDetails; |
| 7400 /** | 7388 |
| 7401 * The contentOwnerDetails object encapsulates channel data that is relevant | 7389 /// The contentOwnerDetails object encapsulates channel data that is relevant |
| 7402 * for YouTube Partners linked with the channel. | 7390 /// for YouTube Partners linked with the channel. |
| 7403 */ | |
| 7404 ChannelContentOwnerDetails contentOwnerDetails; | 7391 ChannelContentOwnerDetails contentOwnerDetails; |
| 7405 /** | 7392 |
| 7406 * The conversionPings object encapsulates information about conversion pings | 7393 /// The conversionPings object encapsulates information about conversion |
| 7407 * that need to be respected by the channel. | 7394 /// pings that need to be respected by the channel. |
| 7408 */ | |
| 7409 ChannelConversionPings conversionPings; | 7395 ChannelConversionPings conversionPings; |
| 7410 /** Etag of this resource. */ | 7396 |
| 7397 /// Etag of this resource. |
| 7411 core.String etag; | 7398 core.String etag; |
| 7412 /** The ID that YouTube uses to uniquely identify the channel. */ | 7399 |
| 7400 /// The ID that YouTube uses to uniquely identify the channel. |
| 7413 core.String id; | 7401 core.String id; |
| 7414 /** | 7402 |
| 7415 * The invideoPromotion object encapsulates information about promotion | 7403 /// The invideoPromotion object encapsulates information about promotion |
| 7416 * campaign associated with the channel. | 7404 /// campaign associated with the channel. |
| 7417 */ | |
| 7418 InvideoPromotion invideoPromotion; | 7405 InvideoPromotion invideoPromotion; |
| 7419 /** | 7406 |
| 7420 * Identifies what kind of resource this is. Value: the fixed string | 7407 /// Identifies what kind of resource this is. Value: the fixed string |
| 7421 * "youtube#channel". | 7408 /// "youtube#channel". |
| 7422 */ | |
| 7423 core.String kind; | 7409 core.String kind; |
| 7424 /** Localizations for different languages */ | 7410 |
| 7411 /// Localizations for different languages |
| 7425 core.Map<core.String, ChannelLocalization> localizations; | 7412 core.Map<core.String, ChannelLocalization> localizations; |
| 7426 /** | 7413 |
| 7427 * The snippet object contains basic details about the channel, such as its | 7414 /// The snippet object contains basic details about the channel, such as its |
| 7428 * title, description, and thumbnail images. | 7415 /// title, description, and thumbnail images. |
| 7429 */ | |
| 7430 ChannelSnippet snippet; | 7416 ChannelSnippet snippet; |
| 7431 /** The statistics object encapsulates statistics for the channel. */ | 7417 |
| 7418 /// The statistics object encapsulates statistics for the channel. |
| 7432 ChannelStatistics statistics; | 7419 ChannelStatistics statistics; |
| 7433 /** | 7420 |
| 7434 * The status object encapsulates information about the privacy status of the | 7421 /// The status object encapsulates information about the privacy status of |
| 7435 * channel. | 7422 /// the channel. |
| 7436 */ | |
| 7437 ChannelStatus status; | 7423 ChannelStatus status; |
| 7438 /** | 7424 |
| 7439 * The topicDetails object encapsulates information about Freebase topics | 7425 /// The topicDetails object encapsulates information about Freebase topics |
| 7440 * associated with the channel. | 7426 /// associated with the channel. |
| 7441 */ | |
| 7442 ChannelTopicDetails topicDetails; | 7427 ChannelTopicDetails topicDetails; |
| 7443 | 7428 |
| 7444 Channel(); | 7429 Channel(); |
| 7445 | 7430 |
| 7446 Channel.fromJson(core.Map _json) { | 7431 Channel.fromJson(core.Map _json) { |
| 7447 if (_json.containsKey("auditDetails")) { | 7432 if (_json.containsKey("auditDetails")) { |
| 7448 auditDetails = new ChannelAuditDetails.fromJson(_json["auditDetails"]); | 7433 auditDetails = new ChannelAuditDetails.fromJson(_json["auditDetails"]); |
| 7449 } | 7434 } |
| 7450 if (_json.containsKey("brandingSettings")) { | 7435 if (_json.containsKey("brandingSettings")) { |
| 7451 brandingSettings = new ChannelBrandingSettings.fromJson(_json["brandingSet
tings"]); | 7436 brandingSettings = |
| 7437 new ChannelBrandingSettings.fromJson(_json["brandingSettings"]); |
| 7452 } | 7438 } |
| 7453 if (_json.containsKey("contentDetails")) { | 7439 if (_json.containsKey("contentDetails")) { |
| 7454 contentDetails = new ChannelContentDetails.fromJson(_json["contentDetails"
]); | 7440 contentDetails = |
| 7441 new ChannelContentDetails.fromJson(_json["contentDetails"]); |
| 7455 } | 7442 } |
| 7456 if (_json.containsKey("contentOwnerDetails")) { | 7443 if (_json.containsKey("contentOwnerDetails")) { |
| 7457 contentOwnerDetails = new ChannelContentOwnerDetails.fromJson(_json["conte
ntOwnerDetails"]); | 7444 contentOwnerDetails = |
| 7445 new ChannelContentOwnerDetails.fromJson(_json["contentOwnerDetails"]); |
| 7458 } | 7446 } |
| 7459 if (_json.containsKey("conversionPings")) { | 7447 if (_json.containsKey("conversionPings")) { |
| 7460 conversionPings = new ChannelConversionPings.fromJson(_json["conversionPin
gs"]); | 7448 conversionPings = |
| 7449 new ChannelConversionPings.fromJson(_json["conversionPings"]); |
| 7461 } | 7450 } |
| 7462 if (_json.containsKey("etag")) { | 7451 if (_json.containsKey("etag")) { |
| 7463 etag = _json["etag"]; | 7452 etag = _json["etag"]; |
| 7464 } | 7453 } |
| 7465 if (_json.containsKey("id")) { | 7454 if (_json.containsKey("id")) { |
| 7466 id = _json["id"]; | 7455 id = _json["id"]; |
| 7467 } | 7456 } |
| 7468 if (_json.containsKey("invideoPromotion")) { | 7457 if (_json.containsKey("invideoPromotion")) { |
| 7469 invideoPromotion = new InvideoPromotion.fromJson(_json["invideoPromotion"]
); | 7458 invideoPromotion = |
| 7459 new InvideoPromotion.fromJson(_json["invideoPromotion"]); |
| 7470 } | 7460 } |
| 7471 if (_json.containsKey("kind")) { | 7461 if (_json.containsKey("kind")) { |
| 7472 kind = _json["kind"]; | 7462 kind = _json["kind"]; |
| 7473 } | 7463 } |
| 7474 if (_json.containsKey("localizations")) { | 7464 if (_json.containsKey("localizations")) { |
| 7475 localizations = commons.mapMap<core.Map<core.String, core.Object>, Channel
Localization>(_json["localizations"], (core.Map<core.String, core.Object> item)
=> new ChannelLocalization.fromJson(item)); | 7465 localizations = commons |
| 7466 .mapMap<core.Map<core.String, core.Object>, ChannelLocalization>( |
| 7467 _json["localizations"], |
| 7468 (core.Map<core.String, core.Object> item) => |
| 7469 new ChannelLocalization.fromJson(item)); |
| 7476 } | 7470 } |
| 7477 if (_json.containsKey("snippet")) { | 7471 if (_json.containsKey("snippet")) { |
| 7478 snippet = new ChannelSnippet.fromJson(_json["snippet"]); | 7472 snippet = new ChannelSnippet.fromJson(_json["snippet"]); |
| 7479 } | 7473 } |
| 7480 if (_json.containsKey("statistics")) { | 7474 if (_json.containsKey("statistics")) { |
| 7481 statistics = new ChannelStatistics.fromJson(_json["statistics"]); | 7475 statistics = new ChannelStatistics.fromJson(_json["statistics"]); |
| 7482 } | 7476 } |
| 7483 if (_json.containsKey("status")) { | 7477 if (_json.containsKey("status")) { |
| 7484 status = new ChannelStatus.fromJson(_json["status"]); | 7478 status = new ChannelStatus.fromJson(_json["status"]); |
| 7485 } | 7479 } |
| 7486 if (_json.containsKey("topicDetails")) { | 7480 if (_json.containsKey("topicDetails")) { |
| 7487 topicDetails = new ChannelTopicDetails.fromJson(_json["topicDetails"]); | 7481 topicDetails = new ChannelTopicDetails.fromJson(_json["topicDetails"]); |
| 7488 } | 7482 } |
| 7489 } | 7483 } |
| 7490 | 7484 |
| 7491 core.Map<core.String, core.Object> toJson() { | 7485 core.Map<core.String, core.Object> toJson() { |
| 7492 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7486 final core.Map<core.String, core.Object> _json = |
| 7487 new core.Map<core.String, core.Object>(); |
| 7493 if (auditDetails != null) { | 7488 if (auditDetails != null) { |
| 7494 _json["auditDetails"] = (auditDetails).toJson(); | 7489 _json["auditDetails"] = (auditDetails).toJson(); |
| 7495 } | 7490 } |
| 7496 if (brandingSettings != null) { | 7491 if (brandingSettings != null) { |
| 7497 _json["brandingSettings"] = (brandingSettings).toJson(); | 7492 _json["brandingSettings"] = (brandingSettings).toJson(); |
| 7498 } | 7493 } |
| 7499 if (contentDetails != null) { | 7494 if (contentDetails != null) { |
| 7500 _json["contentDetails"] = (contentDetails).toJson(); | 7495 _json["contentDetails"] = (contentDetails).toJson(); |
| 7501 } | 7496 } |
| 7502 if (contentOwnerDetails != null) { | 7497 if (contentOwnerDetails != null) { |
| 7503 _json["contentOwnerDetails"] = (contentOwnerDetails).toJson(); | 7498 _json["contentOwnerDetails"] = (contentOwnerDetails).toJson(); |
| 7504 } | 7499 } |
| 7505 if (conversionPings != null) { | 7500 if (conversionPings != null) { |
| 7506 _json["conversionPings"] = (conversionPings).toJson(); | 7501 _json["conversionPings"] = (conversionPings).toJson(); |
| 7507 } | 7502 } |
| 7508 if (etag != null) { | 7503 if (etag != null) { |
| 7509 _json["etag"] = etag; | 7504 _json["etag"] = etag; |
| 7510 } | 7505 } |
| 7511 if (id != null) { | 7506 if (id != null) { |
| 7512 _json["id"] = id; | 7507 _json["id"] = id; |
| 7513 } | 7508 } |
| 7514 if (invideoPromotion != null) { | 7509 if (invideoPromotion != null) { |
| 7515 _json["invideoPromotion"] = (invideoPromotion).toJson(); | 7510 _json["invideoPromotion"] = (invideoPromotion).toJson(); |
| 7516 } | 7511 } |
| 7517 if (kind != null) { | 7512 if (kind != null) { |
| 7518 _json["kind"] = kind; | 7513 _json["kind"] = kind; |
| 7519 } | 7514 } |
| 7520 if (localizations != null) { | 7515 if (localizations != null) { |
| 7521 _json["localizations"] = commons.mapMap<ChannelLocalization, core.Map<core
.String, core.Object>>(localizations, (ChannelLocalization item) => (item).toJso
n()); | 7516 _json["localizations"] = commons |
| 7517 .mapMap<ChannelLocalization, core.Map<core.String, core.Object>>( |
| 7518 localizations, (ChannelLocalization item) => (item).toJson()); |
| 7522 } | 7519 } |
| 7523 if (snippet != null) { | 7520 if (snippet != null) { |
| 7524 _json["snippet"] = (snippet).toJson(); | 7521 _json["snippet"] = (snippet).toJson(); |
| 7525 } | 7522 } |
| 7526 if (statistics != null) { | 7523 if (statistics != null) { |
| 7527 _json["statistics"] = (statistics).toJson(); | 7524 _json["statistics"] = (statistics).toJson(); |
| 7528 } | 7525 } |
| 7529 if (status != null) { | 7526 if (status != null) { |
| 7530 _json["status"] = (status).toJson(); | 7527 _json["status"] = (status).toJson(); |
| 7531 } | 7528 } |
| 7532 if (topicDetails != null) { | 7529 if (topicDetails != null) { |
| 7533 _json["topicDetails"] = (topicDetails).toJson(); | 7530 _json["topicDetails"] = (topicDetails).toJson(); |
| 7534 } | 7531 } |
| 7535 return _json; | 7532 return _json; |
| 7536 } | 7533 } |
| 7537 } | 7534 } |
| 7538 | 7535 |
| 7539 /** | 7536 /// The auditDetails object encapsulates channel data that is relevant for |
| 7540 * The auditDetails object encapsulates channel data that is relevant for | 7537 /// YouTube Partners during the audit process. |
| 7541 * YouTube Partners during the audit process. | |
| 7542 */ | |
| 7543 class ChannelAuditDetails { | 7538 class ChannelAuditDetails { |
| 7544 /** Whether or not the channel respects the community guidelines. */ | 7539 /// Whether or not the channel respects the community guidelines. |
| 7545 core.bool communityGuidelinesGoodStanding; | 7540 core.bool communityGuidelinesGoodStanding; |
| 7546 /** Whether or not the channel has any unresolved claims. */ | 7541 |
| 7542 /// Whether or not the channel has any unresolved claims. |
| 7547 core.bool contentIdClaimsGoodStanding; | 7543 core.bool contentIdClaimsGoodStanding; |
| 7548 /** Whether or not the channel has any copyright strikes. */ | 7544 |
| 7545 /// Whether or not the channel has any copyright strikes. |
| 7549 core.bool copyrightStrikesGoodStanding; | 7546 core.bool copyrightStrikesGoodStanding; |
| 7550 /** | 7547 |
| 7551 * Describes the general state of the channel. This field will always show if | 7548 /// Describes the general state of the channel. This field will always show |
| 7552 * there are any issues whatsoever with the channel. Currently this field | 7549 /// if there are any issues whatsoever with the channel. Currently this field |
| 7553 * represents the result of the logical and operation over the community | 7550 /// represents the result of the logical and operation over the community |
| 7554 * guidelines good standing, the copyright strikes good standing and the | 7551 /// guidelines good standing, the copyright strikes good standing and the |
| 7555 * content ID claims good standing, but this may change in the future. | 7552 /// content ID claims good standing, but this may change in the future. |
| 7556 */ | |
| 7557 core.bool overallGoodStanding; | 7553 core.bool overallGoodStanding; |
| 7558 | 7554 |
| 7559 ChannelAuditDetails(); | 7555 ChannelAuditDetails(); |
| 7560 | 7556 |
| 7561 ChannelAuditDetails.fromJson(core.Map _json) { | 7557 ChannelAuditDetails.fromJson(core.Map _json) { |
| 7562 if (_json.containsKey("communityGuidelinesGoodStanding")) { | 7558 if (_json.containsKey("communityGuidelinesGoodStanding")) { |
| 7563 communityGuidelinesGoodStanding = _json["communityGuidelinesGoodStanding"]
; | 7559 communityGuidelinesGoodStanding = |
| 7560 _json["communityGuidelinesGoodStanding"]; |
| 7564 } | 7561 } |
| 7565 if (_json.containsKey("contentIdClaimsGoodStanding")) { | 7562 if (_json.containsKey("contentIdClaimsGoodStanding")) { |
| 7566 contentIdClaimsGoodStanding = _json["contentIdClaimsGoodStanding"]; | 7563 contentIdClaimsGoodStanding = _json["contentIdClaimsGoodStanding"]; |
| 7567 } | 7564 } |
| 7568 if (_json.containsKey("copyrightStrikesGoodStanding")) { | 7565 if (_json.containsKey("copyrightStrikesGoodStanding")) { |
| 7569 copyrightStrikesGoodStanding = _json["copyrightStrikesGoodStanding"]; | 7566 copyrightStrikesGoodStanding = _json["copyrightStrikesGoodStanding"]; |
| 7570 } | 7567 } |
| 7571 if (_json.containsKey("overallGoodStanding")) { | 7568 if (_json.containsKey("overallGoodStanding")) { |
| 7572 overallGoodStanding = _json["overallGoodStanding"]; | 7569 overallGoodStanding = _json["overallGoodStanding"]; |
| 7573 } | 7570 } |
| 7574 } | 7571 } |
| 7575 | 7572 |
| 7576 core.Map<core.String, core.Object> toJson() { | 7573 core.Map<core.String, core.Object> toJson() { |
| 7577 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7574 final core.Map<core.String, core.Object> _json = |
| 7575 new core.Map<core.String, core.Object>(); |
| 7578 if (communityGuidelinesGoodStanding != null) { | 7576 if (communityGuidelinesGoodStanding != null) { |
| 7579 _json["communityGuidelinesGoodStanding"] = communityGuidelinesGoodStanding
; | 7577 _json["communityGuidelinesGoodStanding"] = |
| 7578 communityGuidelinesGoodStanding; |
| 7580 } | 7579 } |
| 7581 if (contentIdClaimsGoodStanding != null) { | 7580 if (contentIdClaimsGoodStanding != null) { |
| 7582 _json["contentIdClaimsGoodStanding"] = contentIdClaimsGoodStanding; | 7581 _json["contentIdClaimsGoodStanding"] = contentIdClaimsGoodStanding; |
| 7583 } | 7582 } |
| 7584 if (copyrightStrikesGoodStanding != null) { | 7583 if (copyrightStrikesGoodStanding != null) { |
| 7585 _json["copyrightStrikesGoodStanding"] = copyrightStrikesGoodStanding; | 7584 _json["copyrightStrikesGoodStanding"] = copyrightStrikesGoodStanding; |
| 7586 } | 7585 } |
| 7587 if (overallGoodStanding != null) { | 7586 if (overallGoodStanding != null) { |
| 7588 _json["overallGoodStanding"] = overallGoodStanding; | 7587 _json["overallGoodStanding"] = overallGoodStanding; |
| 7589 } | 7588 } |
| 7590 return _json; | 7589 return _json; |
| 7591 } | 7590 } |
| 7592 } | 7591 } |
| 7593 | 7592 |
| 7594 /** | 7593 /// A channel banner returned as the response to a channel_banner.insert call. |
| 7595 * A channel banner returned as the response to a channel_banner.insert call. | |
| 7596 */ | |
| 7597 class ChannelBannerResource { | 7594 class ChannelBannerResource { |
| 7598 /** Etag of this resource. */ | 7595 /// Etag of this resource. |
| 7599 core.String etag; | 7596 core.String etag; |
| 7600 /** | 7597 |
| 7601 * Identifies what kind of resource this is. Value: the fixed string | 7598 /// Identifies what kind of resource this is. Value: the fixed string |
| 7602 * "youtube#channelBannerResource". | 7599 /// "youtube#channelBannerResource". |
| 7603 */ | |
| 7604 core.String kind; | 7600 core.String kind; |
| 7605 /** The URL of this banner image. */ | 7601 |
| 7602 /// The URL of this banner image. |
| 7606 core.String url; | 7603 core.String url; |
| 7607 | 7604 |
| 7608 ChannelBannerResource(); | 7605 ChannelBannerResource(); |
| 7609 | 7606 |
| 7610 ChannelBannerResource.fromJson(core.Map _json) { | 7607 ChannelBannerResource.fromJson(core.Map _json) { |
| 7611 if (_json.containsKey("etag")) { | 7608 if (_json.containsKey("etag")) { |
| 7612 etag = _json["etag"]; | 7609 etag = _json["etag"]; |
| 7613 } | 7610 } |
| 7614 if (_json.containsKey("kind")) { | 7611 if (_json.containsKey("kind")) { |
| 7615 kind = _json["kind"]; | 7612 kind = _json["kind"]; |
| 7616 } | 7613 } |
| 7617 if (_json.containsKey("url")) { | 7614 if (_json.containsKey("url")) { |
| 7618 url = _json["url"]; | 7615 url = _json["url"]; |
| 7619 } | 7616 } |
| 7620 } | 7617 } |
| 7621 | 7618 |
| 7622 core.Map<core.String, core.Object> toJson() { | 7619 core.Map<core.String, core.Object> toJson() { |
| 7623 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7620 final core.Map<core.String, core.Object> _json = |
| 7621 new core.Map<core.String, core.Object>(); |
| 7624 if (etag != null) { | 7622 if (etag != null) { |
| 7625 _json["etag"] = etag; | 7623 _json["etag"] = etag; |
| 7626 } | 7624 } |
| 7627 if (kind != null) { | 7625 if (kind != null) { |
| 7628 _json["kind"] = kind; | 7626 _json["kind"] = kind; |
| 7629 } | 7627 } |
| 7630 if (url != null) { | 7628 if (url != null) { |
| 7631 _json["url"] = url; | 7629 _json["url"] = url; |
| 7632 } | 7630 } |
| 7633 return _json; | 7631 return _json; |
| 7634 } | 7632 } |
| 7635 } | 7633 } |
| 7636 | 7634 |
| 7637 /** Branding properties of a YouTube channel. */ | 7635 /// Branding properties of a YouTube channel. |
| 7638 class ChannelBrandingSettings { | 7636 class ChannelBrandingSettings { |
| 7639 /** Branding properties for the channel view. */ | 7637 /// Branding properties for the channel view. |
| 7640 ChannelSettings channel; | 7638 ChannelSettings channel; |
| 7641 /** Additional experimental branding properties. */ | 7639 |
| 7640 /// Additional experimental branding properties. |
| 7642 core.List<PropertyValue> hints; | 7641 core.List<PropertyValue> hints; |
| 7643 /** Branding properties for branding images. */ | 7642 |
| 7643 /// Branding properties for branding images. |
| 7644 ImageSettings image; | 7644 ImageSettings image; |
| 7645 /** Branding properties for the watch page. */ | 7645 |
| 7646 /// Branding properties for the watch page. |
| 7646 WatchSettings watch; | 7647 WatchSettings watch; |
| 7647 | 7648 |
| 7648 ChannelBrandingSettings(); | 7649 ChannelBrandingSettings(); |
| 7649 | 7650 |
| 7650 ChannelBrandingSettings.fromJson(core.Map _json) { | 7651 ChannelBrandingSettings.fromJson(core.Map _json) { |
| 7651 if (_json.containsKey("channel")) { | 7652 if (_json.containsKey("channel")) { |
| 7652 channel = new ChannelSettings.fromJson(_json["channel"]); | 7653 channel = new ChannelSettings.fromJson(_json["channel"]); |
| 7653 } | 7654 } |
| 7654 if (_json.containsKey("hints")) { | 7655 if (_json.containsKey("hints")) { |
| 7655 hints = _json["hints"].map((value) => new PropertyValue.fromJson(value)).t
oList(); | 7656 hints = _json["hints"] |
| 7657 .map((value) => new PropertyValue.fromJson(value)) |
| 7658 .toList(); |
| 7656 } | 7659 } |
| 7657 if (_json.containsKey("image")) { | 7660 if (_json.containsKey("image")) { |
| 7658 image = new ImageSettings.fromJson(_json["image"]); | 7661 image = new ImageSettings.fromJson(_json["image"]); |
| 7659 } | 7662 } |
| 7660 if (_json.containsKey("watch")) { | 7663 if (_json.containsKey("watch")) { |
| 7661 watch = new WatchSettings.fromJson(_json["watch"]); | 7664 watch = new WatchSettings.fromJson(_json["watch"]); |
| 7662 } | 7665 } |
| 7663 } | 7666 } |
| 7664 | 7667 |
| 7665 core.Map<core.String, core.Object> toJson() { | 7668 core.Map<core.String, core.Object> toJson() { |
| 7666 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7669 final core.Map<core.String, core.Object> _json = |
| 7670 new core.Map<core.String, core.Object>(); |
| 7667 if (channel != null) { | 7671 if (channel != null) { |
| 7668 _json["channel"] = (channel).toJson(); | 7672 _json["channel"] = (channel).toJson(); |
| 7669 } | 7673 } |
| 7670 if (hints != null) { | 7674 if (hints != null) { |
| 7671 _json["hints"] = hints.map((value) => (value).toJson()).toList(); | 7675 _json["hints"] = hints.map((value) => (value).toJson()).toList(); |
| 7672 } | 7676 } |
| 7673 if (image != null) { | 7677 if (image != null) { |
| 7674 _json["image"] = (image).toJson(); | 7678 _json["image"] = (image).toJson(); |
| 7675 } | 7679 } |
| 7676 if (watch != null) { | 7680 if (watch != null) { |
| 7677 _json["watch"] = (watch).toJson(); | 7681 _json["watch"] = (watch).toJson(); |
| 7678 } | 7682 } |
| 7679 return _json; | 7683 return _json; |
| 7680 } | 7684 } |
| 7681 } | 7685 } |
| 7682 | 7686 |
| 7683 class ChannelContentDetailsRelatedPlaylists { | 7687 class ChannelContentDetailsRelatedPlaylists { |
| 7684 /** | 7688 /// The ID of the playlist that contains the channel"s favorite videos. Use |
| 7685 * The ID of the playlist that contains the channel"s favorite videos. Use the | 7689 /// the playlistItems.insert and playlistItems.delete to add or remove |
| 7686 * playlistItems.insert and playlistItems.delete to add or remove items from | 7690 /// items from that list. |
| 7687 * that list. | |
| 7688 */ | |
| 7689 core.String favorites; | 7691 core.String favorites; |
| 7690 /** | 7692 |
| 7691 * The ID of the playlist that contains the channel"s liked videos. Use the | 7693 /// The ID of the playlist that contains the channel"s liked videos. Use the |
| 7692 * playlistItems.insert and playlistItems.delete to add or remove items from | 7694 /// playlistItems.insert and playlistItems.delete to add or remove items |
| 7693 * that list. | 7695 /// from that list. |
| 7694 */ | |
| 7695 core.String likes; | 7696 core.String likes; |
| 7696 /** | 7697 |
| 7697 * The ID of the playlist that contains the channel"s uploaded videos. Use the | 7698 /// The ID of the playlist that contains the channel"s uploaded videos. Use |
| 7698 * videos.insert method to upload new videos and the videos.delete method to | 7699 /// the videos.insert method to upload new videos and the videos.delete |
| 7699 * delete previously uploaded videos. | 7700 /// method to delete previously uploaded videos. |
| 7700 */ | |
| 7701 core.String uploads; | 7701 core.String uploads; |
| 7702 /** | 7702 |
| 7703 * The ID of the playlist that contains the channel"s watch history. Use the | 7703 /// The ID of the playlist that contains the channel"s watch history. Use the |
| 7704 * playlistItems.insert and playlistItems.delete to add or remove items from | 7704 /// playlistItems.insert and playlistItems.delete to add or remove items |
| 7705 * that list. | 7705 /// from that list. |
| 7706 */ | |
| 7707 core.String watchHistory; | 7706 core.String watchHistory; |
| 7708 /** | 7707 |
| 7709 * The ID of the playlist that contains the channel"s watch later playlist. | 7708 /// The ID of the playlist that contains the channel"s watch later playlist. |
| 7710 * Use the playlistItems.insert and playlistItems.delete to add or remove | 7709 /// Use the playlistItems.insert and playlistItems.delete to add or remove |
| 7711 * items from that list. | 7710 /// items from that list. |
| 7712 */ | |
| 7713 core.String watchLater; | 7711 core.String watchLater; |
| 7714 | 7712 |
| 7715 ChannelContentDetailsRelatedPlaylists(); | 7713 ChannelContentDetailsRelatedPlaylists(); |
| 7716 | 7714 |
| 7717 ChannelContentDetailsRelatedPlaylists.fromJson(core.Map _json) { | 7715 ChannelContentDetailsRelatedPlaylists.fromJson(core.Map _json) { |
| 7718 if (_json.containsKey("favorites")) { | 7716 if (_json.containsKey("favorites")) { |
| 7719 favorites = _json["favorites"]; | 7717 favorites = _json["favorites"]; |
| 7720 } | 7718 } |
| 7721 if (_json.containsKey("likes")) { | 7719 if (_json.containsKey("likes")) { |
| 7722 likes = _json["likes"]; | 7720 likes = _json["likes"]; |
| 7723 } | 7721 } |
| 7724 if (_json.containsKey("uploads")) { | 7722 if (_json.containsKey("uploads")) { |
| 7725 uploads = _json["uploads"]; | 7723 uploads = _json["uploads"]; |
| 7726 } | 7724 } |
| 7727 if (_json.containsKey("watchHistory")) { | 7725 if (_json.containsKey("watchHistory")) { |
| 7728 watchHistory = _json["watchHistory"]; | 7726 watchHistory = _json["watchHistory"]; |
| 7729 } | 7727 } |
| 7730 if (_json.containsKey("watchLater")) { | 7728 if (_json.containsKey("watchLater")) { |
| 7731 watchLater = _json["watchLater"]; | 7729 watchLater = _json["watchLater"]; |
| 7732 } | 7730 } |
| 7733 } | 7731 } |
| 7734 | 7732 |
| 7735 core.Map<core.String, core.Object> toJson() { | 7733 core.Map<core.String, core.Object> toJson() { |
| 7736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7734 final core.Map<core.String, core.Object> _json = |
| 7735 new core.Map<core.String, core.Object>(); |
| 7737 if (favorites != null) { | 7736 if (favorites != null) { |
| 7738 _json["favorites"] = favorites; | 7737 _json["favorites"] = favorites; |
| 7739 } | 7738 } |
| 7740 if (likes != null) { | 7739 if (likes != null) { |
| 7741 _json["likes"] = likes; | 7740 _json["likes"] = likes; |
| 7742 } | 7741 } |
| 7743 if (uploads != null) { | 7742 if (uploads != null) { |
| 7744 _json["uploads"] = uploads; | 7743 _json["uploads"] = uploads; |
| 7745 } | 7744 } |
| 7746 if (watchHistory != null) { | 7745 if (watchHistory != null) { |
| 7747 _json["watchHistory"] = watchHistory; | 7746 _json["watchHistory"] = watchHistory; |
| 7748 } | 7747 } |
| 7749 if (watchLater != null) { | 7748 if (watchLater != null) { |
| 7750 _json["watchLater"] = watchLater; | 7749 _json["watchLater"] = watchLater; |
| 7751 } | 7750 } |
| 7752 return _json; | 7751 return _json; |
| 7753 } | 7752 } |
| 7754 } | 7753 } |
| 7755 | 7754 |
| 7756 /** Details about the content of a channel. */ | 7755 /// Details about the content of a channel. |
| 7757 class ChannelContentDetails { | 7756 class ChannelContentDetails { |
| 7758 ChannelContentDetailsRelatedPlaylists relatedPlaylists; | 7757 ChannelContentDetailsRelatedPlaylists relatedPlaylists; |
| 7759 | 7758 |
| 7760 ChannelContentDetails(); | 7759 ChannelContentDetails(); |
| 7761 | 7760 |
| 7762 ChannelContentDetails.fromJson(core.Map _json) { | 7761 ChannelContentDetails.fromJson(core.Map _json) { |
| 7763 if (_json.containsKey("relatedPlaylists")) { | 7762 if (_json.containsKey("relatedPlaylists")) { |
| 7764 relatedPlaylists = new ChannelContentDetailsRelatedPlaylists.fromJson(_jso
n["relatedPlaylists"]); | 7763 relatedPlaylists = new ChannelContentDetailsRelatedPlaylists.fromJson( |
| 7764 _json["relatedPlaylists"]); |
| 7765 } | 7765 } |
| 7766 } | 7766 } |
| 7767 | 7767 |
| 7768 core.Map<core.String, core.Object> toJson() { | 7768 core.Map<core.String, core.Object> toJson() { |
| 7769 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7769 final core.Map<core.String, core.Object> _json = |
| 7770 new core.Map<core.String, core.Object>(); |
| 7770 if (relatedPlaylists != null) { | 7771 if (relatedPlaylists != null) { |
| 7771 _json["relatedPlaylists"] = (relatedPlaylists).toJson(); | 7772 _json["relatedPlaylists"] = (relatedPlaylists).toJson(); |
| 7772 } | 7773 } |
| 7773 return _json; | 7774 return _json; |
| 7774 } | 7775 } |
| 7775 } | 7776 } |
| 7776 | 7777 |
| 7777 /** | 7778 /// The contentOwnerDetails object encapsulates channel data that is relevant |
| 7778 * The contentOwnerDetails object encapsulates channel data that is relevant for | 7779 /// for YouTube Partners linked with the channel. |
| 7779 * YouTube Partners linked with the channel. | |
| 7780 */ | |
| 7781 class ChannelContentOwnerDetails { | 7780 class ChannelContentOwnerDetails { |
| 7782 /** The ID of the content owner linked to the channel. */ | 7781 /// The ID of the content owner linked to the channel. |
| 7783 core.String contentOwner; | 7782 core.String contentOwner; |
| 7784 /** | 7783 |
| 7785 * The date and time of when the channel was linked to the content owner. The | 7784 /// The date and time of when the channel was linked to the content owner. |
| 7786 * value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 7785 /// The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 7787 */ | |
| 7788 core.DateTime timeLinked; | 7786 core.DateTime timeLinked; |
| 7789 | 7787 |
| 7790 ChannelContentOwnerDetails(); | 7788 ChannelContentOwnerDetails(); |
| 7791 | 7789 |
| 7792 ChannelContentOwnerDetails.fromJson(core.Map _json) { | 7790 ChannelContentOwnerDetails.fromJson(core.Map _json) { |
| 7793 if (_json.containsKey("contentOwner")) { | 7791 if (_json.containsKey("contentOwner")) { |
| 7794 contentOwner = _json["contentOwner"]; | 7792 contentOwner = _json["contentOwner"]; |
| 7795 } | 7793 } |
| 7796 if (_json.containsKey("timeLinked")) { | 7794 if (_json.containsKey("timeLinked")) { |
| 7797 timeLinked = core.DateTime.parse(_json["timeLinked"]); | 7795 timeLinked = core.DateTime.parse(_json["timeLinked"]); |
| 7798 } | 7796 } |
| 7799 } | 7797 } |
| 7800 | 7798 |
| 7801 core.Map<core.String, core.Object> toJson() { | 7799 core.Map<core.String, core.Object> toJson() { |
| 7802 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7800 final core.Map<core.String, core.Object> _json = |
| 7801 new core.Map<core.String, core.Object>(); |
| 7803 if (contentOwner != null) { | 7802 if (contentOwner != null) { |
| 7804 _json["contentOwner"] = contentOwner; | 7803 _json["contentOwner"] = contentOwner; |
| 7805 } | 7804 } |
| 7806 if (timeLinked != null) { | 7805 if (timeLinked != null) { |
| 7807 _json["timeLinked"] = (timeLinked).toIso8601String(); | 7806 _json["timeLinked"] = (timeLinked).toIso8601String(); |
| 7808 } | 7807 } |
| 7809 return _json; | 7808 return _json; |
| 7810 } | 7809 } |
| 7811 } | 7810 } |
| 7812 | 7811 |
| 7813 /** | 7812 /// Pings that the app shall fire (authenticated by biscotti cookie). Each ping |
| 7814 * Pings that the app shall fire (authenticated by biscotti cookie). Each ping | 7813 /// has a context, in which the app must fire the ping, and a url identifying |
| 7815 * has a context, in which the app must fire the ping, and a url identifying the | 7814 /// the ping. |
| 7816 * ping. | |
| 7817 */ | |
| 7818 class ChannelConversionPing { | 7815 class ChannelConversionPing { |
| 7819 /** | 7816 /// Defines the context of the ping. |
| 7820 * Defines the context of the ping. | 7817 /// Possible string values are: |
| 7821 * Possible string values are: | 7818 /// - "cview" |
| 7822 * - "cview" | 7819 /// - "subscribe" |
| 7823 * - "subscribe" | 7820 /// - "unsubscribe" |
| 7824 * - "unsubscribe" | |
| 7825 */ | |
| 7826 core.String context; | 7821 core.String context; |
| 7827 /** | 7822 |
| 7828 * The url (without the schema) that the player shall send the ping to. It's | 7823 /// The url (without the schema) that the player shall send the ping to. It's |
| 7829 * at caller's descretion to decide which schema to use (http vs https) | 7824 /// at caller's descretion to decide which schema to use (http vs https) |
| 7830 * Example of a returned url: //googleads.g.doubleclick.net/pagead/ | 7825 /// Example of a returned url: //googleads.g.doubleclick.net/pagead/ |
| 7831 * viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D | 7826 /// viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D |
| 7832 * cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must append | 7827 /// cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must |
| 7833 * biscotti authentication (ms param in case of mobile, for example) to this | 7828 /// append biscotti authentication (ms param in case of mobile, for example) |
| 7834 * ping. | 7829 /// to this ping. |
| 7835 */ | |
| 7836 core.String conversionUrl; | 7830 core.String conversionUrl; |
| 7837 | 7831 |
| 7838 ChannelConversionPing(); | 7832 ChannelConversionPing(); |
| 7839 | 7833 |
| 7840 ChannelConversionPing.fromJson(core.Map _json) { | 7834 ChannelConversionPing.fromJson(core.Map _json) { |
| 7841 if (_json.containsKey("context")) { | 7835 if (_json.containsKey("context")) { |
| 7842 context = _json["context"]; | 7836 context = _json["context"]; |
| 7843 } | 7837 } |
| 7844 if (_json.containsKey("conversionUrl")) { | 7838 if (_json.containsKey("conversionUrl")) { |
| 7845 conversionUrl = _json["conversionUrl"]; | 7839 conversionUrl = _json["conversionUrl"]; |
| 7846 } | 7840 } |
| 7847 } | 7841 } |
| 7848 | 7842 |
| 7849 core.Map<core.String, core.Object> toJson() { | 7843 core.Map<core.String, core.Object> toJson() { |
| 7850 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7844 final core.Map<core.String, core.Object> _json = |
| 7845 new core.Map<core.String, core.Object>(); |
| 7851 if (context != null) { | 7846 if (context != null) { |
| 7852 _json["context"] = context; | 7847 _json["context"] = context; |
| 7853 } | 7848 } |
| 7854 if (conversionUrl != null) { | 7849 if (conversionUrl != null) { |
| 7855 _json["conversionUrl"] = conversionUrl; | 7850 _json["conversionUrl"] = conversionUrl; |
| 7856 } | 7851 } |
| 7857 return _json; | 7852 return _json; |
| 7858 } | 7853 } |
| 7859 } | 7854 } |
| 7860 | 7855 |
| 7861 /** | 7856 /// The conversionPings object encapsulates information about conversion pings |
| 7862 * The conversionPings object encapsulates information about conversion pings | 7857 /// that need to be respected by the channel. |
| 7863 * that need to be respected by the channel. | |
| 7864 */ | |
| 7865 class ChannelConversionPings { | 7858 class ChannelConversionPings { |
| 7866 /** | 7859 /// Pings that the app shall fire (authenticated by biscotti cookie). Each |
| 7867 * Pings that the app shall fire (authenticated by biscotti cookie). Each ping | 7860 /// ping has a context, in which the app must fire the ping, and a url |
| 7868 * has a context, in which the app must fire the ping, and a url identifying | 7861 /// identifying the ping. |
| 7869 * the ping. | |
| 7870 */ | |
| 7871 core.List<ChannelConversionPing> pings; | 7862 core.List<ChannelConversionPing> pings; |
| 7872 | 7863 |
| 7873 ChannelConversionPings(); | 7864 ChannelConversionPings(); |
| 7874 | 7865 |
| 7875 ChannelConversionPings.fromJson(core.Map _json) { | 7866 ChannelConversionPings.fromJson(core.Map _json) { |
| 7876 if (_json.containsKey("pings")) { | 7867 if (_json.containsKey("pings")) { |
| 7877 pings = _json["pings"].map((value) => new ChannelConversionPing.fromJson(v
alue)).toList(); | 7868 pings = _json["pings"] |
| 7869 .map((value) => new ChannelConversionPing.fromJson(value)) |
| 7870 .toList(); |
| 7878 } | 7871 } |
| 7879 } | 7872 } |
| 7880 | 7873 |
| 7881 core.Map<core.String, core.Object> toJson() { | 7874 core.Map<core.String, core.Object> toJson() { |
| 7882 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7875 final core.Map<core.String, core.Object> _json = |
| 7876 new core.Map<core.String, core.Object>(); |
| 7883 if (pings != null) { | 7877 if (pings != null) { |
| 7884 _json["pings"] = pings.map((value) => (value).toJson()).toList(); | 7878 _json["pings"] = pings.map((value) => (value).toJson()).toList(); |
| 7885 } | 7879 } |
| 7886 return _json; | 7880 return _json; |
| 7887 } | 7881 } |
| 7888 } | 7882 } |
| 7889 | 7883 |
| 7890 class ChannelListResponse { | 7884 class ChannelListResponse { |
| 7891 /** Etag of this resource. */ | 7885 /// Etag of this resource. |
| 7892 core.String etag; | 7886 core.String etag; |
| 7893 /** Serialized EventId of the request which produced this response. */ | 7887 |
| 7888 /// Serialized EventId of the request which produced this response. |
| 7894 core.String eventId; | 7889 core.String eventId; |
| 7895 /** A list of channels that match the request criteria. */ | 7890 |
| 7891 /// A list of channels that match the request criteria. |
| 7896 core.List<Channel> items; | 7892 core.List<Channel> items; |
| 7897 /** | 7893 |
| 7898 * Identifies what kind of resource this is. Value: the fixed string | 7894 /// Identifies what kind of resource this is. Value: the fixed string |
| 7899 * "youtube#channelListResponse". | 7895 /// "youtube#channelListResponse". |
| 7900 */ | |
| 7901 core.String kind; | 7896 core.String kind; |
| 7902 /** | 7897 |
| 7903 * The token that can be used as the value of the pageToken parameter to | 7898 /// The token that can be used as the value of the pageToken parameter to |
| 7904 * retrieve the next page in the result set. | 7899 /// retrieve the next page in the result set. |
| 7905 */ | |
| 7906 core.String nextPageToken; | 7900 core.String nextPageToken; |
| 7907 PageInfo pageInfo; | 7901 PageInfo pageInfo; |
| 7908 /** | 7902 |
| 7909 * The token that can be used as the value of the pageToken parameter to | 7903 /// The token that can be used as the value of the pageToken parameter to |
| 7910 * retrieve the previous page in the result set. | 7904 /// retrieve the previous page in the result set. |
| 7911 */ | |
| 7912 core.String prevPageToken; | 7905 core.String prevPageToken; |
| 7913 TokenPagination tokenPagination; | 7906 TokenPagination tokenPagination; |
| 7914 /** The visitorId identifies the visitor. */ | 7907 |
| 7908 /// The visitorId identifies the visitor. |
| 7915 core.String visitorId; | 7909 core.String visitorId; |
| 7916 | 7910 |
| 7917 ChannelListResponse(); | 7911 ChannelListResponse(); |
| 7918 | 7912 |
| 7919 ChannelListResponse.fromJson(core.Map _json) { | 7913 ChannelListResponse.fromJson(core.Map _json) { |
| 7920 if (_json.containsKey("etag")) { | 7914 if (_json.containsKey("etag")) { |
| 7921 etag = _json["etag"]; | 7915 etag = _json["etag"]; |
| 7922 } | 7916 } |
| 7923 if (_json.containsKey("eventId")) { | 7917 if (_json.containsKey("eventId")) { |
| 7924 eventId = _json["eventId"]; | 7918 eventId = _json["eventId"]; |
| 7925 } | 7919 } |
| 7926 if (_json.containsKey("items")) { | 7920 if (_json.containsKey("items")) { |
| 7927 items = _json["items"].map((value) => new Channel.fromJson(value)).toList(
); | 7921 items = |
| 7922 _json["items"].map((value) => new Channel.fromJson(value)).toList(); |
| 7928 } | 7923 } |
| 7929 if (_json.containsKey("kind")) { | 7924 if (_json.containsKey("kind")) { |
| 7930 kind = _json["kind"]; | 7925 kind = _json["kind"]; |
| 7931 } | 7926 } |
| 7932 if (_json.containsKey("nextPageToken")) { | 7927 if (_json.containsKey("nextPageToken")) { |
| 7933 nextPageToken = _json["nextPageToken"]; | 7928 nextPageToken = _json["nextPageToken"]; |
| 7934 } | 7929 } |
| 7935 if (_json.containsKey("pageInfo")) { | 7930 if (_json.containsKey("pageInfo")) { |
| 7936 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 7931 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 7937 } | 7932 } |
| 7938 if (_json.containsKey("prevPageToken")) { | 7933 if (_json.containsKey("prevPageToken")) { |
| 7939 prevPageToken = _json["prevPageToken"]; | 7934 prevPageToken = _json["prevPageToken"]; |
| 7940 } | 7935 } |
| 7941 if (_json.containsKey("tokenPagination")) { | 7936 if (_json.containsKey("tokenPagination")) { |
| 7942 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 7937 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 7943 } | 7938 } |
| 7944 if (_json.containsKey("visitorId")) { | 7939 if (_json.containsKey("visitorId")) { |
| 7945 visitorId = _json["visitorId"]; | 7940 visitorId = _json["visitorId"]; |
| 7946 } | 7941 } |
| 7947 } | 7942 } |
| 7948 | 7943 |
| 7949 core.Map<core.String, core.Object> toJson() { | 7944 core.Map<core.String, core.Object> toJson() { |
| 7950 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7945 final core.Map<core.String, core.Object> _json = |
| 7946 new core.Map<core.String, core.Object>(); |
| 7951 if (etag != null) { | 7947 if (etag != null) { |
| 7952 _json["etag"] = etag; | 7948 _json["etag"] = etag; |
| 7953 } | 7949 } |
| 7954 if (eventId != null) { | 7950 if (eventId != null) { |
| 7955 _json["eventId"] = eventId; | 7951 _json["eventId"] = eventId; |
| 7956 } | 7952 } |
| 7957 if (items != null) { | 7953 if (items != null) { |
| 7958 _json["items"] = items.map((value) => (value).toJson()).toList(); | 7954 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 7959 } | 7955 } |
| 7960 if (kind != null) { | 7956 if (kind != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 7972 if (tokenPagination != null) { | 7968 if (tokenPagination != null) { |
| 7973 _json["tokenPagination"] = (tokenPagination).toJson(); | 7969 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 7974 } | 7970 } |
| 7975 if (visitorId != null) { | 7971 if (visitorId != null) { |
| 7976 _json["visitorId"] = visitorId; | 7972 _json["visitorId"] = visitorId; |
| 7977 } | 7973 } |
| 7978 return _json; | 7974 return _json; |
| 7979 } | 7975 } |
| 7980 } | 7976 } |
| 7981 | 7977 |
| 7982 /** Channel localization setting */ | 7978 /// Channel localization setting |
| 7983 class ChannelLocalization { | 7979 class ChannelLocalization { |
| 7984 /** The localized strings for channel's description. */ | 7980 /// The localized strings for channel's description. |
| 7985 core.String description; | 7981 core.String description; |
| 7986 /** The localized strings for channel's title. */ | 7982 |
| 7983 /// The localized strings for channel's title. |
| 7987 core.String title; | 7984 core.String title; |
| 7988 | 7985 |
| 7989 ChannelLocalization(); | 7986 ChannelLocalization(); |
| 7990 | 7987 |
| 7991 ChannelLocalization.fromJson(core.Map _json) { | 7988 ChannelLocalization.fromJson(core.Map _json) { |
| 7992 if (_json.containsKey("description")) { | 7989 if (_json.containsKey("description")) { |
| 7993 description = _json["description"]; | 7990 description = _json["description"]; |
| 7994 } | 7991 } |
| 7995 if (_json.containsKey("title")) { | 7992 if (_json.containsKey("title")) { |
| 7996 title = _json["title"]; | 7993 title = _json["title"]; |
| 7997 } | 7994 } |
| 7998 } | 7995 } |
| 7999 | 7996 |
| 8000 core.Map<core.String, core.Object> toJson() { | 7997 core.Map<core.String, core.Object> toJson() { |
| 8001 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 7998 final core.Map<core.String, core.Object> _json = |
| 7999 new core.Map<core.String, core.Object>(); |
| 8002 if (description != null) { | 8000 if (description != null) { |
| 8003 _json["description"] = description; | 8001 _json["description"] = description; |
| 8004 } | 8002 } |
| 8005 if (title != null) { | 8003 if (title != null) { |
| 8006 _json["title"] = title; | 8004 _json["title"] = title; |
| 8007 } | 8005 } |
| 8008 return _json; | 8006 return _json; |
| 8009 } | 8007 } |
| 8010 } | 8008 } |
| 8011 | 8009 |
| 8012 class ChannelProfileDetails { | 8010 class ChannelProfileDetails { |
| 8013 /** The YouTube channel ID. */ | 8011 /// The YouTube channel ID. |
| 8014 core.String channelId; | 8012 core.String channelId; |
| 8015 /** The channel's URL. */ | 8013 |
| 8014 /// The channel's URL. |
| 8016 core.String channelUrl; | 8015 core.String channelUrl; |
| 8017 /** The channel's display name. */ | 8016 |
| 8017 /// The channel's display name. |
| 8018 core.String displayName; | 8018 core.String displayName; |
| 8019 /** The channels's avatar URL. */ | 8019 |
| 8020 /// The channels's avatar URL. |
| 8020 core.String profileImageUrl; | 8021 core.String profileImageUrl; |
| 8021 | 8022 |
| 8022 ChannelProfileDetails(); | 8023 ChannelProfileDetails(); |
| 8023 | 8024 |
| 8024 ChannelProfileDetails.fromJson(core.Map _json) { | 8025 ChannelProfileDetails.fromJson(core.Map _json) { |
| 8025 if (_json.containsKey("channelId")) { | 8026 if (_json.containsKey("channelId")) { |
| 8026 channelId = _json["channelId"]; | 8027 channelId = _json["channelId"]; |
| 8027 } | 8028 } |
| 8028 if (_json.containsKey("channelUrl")) { | 8029 if (_json.containsKey("channelUrl")) { |
| 8029 channelUrl = _json["channelUrl"]; | 8030 channelUrl = _json["channelUrl"]; |
| 8030 } | 8031 } |
| 8031 if (_json.containsKey("displayName")) { | 8032 if (_json.containsKey("displayName")) { |
| 8032 displayName = _json["displayName"]; | 8033 displayName = _json["displayName"]; |
| 8033 } | 8034 } |
| 8034 if (_json.containsKey("profileImageUrl")) { | 8035 if (_json.containsKey("profileImageUrl")) { |
| 8035 profileImageUrl = _json["profileImageUrl"]; | 8036 profileImageUrl = _json["profileImageUrl"]; |
| 8036 } | 8037 } |
| 8037 } | 8038 } |
| 8038 | 8039 |
| 8039 core.Map<core.String, core.Object> toJson() { | 8040 core.Map<core.String, core.Object> toJson() { |
| 8040 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8041 final core.Map<core.String, core.Object> _json = |
| 8042 new core.Map<core.String, core.Object>(); |
| 8041 if (channelId != null) { | 8043 if (channelId != null) { |
| 8042 _json["channelId"] = channelId; | 8044 _json["channelId"] = channelId; |
| 8043 } | 8045 } |
| 8044 if (channelUrl != null) { | 8046 if (channelUrl != null) { |
| 8045 _json["channelUrl"] = channelUrl; | 8047 _json["channelUrl"] = channelUrl; |
| 8046 } | 8048 } |
| 8047 if (displayName != null) { | 8049 if (displayName != null) { |
| 8048 _json["displayName"] = displayName; | 8050 _json["displayName"] = displayName; |
| 8049 } | 8051 } |
| 8050 if (profileImageUrl != null) { | 8052 if (profileImageUrl != null) { |
| 8051 _json["profileImageUrl"] = profileImageUrl; | 8053 _json["profileImageUrl"] = profileImageUrl; |
| 8052 } | 8054 } |
| 8053 return _json; | 8055 return _json; |
| 8054 } | 8056 } |
| 8055 } | 8057 } |
| 8056 | 8058 |
| 8057 class ChannelSection { | 8059 class ChannelSection { |
| 8058 /** | 8060 /// The contentDetails object contains details about the channel section |
| 8059 * The contentDetails object contains details about the channel section | 8061 /// content, such as a list of playlists or channels featured in the section. |
| 8060 * content, such as a list of playlists or channels featured in the section. | |
| 8061 */ | |
| 8062 ChannelSectionContentDetails contentDetails; | 8062 ChannelSectionContentDetails contentDetails; |
| 8063 /** Etag of this resource. */ | 8063 |
| 8064 /// Etag of this resource. |
| 8064 core.String etag; | 8065 core.String etag; |
| 8065 /** The ID that YouTube uses to uniquely identify the channel section. */ | 8066 |
| 8067 /// The ID that YouTube uses to uniquely identify the channel section. |
| 8066 core.String id; | 8068 core.String id; |
| 8067 /** | 8069 |
| 8068 * Identifies what kind of resource this is. Value: the fixed string | 8070 /// Identifies what kind of resource this is. Value: the fixed string |
| 8069 * "youtube#channelSection". | 8071 /// "youtube#channelSection". |
| 8070 */ | |
| 8071 core.String kind; | 8072 core.String kind; |
| 8072 /** Localizations for different languages */ | 8073 |
| 8074 /// Localizations for different languages |
| 8073 core.Map<core.String, ChannelSectionLocalization> localizations; | 8075 core.Map<core.String, ChannelSectionLocalization> localizations; |
| 8074 /** | 8076 |
| 8075 * The snippet object contains basic details about the channel section, such | 8077 /// The snippet object contains basic details about the channel section, such |
| 8076 * as its type, style and title. | 8078 /// as its type, style and title. |
| 8077 */ | |
| 8078 ChannelSectionSnippet snippet; | 8079 ChannelSectionSnippet snippet; |
| 8079 /** | 8080 |
| 8080 * The targeting object contains basic targeting settings about the channel | 8081 /// The targeting object contains basic targeting settings about the channel |
| 8081 * section. | 8082 /// section. |
| 8082 */ | |
| 8083 ChannelSectionTargeting targeting; | 8083 ChannelSectionTargeting targeting; |
| 8084 | 8084 |
| 8085 ChannelSection(); | 8085 ChannelSection(); |
| 8086 | 8086 |
| 8087 ChannelSection.fromJson(core.Map _json) { | 8087 ChannelSection.fromJson(core.Map _json) { |
| 8088 if (_json.containsKey("contentDetails")) { | 8088 if (_json.containsKey("contentDetails")) { |
| 8089 contentDetails = new ChannelSectionContentDetails.fromJson(_json["contentD
etails"]); | 8089 contentDetails = |
| 8090 new ChannelSectionContentDetails.fromJson(_json["contentDetails"]); |
| 8090 } | 8091 } |
| 8091 if (_json.containsKey("etag")) { | 8092 if (_json.containsKey("etag")) { |
| 8092 etag = _json["etag"]; | 8093 etag = _json["etag"]; |
| 8093 } | 8094 } |
| 8094 if (_json.containsKey("id")) { | 8095 if (_json.containsKey("id")) { |
| 8095 id = _json["id"]; | 8096 id = _json["id"]; |
| 8096 } | 8097 } |
| 8097 if (_json.containsKey("kind")) { | 8098 if (_json.containsKey("kind")) { |
| 8098 kind = _json["kind"]; | 8099 kind = _json["kind"]; |
| 8099 } | 8100 } |
| 8100 if (_json.containsKey("localizations")) { | 8101 if (_json.containsKey("localizations")) { |
| 8101 localizations = commons.mapMap<core.Map<core.String, core.Object>, Channel
SectionLocalization>(_json["localizations"], (core.Map<core.String, core.Object>
item) => new ChannelSectionLocalization.fromJson(item)); | 8102 localizations = commons.mapMap<core.Map<core.String, core.Object>, |
| 8103 ChannelSectionLocalization>( |
| 8104 _json["localizations"], |
| 8105 (core.Map<core.String, core.Object> item) => |
| 8106 new ChannelSectionLocalization.fromJson(item)); |
| 8102 } | 8107 } |
| 8103 if (_json.containsKey("snippet")) { | 8108 if (_json.containsKey("snippet")) { |
| 8104 snippet = new ChannelSectionSnippet.fromJson(_json["snippet"]); | 8109 snippet = new ChannelSectionSnippet.fromJson(_json["snippet"]); |
| 8105 } | 8110 } |
| 8106 if (_json.containsKey("targeting")) { | 8111 if (_json.containsKey("targeting")) { |
| 8107 targeting = new ChannelSectionTargeting.fromJson(_json["targeting"]); | 8112 targeting = new ChannelSectionTargeting.fromJson(_json["targeting"]); |
| 8108 } | 8113 } |
| 8109 } | 8114 } |
| 8110 | 8115 |
| 8111 core.Map<core.String, core.Object> toJson() { | 8116 core.Map<core.String, core.Object> toJson() { |
| 8112 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8117 final core.Map<core.String, core.Object> _json = |
| 8118 new core.Map<core.String, core.Object>(); |
| 8113 if (contentDetails != null) { | 8119 if (contentDetails != null) { |
| 8114 _json["contentDetails"] = (contentDetails).toJson(); | 8120 _json["contentDetails"] = (contentDetails).toJson(); |
| 8115 } | 8121 } |
| 8116 if (etag != null) { | 8122 if (etag != null) { |
| 8117 _json["etag"] = etag; | 8123 _json["etag"] = etag; |
| 8118 } | 8124 } |
| 8119 if (id != null) { | 8125 if (id != null) { |
| 8120 _json["id"] = id; | 8126 _json["id"] = id; |
| 8121 } | 8127 } |
| 8122 if (kind != null) { | 8128 if (kind != null) { |
| 8123 _json["kind"] = kind; | 8129 _json["kind"] = kind; |
| 8124 } | 8130 } |
| 8125 if (localizations != null) { | 8131 if (localizations != null) { |
| 8126 _json["localizations"] = commons.mapMap<ChannelSectionLocalization, core.M
ap<core.String, core.Object>>(localizations, (ChannelSectionLocalization item) =
> (item).toJson()); | 8132 _json["localizations"] = commons.mapMap<ChannelSectionLocalization, |
| 8133 core.Map<core.String, core.Object>>( |
| 8134 localizations, (ChannelSectionLocalization item) => (item).toJson()); |
| 8127 } | 8135 } |
| 8128 if (snippet != null) { | 8136 if (snippet != null) { |
| 8129 _json["snippet"] = (snippet).toJson(); | 8137 _json["snippet"] = (snippet).toJson(); |
| 8130 } | 8138 } |
| 8131 if (targeting != null) { | 8139 if (targeting != null) { |
| 8132 _json["targeting"] = (targeting).toJson(); | 8140 _json["targeting"] = (targeting).toJson(); |
| 8133 } | 8141 } |
| 8134 return _json; | 8142 return _json; |
| 8135 } | 8143 } |
| 8136 } | 8144 } |
| 8137 | 8145 |
| 8138 /** Details about a channelsection, including playlists and channels. */ | 8146 /// Details about a channelsection, including playlists and channels. |
| 8139 class ChannelSectionContentDetails { | 8147 class ChannelSectionContentDetails { |
| 8140 /** The channel ids for type multiple_channels. */ | 8148 /// The channel ids for type multiple_channels. |
| 8141 core.List<core.String> channels; | 8149 core.List<core.String> channels; |
| 8142 /** | 8150 |
| 8143 * The playlist ids for type single_playlist and multiple_playlists. For | 8151 /// The playlist ids for type single_playlist and multiple_playlists. For |
| 8144 * singlePlaylist, only one playlistId is allowed. | 8152 /// singlePlaylist, only one playlistId is allowed. |
| 8145 */ | |
| 8146 core.List<core.String> playlists; | 8153 core.List<core.String> playlists; |
| 8147 | 8154 |
| 8148 ChannelSectionContentDetails(); | 8155 ChannelSectionContentDetails(); |
| 8149 | 8156 |
| 8150 ChannelSectionContentDetails.fromJson(core.Map _json) { | 8157 ChannelSectionContentDetails.fromJson(core.Map _json) { |
| 8151 if (_json.containsKey("channels")) { | 8158 if (_json.containsKey("channels")) { |
| 8152 channels = _json["channels"]; | 8159 channels = _json["channels"]; |
| 8153 } | 8160 } |
| 8154 if (_json.containsKey("playlists")) { | 8161 if (_json.containsKey("playlists")) { |
| 8155 playlists = _json["playlists"]; | 8162 playlists = _json["playlists"]; |
| 8156 } | 8163 } |
| 8157 } | 8164 } |
| 8158 | 8165 |
| 8159 core.Map<core.String, core.Object> toJson() { | 8166 core.Map<core.String, core.Object> toJson() { |
| 8160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8167 final core.Map<core.String, core.Object> _json = |
| 8168 new core.Map<core.String, core.Object>(); |
| 8161 if (channels != null) { | 8169 if (channels != null) { |
| 8162 _json["channels"] = channels; | 8170 _json["channels"] = channels; |
| 8163 } | 8171 } |
| 8164 if (playlists != null) { | 8172 if (playlists != null) { |
| 8165 _json["playlists"] = playlists; | 8173 _json["playlists"] = playlists; |
| 8166 } | 8174 } |
| 8167 return _json; | 8175 return _json; |
| 8168 } | 8176 } |
| 8169 } | 8177 } |
| 8170 | 8178 |
| 8171 class ChannelSectionListResponse { | 8179 class ChannelSectionListResponse { |
| 8172 /** Etag of this resource. */ | 8180 /// Etag of this resource. |
| 8173 core.String etag; | 8181 core.String etag; |
| 8174 /** Serialized EventId of the request which produced this response. */ | 8182 |
| 8183 /// Serialized EventId of the request which produced this response. |
| 8175 core.String eventId; | 8184 core.String eventId; |
| 8176 /** A list of ChannelSections that match the request criteria. */ | 8185 |
| 8186 /// A list of ChannelSections that match the request criteria. |
| 8177 core.List<ChannelSection> items; | 8187 core.List<ChannelSection> items; |
| 8178 /** | 8188 |
| 8179 * Identifies what kind of resource this is. Value: the fixed string | 8189 /// Identifies what kind of resource this is. Value: the fixed string |
| 8180 * "youtube#channelSectionListResponse". | 8190 /// "youtube#channelSectionListResponse". |
| 8181 */ | |
| 8182 core.String kind; | 8191 core.String kind; |
| 8183 /** The visitorId identifies the visitor. */ | 8192 |
| 8193 /// The visitorId identifies the visitor. |
| 8184 core.String visitorId; | 8194 core.String visitorId; |
| 8185 | 8195 |
| 8186 ChannelSectionListResponse(); | 8196 ChannelSectionListResponse(); |
| 8187 | 8197 |
| 8188 ChannelSectionListResponse.fromJson(core.Map _json) { | 8198 ChannelSectionListResponse.fromJson(core.Map _json) { |
| 8189 if (_json.containsKey("etag")) { | 8199 if (_json.containsKey("etag")) { |
| 8190 etag = _json["etag"]; | 8200 etag = _json["etag"]; |
| 8191 } | 8201 } |
| 8192 if (_json.containsKey("eventId")) { | 8202 if (_json.containsKey("eventId")) { |
| 8193 eventId = _json["eventId"]; | 8203 eventId = _json["eventId"]; |
| 8194 } | 8204 } |
| 8195 if (_json.containsKey("items")) { | 8205 if (_json.containsKey("items")) { |
| 8196 items = _json["items"].map((value) => new ChannelSection.fromJson(value)).
toList(); | 8206 items = _json["items"] |
| 8207 .map((value) => new ChannelSection.fromJson(value)) |
| 8208 .toList(); |
| 8197 } | 8209 } |
| 8198 if (_json.containsKey("kind")) { | 8210 if (_json.containsKey("kind")) { |
| 8199 kind = _json["kind"]; | 8211 kind = _json["kind"]; |
| 8200 } | 8212 } |
| 8201 if (_json.containsKey("visitorId")) { | 8213 if (_json.containsKey("visitorId")) { |
| 8202 visitorId = _json["visitorId"]; | 8214 visitorId = _json["visitorId"]; |
| 8203 } | 8215 } |
| 8204 } | 8216 } |
| 8205 | 8217 |
| 8206 core.Map<core.String, core.Object> toJson() { | 8218 core.Map<core.String, core.Object> toJson() { |
| 8207 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8219 final core.Map<core.String, core.Object> _json = |
| 8220 new core.Map<core.String, core.Object>(); |
| 8208 if (etag != null) { | 8221 if (etag != null) { |
| 8209 _json["etag"] = etag; | 8222 _json["etag"] = etag; |
| 8210 } | 8223 } |
| 8211 if (eventId != null) { | 8224 if (eventId != null) { |
| 8212 _json["eventId"] = eventId; | 8225 _json["eventId"] = eventId; |
| 8213 } | 8226 } |
| 8214 if (items != null) { | 8227 if (items != null) { |
| 8215 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8228 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 8216 } | 8229 } |
| 8217 if (kind != null) { | 8230 if (kind != null) { |
| 8218 _json["kind"] = kind; | 8231 _json["kind"] = kind; |
| 8219 } | 8232 } |
| 8220 if (visitorId != null) { | 8233 if (visitorId != null) { |
| 8221 _json["visitorId"] = visitorId; | 8234 _json["visitorId"] = visitorId; |
| 8222 } | 8235 } |
| 8223 return _json; | 8236 return _json; |
| 8224 } | 8237 } |
| 8225 } | 8238 } |
| 8226 | 8239 |
| 8227 /** ChannelSection localization setting */ | 8240 /// ChannelSection localization setting |
| 8228 class ChannelSectionLocalization { | 8241 class ChannelSectionLocalization { |
| 8229 /** The localized strings for channel section's title. */ | 8242 /// The localized strings for channel section's title. |
| 8230 core.String title; | 8243 core.String title; |
| 8231 | 8244 |
| 8232 ChannelSectionLocalization(); | 8245 ChannelSectionLocalization(); |
| 8233 | 8246 |
| 8234 ChannelSectionLocalization.fromJson(core.Map _json) { | 8247 ChannelSectionLocalization.fromJson(core.Map _json) { |
| 8235 if (_json.containsKey("title")) { | 8248 if (_json.containsKey("title")) { |
| 8236 title = _json["title"]; | 8249 title = _json["title"]; |
| 8237 } | 8250 } |
| 8238 } | 8251 } |
| 8239 | 8252 |
| 8240 core.Map<core.String, core.Object> toJson() { | 8253 core.Map<core.String, core.Object> toJson() { |
| 8241 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8254 final core.Map<core.String, core.Object> _json = |
| 8255 new core.Map<core.String, core.Object>(); |
| 8242 if (title != null) { | 8256 if (title != null) { |
| 8243 _json["title"] = title; | 8257 _json["title"] = title; |
| 8244 } | 8258 } |
| 8245 return _json; | 8259 return _json; |
| 8246 } | 8260 } |
| 8247 } | 8261 } |
| 8248 | 8262 |
| 8249 /** | 8263 /// Basic details about a channel section, including title, style and position. |
| 8250 * Basic details about a channel section, including title, style and position. | |
| 8251 */ | |
| 8252 class ChannelSectionSnippet { | 8264 class ChannelSectionSnippet { |
| 8253 /** | 8265 /// The ID that YouTube uses to uniquely identify the channel that published |
| 8254 * The ID that YouTube uses to uniquely identify the channel that published | 8266 /// the channel section. |
| 8255 * the channel section. | |
| 8256 */ | |
| 8257 core.String channelId; | 8267 core.String channelId; |
| 8258 /** The language of the channel section's default title and description. */ | 8268 |
| 8269 /// The language of the channel section's default title and description. |
| 8259 core.String defaultLanguage; | 8270 core.String defaultLanguage; |
| 8260 /** Localized title, read-only. */ | 8271 |
| 8272 /// Localized title, read-only. |
| 8261 ChannelSectionLocalization localized; | 8273 ChannelSectionLocalization localized; |
| 8262 /** The position of the channel section in the channel. */ | 8274 |
| 8275 /// The position of the channel section in the channel. |
| 8263 core.int position; | 8276 core.int position; |
| 8264 /** | 8277 |
| 8265 * The style of the channel section. | 8278 /// The style of the channel section. |
| 8266 * Possible string values are: | 8279 /// Possible string values are: |
| 8267 * - "channelsectionStyleUndefined" | 8280 /// - "channelsectionStyleUndefined" |
| 8268 * - "horizontalRow" | 8281 /// - "horizontalRow" |
| 8269 * - "verticalList" | 8282 /// - "verticalList" |
| 8270 */ | |
| 8271 core.String style; | 8283 core.String style; |
| 8272 /** | 8284 |
| 8273 * The channel section's title for multiple_playlists and multiple_channels. | 8285 /// The channel section's title for multiple_playlists and multiple_channels. |
| 8274 */ | |
| 8275 core.String title; | 8286 core.String title; |
| 8276 /** | 8287 |
| 8277 * The type of the channel section. | 8288 /// The type of the channel section. |
| 8278 * Possible string values are: | 8289 /// Possible string values are: |
| 8279 * - "allPlaylists" | 8290 /// - "allPlaylists" |
| 8280 * - "channelsectionTypeUndefined" | 8291 /// - "channelsectionTypeUndefined" |
| 8281 * - "completedEvents" | 8292 /// - "completedEvents" |
| 8282 * - "likedPlaylists" | 8293 /// - "likedPlaylists" |
| 8283 * - "likes" | 8294 /// - "likes" |
| 8284 * - "liveEvents" | 8295 /// - "liveEvents" |
| 8285 * - "multipleChannels" | 8296 /// - "multipleChannels" |
| 8286 * - "multiplePlaylists" | 8297 /// - "multiplePlaylists" |
| 8287 * - "popularUploads" | 8298 /// - "popularUploads" |
| 8288 * - "postedPlaylists" | 8299 /// - "postedPlaylists" |
| 8289 * - "postedVideos" | 8300 /// - "postedVideos" |
| 8290 * - "recentActivity" | 8301 /// - "recentActivity" |
| 8291 * - "recentPosts" | 8302 /// - "recentPosts" |
| 8292 * - "recentUploads" | 8303 /// - "recentUploads" |
| 8293 * - "singlePlaylist" | 8304 /// - "singlePlaylist" |
| 8294 * - "subscriptions" | 8305 /// - "subscriptions" |
| 8295 * - "upcomingEvents" | 8306 /// - "upcomingEvents" |
| 8296 */ | |
| 8297 core.String type; | 8307 core.String type; |
| 8298 | 8308 |
| 8299 ChannelSectionSnippet(); | 8309 ChannelSectionSnippet(); |
| 8300 | 8310 |
| 8301 ChannelSectionSnippet.fromJson(core.Map _json) { | 8311 ChannelSectionSnippet.fromJson(core.Map _json) { |
| 8302 if (_json.containsKey("channelId")) { | 8312 if (_json.containsKey("channelId")) { |
| 8303 channelId = _json["channelId"]; | 8313 channelId = _json["channelId"]; |
| 8304 } | 8314 } |
| 8305 if (_json.containsKey("defaultLanguage")) { | 8315 if (_json.containsKey("defaultLanguage")) { |
| 8306 defaultLanguage = _json["defaultLanguage"]; | 8316 defaultLanguage = _json["defaultLanguage"]; |
| 8307 } | 8317 } |
| 8308 if (_json.containsKey("localized")) { | 8318 if (_json.containsKey("localized")) { |
| 8309 localized = new ChannelSectionLocalization.fromJson(_json["localized"]); | 8319 localized = new ChannelSectionLocalization.fromJson(_json["localized"]); |
| 8310 } | 8320 } |
| 8311 if (_json.containsKey("position")) { | 8321 if (_json.containsKey("position")) { |
| 8312 position = _json["position"]; | 8322 position = _json["position"]; |
| 8313 } | 8323 } |
| 8314 if (_json.containsKey("style")) { | 8324 if (_json.containsKey("style")) { |
| 8315 style = _json["style"]; | 8325 style = _json["style"]; |
| 8316 } | 8326 } |
| 8317 if (_json.containsKey("title")) { | 8327 if (_json.containsKey("title")) { |
| 8318 title = _json["title"]; | 8328 title = _json["title"]; |
| 8319 } | 8329 } |
| 8320 if (_json.containsKey("type")) { | 8330 if (_json.containsKey("type")) { |
| 8321 type = _json["type"]; | 8331 type = _json["type"]; |
| 8322 } | 8332 } |
| 8323 } | 8333 } |
| 8324 | 8334 |
| 8325 core.Map<core.String, core.Object> toJson() { | 8335 core.Map<core.String, core.Object> toJson() { |
| 8326 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8336 final core.Map<core.String, core.Object> _json = |
| 8337 new core.Map<core.String, core.Object>(); |
| 8327 if (channelId != null) { | 8338 if (channelId != null) { |
| 8328 _json["channelId"] = channelId; | 8339 _json["channelId"] = channelId; |
| 8329 } | 8340 } |
| 8330 if (defaultLanguage != null) { | 8341 if (defaultLanguage != null) { |
| 8331 _json["defaultLanguage"] = defaultLanguage; | 8342 _json["defaultLanguage"] = defaultLanguage; |
| 8332 } | 8343 } |
| 8333 if (localized != null) { | 8344 if (localized != null) { |
| 8334 _json["localized"] = (localized).toJson(); | 8345 _json["localized"] = (localized).toJson(); |
| 8335 } | 8346 } |
| 8336 if (position != null) { | 8347 if (position != null) { |
| 8337 _json["position"] = position; | 8348 _json["position"] = position; |
| 8338 } | 8349 } |
| 8339 if (style != null) { | 8350 if (style != null) { |
| 8340 _json["style"] = style; | 8351 _json["style"] = style; |
| 8341 } | 8352 } |
| 8342 if (title != null) { | 8353 if (title != null) { |
| 8343 _json["title"] = title; | 8354 _json["title"] = title; |
| 8344 } | 8355 } |
| 8345 if (type != null) { | 8356 if (type != null) { |
| 8346 _json["type"] = type; | 8357 _json["type"] = type; |
| 8347 } | 8358 } |
| 8348 return _json; | 8359 return _json; |
| 8349 } | 8360 } |
| 8350 } | 8361 } |
| 8351 | 8362 |
| 8352 /** ChannelSection targeting setting. */ | 8363 /// ChannelSection targeting setting. |
| 8353 class ChannelSectionTargeting { | 8364 class ChannelSectionTargeting { |
| 8354 /** The country the channel section is targeting. */ | 8365 /// The country the channel section is targeting. |
| 8355 core.List<core.String> countries; | 8366 core.List<core.String> countries; |
| 8356 /** The language the channel section is targeting. */ | 8367 |
| 8368 /// The language the channel section is targeting. |
| 8357 core.List<core.String> languages; | 8369 core.List<core.String> languages; |
| 8358 /** The region the channel section is targeting. */ | 8370 |
| 8371 /// The region the channel section is targeting. |
| 8359 core.List<core.String> regions; | 8372 core.List<core.String> regions; |
| 8360 | 8373 |
| 8361 ChannelSectionTargeting(); | 8374 ChannelSectionTargeting(); |
| 8362 | 8375 |
| 8363 ChannelSectionTargeting.fromJson(core.Map _json) { | 8376 ChannelSectionTargeting.fromJson(core.Map _json) { |
| 8364 if (_json.containsKey("countries")) { | 8377 if (_json.containsKey("countries")) { |
| 8365 countries = _json["countries"]; | 8378 countries = _json["countries"]; |
| 8366 } | 8379 } |
| 8367 if (_json.containsKey("languages")) { | 8380 if (_json.containsKey("languages")) { |
| 8368 languages = _json["languages"]; | 8381 languages = _json["languages"]; |
| 8369 } | 8382 } |
| 8370 if (_json.containsKey("regions")) { | 8383 if (_json.containsKey("regions")) { |
| 8371 regions = _json["regions"]; | 8384 regions = _json["regions"]; |
| 8372 } | 8385 } |
| 8373 } | 8386 } |
| 8374 | 8387 |
| 8375 core.Map<core.String, core.Object> toJson() { | 8388 core.Map<core.String, core.Object> toJson() { |
| 8376 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8389 final core.Map<core.String, core.Object> _json = |
| 8390 new core.Map<core.String, core.Object>(); |
| 8377 if (countries != null) { | 8391 if (countries != null) { |
| 8378 _json["countries"] = countries; | 8392 _json["countries"] = countries; |
| 8379 } | 8393 } |
| 8380 if (languages != null) { | 8394 if (languages != null) { |
| 8381 _json["languages"] = languages; | 8395 _json["languages"] = languages; |
| 8382 } | 8396 } |
| 8383 if (regions != null) { | 8397 if (regions != null) { |
| 8384 _json["regions"] = regions; | 8398 _json["regions"] = regions; |
| 8385 } | 8399 } |
| 8386 return _json; | 8400 return _json; |
| 8387 } | 8401 } |
| 8388 } | 8402 } |
| 8389 | 8403 |
| 8390 /** Branding properties for the channel view. */ | 8404 /// Branding properties for the channel view. |
| 8391 class ChannelSettings { | 8405 class ChannelSettings { |
| 8392 /** The country of the channel. */ | 8406 /// The country of the channel. |
| 8393 core.String country; | 8407 core.String country; |
| 8394 core.String defaultLanguage; | 8408 core.String defaultLanguage; |
| 8395 /** Which content tab users should see when viewing the channel. */ | 8409 |
| 8410 /// Which content tab users should see when viewing the channel. |
| 8396 core.String defaultTab; | 8411 core.String defaultTab; |
| 8397 /** Specifies the channel description. */ | 8412 |
| 8413 /// Specifies the channel description. |
| 8398 core.String description; | 8414 core.String description; |
| 8399 /** Title for the featured channels tab. */ | 8415 |
| 8416 /// Title for the featured channels tab. |
| 8400 core.String featuredChannelsTitle; | 8417 core.String featuredChannelsTitle; |
| 8401 /** The list of featured channels. */ | 8418 |
| 8419 /// The list of featured channels. |
| 8402 core.List<core.String> featuredChannelsUrls; | 8420 core.List<core.String> featuredChannelsUrls; |
| 8403 /** Lists keywords associated with the channel, comma-separated. */ | 8421 |
| 8422 /// Lists keywords associated with the channel, comma-separated. |
| 8404 core.String keywords; | 8423 core.String keywords; |
| 8405 /** | 8424 |
| 8406 * Whether user-submitted comments left on the channel page need to be | 8425 /// Whether user-submitted comments left on the channel page need to be |
| 8407 * approved by the channel owner to be publicly visible. | 8426 /// approved by the channel owner to be publicly visible. |
| 8408 */ | |
| 8409 core.bool moderateComments; | 8427 core.bool moderateComments; |
| 8410 /** A prominent color that can be rendered on this channel page. */ | 8428 |
| 8429 /// A prominent color that can be rendered on this channel page. |
| 8411 core.String profileColor; | 8430 core.String profileColor; |
| 8412 /** Whether the tab to browse the videos should be displayed. */ | 8431 |
| 8432 /// Whether the tab to browse the videos should be displayed. |
| 8413 core.bool showBrowseView; | 8433 core.bool showBrowseView; |
| 8414 /** Whether related channels should be proposed. */ | 8434 |
| 8435 /// Whether related channels should be proposed. |
| 8415 core.bool showRelatedChannels; | 8436 core.bool showRelatedChannels; |
| 8416 /** Specifies the channel title. */ | 8437 |
| 8438 /// Specifies the channel title. |
| 8417 core.String title; | 8439 core.String title; |
| 8418 /** | 8440 |
| 8419 * The ID for a Google Analytics account to track and measure traffic to the | 8441 /// The ID for a Google Analytics account to track and measure traffic to the |
| 8420 * channels. | 8442 /// channels. |
| 8421 */ | |
| 8422 core.String trackingAnalyticsAccountId; | 8443 core.String trackingAnalyticsAccountId; |
| 8423 /** The trailer of the channel, for users that are not subscribers. */ | 8444 |
| 8445 /// The trailer of the channel, for users that are not subscribers. |
| 8424 core.String unsubscribedTrailer; | 8446 core.String unsubscribedTrailer; |
| 8425 | 8447 |
| 8426 ChannelSettings(); | 8448 ChannelSettings(); |
| 8427 | 8449 |
| 8428 ChannelSettings.fromJson(core.Map _json) { | 8450 ChannelSettings.fromJson(core.Map _json) { |
| 8429 if (_json.containsKey("country")) { | 8451 if (_json.containsKey("country")) { |
| 8430 country = _json["country"]; | 8452 country = _json["country"]; |
| 8431 } | 8453 } |
| 8432 if (_json.containsKey("defaultLanguage")) { | 8454 if (_json.containsKey("defaultLanguage")) { |
| 8433 defaultLanguage = _json["defaultLanguage"]; | 8455 defaultLanguage = _json["defaultLanguage"]; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 8464 } | 8486 } |
| 8465 if (_json.containsKey("trackingAnalyticsAccountId")) { | 8487 if (_json.containsKey("trackingAnalyticsAccountId")) { |
| 8466 trackingAnalyticsAccountId = _json["trackingAnalyticsAccountId"]; | 8488 trackingAnalyticsAccountId = _json["trackingAnalyticsAccountId"]; |
| 8467 } | 8489 } |
| 8468 if (_json.containsKey("unsubscribedTrailer")) { | 8490 if (_json.containsKey("unsubscribedTrailer")) { |
| 8469 unsubscribedTrailer = _json["unsubscribedTrailer"]; | 8491 unsubscribedTrailer = _json["unsubscribedTrailer"]; |
| 8470 } | 8492 } |
| 8471 } | 8493 } |
| 8472 | 8494 |
| 8473 core.Map<core.String, core.Object> toJson() { | 8495 core.Map<core.String, core.Object> toJson() { |
| 8474 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8496 final core.Map<core.String, core.Object> _json = |
| 8497 new core.Map<core.String, core.Object>(); |
| 8475 if (country != null) { | 8498 if (country != null) { |
| 8476 _json["country"] = country; | 8499 _json["country"] = country; |
| 8477 } | 8500 } |
| 8478 if (defaultLanguage != null) { | 8501 if (defaultLanguage != null) { |
| 8479 _json["defaultLanguage"] = defaultLanguage; | 8502 _json["defaultLanguage"] = defaultLanguage; |
| 8480 } | 8503 } |
| 8481 if (defaultTab != null) { | 8504 if (defaultTab != null) { |
| 8482 _json["defaultTab"] = defaultTab; | 8505 _json["defaultTab"] = defaultTab; |
| 8483 } | 8506 } |
| 8484 if (description != null) { | 8507 if (description != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 8511 if (trackingAnalyticsAccountId != null) { | 8534 if (trackingAnalyticsAccountId != null) { |
| 8512 _json["trackingAnalyticsAccountId"] = trackingAnalyticsAccountId; | 8535 _json["trackingAnalyticsAccountId"] = trackingAnalyticsAccountId; |
| 8513 } | 8536 } |
| 8514 if (unsubscribedTrailer != null) { | 8537 if (unsubscribedTrailer != null) { |
| 8515 _json["unsubscribedTrailer"] = unsubscribedTrailer; | 8538 _json["unsubscribedTrailer"] = unsubscribedTrailer; |
| 8516 } | 8539 } |
| 8517 return _json; | 8540 return _json; |
| 8518 } | 8541 } |
| 8519 } | 8542 } |
| 8520 | 8543 |
| 8521 /** | 8544 /// Basic details about a channel, including title, description and thumbnails. |
| 8522 * Basic details about a channel, including title, description and thumbnails. | 8545 /// Next available id: 15. |
| 8523 * Next available id: 15. | |
| 8524 */ | |
| 8525 class ChannelSnippet { | 8546 class ChannelSnippet { |
| 8526 /** The country of the channel. */ | 8547 /// The country of the channel. |
| 8527 core.String country; | 8548 core.String country; |
| 8528 /** The custom url of the channel. */ | 8549 |
| 8550 /// The custom url of the channel. |
| 8529 core.String customUrl; | 8551 core.String customUrl; |
| 8530 /** The language of the channel's default title and description. */ | 8552 |
| 8553 /// The language of the channel's default title and description. |
| 8531 core.String defaultLanguage; | 8554 core.String defaultLanguage; |
| 8532 /** The description of the channel. */ | 8555 |
| 8556 /// The description of the channel. |
| 8533 core.String description; | 8557 core.String description; |
| 8534 /** Localized title and description, read-only. */ | 8558 |
| 8559 /// Localized title and description, read-only. |
| 8535 ChannelLocalization localized; | 8560 ChannelLocalization localized; |
| 8536 /** | 8561 |
| 8537 * The date and time that the channel was created. The value is specified in | 8562 /// The date and time that the channel was created. The value is specified in |
| 8538 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 8563 /// ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 8539 */ | |
| 8540 core.DateTime publishedAt; | 8564 core.DateTime publishedAt; |
| 8541 /** | 8565 |
| 8542 * A map of thumbnail images associated with the channel. For each object in | 8566 /// A map of thumbnail images associated with the channel. For each object in |
| 8543 * the map, the key is the name of the thumbnail image, and the value is an | 8567 /// the map, the key is the name of the thumbnail image, and the value is an |
| 8544 * object that contains other information about the thumbnail. | 8568 /// object that contains other information about the thumbnail. |
| 8545 */ | |
| 8546 ThumbnailDetails thumbnails; | 8569 ThumbnailDetails thumbnails; |
| 8547 /** The channel's title. */ | 8570 |
| 8571 /// The channel's title. |
| 8548 core.String title; | 8572 core.String title; |
| 8549 | 8573 |
| 8550 ChannelSnippet(); | 8574 ChannelSnippet(); |
| 8551 | 8575 |
| 8552 ChannelSnippet.fromJson(core.Map _json) { | 8576 ChannelSnippet.fromJson(core.Map _json) { |
| 8553 if (_json.containsKey("country")) { | 8577 if (_json.containsKey("country")) { |
| 8554 country = _json["country"]; | 8578 country = _json["country"]; |
| 8555 } | 8579 } |
| 8556 if (_json.containsKey("customUrl")) { | 8580 if (_json.containsKey("customUrl")) { |
| 8557 customUrl = _json["customUrl"]; | 8581 customUrl = _json["customUrl"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 8570 } | 8594 } |
| 8571 if (_json.containsKey("thumbnails")) { | 8595 if (_json.containsKey("thumbnails")) { |
| 8572 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 8596 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
| 8573 } | 8597 } |
| 8574 if (_json.containsKey("title")) { | 8598 if (_json.containsKey("title")) { |
| 8575 title = _json["title"]; | 8599 title = _json["title"]; |
| 8576 } | 8600 } |
| 8577 } | 8601 } |
| 8578 | 8602 |
| 8579 core.Map<core.String, core.Object> toJson() { | 8603 core.Map<core.String, core.Object> toJson() { |
| 8580 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8604 final core.Map<core.String, core.Object> _json = |
| 8605 new core.Map<core.String, core.Object>(); |
| 8581 if (country != null) { | 8606 if (country != null) { |
| 8582 _json["country"] = country; | 8607 _json["country"] = country; |
| 8583 } | 8608 } |
| 8584 if (customUrl != null) { | 8609 if (customUrl != null) { |
| 8585 _json["customUrl"] = customUrl; | 8610 _json["customUrl"] = customUrl; |
| 8586 } | 8611 } |
| 8587 if (defaultLanguage != null) { | 8612 if (defaultLanguage != null) { |
| 8588 _json["defaultLanguage"] = defaultLanguage; | 8613 _json["defaultLanguage"] = defaultLanguage; |
| 8589 } | 8614 } |
| 8590 if (description != null) { | 8615 if (description != null) { |
| 8591 _json["description"] = description; | 8616 _json["description"] = description; |
| 8592 } | 8617 } |
| 8593 if (localized != null) { | 8618 if (localized != null) { |
| 8594 _json["localized"] = (localized).toJson(); | 8619 _json["localized"] = (localized).toJson(); |
| 8595 } | 8620 } |
| 8596 if (publishedAt != null) { | 8621 if (publishedAt != null) { |
| 8597 _json["publishedAt"] = (publishedAt).toIso8601String(); | 8622 _json["publishedAt"] = (publishedAt).toIso8601String(); |
| 8598 } | 8623 } |
| 8599 if (thumbnails != null) { | 8624 if (thumbnails != null) { |
| 8600 _json["thumbnails"] = (thumbnails).toJson(); | 8625 _json["thumbnails"] = (thumbnails).toJson(); |
| 8601 } | 8626 } |
| 8602 if (title != null) { | 8627 if (title != null) { |
| 8603 _json["title"] = title; | 8628 _json["title"] = title; |
| 8604 } | 8629 } |
| 8605 return _json; | 8630 return _json; |
| 8606 } | 8631 } |
| 8607 } | 8632 } |
| 8608 | 8633 |
| 8609 /** | 8634 /// Statistics about a channel: number of subscribers, number of videos in the |
| 8610 * Statistics about a channel: number of subscribers, number of videos in the | 8635 /// channel, etc. |
| 8611 * channel, etc. | |
| 8612 */ | |
| 8613 class ChannelStatistics { | 8636 class ChannelStatistics { |
| 8614 /** The number of comments for the channel. */ | 8637 /// The number of comments for the channel. |
| 8615 core.String commentCount; | 8638 core.String commentCount; |
| 8616 /** Whether or not the number of subscribers is shown for this user. */ | 8639 |
| 8640 /// Whether or not the number of subscribers is shown for this user. |
| 8617 core.bool hiddenSubscriberCount; | 8641 core.bool hiddenSubscriberCount; |
| 8618 /** The number of subscribers that the channel has. */ | 8642 |
| 8643 /// The number of subscribers that the channel has. |
| 8619 core.String subscriberCount; | 8644 core.String subscriberCount; |
| 8620 /** The number of videos uploaded to the channel. */ | 8645 |
| 8646 /// The number of videos uploaded to the channel. |
| 8621 core.String videoCount; | 8647 core.String videoCount; |
| 8622 /** The number of times the channel has been viewed. */ | 8648 |
| 8649 /// The number of times the channel has been viewed. |
| 8623 core.String viewCount; | 8650 core.String viewCount; |
| 8624 | 8651 |
| 8625 ChannelStatistics(); | 8652 ChannelStatistics(); |
| 8626 | 8653 |
| 8627 ChannelStatistics.fromJson(core.Map _json) { | 8654 ChannelStatistics.fromJson(core.Map _json) { |
| 8628 if (_json.containsKey("commentCount")) { | 8655 if (_json.containsKey("commentCount")) { |
| 8629 commentCount = _json["commentCount"]; | 8656 commentCount = _json["commentCount"]; |
| 8630 } | 8657 } |
| 8631 if (_json.containsKey("hiddenSubscriberCount")) { | 8658 if (_json.containsKey("hiddenSubscriberCount")) { |
| 8632 hiddenSubscriberCount = _json["hiddenSubscriberCount"]; | 8659 hiddenSubscriberCount = _json["hiddenSubscriberCount"]; |
| 8633 } | 8660 } |
| 8634 if (_json.containsKey("subscriberCount")) { | 8661 if (_json.containsKey("subscriberCount")) { |
| 8635 subscriberCount = _json["subscriberCount"]; | 8662 subscriberCount = _json["subscriberCount"]; |
| 8636 } | 8663 } |
| 8637 if (_json.containsKey("videoCount")) { | 8664 if (_json.containsKey("videoCount")) { |
| 8638 videoCount = _json["videoCount"]; | 8665 videoCount = _json["videoCount"]; |
| 8639 } | 8666 } |
| 8640 if (_json.containsKey("viewCount")) { | 8667 if (_json.containsKey("viewCount")) { |
| 8641 viewCount = _json["viewCount"]; | 8668 viewCount = _json["viewCount"]; |
| 8642 } | 8669 } |
| 8643 } | 8670 } |
| 8644 | 8671 |
| 8645 core.Map<core.String, core.Object> toJson() { | 8672 core.Map<core.String, core.Object> toJson() { |
| 8646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8673 final core.Map<core.String, core.Object> _json = |
| 8674 new core.Map<core.String, core.Object>(); |
| 8647 if (commentCount != null) { | 8675 if (commentCount != null) { |
| 8648 _json["commentCount"] = commentCount; | 8676 _json["commentCount"] = commentCount; |
| 8649 } | 8677 } |
| 8650 if (hiddenSubscriberCount != null) { | 8678 if (hiddenSubscriberCount != null) { |
| 8651 _json["hiddenSubscriberCount"] = hiddenSubscriberCount; | 8679 _json["hiddenSubscriberCount"] = hiddenSubscriberCount; |
| 8652 } | 8680 } |
| 8653 if (subscriberCount != null) { | 8681 if (subscriberCount != null) { |
| 8654 _json["subscriberCount"] = subscriberCount; | 8682 _json["subscriberCount"] = subscriberCount; |
| 8655 } | 8683 } |
| 8656 if (videoCount != null) { | 8684 if (videoCount != null) { |
| 8657 _json["videoCount"] = videoCount; | 8685 _json["videoCount"] = videoCount; |
| 8658 } | 8686 } |
| 8659 if (viewCount != null) { | 8687 if (viewCount != null) { |
| 8660 _json["viewCount"] = viewCount; | 8688 _json["viewCount"] = viewCount; |
| 8661 } | 8689 } |
| 8662 return _json; | 8690 return _json; |
| 8663 } | 8691 } |
| 8664 } | 8692 } |
| 8665 | 8693 |
| 8666 /** JSON template for the status part of a channel. */ | 8694 /// JSON template for the status part of a channel. |
| 8667 class ChannelStatus { | 8695 class ChannelStatus { |
| 8668 /** | 8696 /// If true, then the user is linked to either a YouTube username or G+ |
| 8669 * If true, then the user is linked to either a YouTube username or G+ | 8697 /// account. Otherwise, the user doesn't have a public YouTube identity. |
| 8670 * account. Otherwise, the user doesn't have a public YouTube identity. | |
| 8671 */ | |
| 8672 core.bool isLinked; | 8698 core.bool isLinked; |
| 8673 /** | 8699 |
| 8674 * The long uploads status of this channel. See | 8700 /// The long uploads status of this channel. See |
| 8675 * Possible string values are: | 8701 /// Possible string values are: |
| 8676 * - "allowed" | 8702 /// - "allowed" |
| 8677 * - "disallowed" | 8703 /// - "disallowed" |
| 8678 * - "eligible" | 8704 /// - "eligible" |
| 8679 * - "longUploadsUnspecified" | 8705 /// - "longUploadsUnspecified" |
| 8680 */ | |
| 8681 core.String longUploadsStatus; | 8706 core.String longUploadsStatus; |
| 8682 /** | 8707 |
| 8683 * Privacy status of the channel. | 8708 /// Privacy status of the channel. |
| 8684 * Possible string values are: | 8709 /// Possible string values are: |
| 8685 * - "private" | 8710 /// - "private" |
| 8686 * - "public" | 8711 /// - "public" |
| 8687 * - "unlisted" | 8712 /// - "unlisted" |
| 8688 */ | |
| 8689 core.String privacyStatus; | 8713 core.String privacyStatus; |
| 8690 | 8714 |
| 8691 ChannelStatus(); | 8715 ChannelStatus(); |
| 8692 | 8716 |
| 8693 ChannelStatus.fromJson(core.Map _json) { | 8717 ChannelStatus.fromJson(core.Map _json) { |
| 8694 if (_json.containsKey("isLinked")) { | 8718 if (_json.containsKey("isLinked")) { |
| 8695 isLinked = _json["isLinked"]; | 8719 isLinked = _json["isLinked"]; |
| 8696 } | 8720 } |
| 8697 if (_json.containsKey("longUploadsStatus")) { | 8721 if (_json.containsKey("longUploadsStatus")) { |
| 8698 longUploadsStatus = _json["longUploadsStatus"]; | 8722 longUploadsStatus = _json["longUploadsStatus"]; |
| 8699 } | 8723 } |
| 8700 if (_json.containsKey("privacyStatus")) { | 8724 if (_json.containsKey("privacyStatus")) { |
| 8701 privacyStatus = _json["privacyStatus"]; | 8725 privacyStatus = _json["privacyStatus"]; |
| 8702 } | 8726 } |
| 8703 } | 8727 } |
| 8704 | 8728 |
| 8705 core.Map<core.String, core.Object> toJson() { | 8729 core.Map<core.String, core.Object> toJson() { |
| 8706 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8730 final core.Map<core.String, core.Object> _json = |
| 8731 new core.Map<core.String, core.Object>(); |
| 8707 if (isLinked != null) { | 8732 if (isLinked != null) { |
| 8708 _json["isLinked"] = isLinked; | 8733 _json["isLinked"] = isLinked; |
| 8709 } | 8734 } |
| 8710 if (longUploadsStatus != null) { | 8735 if (longUploadsStatus != null) { |
| 8711 _json["longUploadsStatus"] = longUploadsStatus; | 8736 _json["longUploadsStatus"] = longUploadsStatus; |
| 8712 } | 8737 } |
| 8713 if (privacyStatus != null) { | 8738 if (privacyStatus != null) { |
| 8714 _json["privacyStatus"] = privacyStatus; | 8739 _json["privacyStatus"] = privacyStatus; |
| 8715 } | 8740 } |
| 8716 return _json; | 8741 return _json; |
| 8717 } | 8742 } |
| 8718 } | 8743 } |
| 8719 | 8744 |
| 8720 /** Freebase topic information related to the channel. */ | 8745 /// Freebase topic information related to the channel. |
| 8721 class ChannelTopicDetails { | 8746 class ChannelTopicDetails { |
| 8722 /** A list of Wikipedia URLs that describe the channel's content. */ | 8747 /// A list of Wikipedia URLs that describe the channel's content. |
| 8723 core.List<core.String> topicCategories; | 8748 core.List<core.String> topicCategories; |
| 8724 /** | 8749 |
| 8725 * A list of Freebase topic IDs associated with the channel. You can retrieve | 8750 /// A list of Freebase topic IDs associated with the channel. You can |
| 8726 * information about each topic using the Freebase Topic API. | 8751 /// retrieve information about each topic using the Freebase Topic API. |
| 8727 */ | |
| 8728 core.List<core.String> topicIds; | 8752 core.List<core.String> topicIds; |
| 8729 | 8753 |
| 8730 ChannelTopicDetails(); | 8754 ChannelTopicDetails(); |
| 8731 | 8755 |
| 8732 ChannelTopicDetails.fromJson(core.Map _json) { | 8756 ChannelTopicDetails.fromJson(core.Map _json) { |
| 8733 if (_json.containsKey("topicCategories")) { | 8757 if (_json.containsKey("topicCategories")) { |
| 8734 topicCategories = _json["topicCategories"]; | 8758 topicCategories = _json["topicCategories"]; |
| 8735 } | 8759 } |
| 8736 if (_json.containsKey("topicIds")) { | 8760 if (_json.containsKey("topicIds")) { |
| 8737 topicIds = _json["topicIds"]; | 8761 topicIds = _json["topicIds"]; |
| 8738 } | 8762 } |
| 8739 } | 8763 } |
| 8740 | 8764 |
| 8741 core.Map<core.String, core.Object> toJson() { | 8765 core.Map<core.String, core.Object> toJson() { |
| 8742 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8766 final core.Map<core.String, core.Object> _json = |
| 8767 new core.Map<core.String, core.Object>(); |
| 8743 if (topicCategories != null) { | 8768 if (topicCategories != null) { |
| 8744 _json["topicCategories"] = topicCategories; | 8769 _json["topicCategories"] = topicCategories; |
| 8745 } | 8770 } |
| 8746 if (topicIds != null) { | 8771 if (topicIds != null) { |
| 8747 _json["topicIds"] = topicIds; | 8772 _json["topicIds"] = topicIds; |
| 8748 } | 8773 } |
| 8749 return _json; | 8774 return _json; |
| 8750 } | 8775 } |
| 8751 } | 8776 } |
| 8752 | 8777 |
| 8753 /** A comment represents a single YouTube comment. */ | 8778 /// A comment represents a single YouTube comment. |
| 8754 class Comment { | 8779 class Comment { |
| 8755 /** Etag of this resource. */ | 8780 /// Etag of this resource. |
| 8756 core.String etag; | 8781 core.String etag; |
| 8757 /** The ID that YouTube uses to uniquely identify the comment. */ | 8782 |
| 8783 /// The ID that YouTube uses to uniquely identify the comment. |
| 8758 core.String id; | 8784 core.String id; |
| 8759 /** | 8785 |
| 8760 * Identifies what kind of resource this is. Value: the fixed string | 8786 /// Identifies what kind of resource this is. Value: the fixed string |
| 8761 * "youtube#comment". | 8787 /// "youtube#comment". |
| 8762 */ | |
| 8763 core.String kind; | 8788 core.String kind; |
| 8764 /** The snippet object contains basic details about the comment. */ | 8789 |
| 8790 /// The snippet object contains basic details about the comment. |
| 8765 CommentSnippet snippet; | 8791 CommentSnippet snippet; |
| 8766 | 8792 |
| 8767 Comment(); | 8793 Comment(); |
| 8768 | 8794 |
| 8769 Comment.fromJson(core.Map _json) { | 8795 Comment.fromJson(core.Map _json) { |
| 8770 if (_json.containsKey("etag")) { | 8796 if (_json.containsKey("etag")) { |
| 8771 etag = _json["etag"]; | 8797 etag = _json["etag"]; |
| 8772 } | 8798 } |
| 8773 if (_json.containsKey("id")) { | 8799 if (_json.containsKey("id")) { |
| 8774 id = _json["id"]; | 8800 id = _json["id"]; |
| 8775 } | 8801 } |
| 8776 if (_json.containsKey("kind")) { | 8802 if (_json.containsKey("kind")) { |
| 8777 kind = _json["kind"]; | 8803 kind = _json["kind"]; |
| 8778 } | 8804 } |
| 8779 if (_json.containsKey("snippet")) { | 8805 if (_json.containsKey("snippet")) { |
| 8780 snippet = new CommentSnippet.fromJson(_json["snippet"]); | 8806 snippet = new CommentSnippet.fromJson(_json["snippet"]); |
| 8781 } | 8807 } |
| 8782 } | 8808 } |
| 8783 | 8809 |
| 8784 core.Map<core.String, core.Object> toJson() { | 8810 core.Map<core.String, core.Object> toJson() { |
| 8785 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8811 final core.Map<core.String, core.Object> _json = |
| 8812 new core.Map<core.String, core.Object>(); |
| 8786 if (etag != null) { | 8813 if (etag != null) { |
| 8787 _json["etag"] = etag; | 8814 _json["etag"] = etag; |
| 8788 } | 8815 } |
| 8789 if (id != null) { | 8816 if (id != null) { |
| 8790 _json["id"] = id; | 8817 _json["id"] = id; |
| 8791 } | 8818 } |
| 8792 if (kind != null) { | 8819 if (kind != null) { |
| 8793 _json["kind"] = kind; | 8820 _json["kind"] = kind; |
| 8794 } | 8821 } |
| 8795 if (snippet != null) { | 8822 if (snippet != null) { |
| 8796 _json["snippet"] = (snippet).toJson(); | 8823 _json["snippet"] = (snippet).toJson(); |
| 8797 } | 8824 } |
| 8798 return _json; | 8825 return _json; |
| 8799 } | 8826 } |
| 8800 } | 8827 } |
| 8801 | 8828 |
| 8802 class CommentListResponse { | 8829 class CommentListResponse { |
| 8803 /** Etag of this resource. */ | 8830 /// Etag of this resource. |
| 8804 core.String etag; | 8831 core.String etag; |
| 8805 /** Serialized EventId of the request which produced this response. */ | 8832 |
| 8833 /// Serialized EventId of the request which produced this response. |
| 8806 core.String eventId; | 8834 core.String eventId; |
| 8807 /** A list of comments that match the request criteria. */ | 8835 |
| 8836 /// A list of comments that match the request criteria. |
| 8808 core.List<Comment> items; | 8837 core.List<Comment> items; |
| 8809 /** | 8838 |
| 8810 * Identifies what kind of resource this is. Value: the fixed string | 8839 /// Identifies what kind of resource this is. Value: the fixed string |
| 8811 * "youtube#commentListResponse". | 8840 /// "youtube#commentListResponse". |
| 8812 */ | |
| 8813 core.String kind; | 8841 core.String kind; |
| 8814 /** | 8842 |
| 8815 * The token that can be used as the value of the pageToken parameter to | 8843 /// The token that can be used as the value of the pageToken parameter to |
| 8816 * retrieve the next page in the result set. | 8844 /// retrieve the next page in the result set. |
| 8817 */ | |
| 8818 core.String nextPageToken; | 8845 core.String nextPageToken; |
| 8819 PageInfo pageInfo; | 8846 PageInfo pageInfo; |
| 8820 TokenPagination tokenPagination; | 8847 TokenPagination tokenPagination; |
| 8821 /** The visitorId identifies the visitor. */ | 8848 |
| 8849 /// The visitorId identifies the visitor. |
| 8822 core.String visitorId; | 8850 core.String visitorId; |
| 8823 | 8851 |
| 8824 CommentListResponse(); | 8852 CommentListResponse(); |
| 8825 | 8853 |
| 8826 CommentListResponse.fromJson(core.Map _json) { | 8854 CommentListResponse.fromJson(core.Map _json) { |
| 8827 if (_json.containsKey("etag")) { | 8855 if (_json.containsKey("etag")) { |
| 8828 etag = _json["etag"]; | 8856 etag = _json["etag"]; |
| 8829 } | 8857 } |
| 8830 if (_json.containsKey("eventId")) { | 8858 if (_json.containsKey("eventId")) { |
| 8831 eventId = _json["eventId"]; | 8859 eventId = _json["eventId"]; |
| 8832 } | 8860 } |
| 8833 if (_json.containsKey("items")) { | 8861 if (_json.containsKey("items")) { |
| 8834 items = _json["items"].map((value) => new Comment.fromJson(value)).toList(
); | 8862 items = |
| 8863 _json["items"].map((value) => new Comment.fromJson(value)).toList(); |
| 8835 } | 8864 } |
| 8836 if (_json.containsKey("kind")) { | 8865 if (_json.containsKey("kind")) { |
| 8837 kind = _json["kind"]; | 8866 kind = _json["kind"]; |
| 8838 } | 8867 } |
| 8839 if (_json.containsKey("nextPageToken")) { | 8868 if (_json.containsKey("nextPageToken")) { |
| 8840 nextPageToken = _json["nextPageToken"]; | 8869 nextPageToken = _json["nextPageToken"]; |
| 8841 } | 8870 } |
| 8842 if (_json.containsKey("pageInfo")) { | 8871 if (_json.containsKey("pageInfo")) { |
| 8843 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 8872 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 8844 } | 8873 } |
| 8845 if (_json.containsKey("tokenPagination")) { | 8874 if (_json.containsKey("tokenPagination")) { |
| 8846 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 8875 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 8847 } | 8876 } |
| 8848 if (_json.containsKey("visitorId")) { | 8877 if (_json.containsKey("visitorId")) { |
| 8849 visitorId = _json["visitorId"]; | 8878 visitorId = _json["visitorId"]; |
| 8850 } | 8879 } |
| 8851 } | 8880 } |
| 8852 | 8881 |
| 8853 core.Map<core.String, core.Object> toJson() { | 8882 core.Map<core.String, core.Object> toJson() { |
| 8854 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 8883 final core.Map<core.String, core.Object> _json = |
| 8884 new core.Map<core.String, core.Object>(); |
| 8855 if (etag != null) { | 8885 if (etag != null) { |
| 8856 _json["etag"] = etag; | 8886 _json["etag"] = etag; |
| 8857 } | 8887 } |
| 8858 if (eventId != null) { | 8888 if (eventId != null) { |
| 8859 _json["eventId"] = eventId; | 8889 _json["eventId"] = eventId; |
| 8860 } | 8890 } |
| 8861 if (items != null) { | 8891 if (items != null) { |
| 8862 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8892 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 8863 } | 8893 } |
| 8864 if (kind != null) { | 8894 if (kind != null) { |
| 8865 _json["kind"] = kind; | 8895 _json["kind"] = kind; |
| 8866 } | 8896 } |
| 8867 if (nextPageToken != null) { | 8897 if (nextPageToken != null) { |
| 8868 _json["nextPageToken"] = nextPageToken; | 8898 _json["nextPageToken"] = nextPageToken; |
| 8869 } | 8899 } |
| 8870 if (pageInfo != null) { | 8900 if (pageInfo != null) { |
| 8871 _json["pageInfo"] = (pageInfo).toJson(); | 8901 _json["pageInfo"] = (pageInfo).toJson(); |
| 8872 } | 8902 } |
| 8873 if (tokenPagination != null) { | 8903 if (tokenPagination != null) { |
| 8874 _json["tokenPagination"] = (tokenPagination).toJson(); | 8904 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 8875 } | 8905 } |
| 8876 if (visitorId != null) { | 8906 if (visitorId != null) { |
| 8877 _json["visitorId"] = visitorId; | 8907 _json["visitorId"] = visitorId; |
| 8878 } | 8908 } |
| 8879 return _json; | 8909 return _json; |
| 8880 } | 8910 } |
| 8881 } | 8911 } |
| 8882 | 8912 |
| 8883 /** Basic details about a comment, such as its author and text. */ | 8913 /// Basic details about a comment, such as its author and text. |
| 8884 class CommentSnippet { | 8914 class CommentSnippet { |
| 8885 /** | 8915 /// The id of the author's YouTube channel, if any. |
| 8886 * The id of the author's YouTube channel, if any. | 8916 /// |
| 8887 * | 8917 /// The values for Object must be JSON objects. It can consist of `num`, |
| 8888 * The values for Object must be JSON objects. It can consist of `num`, | 8918 /// `String`, `bool` and `null` as well as `Map` and `List` values. |
| 8889 * `String`, `bool` and `null` as well as `Map` and `List` values. | |
| 8890 */ | |
| 8891 core.Object authorChannelId; | 8919 core.Object authorChannelId; |
| 8892 /** Link to the author's YouTube channel, if any. */ | 8920 |
| 8921 /// Link to the author's YouTube channel, if any. |
| 8893 core.String authorChannelUrl; | 8922 core.String authorChannelUrl; |
| 8894 /** The name of the user who posted the comment. */ | 8923 |
| 8924 /// The name of the user who posted the comment. |
| 8895 core.String authorDisplayName; | 8925 core.String authorDisplayName; |
| 8896 /** The URL for the avatar of the user who posted the comment. */ | 8926 |
| 8927 /// The URL for the avatar of the user who posted the comment. |
| 8897 core.String authorProfileImageUrl; | 8928 core.String authorProfileImageUrl; |
| 8898 /** Whether the current viewer can rate this comment. */ | 8929 |
| 8930 /// Whether the current viewer can rate this comment. |
| 8899 core.bool canRate; | 8931 core.bool canRate; |
| 8900 /** | 8932 |
| 8901 * The id of the corresponding YouTube channel. In case of a channel comment | 8933 /// The id of the corresponding YouTube channel. In case of a channel comment |
| 8902 * this is the channel the comment refers to. In case of a video comment it's | 8934 /// this is the channel the comment refers to. In case of a video comment |
| 8903 * the video's channel. | 8935 /// it's the video's channel. |
| 8904 */ | |
| 8905 core.String channelId; | 8936 core.String channelId; |
| 8906 /** The total number of likes this comment has received. */ | 8937 |
| 8938 /// The total number of likes this comment has received. |
| 8907 core.int likeCount; | 8939 core.int likeCount; |
| 8908 /** | 8940 |
| 8909 * The comment's moderation status. Will not be set if the comments were | 8941 /// The comment's moderation status. Will not be set if the comments were |
| 8910 * requested through the id filter. | 8942 /// requested through the id filter. |
| 8911 * Possible string values are: | 8943 /// Possible string values are: |
| 8912 * - "heldForReview" | 8944 /// - "heldForReview" |
| 8913 * - "likelySpam" | 8945 /// - "likelySpam" |
| 8914 * - "published" | 8946 /// - "published" |
| 8915 * - "rejected" | 8947 /// - "rejected" |
| 8916 */ | |
| 8917 core.String moderationStatus; | 8948 core.String moderationStatus; |
| 8918 /** The unique id of the parent comment, only set for replies. */ | 8949 |
| 8950 /// The unique id of the parent comment, only set for replies. |
| 8919 core.String parentId; | 8951 core.String parentId; |
| 8920 /** | 8952 |
| 8921 * The date and time when the comment was orignally published. The value is | 8953 /// The date and time when the comment was orignally published. The value is |
| 8922 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 8954 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 8923 */ | |
| 8924 core.DateTime publishedAt; | 8955 core.DateTime publishedAt; |
| 8925 /** | 8956 |
| 8926 * The comment's text. The format is either plain text or HTML dependent on | 8957 /// The comment's text. The format is either plain text or HTML dependent on |
| 8927 * what has been requested. Even the plain text representation may differ from | 8958 /// what has been requested. Even the plain text representation may differ |
| 8928 * the text originally posted in that it may replace video links with video | 8959 /// from the text originally posted in that it may replace video links with |
| 8929 * titles etc. | 8960 /// video titles etc. |
| 8930 */ | |
| 8931 core.String textDisplay; | 8961 core.String textDisplay; |
| 8932 /** | 8962 |
| 8933 * The comment's original raw text as initially posted or last updated. The | 8963 /// The comment's original raw text as initially posted or last updated. The |
| 8934 * original text will only be returned if it is accessible to the viewer, | 8964 /// original text will only be returned if it is accessible to the viewer, |
| 8935 * which is only guaranteed if the viewer is the comment's author. | 8965 /// which is only guaranteed if the viewer is the comment's author. |
| 8936 */ | |
| 8937 core.String textOriginal; | 8966 core.String textOriginal; |
| 8938 /** | 8967 |
| 8939 * The date and time when was last updated . The value is specified in ISO | 8968 /// The date and time when was last updated . The value is specified in ISO |
| 8940 * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 8969 /// 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 8941 */ | |
| 8942 core.DateTime updatedAt; | 8970 core.DateTime updatedAt; |
| 8943 /** The ID of the video the comment refers to, if any. */ | 8971 |
| 8972 /// The ID of the video the comment refers to, if any. |
| 8944 core.String videoId; | 8973 core.String videoId; |
| 8945 /** | 8974 |
| 8946 * The rating the viewer has given to this comment. For the time being this | 8975 /// The rating the viewer has given to this comment. For the time being this |
| 8947 * will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. This | 8976 /// will never return RATE_TYPE_DISLIKE and instead return RATE_TYPE_NONE. |
| 8948 * may change in the future. | 8977 /// This may change in the future. |
| 8949 * Possible string values are: | 8978 /// Possible string values are: |
| 8950 * - "dislike" | 8979 /// - "dislike" |
| 8951 * - "like" | 8980 /// - "like" |
| 8952 * - "none" | 8981 /// - "none" |
| 8953 * - "unspecified" | 8982 /// - "unspecified" |
| 8954 */ | |
| 8955 core.String viewerRating; | 8983 core.String viewerRating; |
| 8956 | 8984 |
| 8957 CommentSnippet(); | 8985 CommentSnippet(); |
| 8958 | 8986 |
| 8959 CommentSnippet.fromJson(core.Map _json) { | 8987 CommentSnippet.fromJson(core.Map _json) { |
| 8960 if (_json.containsKey("authorChannelId")) { | 8988 if (_json.containsKey("authorChannelId")) { |
| 8961 authorChannelId = _json["authorChannelId"]; | 8989 authorChannelId = _json["authorChannelId"]; |
| 8962 } | 8990 } |
| 8963 if (_json.containsKey("authorChannelUrl")) { | 8991 if (_json.containsKey("authorChannelUrl")) { |
| 8964 authorChannelUrl = _json["authorChannelUrl"]; | 8992 authorChannelUrl = _json["authorChannelUrl"]; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8998 } | 9026 } |
| 8999 if (_json.containsKey("videoId")) { | 9027 if (_json.containsKey("videoId")) { |
| 9000 videoId = _json["videoId"]; | 9028 videoId = _json["videoId"]; |
| 9001 } | 9029 } |
| 9002 if (_json.containsKey("viewerRating")) { | 9030 if (_json.containsKey("viewerRating")) { |
| 9003 viewerRating = _json["viewerRating"]; | 9031 viewerRating = _json["viewerRating"]; |
| 9004 } | 9032 } |
| 9005 } | 9033 } |
| 9006 | 9034 |
| 9007 core.Map<core.String, core.Object> toJson() { | 9035 core.Map<core.String, core.Object> toJson() { |
| 9008 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9036 final core.Map<core.String, core.Object> _json = |
| 9037 new core.Map<core.String, core.Object>(); |
| 9009 if (authorChannelId != null) { | 9038 if (authorChannelId != null) { |
| 9010 _json["authorChannelId"] = authorChannelId; | 9039 _json["authorChannelId"] = authorChannelId; |
| 9011 } | 9040 } |
| 9012 if (authorChannelUrl != null) { | 9041 if (authorChannelUrl != null) { |
| 9013 _json["authorChannelUrl"] = authorChannelUrl; | 9042 _json["authorChannelUrl"] = authorChannelUrl; |
| 9014 } | 9043 } |
| 9015 if (authorDisplayName != null) { | 9044 if (authorDisplayName != null) { |
| 9016 _json["authorDisplayName"] = authorDisplayName; | 9045 _json["authorDisplayName"] = authorDisplayName; |
| 9017 } | 9046 } |
| 9018 if (authorProfileImageUrl != null) { | 9047 if (authorProfileImageUrl != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 9048 if (videoId != null) { | 9077 if (videoId != null) { |
| 9049 _json["videoId"] = videoId; | 9078 _json["videoId"] = videoId; |
| 9050 } | 9079 } |
| 9051 if (viewerRating != null) { | 9080 if (viewerRating != null) { |
| 9052 _json["viewerRating"] = viewerRating; | 9081 _json["viewerRating"] = viewerRating; |
| 9053 } | 9082 } |
| 9054 return _json; | 9083 return _json; |
| 9055 } | 9084 } |
| 9056 } | 9085 } |
| 9057 | 9086 |
| 9058 /** | 9087 /// A comment thread represents information that applies to a top level comment |
| 9059 * A comment thread represents information that applies to a top level comment | 9088 /// and all its replies. It can also include the top level comment itself and |
| 9060 * and all its replies. It can also include the top level comment itself and | 9089 /// some of the replies. |
| 9061 * some of the replies. | |
| 9062 */ | |
| 9063 class CommentThread { | 9090 class CommentThread { |
| 9064 /** Etag of this resource. */ | 9091 /// Etag of this resource. |
| 9065 core.String etag; | 9092 core.String etag; |
| 9066 /** The ID that YouTube uses to uniquely identify the comment thread. */ | 9093 |
| 9094 /// The ID that YouTube uses to uniquely identify the comment thread. |
| 9067 core.String id; | 9095 core.String id; |
| 9068 /** | 9096 |
| 9069 * Identifies what kind of resource this is. Value: the fixed string | 9097 /// Identifies what kind of resource this is. Value: the fixed string |
| 9070 * "youtube#commentThread". | 9098 /// "youtube#commentThread". |
| 9071 */ | |
| 9072 core.String kind; | 9099 core.String kind; |
| 9073 /** | 9100 |
| 9074 * The replies object contains a limited number of replies (if any) to the top | 9101 /// The replies object contains a limited number of replies (if any) to the |
| 9075 * level comment found in the snippet. | 9102 /// top level comment found in the snippet. |
| 9076 */ | |
| 9077 CommentThreadReplies replies; | 9103 CommentThreadReplies replies; |
| 9078 /** | 9104 |
| 9079 * The snippet object contains basic details about the comment thread and also | 9105 /// The snippet object contains basic details about the comment thread and |
| 9080 * the top level comment. | 9106 /// also the top level comment. |
| 9081 */ | |
| 9082 CommentThreadSnippet snippet; | 9107 CommentThreadSnippet snippet; |
| 9083 | 9108 |
| 9084 CommentThread(); | 9109 CommentThread(); |
| 9085 | 9110 |
| 9086 CommentThread.fromJson(core.Map _json) { | 9111 CommentThread.fromJson(core.Map _json) { |
| 9087 if (_json.containsKey("etag")) { | 9112 if (_json.containsKey("etag")) { |
| 9088 etag = _json["etag"]; | 9113 etag = _json["etag"]; |
| 9089 } | 9114 } |
| 9090 if (_json.containsKey("id")) { | 9115 if (_json.containsKey("id")) { |
| 9091 id = _json["id"]; | 9116 id = _json["id"]; |
| 9092 } | 9117 } |
| 9093 if (_json.containsKey("kind")) { | 9118 if (_json.containsKey("kind")) { |
| 9094 kind = _json["kind"]; | 9119 kind = _json["kind"]; |
| 9095 } | 9120 } |
| 9096 if (_json.containsKey("replies")) { | 9121 if (_json.containsKey("replies")) { |
| 9097 replies = new CommentThreadReplies.fromJson(_json["replies"]); | 9122 replies = new CommentThreadReplies.fromJson(_json["replies"]); |
| 9098 } | 9123 } |
| 9099 if (_json.containsKey("snippet")) { | 9124 if (_json.containsKey("snippet")) { |
| 9100 snippet = new CommentThreadSnippet.fromJson(_json["snippet"]); | 9125 snippet = new CommentThreadSnippet.fromJson(_json["snippet"]); |
| 9101 } | 9126 } |
| 9102 } | 9127 } |
| 9103 | 9128 |
| 9104 core.Map<core.String, core.Object> toJson() { | 9129 core.Map<core.String, core.Object> toJson() { |
| 9105 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9130 final core.Map<core.String, core.Object> _json = |
| 9131 new core.Map<core.String, core.Object>(); |
| 9106 if (etag != null) { | 9132 if (etag != null) { |
| 9107 _json["etag"] = etag; | 9133 _json["etag"] = etag; |
| 9108 } | 9134 } |
| 9109 if (id != null) { | 9135 if (id != null) { |
| 9110 _json["id"] = id; | 9136 _json["id"] = id; |
| 9111 } | 9137 } |
| 9112 if (kind != null) { | 9138 if (kind != null) { |
| 9113 _json["kind"] = kind; | 9139 _json["kind"] = kind; |
| 9114 } | 9140 } |
| 9115 if (replies != null) { | 9141 if (replies != null) { |
| 9116 _json["replies"] = (replies).toJson(); | 9142 _json["replies"] = (replies).toJson(); |
| 9117 } | 9143 } |
| 9118 if (snippet != null) { | 9144 if (snippet != null) { |
| 9119 _json["snippet"] = (snippet).toJson(); | 9145 _json["snippet"] = (snippet).toJson(); |
| 9120 } | 9146 } |
| 9121 return _json; | 9147 return _json; |
| 9122 } | 9148 } |
| 9123 } | 9149 } |
| 9124 | 9150 |
| 9125 class CommentThreadListResponse { | 9151 class CommentThreadListResponse { |
| 9126 /** Etag of this resource. */ | 9152 /// Etag of this resource. |
| 9127 core.String etag; | 9153 core.String etag; |
| 9128 /** Serialized EventId of the request which produced this response. */ | 9154 |
| 9155 /// Serialized EventId of the request which produced this response. |
| 9129 core.String eventId; | 9156 core.String eventId; |
| 9130 /** A list of comment threads that match the request criteria. */ | 9157 |
| 9158 /// A list of comment threads that match the request criteria. |
| 9131 core.List<CommentThread> items; | 9159 core.List<CommentThread> items; |
| 9132 /** | 9160 |
| 9133 * Identifies what kind of resource this is. Value: the fixed string | 9161 /// Identifies what kind of resource this is. Value: the fixed string |
| 9134 * "youtube#commentThreadListResponse". | 9162 /// "youtube#commentThreadListResponse". |
| 9135 */ | |
| 9136 core.String kind; | 9163 core.String kind; |
| 9137 /** | 9164 |
| 9138 * The token that can be used as the value of the pageToken parameter to | 9165 /// The token that can be used as the value of the pageToken parameter to |
| 9139 * retrieve the next page in the result set. | 9166 /// retrieve the next page in the result set. |
| 9140 */ | |
| 9141 core.String nextPageToken; | 9167 core.String nextPageToken; |
| 9142 PageInfo pageInfo; | 9168 PageInfo pageInfo; |
| 9143 TokenPagination tokenPagination; | 9169 TokenPagination tokenPagination; |
| 9144 /** The visitorId identifies the visitor. */ | 9170 |
| 9171 /// The visitorId identifies the visitor. |
| 9145 core.String visitorId; | 9172 core.String visitorId; |
| 9146 | 9173 |
| 9147 CommentThreadListResponse(); | 9174 CommentThreadListResponse(); |
| 9148 | 9175 |
| 9149 CommentThreadListResponse.fromJson(core.Map _json) { | 9176 CommentThreadListResponse.fromJson(core.Map _json) { |
| 9150 if (_json.containsKey("etag")) { | 9177 if (_json.containsKey("etag")) { |
| 9151 etag = _json["etag"]; | 9178 etag = _json["etag"]; |
| 9152 } | 9179 } |
| 9153 if (_json.containsKey("eventId")) { | 9180 if (_json.containsKey("eventId")) { |
| 9154 eventId = _json["eventId"]; | 9181 eventId = _json["eventId"]; |
| 9155 } | 9182 } |
| 9156 if (_json.containsKey("items")) { | 9183 if (_json.containsKey("items")) { |
| 9157 items = _json["items"].map((value) => new CommentThread.fromJson(value)).t
oList(); | 9184 items = _json["items"] |
| 9185 .map((value) => new CommentThread.fromJson(value)) |
| 9186 .toList(); |
| 9158 } | 9187 } |
| 9159 if (_json.containsKey("kind")) { | 9188 if (_json.containsKey("kind")) { |
| 9160 kind = _json["kind"]; | 9189 kind = _json["kind"]; |
| 9161 } | 9190 } |
| 9162 if (_json.containsKey("nextPageToken")) { | 9191 if (_json.containsKey("nextPageToken")) { |
| 9163 nextPageToken = _json["nextPageToken"]; | 9192 nextPageToken = _json["nextPageToken"]; |
| 9164 } | 9193 } |
| 9165 if (_json.containsKey("pageInfo")) { | 9194 if (_json.containsKey("pageInfo")) { |
| 9166 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 9195 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 9167 } | 9196 } |
| 9168 if (_json.containsKey("tokenPagination")) { | 9197 if (_json.containsKey("tokenPagination")) { |
| 9169 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 9198 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 9170 } | 9199 } |
| 9171 if (_json.containsKey("visitorId")) { | 9200 if (_json.containsKey("visitorId")) { |
| 9172 visitorId = _json["visitorId"]; | 9201 visitorId = _json["visitorId"]; |
| 9173 } | 9202 } |
| 9174 } | 9203 } |
| 9175 | 9204 |
| 9176 core.Map<core.String, core.Object> toJson() { | 9205 core.Map<core.String, core.Object> toJson() { |
| 9177 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9206 final core.Map<core.String, core.Object> _json = |
| 9207 new core.Map<core.String, core.Object>(); |
| 9178 if (etag != null) { | 9208 if (etag != null) { |
| 9179 _json["etag"] = etag; | 9209 _json["etag"] = etag; |
| 9180 } | 9210 } |
| 9181 if (eventId != null) { | 9211 if (eventId != null) { |
| 9182 _json["eventId"] = eventId; | 9212 _json["eventId"] = eventId; |
| 9183 } | 9213 } |
| 9184 if (items != null) { | 9214 if (items != null) { |
| 9185 _json["items"] = items.map((value) => (value).toJson()).toList(); | 9215 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 9186 } | 9216 } |
| 9187 if (kind != null) { | 9217 if (kind != null) { |
| 9188 _json["kind"] = kind; | 9218 _json["kind"] = kind; |
| 9189 } | 9219 } |
| 9190 if (nextPageToken != null) { | 9220 if (nextPageToken != null) { |
| 9191 _json["nextPageToken"] = nextPageToken; | 9221 _json["nextPageToken"] = nextPageToken; |
| 9192 } | 9222 } |
| 9193 if (pageInfo != null) { | 9223 if (pageInfo != null) { |
| 9194 _json["pageInfo"] = (pageInfo).toJson(); | 9224 _json["pageInfo"] = (pageInfo).toJson(); |
| 9195 } | 9225 } |
| 9196 if (tokenPagination != null) { | 9226 if (tokenPagination != null) { |
| 9197 _json["tokenPagination"] = (tokenPagination).toJson(); | 9227 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 9198 } | 9228 } |
| 9199 if (visitorId != null) { | 9229 if (visitorId != null) { |
| 9200 _json["visitorId"] = visitorId; | 9230 _json["visitorId"] = visitorId; |
| 9201 } | 9231 } |
| 9202 return _json; | 9232 return _json; |
| 9203 } | 9233 } |
| 9204 } | 9234 } |
| 9205 | 9235 |
| 9206 /** Comments written in (direct or indirect) reply to the top level comment. */ | 9236 /// Comments written in (direct or indirect) reply to the top level comment. |
| 9207 class CommentThreadReplies { | 9237 class CommentThreadReplies { |
| 9208 /** | 9238 /// A limited number of replies. Unless the number of replies returned equals |
| 9209 * A limited number of replies. Unless the number of replies returned equals | 9239 /// total_reply_count in the snippet the returned replies are only a subset |
| 9210 * total_reply_count in the snippet the returned replies are only a subset of | 9240 /// of the total number of replies. |
| 9211 * the total number of replies. | |
| 9212 */ | |
| 9213 core.List<Comment> comments; | 9241 core.List<Comment> comments; |
| 9214 | 9242 |
| 9215 CommentThreadReplies(); | 9243 CommentThreadReplies(); |
| 9216 | 9244 |
| 9217 CommentThreadReplies.fromJson(core.Map _json) { | 9245 CommentThreadReplies.fromJson(core.Map _json) { |
| 9218 if (_json.containsKey("comments")) { | 9246 if (_json.containsKey("comments")) { |
| 9219 comments = _json["comments"].map((value) => new Comment.fromJson(value)).t
oList(); | 9247 comments = _json["comments"] |
| 9248 .map((value) => new Comment.fromJson(value)) |
| 9249 .toList(); |
| 9220 } | 9250 } |
| 9221 } | 9251 } |
| 9222 | 9252 |
| 9223 core.Map<core.String, core.Object> toJson() { | 9253 core.Map<core.String, core.Object> toJson() { |
| 9224 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9254 final core.Map<core.String, core.Object> _json = |
| 9255 new core.Map<core.String, core.Object>(); |
| 9225 if (comments != null) { | 9256 if (comments != null) { |
| 9226 _json["comments"] = comments.map((value) => (value).toJson()).toList(); | 9257 _json["comments"] = comments.map((value) => (value).toJson()).toList(); |
| 9227 } | 9258 } |
| 9228 return _json; | 9259 return _json; |
| 9229 } | 9260 } |
| 9230 } | 9261 } |
| 9231 | 9262 |
| 9232 /** Basic details about a comment thread. */ | 9263 /// Basic details about a comment thread. |
| 9233 class CommentThreadSnippet { | 9264 class CommentThreadSnippet { |
| 9234 /** | 9265 /// Whether the current viewer of the thread can reply to it. This is viewer |
| 9235 * Whether the current viewer of the thread can reply to it. This is viewer | 9266 /// specific - other viewers may see a different value for this field. |
| 9236 * specific - other viewers may see a different value for this field. | |
| 9237 */ | |
| 9238 core.bool canReply; | 9267 core.bool canReply; |
| 9239 /** | 9268 |
| 9240 * The YouTube channel the comments in the thread refer to or the channel with | 9269 /// The YouTube channel the comments in the thread refer to or the channel |
| 9241 * the video the comments refer to. If video_id isn't set the comments refer | 9270 /// with the video the comments refer to. If video_id isn't set the comments |
| 9242 * to the channel itself. | 9271 /// refer to the channel itself. |
| 9243 */ | |
| 9244 core.String channelId; | 9272 core.String channelId; |
| 9245 /** | 9273 |
| 9246 * Whether the thread (and therefore all its comments) is visible to all | 9274 /// Whether the thread (and therefore all its comments) is visible to all |
| 9247 * YouTube users. | 9275 /// YouTube users. |
| 9248 */ | |
| 9249 core.bool isPublic; | 9276 core.bool isPublic; |
| 9250 /** The top level comment of this thread. */ | 9277 |
| 9278 /// The top level comment of this thread. |
| 9251 Comment topLevelComment; | 9279 Comment topLevelComment; |
| 9252 /** The total number of replies (not including the top level comment). */ | 9280 |
| 9281 /// The total number of replies (not including the top level comment). |
| 9253 core.int totalReplyCount; | 9282 core.int totalReplyCount; |
| 9254 /** | 9283 |
| 9255 * The ID of the video the comments refer to, if any. No video_id implies a | 9284 /// The ID of the video the comments refer to, if any. No video_id implies a |
| 9256 * channel discussion comment. | 9285 /// channel discussion comment. |
| 9257 */ | |
| 9258 core.String videoId; | 9286 core.String videoId; |
| 9259 | 9287 |
| 9260 CommentThreadSnippet(); | 9288 CommentThreadSnippet(); |
| 9261 | 9289 |
| 9262 CommentThreadSnippet.fromJson(core.Map _json) { | 9290 CommentThreadSnippet.fromJson(core.Map _json) { |
| 9263 if (_json.containsKey("canReply")) { | 9291 if (_json.containsKey("canReply")) { |
| 9264 canReply = _json["canReply"]; | 9292 canReply = _json["canReply"]; |
| 9265 } | 9293 } |
| 9266 if (_json.containsKey("channelId")) { | 9294 if (_json.containsKey("channelId")) { |
| 9267 channelId = _json["channelId"]; | 9295 channelId = _json["channelId"]; |
| 9268 } | 9296 } |
| 9269 if (_json.containsKey("isPublic")) { | 9297 if (_json.containsKey("isPublic")) { |
| 9270 isPublic = _json["isPublic"]; | 9298 isPublic = _json["isPublic"]; |
| 9271 } | 9299 } |
| 9272 if (_json.containsKey("topLevelComment")) { | 9300 if (_json.containsKey("topLevelComment")) { |
| 9273 topLevelComment = new Comment.fromJson(_json["topLevelComment"]); | 9301 topLevelComment = new Comment.fromJson(_json["topLevelComment"]); |
| 9274 } | 9302 } |
| 9275 if (_json.containsKey("totalReplyCount")) { | 9303 if (_json.containsKey("totalReplyCount")) { |
| 9276 totalReplyCount = _json["totalReplyCount"]; | 9304 totalReplyCount = _json["totalReplyCount"]; |
| 9277 } | 9305 } |
| 9278 if (_json.containsKey("videoId")) { | 9306 if (_json.containsKey("videoId")) { |
| 9279 videoId = _json["videoId"]; | 9307 videoId = _json["videoId"]; |
| 9280 } | 9308 } |
| 9281 } | 9309 } |
| 9282 | 9310 |
| 9283 core.Map<core.String, core.Object> toJson() { | 9311 core.Map<core.String, core.Object> toJson() { |
| 9284 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 9312 final core.Map<core.String, core.Object> _json = |
| 9313 new core.Map<core.String, core.Object>(); |
| 9285 if (canReply != null) { | 9314 if (canReply != null) { |
| 9286 _json["canReply"] = canReply; | 9315 _json["canReply"] = canReply; |
| 9287 } | 9316 } |
| 9288 if (channelId != null) { | 9317 if (channelId != null) { |
| 9289 _json["channelId"] = channelId; | 9318 _json["channelId"] = channelId; |
| 9290 } | 9319 } |
| 9291 if (isPublic != null) { | 9320 if (isPublic != null) { |
| 9292 _json["isPublic"] = isPublic; | 9321 _json["isPublic"] = isPublic; |
| 9293 } | 9322 } |
| 9294 if (topLevelComment != null) { | 9323 if (topLevelComment != null) { |
| 9295 _json["topLevelComment"] = (topLevelComment).toJson(); | 9324 _json["topLevelComment"] = (topLevelComment).toJson(); |
| 9296 } | 9325 } |
| 9297 if (totalReplyCount != null) { | 9326 if (totalReplyCount != null) { |
| 9298 _json["totalReplyCount"] = totalReplyCount; | 9327 _json["totalReplyCount"] = totalReplyCount; |
| 9299 } | 9328 } |
| 9300 if (videoId != null) { | 9329 if (videoId != null) { |
| 9301 _json["videoId"] = videoId; | 9330 _json["videoId"] = videoId; |
| 9302 } | 9331 } |
| 9303 return _json; | 9332 return _json; |
| 9304 } | 9333 } |
| 9305 } | 9334 } |
| 9306 | 9335 |
| 9307 /** | 9336 /// Ratings schemes. The country-specific ratings are mostly for movies and |
| 9308 * Ratings schemes. The country-specific ratings are mostly for movies and | 9337 /// shows. NEXT_ID: 69 |
| 9309 * shows. NEXT_ID: 69 | |
| 9310 */ | |
| 9311 class ContentRating { | 9338 class ContentRating { |
| 9312 /** | 9339 /// The video's Australian Classification Board (ACB) or Australian |
| 9313 * The video's Australian Classification Board (ACB) or Australian | 9340 /// Communications and Media Authority (ACMA) rating. ACMA ratings are used |
| 9314 * Communications and Media Authority (ACMA) rating. ACMA ratings are used to | 9341 /// to classify children's television programming. |
| 9315 * classify children's television programming. | 9342 /// Possible string values are: |
| 9316 * Possible string values are: | 9343 /// - "acbC" |
| 9317 * - "acbC" | 9344 /// - "acbE" |
| 9318 * - "acbE" | 9345 /// - "acbG" |
| 9319 * - "acbG" | 9346 /// - "acbM" |
| 9320 * - "acbM" | 9347 /// - "acbMa15plus" |
| 9321 * - "acbMa15plus" | 9348 /// - "acbP" |
| 9322 * - "acbP" | 9349 /// - "acbPg" |
| 9323 * - "acbPg" | 9350 /// - "acbR18plus" |
| 9324 * - "acbR18plus" | 9351 /// - "acbUnrated" |
| 9325 * - "acbUnrated" | |
| 9326 */ | |
| 9327 core.String acbRating; | 9352 core.String acbRating; |
| 9328 /** | 9353 |
| 9329 * The video's rating from Italy's Autorità per le Garanzie nelle | 9354 /// The video's rating from Italy's Autorità per le Garanzie nelle |
| 9330 * Comunicazioni (AGCOM). | 9355 /// Comunicazioni (AGCOM). |
| 9331 * Possible string values are: | 9356 /// Possible string values are: |
| 9332 * - "agcomT" | 9357 /// - "agcomT" |
| 9333 * - "agcomUnrated" | 9358 /// - "agcomUnrated" |
| 9334 * - "agcomVm14" | 9359 /// - "agcomVm14" |
| 9335 * - "agcomVm18" | 9360 /// - "agcomVm18" |
| 9336 */ | |
| 9337 core.String agcomRating; | 9361 core.String agcomRating; |
| 9338 /** | 9362 |
| 9339 * The video's Anatel (Asociación Nacional de Televisión) rating for Chilean | 9363 /// The video's Anatel (Asociación Nacional de Televisión) rating for Chilean |
| 9340 * television. | 9364 /// television. |
| 9341 * Possible string values are: | 9365 /// Possible string values are: |
| 9342 * - "anatelA" | 9366 /// - "anatelA" |
| 9343 * - "anatelF" | 9367 /// - "anatelF" |
| 9344 * - "anatelI" | 9368 /// - "anatelI" |
| 9345 * - "anatelI10" | 9369 /// - "anatelI10" |
| 9346 * - "anatelI12" | 9370 /// - "anatelI12" |
| 9347 * - "anatelI7" | 9371 /// - "anatelI7" |
| 9348 * - "anatelR" | 9372 /// - "anatelR" |
| 9349 * - "anatelUnrated" | 9373 /// - "anatelUnrated" |
| 9350 */ | |
| 9351 core.String anatelRating; | 9374 core.String anatelRating; |
| 9352 /** | 9375 |
| 9353 * The video's British Board of Film Classification (BBFC) rating. | 9376 /// The video's British Board of Film Classification (BBFC) rating. |
| 9354 * Possible string values are: | 9377 /// Possible string values are: |
| 9355 * - "bbfc12" | 9378 /// - "bbfc12" |
| 9356 * - "bbfc12a" | 9379 /// - "bbfc12a" |
| 9357 * - "bbfc15" | 9380 /// - "bbfc15" |
| 9358 * - "bbfc18" | 9381 /// - "bbfc18" |
| 9359 * - "bbfcPg" | 9382 /// - "bbfcPg" |
| 9360 * - "bbfcR18" | 9383 /// - "bbfcR18" |
| 9361 * - "bbfcU" | 9384 /// - "bbfcU" |
| 9362 * - "bbfcUnrated" | 9385 /// - "bbfcUnrated" |
| 9363 */ | |
| 9364 core.String bbfcRating; | 9386 core.String bbfcRating; |
| 9365 /** | 9387 |
| 9366 * The video's rating from Thailand's Board of Film and Video Censors. | 9388 /// The video's rating from Thailand's Board of Film and Video Censors. |
| 9367 * Possible string values are: | 9389 /// Possible string values are: |
| 9368 * - "bfvc13" | 9390 /// - "bfvc13" |
| 9369 * - "bfvc15" | 9391 /// - "bfvc15" |
| 9370 * - "bfvc18" | 9392 /// - "bfvc18" |
| 9371 * - "bfvc20" | 9393 /// - "bfvc20" |
| 9372 * - "bfvcB" | 9394 /// - "bfvcB" |
| 9373 * - "bfvcE" | 9395 /// - "bfvcE" |
| 9374 * - "bfvcG" | 9396 /// - "bfvcG" |
| 9375 * - "bfvcUnrated" | 9397 /// - "bfvcUnrated" |
| 9376 */ | |
| 9377 core.String bfvcRating; | 9398 core.String bfvcRating; |
| 9378 /** | 9399 |
| 9379 * The video's rating from the Austrian Board of Media Classification | 9400 /// The video's rating from the Austrian Board of Media Classification |
| 9380 * (Bundesministerium für Unterricht, Kunst und Kultur). | 9401 /// (Bundesministerium für Unterricht, Kunst und Kultur). |
| 9381 * Possible string values are: | 9402 /// Possible string values are: |
| 9382 * - "bmukk10" | 9403 /// - "bmukk10" |
| 9383 * - "bmukk12" | 9404 /// - "bmukk12" |
| 9384 * - "bmukk14" | 9405 /// - "bmukk14" |
| 9385 * - "bmukk16" | 9406 /// - "bmukk16" |
| 9386 * - "bmukk6" | 9407 /// - "bmukk6" |
| 9387 * - "bmukk8" | 9408 /// - "bmukk8" |
| 9388 * - "bmukkAa" | 9409 /// - "bmukkAa" |
| 9389 * - "bmukkUnrated" | 9410 /// - "bmukkUnrated" |
| 9390 */ | |
| 9391 core.String bmukkRating; | 9411 core.String bmukkRating; |
| 9392 /** | 9412 |
| 9393 * Rating system for Canadian TV - Canadian TV Classification System The | 9413 /// Rating system for Canadian TV - Canadian TV Classification System The |
| 9394 * video's rating from the Canadian Radio-Television and Telecommunications | 9414 /// video's rating from the Canadian Radio-Television and Telecommunications |
| 9395 * Commission (CRTC) for Canadian English-language broadcasts. For more | 9415 /// Commission (CRTC) for Canadian English-language broadcasts. For more |
| 9396 * information, see the Canadian Broadcast Standards Council website. | 9416 /// information, see the Canadian Broadcast Standards Council website. |
| 9397 * Possible string values are: | 9417 /// Possible string values are: |
| 9398 * - "catv14plus" | 9418 /// - "catv14plus" |
| 9399 * - "catv18plus" | 9419 /// - "catv18plus" |
| 9400 * - "catvC" | 9420 /// - "catvC" |
| 9401 * - "catvC8" | 9421 /// - "catvC8" |
| 9402 * - "catvG" | 9422 /// - "catvG" |
| 9403 * - "catvPg" | 9423 /// - "catvPg" |
| 9404 * - "catvUnrated" | 9424 /// - "catvUnrated" |
| 9405 */ | |
| 9406 core.String catvRating; | 9425 core.String catvRating; |
| 9407 /** | 9426 |
| 9408 * The video's rating from the Canadian Radio-Television and | 9427 /// The video's rating from the Canadian Radio-Television and |
| 9409 * Telecommunications Commission (CRTC) for Canadian French-language | 9428 /// Telecommunications Commission (CRTC) for Canadian French-language |
| 9410 * broadcasts. For more information, see the Canadian Broadcast Standards | 9429 /// broadcasts. For more information, see the Canadian Broadcast Standards |
| 9411 * Council website. | 9430 /// Council website. |
| 9412 * Possible string values are: | 9431 /// Possible string values are: |
| 9413 * - "catvfr13plus" | 9432 /// - "catvfr13plus" |
| 9414 * - "catvfr16plus" | 9433 /// - "catvfr16plus" |
| 9415 * - "catvfr18plus" | 9434 /// - "catvfr18plus" |
| 9416 * - "catvfr8plus" | 9435 /// - "catvfr8plus" |
| 9417 * - "catvfrG" | 9436 /// - "catvfrG" |
| 9418 * - "catvfrUnrated" | 9437 /// - "catvfrUnrated" |
| 9419 */ | |
| 9420 core.String catvfrRating; | 9438 core.String catvfrRating; |
| 9421 /** | 9439 |
| 9422 * The video's Central Board of Film Certification (CBFC - India) rating. | 9440 /// The video's Central Board of Film Certification (CBFC - India) rating. |
| 9423 * Possible string values are: | 9441 /// Possible string values are: |
| 9424 * - "cbfcA" | 9442 /// - "cbfcA" |
| 9425 * - "cbfcS" | 9443 /// - "cbfcS" |
| 9426 * - "cbfcU" | 9444 /// - "cbfcU" |
| 9427 * - "cbfcUA" | 9445 /// - "cbfcUA" |
| 9428 * - "cbfcUnrated" | 9446 /// - "cbfcUnrated" |
| 9429 */ | |
| 9430 core.String cbfcRating; | 9447 core.String cbfcRating; |
| 9431 /** | 9448 |
| 9432 * The video's Consejo de Calificación Cinematográfica (Chile) rating. | 9449 /// The video's Consejo de Calificación Cinematográfica (Chile) rating. |
| 9433 * Possible string values are: | 9450 /// Possible string values are: |
| 9434 * - "ccc14" | 9451 /// - "ccc14" |
| 9435 * - "ccc18" | 9452 /// - "ccc18" |
| 9436 * - "ccc18s" | 9453 /// - "ccc18s" |
| 9437 * - "ccc18v" | 9454 /// - "ccc18v" |
| 9438 * - "ccc6" | 9455 /// - "ccc6" |
| 9439 * - "cccTe" | 9456 /// - "cccTe" |
| 9440 * - "cccUnrated" | 9457 /// - "cccUnrated" |
| 9441 */ | |
| 9442 core.String cccRating; | 9458 core.String cccRating; |
| 9443 /** | 9459 |
| 9444 * The video's rating from Portugal's Comissão de Classificação de | 9460 /// The video's rating from Portugal's Comissão de Classificação de |
| 9445 * Espect´culos. | 9461 /// Espect´culos. |
| 9446 * Possible string values are: | 9462 /// Possible string values are: |
| 9447 * - "cceM12" | 9463 /// - "cceM12" |
| 9448 * - "cceM14" | 9464 /// - "cceM14" |
| 9449 * - "cceM16" | 9465 /// - "cceM16" |
| 9450 * - "cceM18" | 9466 /// - "cceM18" |
| 9451 * - "cceM4" | 9467 /// - "cceM4" |
| 9452 * - "cceM6" | 9468 /// - "cceM6" |
| 9453 * - "cceUnrated" | 9469 /// - "cceUnrated" |
| 9454 */ | |
| 9455 core.String cceRating; | 9470 core.String cceRating; |
| 9456 /** | 9471 |
| 9457 * The video's rating in Switzerland. | 9472 /// The video's rating in Switzerland. |
| 9458 * Possible string values are: | 9473 /// Possible string values are: |
| 9459 * - "chfilm0" | 9474 /// - "chfilm0" |
| 9460 * - "chfilm12" | 9475 /// - "chfilm12" |
| 9461 * - "chfilm16" | 9476 /// - "chfilm16" |
| 9462 * - "chfilm18" | 9477 /// - "chfilm18" |
| 9463 * - "chfilm6" | 9478 /// - "chfilm6" |
| 9464 * - "chfilmUnrated" | 9479 /// - "chfilmUnrated" |
| 9465 */ | |
| 9466 core.String chfilmRating; | 9480 core.String chfilmRating; |
| 9467 /** | 9481 |
| 9468 * The video's Canadian Home Video Rating System (CHVRS) rating. | 9482 /// The video's Canadian Home Video Rating System (CHVRS) rating. |
| 9469 * Possible string values are: | 9483 /// Possible string values are: |
| 9470 * - "chvrs14a" | 9484 /// - "chvrs14a" |
| 9471 * - "chvrs18a" | 9485 /// - "chvrs18a" |
| 9472 * - "chvrsE" | 9486 /// - "chvrsE" |
| 9473 * - "chvrsG" | 9487 /// - "chvrsG" |
| 9474 * - "chvrsPg" | 9488 /// - "chvrsPg" |
| 9475 * - "chvrsR" | 9489 /// - "chvrsR" |
| 9476 * - "chvrsUnrated" | 9490 /// - "chvrsUnrated" |
| 9477 */ | |
| 9478 core.String chvrsRating; | 9491 core.String chvrsRating; |
| 9479 /** | 9492 |
| 9480 * The video's rating from the Commission de Contrôle des Films (Belgium). | 9493 /// The video's rating from the Commission de Contrôle des Films (Belgium). |
| 9481 * Possible string values are: | 9494 /// Possible string values are: |
| 9482 * - "cicfE" | 9495 /// - "cicfE" |
| 9483 * - "cicfKntEna" | 9496 /// - "cicfKntEna" |
| 9484 * - "cicfKtEa" | 9497 /// - "cicfKtEa" |
| 9485 * - "cicfUnrated" | 9498 /// - "cicfUnrated" |
| 9486 */ | |
| 9487 core.String cicfRating; | 9499 core.String cicfRating; |
| 9488 /** | 9500 |
| 9489 * The video's rating from Romania's CONSILIUL NATIONAL AL AUDIOVIZUALULUI | 9501 /// The video's rating from Romania's CONSILIUL NATIONAL AL AUDIOVIZUALULUI |
| 9490 * (CNA). | 9502 /// (CNA). |
| 9491 * Possible string values are: | 9503 /// Possible string values are: |
| 9492 * - "cna12" | 9504 /// - "cna12" |
| 9493 * - "cna15" | 9505 /// - "cna15" |
| 9494 * - "cna18" | 9506 /// - "cna18" |
| 9495 * - "cna18plus" | 9507 /// - "cna18plus" |
| 9496 * - "cnaAp" | 9508 /// - "cnaAp" |
| 9497 * - "cnaUnrated" | 9509 /// - "cnaUnrated" |
| 9498 */ | |
| 9499 core.String cnaRating; | 9510 core.String cnaRating; |
| 9500 /** | 9511 |
| 9501 * Rating system in France - Commission de classification cinematographique | 9512 /// Rating system in France - Commission de classification cinematographique |
| 9502 * Possible string values are: | 9513 /// Possible string values are: |
| 9503 * - "cnc10" | 9514 /// - "cnc10" |
| 9504 * - "cnc12" | 9515 /// - "cnc12" |
| 9505 * - "cnc16" | 9516 /// - "cnc16" |
| 9506 * - "cnc18" | 9517 /// - "cnc18" |
| 9507 * - "cncE" | 9518 /// - "cncE" |
| 9508 * - "cncT" | 9519 /// - "cncT" |
| 9509 * - "cncUnrated" | 9520 /// - "cncUnrated" |
| 9510 */ | |
| 9511 core.String cncRating; | 9521 core.String cncRating; |
| 9512 /** | 9522 |
| 9513 * The video's rating from France's Conseil supérieur de l?audiovisuel, which | 9523 /// The video's rating from France's Conseil supérieur de l?audiovisuel, |
| 9514 * rates broadcast content. | 9524 /// which rates broadcast content. |
| 9515 * Possible string values are: | 9525 /// Possible string values are: |
| 9516 * - "csa10" | 9526 /// - "csa10" |
| 9517 * - "csa12" | 9527 /// - "csa12" |
| 9518 * - "csa16" | 9528 /// - "csa16" |
| 9519 * - "csa18" | 9529 /// - "csa18" |
| 9520 * - "csaInterdiction" | 9530 /// - "csaInterdiction" |
| 9521 * - "csaT" | 9531 /// - "csaT" |
| 9522 * - "csaUnrated" | 9532 /// - "csaUnrated" |
| 9523 */ | |
| 9524 core.String csaRating; | 9533 core.String csaRating; |
| 9525 /** | 9534 |
| 9526 * The video's rating from Luxembourg's Commission de surveillance de la | 9535 /// The video's rating from Luxembourg's Commission de surveillance de la |
| 9527 * classification des films (CSCF). | 9536 /// classification des films (CSCF). |
| 9528 * Possible string values are: | 9537 /// Possible string values are: |
| 9529 * - "cscf12" | 9538 /// - "cscf12" |
| 9530 * - "cscf16" | 9539 /// - "cscf16" |
| 9531 * - "cscf18" | 9540 /// - "cscf18" |
| 9532 * - "cscf6" | 9541 /// - "cscf6" |
| 9533 * - "cscf9" | 9542 /// - "cscf9" |
| 9534 * - "cscfA" | 9543 /// - "cscfA" |
| 9535 * - "cscfAl" | 9544 /// - "cscfAl" |
| 9536 * - "cscfUnrated" | 9545 /// - "cscfUnrated" |
| 9537 */ | |
| 9538 core.String cscfRating; | 9546 core.String cscfRating; |
| 9539 /** | 9547 |
| 9540 * The video's rating in the Czech Republic. | 9548 /// The video's rating in the Czech Republic. |
| 9541 * Possible string values are: | 9549 /// Possible string values are: |
| 9542 * - "czfilm12" | 9550 /// - "czfilm12" |
| 9543 * - "czfilm14" | 9551 /// - "czfilm14" |
| 9544 * - "czfilm18" | 9552 /// - "czfilm18" |
| 9545 * - "czfilmU" | 9553 /// - "czfilmU" |
| 9546 * - "czfilmUnrated" | 9554 /// - "czfilmUnrated" |
| 9547 */ | |
| 9548 core.String czfilmRating; | 9555 core.String czfilmRating; |
| 9549 /** | 9556 |
| 9550 * The video's Departamento de Justiça, Classificação, Qualificação e Títulos | 9557 /// The video's Departamento de Justiça, Classificação, Qualificação e |
| 9551 * (DJCQT - Brazil) rating. | 9558 /// Títulos (DJCQT - Brazil) rating. |
| 9552 * Possible string values are: | 9559 /// Possible string values are: |
| 9553 * - "djctq10" | 9560 /// - "djctq10" |
| 9554 * - "djctq12" | 9561 /// - "djctq12" |
| 9555 * - "djctq14" | 9562 /// - "djctq14" |
| 9556 * - "djctq16" | 9563 /// - "djctq16" |
| 9557 * - "djctq18" | 9564 /// - "djctq18" |
| 9558 * - "djctqL" | 9565 /// - "djctqL" |
| 9559 * - "djctqUnrated" | 9566 /// - "djctqUnrated" |
| 9560 */ | |
| 9561 core.String djctqRating; | 9567 core.String djctqRating; |
| 9562 /** Reasons that explain why the video received its DJCQT (Brazil) rating. */ | 9568 |
| 9569 /// Reasons that explain why the video received its DJCQT (Brazil) rating. |
| 9563 core.List<core.String> djctqRatingReasons; | 9570 core.List<core.String> djctqRatingReasons; |
| 9564 /** | 9571 |
| 9565 * Rating system in Turkey - Evaluation and Classification Board of the | 9572 /// Rating system in Turkey - Evaluation and Classification Board of the |
| 9566 * Ministry of Culture and Tourism | 9573 /// Ministry of Culture and Tourism |
| 9567 * Possible string values are: | 9574 /// Possible string values are: |
| 9568 * - "ecbmct13a" | 9575 /// - "ecbmct13a" |
| 9569 * - "ecbmct13plus" | 9576 /// - "ecbmct13plus" |
| 9570 * - "ecbmct15a" | 9577 /// - "ecbmct15a" |
| 9571 * - "ecbmct15plus" | 9578 /// - "ecbmct15plus" |
| 9572 * - "ecbmct18plus" | 9579 /// - "ecbmct18plus" |
| 9573 * - "ecbmct7a" | 9580 /// - "ecbmct7a" |
| 9574 * - "ecbmct7plus" | 9581 /// - "ecbmct7plus" |
| 9575 * - "ecbmctG" | 9582 /// - "ecbmctG" |
| 9576 * - "ecbmctUnrated" | 9583 /// - "ecbmctUnrated" |
| 9577 */ | |
| 9578 core.String ecbmctRating; | 9584 core.String ecbmctRating; |
| 9579 /** | 9585 |
| 9580 * The video's rating in Estonia. | 9586 /// The video's rating in Estonia. |
| 9581 * Possible string values are: | 9587 /// Possible string values are: |
| 9582 * - "eefilmK12" | 9588 /// - "eefilmK12" |
| 9583 * - "eefilmK14" | 9589 /// - "eefilmK14" |
| 9584 * - "eefilmK16" | 9590 /// - "eefilmK16" |
| 9585 * - "eefilmK6" | 9591 /// - "eefilmK6" |
| 9586 * - "eefilmL" | 9592 /// - "eefilmL" |
| 9587 * - "eefilmMs12" | 9593 /// - "eefilmMs12" |
| 9588 * - "eefilmMs6" | 9594 /// - "eefilmMs6" |
| 9589 * - "eefilmPere" | 9595 /// - "eefilmPere" |
| 9590 * - "eefilmUnrated" | 9596 /// - "eefilmUnrated" |
| 9591 */ | |
| 9592 core.String eefilmRating; | 9597 core.String eefilmRating; |
| 9593 /** | 9598 |
| 9594 * The video's rating in Egypt. | 9599 /// The video's rating in Egypt. |
| 9595 * Possible string values are: | 9600 /// Possible string values are: |
| 9596 * - "egfilm18" | 9601 /// - "egfilm18" |
| 9597 * - "egfilmBn" | 9602 /// - "egfilmBn" |
| 9598 * - "egfilmGn" | 9603 /// - "egfilmGn" |
| 9599 * - "egfilmUnrated" | 9604 /// - "egfilmUnrated" |
| 9600 */ | |
| 9601 core.String egfilmRating; | 9605 core.String egfilmRating; |
| 9602 /** | 9606 |
| 9603 * The video's Eirin (映倫) rating. Eirin is the Japanese rating system. | 9607 /// The video's Eirin (映倫) rating. Eirin is the Japanese rating system. |
| 9604 * Possible string values are: | 9608 /// Possible string values are: |
| 9605 * - "eirinG" | 9609 /// - "eirinG" |
| 9606 * - "eirinPg12" | 9610 /// - "eirinPg12" |
| 9607 * - "eirinR15plus" | 9611 /// - "eirinR15plus" |
| 9608 * - "eirinR18plus" | 9612 /// - "eirinR18plus" |
| 9609 * - "eirinUnrated" | 9613 /// - "eirinUnrated" |
| 9610 */ | |
| 9611 core.String eirinRating; | 9614 core.String eirinRating; |
| 9612 /** | 9615 |
| 9613 * The video's rating from Malaysia's Film Censorship Board. | 9616 /// The video's rating from Malaysia's Film Censorship Board. |
| 9614 * Possible string values are: | 9617 /// Possible string values are: |
| 9615 * - "fcbm18" | 9618 /// - "fcbm18" |
| 9616 * - "fcbm18pa" | 9619 /// - "fcbm18pa" |
| 9617 * - "fcbm18pl" | 9620 /// - "fcbm18pl" |
| 9618 * - "fcbm18sg" | 9621 /// - "fcbm18sg" |
| 9619 * - "fcbm18sx" | 9622 /// - "fcbm18sx" |
| 9620 * - "fcbmP13" | 9623 /// - "fcbmP13" |
| 9621 * - "fcbmPg13" | 9624 /// - "fcbmPg13" |
| 9622 * - "fcbmU" | 9625 /// - "fcbmU" |
| 9623 * - "fcbmUnrated" | 9626 /// - "fcbmUnrated" |
| 9624 */ | |
| 9625 core.String fcbmRating; | 9627 core.String fcbmRating; |
| 9626 /** | 9628 |
| 9627 * The video's rating from Hong Kong's Office for Film, Newspaper and Article | 9629 /// The video's rating from Hong Kong's Office for Film, Newspaper and |
| 9628 * Administration. | 9630 /// Article Administration. |
| 9629 * Possible string values are: | 9631 /// Possible string values are: |
| 9630 * - "fcoI" | 9632 /// - "fcoI" |
| 9631 * - "fcoIi" | 9633 /// - "fcoIi" |
| 9632 * - "fcoIia" | 9634 /// - "fcoIia" |
| 9633 * - "fcoIib" | 9635 /// - "fcoIib" |
| 9634 * - "fcoIii" | 9636 /// - "fcoIii" |
| 9635 * - "fcoUnrated" | 9637 /// - "fcoUnrated" |
| 9636 */ | |
| 9637 core.String fcoRating; | 9638 core.String fcoRating; |
| 9638 /** | 9639 |
| 9639 * This property has been deprecated. Use the | 9640 /// This property has been deprecated. Use the |
| 9640 * contentDetails.contentRating.cncRating instead. | 9641 /// contentDetails.contentRating.cncRating instead. |
| 9641 * Possible string values are: | 9642 /// Possible string values are: |
| 9642 * - "fmoc10" | 9643 /// - "fmoc10" |
| 9643 * - "fmoc12" | 9644 /// - "fmoc12" |
| 9644 * - "fmoc16" | 9645 /// - "fmoc16" |
| 9645 * - "fmoc18" | 9646 /// - "fmoc18" |
| 9646 * - "fmocE" | 9647 /// - "fmocE" |
| 9647 * - "fmocU" | 9648 /// - "fmocU" |
| 9648 * - "fmocUnrated" | 9649 /// - "fmocUnrated" |
| 9649 */ | |
| 9650 core.String fmocRating; | 9650 core.String fmocRating; |
| 9651 /** | 9651 |
| 9652 * The video's rating from South Africa's Film and Publication Board. | 9652 /// The video's rating from South Africa's Film and Publication Board. |
| 9653 * Possible string values are: | 9653 /// Possible string values are: |
| 9654 * - "fpb10" | 9654 /// - "fpb10" |
| 9655 * - "fpb1012Pg" | 9655 /// - "fpb1012Pg" |
| 9656 * - "fpb13" | 9656 /// - "fpb13" |
| 9657 * - "fpb16" | 9657 /// - "fpb16" |
| 9658 * - "fpb18" | 9658 /// - "fpb18" |
| 9659 * - "fpb79Pg" | 9659 /// - "fpb79Pg" |
| 9660 * - "fpbA" | 9660 /// - "fpbA" |
| 9661 * - "fpbPg" | 9661 /// - "fpbPg" |
| 9662 * - "fpbUnrated" | 9662 /// - "fpbUnrated" |
| 9663 * - "fpbX18" | 9663 /// - "fpbX18" |
| 9664 * - "fpbXx" | 9664 /// - "fpbXx" |
| 9665 */ | |
| 9666 core.String fpbRating; | 9665 core.String fpbRating; |
| 9667 /** | 9666 |
| 9668 * Reasons that explain why the video received its FPB (South Africa) rating. | 9667 /// Reasons that explain why the video received its FPB (South Africa) |
| 9669 */ | 9668 /// rating. |
| 9670 core.List<core.String> fpbRatingReasons; | 9669 core.List<core.String> fpbRatingReasons; |
| 9671 /** | 9670 |
| 9672 * The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - Germany) | 9671 /// The video's Freiwillige Selbstkontrolle der Filmwirtschaft (FSK - |
| 9673 * rating. | 9672 /// Germany) rating. |
| 9674 * Possible string values are: | 9673 /// Possible string values are: |
| 9675 * - "fsk0" | 9674 /// - "fsk0" |
| 9676 * - "fsk12" | 9675 /// - "fsk12" |
| 9677 * - "fsk16" | 9676 /// - "fsk16" |
| 9678 * - "fsk18" | 9677 /// - "fsk18" |
| 9679 * - "fsk6" | 9678 /// - "fsk6" |
| 9680 * - "fskUnrated" | 9679 /// - "fskUnrated" |
| 9681 */ | |
| 9682 core.String fskRating; | 9680 core.String fskRating; |
| 9683 /** | 9681 |
| 9684 * The video's rating in Greece. | 9682 /// The video's rating in Greece. |
| 9685 * Possible string values are: | 9683 /// Possible string values are: |
| 9686 * - "grfilmE" | 9684 /// - "grfilmE" |
| 9687 * - "grfilmK" | 9685 /// - "grfilmK" |
| 9688 * - "grfilmK12" | 9686 /// - "grfilmK12" |
| 9689 * - "grfilmK13" | 9687 /// - "grfilmK13" |
| 9690 * - "grfilmK15" | 9688 /// - "grfilmK15" |
| 9691 * - "grfilmK17" | 9689 /// - "grfilmK17" |
| 9692 * - "grfilmK18" | 9690 /// - "grfilmK18" |
| 9693 * - "grfilmUnrated" | 9691 /// - "grfilmUnrated" |
| 9694 */ | |
| 9695 core.String grfilmRating; | 9692 core.String grfilmRating; |
| 9696 /** | 9693 |
| 9697 * The video's Instituto de la Cinematografía y de las Artes Audiovisuales | 9694 /// The video's Instituto de la Cinematografía y de las Artes Audiovisuales |
| 9698 * (ICAA - Spain) rating. | 9695 /// (ICAA - Spain) rating. |
| 9699 * Possible string values are: | 9696 /// Possible string values are: |
| 9700 * - "icaa12" | 9697 /// - "icaa12" |
| 9701 * - "icaa13" | 9698 /// - "icaa13" |
| 9702 * - "icaa16" | 9699 /// - "icaa16" |
| 9703 * - "icaa18" | 9700 /// - "icaa18" |
| 9704 * - "icaa7" | 9701 /// - "icaa7" |
| 9705 * - "icaaApta" | 9702 /// - "icaaApta" |
| 9706 * - "icaaUnrated" | 9703 /// - "icaaUnrated" |
| 9707 * - "icaaX" | 9704 /// - "icaaX" |
| 9708 */ | |
| 9709 core.String icaaRating; | 9705 core.String icaaRating; |
| 9710 /** | 9706 |
| 9711 * The video's Irish Film Classification Office (IFCO - Ireland) rating. See | 9707 /// The video's Irish Film Classification Office (IFCO - Ireland) rating. See |
| 9712 * the IFCO website for more information. | 9708 /// the IFCO website for more information. |
| 9713 * Possible string values are: | 9709 /// Possible string values are: |
| 9714 * - "ifco12" | 9710 /// - "ifco12" |
| 9715 * - "ifco12a" | 9711 /// - "ifco12a" |
| 9716 * - "ifco15" | 9712 /// - "ifco15" |
| 9717 * - "ifco15a" | 9713 /// - "ifco15a" |
| 9718 * - "ifco16" | 9714 /// - "ifco16" |
| 9719 * - "ifco18" | 9715 /// - "ifco18" |
| 9720 * - "ifcoG" | 9716 /// - "ifcoG" |
| 9721 * - "ifcoPg" | 9717 /// - "ifcoPg" |
| 9722 * - "ifcoUnrated" | 9718 /// - "ifcoUnrated" |
| 9723 */ | |
| 9724 core.String ifcoRating; | 9719 core.String ifcoRating; |
| 9725 /** | 9720 |
| 9726 * The video's rating in Israel. | 9721 /// The video's rating in Israel. |
| 9727 * Possible string values are: | 9722 /// Possible string values are: |
| 9728 * - "ilfilm12" | 9723 /// - "ilfilm12" |
| 9729 * - "ilfilm16" | 9724 /// - "ilfilm16" |
| 9730 * - "ilfilm18" | 9725 /// - "ilfilm18" |
| 9731 * - "ilfilmAa" | 9726 /// - "ilfilmAa" |
| 9732 * - "ilfilmUnrated" | 9727 /// - "ilfilmUnrated" |
| 9733 */ | |
| 9734 core.String ilfilmRating; | 9728 core.String ilfilmRating; |
| 9735 /** | 9729 |
| 9736 * The video's INCAA (Instituto Nacional de Cine y Artes Audiovisuales - | 9730 /// The video's INCAA (Instituto Nacional de Cine y Artes Audiovisuales - |
| 9737 * Argentina) rating. | 9731 /// Argentina) rating. |
| 9738 * Possible string values are: | 9732 /// Possible string values are: |
| 9739 * - "incaaAtp" | 9733 /// - "incaaAtp" |
| 9740 * - "incaaC" | 9734 /// - "incaaC" |
| 9741 * - "incaaSam13" | 9735 /// - "incaaSam13" |
| 9742 * - "incaaSam16" | 9736 /// - "incaaSam16" |
| 9743 * - "incaaSam18" | 9737 /// - "incaaSam18" |
| 9744 * - "incaaUnrated" | 9738 /// - "incaaUnrated" |
| 9745 */ | |
| 9746 core.String incaaRating; | 9739 core.String incaaRating; |
| 9747 /** | 9740 |
| 9748 * The video's rating from the Kenya Film Classification Board. | 9741 /// The video's rating from the Kenya Film Classification Board. |
| 9749 * Possible string values are: | 9742 /// Possible string values are: |
| 9750 * - "kfcb16plus" | 9743 /// - "kfcb16plus" |
| 9751 * - "kfcbG" | 9744 /// - "kfcbG" |
| 9752 * - "kfcbPg" | 9745 /// - "kfcbPg" |
| 9753 * - "kfcbR" | 9746 /// - "kfcbR" |
| 9754 * - "kfcbUnrated" | 9747 /// - "kfcbUnrated" |
| 9755 */ | |
| 9756 core.String kfcbRating; | 9748 core.String kfcbRating; |
| 9757 /** | 9749 |
| 9758 * voor de Classificatie van Audiovisuele Media (Netherlands). | 9750 /// voor de Classificatie van Audiovisuele Media (Netherlands). |
| 9759 * Possible string values are: | 9751 /// Possible string values are: |
| 9760 * - "kijkwijzer12" | 9752 /// - "kijkwijzer12" |
| 9761 * - "kijkwijzer16" | 9753 /// - "kijkwijzer16" |
| 9762 * - "kijkwijzer18" | 9754 /// - "kijkwijzer18" |
| 9763 * - "kijkwijzer6" | 9755 /// - "kijkwijzer6" |
| 9764 * - "kijkwijzer9" | 9756 /// - "kijkwijzer9" |
| 9765 * - "kijkwijzerAl" | 9757 /// - "kijkwijzerAl" |
| 9766 * - "kijkwijzerUnrated" | 9758 /// - "kijkwijzerUnrated" |
| 9767 */ | |
| 9768 core.String kijkwijzerRating; | 9759 core.String kijkwijzerRating; |
| 9769 /** | 9760 |
| 9770 * The video's Korea Media Rating Board (영상물등급위원회) rating. The KMRB rates | 9761 /// The video's Korea Media Rating Board (영상물등급위원회) rating. The KMRB rates |
| 9771 * videos in South Korea. | 9762 /// videos in South Korea. |
| 9772 * Possible string values are: | 9763 /// Possible string values are: |
| 9773 * - "kmrb12plus" | 9764 /// - "kmrb12plus" |
| 9774 * - "kmrb15plus" | 9765 /// - "kmrb15plus" |
| 9775 * - "kmrbAll" | 9766 /// - "kmrbAll" |
| 9776 * - "kmrbR" | 9767 /// - "kmrbR" |
| 9777 * - "kmrbTeenr" | 9768 /// - "kmrbTeenr" |
| 9778 * - "kmrbUnrated" | 9769 /// - "kmrbUnrated" |
| 9779 */ | |
| 9780 core.String kmrbRating; | 9770 core.String kmrbRating; |
| 9781 /** | 9771 |
| 9782 * The video's rating from Indonesia's Lembaga Sensor Film. | 9772 /// The video's rating from Indonesia's Lembaga Sensor Film. |
| 9783 * Possible string values are: | 9773 /// Possible string values are: |
| 9784 * - "lsf13" | 9774 /// - "lsf13" |
| 9785 * - "lsf17" | 9775 /// - "lsf17" |
| 9786 * - "lsf21" | 9776 /// - "lsf21" |
| 9787 * - "lsfA" | 9777 /// - "lsfA" |
| 9788 * - "lsfBo" | 9778 /// - "lsfBo" |
| 9789 * - "lsfD" | 9779 /// - "lsfD" |
| 9790 * - "lsfR" | 9780 /// - "lsfR" |
| 9791 * - "lsfSu" | 9781 /// - "lsfSu" |
| 9792 * - "lsfUnrated" | 9782 /// - "lsfUnrated" |
| 9793 */ | |
| 9794 core.String lsfRating; | 9783 core.String lsfRating; |
| 9795 /** | 9784 |
| 9796 * The video's rating from Malta's Film Age-Classification Board. | 9785 /// The video's rating from Malta's Film Age-Classification Board. |
| 9797 * Possible string values are: | 9786 /// Possible string values are: |
| 9798 * - "mccaa12" | 9787 /// - "mccaa12" |
| 9799 * - "mccaa12a" | 9788 /// - "mccaa12a" |
| 9800 * - "mccaa14" | 9789 /// - "mccaa14" |
| 9801 * - "mccaa15" | 9790 /// - "mccaa15" |
| 9802 * - "mccaa16" | 9791 /// - "mccaa16" |
| 9803 * - "mccaa18" | 9792 /// - "mccaa18" |
| 9804 * - "mccaaPg" | 9793 /// - "mccaaPg" |
| 9805 * - "mccaaU" | 9794 /// - "mccaaU" |
| 9806 * - "mccaaUnrated" | 9795 /// - "mccaaUnrated" |
| 9807 */ | |
| 9808 core.String mccaaRating; | 9796 core.String mccaaRating; |
| 9809 /** | 9797 |
| 9810 * The video's rating from the Danish Film Institute's (Det Danske | 9798 /// The video's rating from the Danish Film Institute's (Det Danske |
| 9811 * Filminstitut) Media Council for Children and Young People. | 9799 /// Filminstitut) Media Council for Children and Young People. |
| 9812 * Possible string values are: | 9800 /// Possible string values are: |
| 9813 * - "mccyp11" | 9801 /// - "mccyp11" |
| 9814 * - "mccyp15" | 9802 /// - "mccyp15" |
| 9815 * - "mccyp7" | 9803 /// - "mccyp7" |
| 9816 * - "mccypA" | 9804 /// - "mccypA" |
| 9817 * - "mccypUnrated" | 9805 /// - "mccypUnrated" |
| 9818 */ | |
| 9819 core.String mccypRating; | 9806 core.String mccypRating; |
| 9820 /** | 9807 |
| 9821 * The video's rating system for Vietnam - MCST | 9808 /// The video's rating system for Vietnam - MCST |
| 9822 * Possible string values are: | 9809 /// Possible string values are: |
| 9823 * - "mcst0" | 9810 /// - "mcst0" |
| 9824 * - "mcst16plus" | 9811 /// - "mcst16plus" |
| 9825 * - "mcstC13" | 9812 /// - "mcstC13" |
| 9826 * - "mcstC16" | 9813 /// - "mcstC16" |
| 9827 * - "mcstC18" | 9814 /// - "mcstC18" |
| 9828 * - "mcstGPg" | 9815 /// - "mcstGPg" |
| 9829 * - "mcstP" | 9816 /// - "mcstP" |
| 9830 * - "mcstUnrated" | 9817 /// - "mcstUnrated" |
| 9831 */ | |
| 9832 core.String mcstRating; | 9818 core.String mcstRating; |
| 9833 /** | 9819 |
| 9834 * The video's rating from Singapore's Media Development Authority (MDA) and, | 9820 /// The video's rating from Singapore's Media Development Authority (MDA) |
| 9835 * specifically, it's Board of Film Censors (BFC). | 9821 /// and, specifically, it's Board of Film Censors (BFC). |
| 9836 * Possible string values are: | 9822 /// Possible string values are: |
| 9837 * - "mdaG" | 9823 /// - "mdaG" |
| 9838 * - "mdaM18" | 9824 /// - "mdaM18" |
| 9839 * - "mdaNc16" | 9825 /// - "mdaNc16" |
| 9840 * - "mdaPg" | 9826 /// - "mdaPg" |
| 9841 * - "mdaPg13" | 9827 /// - "mdaPg13" |
| 9842 * - "mdaR21" | 9828 /// - "mdaR21" |
| 9843 * - "mdaUnrated" | 9829 /// - "mdaUnrated" |
| 9844 */ | |
| 9845 core.String mdaRating; | 9830 core.String mdaRating; |
| 9846 /** | 9831 |
| 9847 * The video's rating from Medietilsynet, the Norwegian Media Authority. | 9832 /// The video's rating from Medietilsynet, the Norwegian Media Authority. |
| 9848 * Possible string values are: | 9833 /// Possible string values are: |
| 9849 * - "medietilsynet11" | 9834 /// - "medietilsynet11" |
| 9850 * - "medietilsynet12" | 9835 /// - "medietilsynet12" |
| 9851 * - "medietilsynet15" | 9836 /// - "medietilsynet15" |
| 9852 * - "medietilsynet18" | 9837 /// - "medietilsynet18" |
| 9853 * - "medietilsynet6" | 9838 /// - "medietilsynet6" |
| 9854 * - "medietilsynet7" | 9839 /// - "medietilsynet7" |
| 9855 * - "medietilsynet9" | 9840 /// - "medietilsynet9" |
| 9856 * - "medietilsynetA" | 9841 /// - "medietilsynetA" |
| 9857 * - "medietilsynetUnrated" | 9842 /// - "medietilsynetUnrated" |
| 9858 */ | |
| 9859 core.String medietilsynetRating; | 9843 core.String medietilsynetRating; |
| 9860 /** | 9844 |
| 9861 * The video's rating from Finland's Kansallinen Audiovisuaalinen Instituutti | 9845 /// The video's rating from Finland's Kansallinen Audiovisuaalinen |
| 9862 * (National Audiovisual Institute). | 9846 /// Instituutti (National Audiovisual Institute). |
| 9863 * Possible string values are: | 9847 /// Possible string values are: |
| 9864 * - "meku12" | 9848 /// - "meku12" |
| 9865 * - "meku16" | 9849 /// - "meku16" |
| 9866 * - "meku18" | 9850 /// - "meku18" |
| 9867 * - "meku7" | 9851 /// - "meku7" |
| 9868 * - "mekuS" | 9852 /// - "mekuS" |
| 9869 * - "mekuUnrated" | 9853 /// - "mekuUnrated" |
| 9870 */ | |
| 9871 core.String mekuRating; | 9854 core.String mekuRating; |
| 9872 /** | 9855 |
| 9873 * The video's rating from the Ministero dei Beni e delle Attività Culturali e | 9856 /// The video's rating from the Ministero dei Beni e delle Attività Culturali |
| 9874 * del Turismo (Italy). | 9857 /// e del Turismo (Italy). |
| 9875 * Possible string values are: | 9858 /// Possible string values are: |
| 9876 * - "mibacT" | 9859 /// - "mibacT" |
| 9877 * - "mibacUnrated" | 9860 /// - "mibacUnrated" |
| 9878 * - "mibacVap" | 9861 /// - "mibacVap" |
| 9879 * - "mibacVm12" | 9862 /// - "mibacVm12" |
| 9880 * - "mibacVm14" | 9863 /// - "mibacVm14" |
| 9881 * - "mibacVm18" | 9864 /// - "mibacVm18" |
| 9882 */ | |
| 9883 core.String mibacRating; | 9865 core.String mibacRating; |
| 9884 /** | 9866 |
| 9885 * The video's Ministerio de Cultura (Colombia) rating. | 9867 /// The video's Ministerio de Cultura (Colombia) rating. |
| 9886 * Possible string values are: | 9868 /// Possible string values are: |
| 9887 * - "moc12" | 9869 /// - "moc12" |
| 9888 * - "moc15" | 9870 /// - "moc15" |
| 9889 * - "moc18" | 9871 /// - "moc18" |
| 9890 * - "moc7" | 9872 /// - "moc7" |
| 9891 * - "mocBanned" | 9873 /// - "mocBanned" |
| 9892 * - "mocE" | 9874 /// - "mocE" |
| 9893 * - "mocT" | 9875 /// - "mocT" |
| 9894 * - "mocUnrated" | 9876 /// - "mocUnrated" |
| 9895 * - "mocX" | 9877 /// - "mocX" |
| 9896 */ | |
| 9897 core.String mocRating; | 9878 core.String mocRating; |
| 9898 /** | 9879 |
| 9899 * The video's rating from Taiwan's Ministry of Culture (文化部). | 9880 /// The video's rating from Taiwan's Ministry of Culture (文化部). |
| 9900 * Possible string values are: | 9881 /// Possible string values are: |
| 9901 * - "moctwG" | 9882 /// - "moctwG" |
| 9902 * - "moctwP" | 9883 /// - "moctwP" |
| 9903 * - "moctwPg" | 9884 /// - "moctwPg" |
| 9904 * - "moctwR" | 9885 /// - "moctwR" |
| 9905 * - "moctwR12" | 9886 /// - "moctwR12" |
| 9906 * - "moctwR15" | 9887 /// - "moctwR15" |
| 9907 * - "moctwUnrated" | 9888 /// - "moctwUnrated" |
| 9908 */ | |
| 9909 core.String moctwRating; | 9889 core.String moctwRating; |
| 9910 /** | 9890 |
| 9911 * The video's Motion Picture Association of America (MPAA) rating. | 9891 /// The video's Motion Picture Association of America (MPAA) rating. |
| 9912 * Possible string values are: | 9892 /// Possible string values are: |
| 9913 * - "mpaaG" | 9893 /// - "mpaaG" |
| 9914 * - "mpaaNc17" | 9894 /// - "mpaaNc17" |
| 9915 * - "mpaaPg" | 9895 /// - "mpaaPg" |
| 9916 * - "mpaaPg13" | 9896 /// - "mpaaPg13" |
| 9917 * - "mpaaR" | 9897 /// - "mpaaR" |
| 9918 * - "mpaaUnrated" | 9898 /// - "mpaaUnrated" |
| 9919 */ | |
| 9920 core.String mpaaRating; | 9899 core.String mpaaRating; |
| 9921 /** | 9900 |
| 9922 * The video's rating from the Movie and Television Review and Classification | 9901 /// The video's rating from the Movie and Television Review and |
| 9923 * Board (Philippines). | 9902 /// Classification Board (Philippines). |
| 9924 * Possible string values are: | 9903 /// Possible string values are: |
| 9925 * - "mtrcbG" | 9904 /// - "mtrcbG" |
| 9926 * - "mtrcbPg" | 9905 /// - "mtrcbPg" |
| 9927 * - "mtrcbR13" | 9906 /// - "mtrcbR13" |
| 9928 * - "mtrcbR16" | 9907 /// - "mtrcbR16" |
| 9929 * - "mtrcbR18" | 9908 /// - "mtrcbR18" |
| 9930 * - "mtrcbUnrated" | 9909 /// - "mtrcbUnrated" |
| 9931 * - "mtrcbX" | 9910 /// - "mtrcbX" |
| 9932 */ | |
| 9933 core.String mtrcbRating; | 9911 core.String mtrcbRating; |
| 9934 /** | 9912 |
| 9935 * The video's rating from the Maldives National Bureau of Classification. | 9913 /// The video's rating from the Maldives National Bureau of Classification. |
| 9936 * Possible string values are: | 9914 /// Possible string values are: |
| 9937 * - "nbc12plus" | 9915 /// - "nbc12plus" |
| 9938 * - "nbc15plus" | 9916 /// - "nbc15plus" |
| 9939 * - "nbc18plus" | 9917 /// - "nbc18plus" |
| 9940 * - "nbc18plusr" | 9918 /// - "nbc18plusr" |
| 9941 * - "nbcG" | 9919 /// - "nbcG" |
| 9942 * - "nbcPg" | 9920 /// - "nbcPg" |
| 9943 * - "nbcPu" | 9921 /// - "nbcPu" |
| 9944 * - "nbcUnrated" | 9922 /// - "nbcUnrated" |
| 9945 */ | |
| 9946 core.String nbcRating; | 9923 core.String nbcRating; |
| 9947 /** | 9924 |
| 9948 * The video's rating in Poland. | 9925 /// The video's rating in Poland. |
| 9949 * Possible string values are: | 9926 /// Possible string values are: |
| 9950 * - "nbcpl18plus" | 9927 /// - "nbcpl18plus" |
| 9951 * - "nbcplI" | 9928 /// - "nbcplI" |
| 9952 * - "nbcplIi" | 9929 /// - "nbcplIi" |
| 9953 * - "nbcplIii" | 9930 /// - "nbcplIii" |
| 9954 * - "nbcplIv" | 9931 /// - "nbcplIv" |
| 9955 * - "nbcplUnrated" | 9932 /// - "nbcplUnrated" |
| 9956 */ | |
| 9957 core.String nbcplRating; | 9933 core.String nbcplRating; |
| 9958 /** | 9934 |
| 9959 * The video's rating from the Bulgarian National Film Center. | 9935 /// The video's rating from the Bulgarian National Film Center. |
| 9960 * Possible string values are: | 9936 /// Possible string values are: |
| 9961 * - "nfrcA" | 9937 /// - "nfrcA" |
| 9962 * - "nfrcB" | 9938 /// - "nfrcB" |
| 9963 * - "nfrcC" | 9939 /// - "nfrcC" |
| 9964 * - "nfrcD" | 9940 /// - "nfrcD" |
| 9965 * - "nfrcUnrated" | 9941 /// - "nfrcUnrated" |
| 9966 * - "nfrcX" | 9942 /// - "nfrcX" |
| 9967 */ | |
| 9968 core.String nfrcRating; | 9943 core.String nfrcRating; |
| 9969 /** | 9944 |
| 9970 * The video's rating from Nigeria's National Film and Video Censors Board. | 9945 /// The video's rating from Nigeria's National Film and Video Censors Board. |
| 9971 * Possible string values are: | 9946 /// Possible string values are: |
| 9972 * - "nfvcb12" | 9947 /// - "nfvcb12" |
| 9973 * - "nfvcb12a" | 9948 /// - "nfvcb12a" |
| 9974 * - "nfvcb15" | 9949 /// - "nfvcb15" |
| 9975 * - "nfvcb18" | 9950 /// - "nfvcb18" |
| 9976 * - "nfvcbG" | 9951 /// - "nfvcbG" |
| 9977 * - "nfvcbPg" | 9952 /// - "nfvcbPg" |
| 9978 * - "nfvcbRe" | 9953 /// - "nfvcbRe" |
| 9979 * - "nfvcbUnrated" | 9954 /// - "nfvcbUnrated" |
| 9980 */ | |
| 9981 core.String nfvcbRating; | 9955 core.String nfvcbRating; |
| 9982 /** | 9956 |
| 9983 * The video's rating from the Nacionãlais Kino centrs (National Film Centre | 9957 /// The video's rating from the Nacionãlais Kino centrs (National Film Centre |
| 9984 * of Latvia). | 9958 /// of Latvia). |
| 9985 * Possible string values are: | 9959 /// Possible string values are: |
| 9986 * - "nkclv12plus" | 9960 /// - "nkclv12plus" |
| 9987 * - "nkclv18plus" | 9961 /// - "nkclv18plus" |
| 9988 * - "nkclv7plus" | 9962 /// - "nkclv7plus" |
| 9989 * - "nkclvU" | 9963 /// - "nkclvU" |
| 9990 * - "nkclvUnrated" | 9964 /// - "nkclvUnrated" |
| 9991 */ | |
| 9992 core.String nkclvRating; | 9965 core.String nkclvRating; |
| 9993 /** | 9966 |
| 9994 * The video's Office of Film and Literature Classification (OFLC - New | 9967 /// The video's Office of Film and Literature Classification (OFLC - New |
| 9995 * Zealand) rating. | 9968 /// Zealand) rating. |
| 9996 * Possible string values are: | 9969 /// Possible string values are: |
| 9997 * - "oflcG" | 9970 /// - "oflcG" |
| 9998 * - "oflcM" | 9971 /// - "oflcM" |
| 9999 * - "oflcPg" | 9972 /// - "oflcPg" |
| 10000 * - "oflcR13" | 9973 /// - "oflcR13" |
| 10001 * - "oflcR15" | 9974 /// - "oflcR15" |
| 10002 * - "oflcR16" | 9975 /// - "oflcR16" |
| 10003 * - "oflcR18" | 9976 /// - "oflcR18" |
| 10004 * - "oflcRp13" | 9977 /// - "oflcRp13" |
| 10005 * - "oflcRp16" | 9978 /// - "oflcRp16" |
| 10006 * - "oflcUnrated" | 9979 /// - "oflcUnrated" |
| 10007 */ | |
| 10008 core.String oflcRating; | 9980 core.String oflcRating; |
| 10009 /** | 9981 |
| 10010 * The video's rating in Peru. | 9982 /// The video's rating in Peru. |
| 10011 * Possible string values are: | 9983 /// Possible string values are: |
| 10012 * - "pefilm14" | 9984 /// - "pefilm14" |
| 10013 * - "pefilm18" | 9985 /// - "pefilm18" |
| 10014 * - "pefilmPg" | 9986 /// - "pefilmPg" |
| 10015 * - "pefilmPt" | 9987 /// - "pefilmPt" |
| 10016 * - "pefilmUnrated" | 9988 /// - "pefilmUnrated" |
| 10017 */ | |
| 10018 core.String pefilmRating; | 9989 core.String pefilmRating; |
| 10019 /** | 9990 |
| 10020 * The video's rating from the Hungarian Nemzeti Filmiroda, the Rating | 9991 /// The video's rating from the Hungarian Nemzeti Filmiroda, the Rating |
| 10021 * Committee of the National Office of Film. | 9992 /// Committee of the National Office of Film. |
| 10022 * Possible string values are: | 9993 /// Possible string values are: |
| 10023 * - "rcnofI" | 9994 /// - "rcnofI" |
| 10024 * - "rcnofIi" | 9995 /// - "rcnofIi" |
| 10025 * - "rcnofIii" | 9996 /// - "rcnofIii" |
| 10026 * - "rcnofIv" | 9997 /// - "rcnofIv" |
| 10027 * - "rcnofUnrated" | 9998 /// - "rcnofUnrated" |
| 10028 * - "rcnofV" | 9999 /// - "rcnofV" |
| 10029 * - "rcnofVi" | 10000 /// - "rcnofVi" |
| 10030 */ | |
| 10031 core.String rcnofRating; | 10001 core.String rcnofRating; |
| 10032 /** | 10002 |
| 10033 * The video's rating in Venezuela. | 10003 /// The video's rating in Venezuela. |
| 10034 * Possible string values are: | 10004 /// Possible string values are: |
| 10035 * - "resorteviolenciaA" | 10005 /// - "resorteviolenciaA" |
| 10036 * - "resorteviolenciaB" | 10006 /// - "resorteviolenciaB" |
| 10037 * - "resorteviolenciaC" | 10007 /// - "resorteviolenciaC" |
| 10038 * - "resorteviolenciaD" | 10008 /// - "resorteviolenciaD" |
| 10039 * - "resorteviolenciaE" | 10009 /// - "resorteviolenciaE" |
| 10040 * - "resorteviolenciaUnrated" | 10010 /// - "resorteviolenciaUnrated" |
| 10041 */ | |
| 10042 core.String resorteviolenciaRating; | 10011 core.String resorteviolenciaRating; |
| 10043 /** | 10012 |
| 10044 * The video's General Directorate of Radio, Television and Cinematography | 10013 /// The video's General Directorate of Radio, Television and Cinematography |
| 10045 * (Mexico) rating. | 10014 /// (Mexico) rating. |
| 10046 * Possible string values are: | 10015 /// Possible string values are: |
| 10047 * - "rtcA" | 10016 /// - "rtcA" |
| 10048 * - "rtcAa" | 10017 /// - "rtcAa" |
| 10049 * - "rtcB" | 10018 /// - "rtcB" |
| 10050 * - "rtcB15" | 10019 /// - "rtcB15" |
| 10051 * - "rtcC" | 10020 /// - "rtcC" |
| 10052 * - "rtcD" | 10021 /// - "rtcD" |
| 10053 * - "rtcUnrated" | 10022 /// - "rtcUnrated" |
| 10054 */ | |
| 10055 core.String rtcRating; | 10023 core.String rtcRating; |
| 10056 /** | 10024 |
| 10057 * The video's rating from Ireland's Raidió Teilifís Éireann. | 10025 /// The video's rating from Ireland's Raidió Teilifís Éireann. |
| 10058 * Possible string values are: | 10026 /// Possible string values are: |
| 10059 * - "rteCh" | 10027 /// - "rteCh" |
| 10060 * - "rteGa" | 10028 /// - "rteGa" |
| 10061 * - "rteMa" | 10029 /// - "rteMa" |
| 10062 * - "rtePs" | 10030 /// - "rtePs" |
| 10063 * - "rteUnrated" | 10031 /// - "rteUnrated" |
| 10064 */ | |
| 10065 core.String rteRating; | 10032 core.String rteRating; |
| 10066 /** | 10033 |
| 10067 * The video's National Film Registry of the Russian Federation (MKRF - | 10034 /// The video's National Film Registry of the Russian Federation (MKRF - |
| 10068 * Russia) rating. | 10035 /// Russia) rating. |
| 10069 * Possible string values are: | 10036 /// Possible string values are: |
| 10070 * - "russia0" | 10037 /// - "russia0" |
| 10071 * - "russia12" | 10038 /// - "russia12" |
| 10072 * - "russia16" | 10039 /// - "russia16" |
| 10073 * - "russia18" | 10040 /// - "russia18" |
| 10074 * - "russia6" | 10041 /// - "russia6" |
| 10075 * - "russiaUnrated" | 10042 /// - "russiaUnrated" |
| 10076 */ | |
| 10077 core.String russiaRating; | 10043 core.String russiaRating; |
| 10078 /** | 10044 |
| 10079 * The video's rating in Slovakia. | 10045 /// The video's rating in Slovakia. |
| 10080 * Possible string values are: | 10046 /// Possible string values are: |
| 10081 * - "skfilmG" | 10047 /// - "skfilmG" |
| 10082 * - "skfilmP2" | 10048 /// - "skfilmP2" |
| 10083 * - "skfilmP5" | 10049 /// - "skfilmP5" |
| 10084 * - "skfilmP8" | 10050 /// - "skfilmP8" |
| 10085 * - "skfilmUnrated" | 10051 /// - "skfilmUnrated" |
| 10086 */ | |
| 10087 core.String skfilmRating; | 10052 core.String skfilmRating; |
| 10088 /** | 10053 |
| 10089 * The video's rating in Iceland. | 10054 /// The video's rating in Iceland. |
| 10090 * Possible string values are: | 10055 /// Possible string values are: |
| 10091 * - "smais12" | 10056 /// - "smais12" |
| 10092 * - "smais14" | 10057 /// - "smais14" |
| 10093 * - "smais16" | 10058 /// - "smais16" |
| 10094 * - "smais18" | 10059 /// - "smais18" |
| 10095 * - "smais7" | 10060 /// - "smais7" |
| 10096 * - "smaisL" | 10061 /// - "smaisL" |
| 10097 * - "smaisUnrated" | 10062 /// - "smaisUnrated" |
| 10098 */ | |
| 10099 core.String smaisRating; | 10063 core.String smaisRating; |
| 10100 /** | 10064 |
| 10101 * The video's rating from Statens medieråd (Sweden's National Media Council). | 10065 /// The video's rating from Statens medieråd (Sweden's National Media |
| 10102 * Possible string values are: | 10066 /// Council). |
| 10103 * - "smsa11" | 10067 /// Possible string values are: |
| 10104 * - "smsa15" | 10068 /// - "smsa11" |
| 10105 * - "smsa7" | 10069 /// - "smsa15" |
| 10106 * - "smsaA" | 10070 /// - "smsa7" |
| 10107 * - "smsaUnrated" | 10071 /// - "smsaA" |
| 10108 */ | 10072 /// - "smsaUnrated" |
| 10109 core.String smsaRating; | 10073 core.String smsaRating; |
| 10110 /** | 10074 |
| 10111 * The video's TV Parental Guidelines (TVPG) rating. | 10075 /// The video's TV Parental Guidelines (TVPG) rating. |
| 10112 * Possible string values are: | 10076 /// Possible string values are: |
| 10113 * - "pg14" | 10077 /// - "pg14" |
| 10114 * - "tvpgG" | 10078 /// - "tvpgG" |
| 10115 * - "tvpgMa" | 10079 /// - "tvpgMa" |
| 10116 * - "tvpgPg" | 10080 /// - "tvpgPg" |
| 10117 * - "tvpgUnrated" | 10081 /// - "tvpgUnrated" |
| 10118 * - "tvpgY" | 10082 /// - "tvpgY" |
| 10119 * - "tvpgY7" | 10083 /// - "tvpgY7" |
| 10120 * - "tvpgY7Fv" | 10084 /// - "tvpgY7Fv" |
| 10121 */ | |
| 10122 core.String tvpgRating; | 10085 core.String tvpgRating; |
| 10123 /** | 10086 |
| 10124 * A rating that YouTube uses to identify age-restricted content. | 10087 /// A rating that YouTube uses to identify age-restricted content. |
| 10125 * Possible string values are: | 10088 /// Possible string values are: |
| 10126 * - "ytAgeRestricted" | 10089 /// - "ytAgeRestricted" |
| 10127 */ | |
| 10128 core.String ytRating; | 10090 core.String ytRating; |
| 10129 | 10091 |
| 10130 ContentRating(); | 10092 ContentRating(); |
| 10131 | 10093 |
| 10132 ContentRating.fromJson(core.Map _json) { | 10094 ContentRating.fromJson(core.Map _json) { |
| 10133 if (_json.containsKey("acbRating")) { | 10095 if (_json.containsKey("acbRating")) { |
| 10134 acbRating = _json["acbRating"]; | 10096 acbRating = _json["acbRating"]; |
| 10135 } | 10097 } |
| 10136 if (_json.containsKey("agcomRating")) { | 10098 if (_json.containsKey("agcomRating")) { |
| 10137 agcomRating = _json["agcomRating"]; | 10099 agcomRating = _json["agcomRating"]; |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10330 } | 10292 } |
| 10331 if (_json.containsKey("tvpgRating")) { | 10293 if (_json.containsKey("tvpgRating")) { |
| 10332 tvpgRating = _json["tvpgRating"]; | 10294 tvpgRating = _json["tvpgRating"]; |
| 10333 } | 10295 } |
| 10334 if (_json.containsKey("ytRating")) { | 10296 if (_json.containsKey("ytRating")) { |
| 10335 ytRating = _json["ytRating"]; | 10297 ytRating = _json["ytRating"]; |
| 10336 } | 10298 } |
| 10337 } | 10299 } |
| 10338 | 10300 |
| 10339 core.Map<core.String, core.Object> toJson() { | 10301 core.Map<core.String, core.Object> toJson() { |
| 10340 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10302 final core.Map<core.String, core.Object> _json = |
| 10303 new core.Map<core.String, core.Object>(); |
| 10341 if (acbRating != null) { | 10304 if (acbRating != null) { |
| 10342 _json["acbRating"] = acbRating; | 10305 _json["acbRating"] = acbRating; |
| 10343 } | 10306 } |
| 10344 if (agcomRating != null) { | 10307 if (agcomRating != null) { |
| 10345 _json["agcomRating"] = agcomRating; | 10308 _json["agcomRating"] = agcomRating; |
| 10346 } | 10309 } |
| 10347 if (anatelRating != null) { | 10310 if (anatelRating != null) { |
| 10348 _json["anatelRating"] = anatelRating; | 10311 _json["anatelRating"] = anatelRating; |
| 10349 } | 10312 } |
| 10350 if (bbfcRating != null) { | 10313 if (bbfcRating != null) { |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10539 if (tvpgRating != null) { | 10502 if (tvpgRating != null) { |
| 10540 _json["tvpgRating"] = tvpgRating; | 10503 _json["tvpgRating"] = tvpgRating; |
| 10541 } | 10504 } |
| 10542 if (ytRating != null) { | 10505 if (ytRating != null) { |
| 10543 _json["ytRating"] = ytRating; | 10506 _json["ytRating"] = ytRating; |
| 10544 } | 10507 } |
| 10545 return _json; | 10508 return _json; |
| 10546 } | 10509 } |
| 10547 } | 10510 } |
| 10548 | 10511 |
| 10549 /** | 10512 /// A fanFundingEvent resource represents a fan funding event on a YouTube |
| 10550 * A fanFundingEvent resource represents a fan funding event on a YouTube | 10513 /// channel. Fan funding events occur when a user gives one-time monetary |
| 10551 * channel. Fan funding events occur when a user gives one-time monetary support | 10514 /// support to the channel owner. |
| 10552 * to the channel owner. | |
| 10553 */ | |
| 10554 class FanFundingEvent { | 10515 class FanFundingEvent { |
| 10555 /** Etag of this resource. */ | 10516 /// Etag of this resource. |
| 10556 core.String etag; | 10517 core.String etag; |
| 10557 /** | 10518 |
| 10558 * The ID that YouTube assigns to uniquely identify the fan funding event. | 10519 /// The ID that YouTube assigns to uniquely identify the fan funding event. |
| 10559 */ | |
| 10560 core.String id; | 10520 core.String id; |
| 10561 /** | 10521 |
| 10562 * Identifies what kind of resource this is. Value: the fixed string | 10522 /// Identifies what kind of resource this is. Value: the fixed string |
| 10563 * "youtube#fanFundingEvent". | 10523 /// "youtube#fanFundingEvent". |
| 10564 */ | |
| 10565 core.String kind; | 10524 core.String kind; |
| 10566 /** The snippet object contains basic details about the fan funding event. */ | 10525 |
| 10526 /// The snippet object contains basic details about the fan funding event. |
| 10567 FanFundingEventSnippet snippet; | 10527 FanFundingEventSnippet snippet; |
| 10568 | 10528 |
| 10569 FanFundingEvent(); | 10529 FanFundingEvent(); |
| 10570 | 10530 |
| 10571 FanFundingEvent.fromJson(core.Map _json) { | 10531 FanFundingEvent.fromJson(core.Map _json) { |
| 10572 if (_json.containsKey("etag")) { | 10532 if (_json.containsKey("etag")) { |
| 10573 etag = _json["etag"]; | 10533 etag = _json["etag"]; |
| 10574 } | 10534 } |
| 10575 if (_json.containsKey("id")) { | 10535 if (_json.containsKey("id")) { |
| 10576 id = _json["id"]; | 10536 id = _json["id"]; |
| 10577 } | 10537 } |
| 10578 if (_json.containsKey("kind")) { | 10538 if (_json.containsKey("kind")) { |
| 10579 kind = _json["kind"]; | 10539 kind = _json["kind"]; |
| 10580 } | 10540 } |
| 10581 if (_json.containsKey("snippet")) { | 10541 if (_json.containsKey("snippet")) { |
| 10582 snippet = new FanFundingEventSnippet.fromJson(_json["snippet"]); | 10542 snippet = new FanFundingEventSnippet.fromJson(_json["snippet"]); |
| 10583 } | 10543 } |
| 10584 } | 10544 } |
| 10585 | 10545 |
| 10586 core.Map<core.String, core.Object> toJson() { | 10546 core.Map<core.String, core.Object> toJson() { |
| 10587 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10547 final core.Map<core.String, core.Object> _json = |
| 10548 new core.Map<core.String, core.Object>(); |
| 10588 if (etag != null) { | 10549 if (etag != null) { |
| 10589 _json["etag"] = etag; | 10550 _json["etag"] = etag; |
| 10590 } | 10551 } |
| 10591 if (id != null) { | 10552 if (id != null) { |
| 10592 _json["id"] = id; | 10553 _json["id"] = id; |
| 10593 } | 10554 } |
| 10594 if (kind != null) { | 10555 if (kind != null) { |
| 10595 _json["kind"] = kind; | 10556 _json["kind"] = kind; |
| 10596 } | 10557 } |
| 10597 if (snippet != null) { | 10558 if (snippet != null) { |
| 10598 _json["snippet"] = (snippet).toJson(); | 10559 _json["snippet"] = (snippet).toJson(); |
| 10599 } | 10560 } |
| 10600 return _json; | 10561 return _json; |
| 10601 } | 10562 } |
| 10602 } | 10563 } |
| 10603 | 10564 |
| 10604 class FanFundingEventListResponse { | 10565 class FanFundingEventListResponse { |
| 10605 /** Etag of this resource. */ | 10566 /// Etag of this resource. |
| 10606 core.String etag; | 10567 core.String etag; |
| 10607 /** Serialized EventId of the request which produced this response. */ | 10568 |
| 10569 /// Serialized EventId of the request which produced this response. |
| 10608 core.String eventId; | 10570 core.String eventId; |
| 10609 /** A list of fan funding events that match the request criteria. */ | 10571 |
| 10572 /// A list of fan funding events that match the request criteria. |
| 10610 core.List<FanFundingEvent> items; | 10573 core.List<FanFundingEvent> items; |
| 10611 /** | 10574 |
| 10612 * Identifies what kind of resource this is. Value: the fixed string | 10575 /// Identifies what kind of resource this is. Value: the fixed string |
| 10613 * "youtube#fanFundingEventListResponse". | 10576 /// "youtube#fanFundingEventListResponse". |
| 10614 */ | |
| 10615 core.String kind; | 10577 core.String kind; |
| 10616 /** | 10578 |
| 10617 * The token that can be used as the value of the pageToken parameter to | 10579 /// The token that can be used as the value of the pageToken parameter to |
| 10618 * retrieve the next page in the result set. | 10580 /// retrieve the next page in the result set. |
| 10619 */ | |
| 10620 core.String nextPageToken; | 10581 core.String nextPageToken; |
| 10621 PageInfo pageInfo; | 10582 PageInfo pageInfo; |
| 10622 TokenPagination tokenPagination; | 10583 TokenPagination tokenPagination; |
| 10623 /** The visitorId identifies the visitor. */ | 10584 |
| 10585 /// The visitorId identifies the visitor. |
| 10624 core.String visitorId; | 10586 core.String visitorId; |
| 10625 | 10587 |
| 10626 FanFundingEventListResponse(); | 10588 FanFundingEventListResponse(); |
| 10627 | 10589 |
| 10628 FanFundingEventListResponse.fromJson(core.Map _json) { | 10590 FanFundingEventListResponse.fromJson(core.Map _json) { |
| 10629 if (_json.containsKey("etag")) { | 10591 if (_json.containsKey("etag")) { |
| 10630 etag = _json["etag"]; | 10592 etag = _json["etag"]; |
| 10631 } | 10593 } |
| 10632 if (_json.containsKey("eventId")) { | 10594 if (_json.containsKey("eventId")) { |
| 10633 eventId = _json["eventId"]; | 10595 eventId = _json["eventId"]; |
| 10634 } | 10596 } |
| 10635 if (_json.containsKey("items")) { | 10597 if (_json.containsKey("items")) { |
| 10636 items = _json["items"].map((value) => new FanFundingEvent.fromJson(value))
.toList(); | 10598 items = _json["items"] |
| 10599 .map((value) => new FanFundingEvent.fromJson(value)) |
| 10600 .toList(); |
| 10637 } | 10601 } |
| 10638 if (_json.containsKey("kind")) { | 10602 if (_json.containsKey("kind")) { |
| 10639 kind = _json["kind"]; | 10603 kind = _json["kind"]; |
| 10640 } | 10604 } |
| 10641 if (_json.containsKey("nextPageToken")) { | 10605 if (_json.containsKey("nextPageToken")) { |
| 10642 nextPageToken = _json["nextPageToken"]; | 10606 nextPageToken = _json["nextPageToken"]; |
| 10643 } | 10607 } |
| 10644 if (_json.containsKey("pageInfo")) { | 10608 if (_json.containsKey("pageInfo")) { |
| 10645 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 10609 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 10646 } | 10610 } |
| 10647 if (_json.containsKey("tokenPagination")) { | 10611 if (_json.containsKey("tokenPagination")) { |
| 10648 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 10612 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 10649 } | 10613 } |
| 10650 if (_json.containsKey("visitorId")) { | 10614 if (_json.containsKey("visitorId")) { |
| 10651 visitorId = _json["visitorId"]; | 10615 visitorId = _json["visitorId"]; |
| 10652 } | 10616 } |
| 10653 } | 10617 } |
| 10654 | 10618 |
| 10655 core.Map<core.String, core.Object> toJson() { | 10619 core.Map<core.String, core.Object> toJson() { |
| 10656 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10620 final core.Map<core.String, core.Object> _json = |
| 10621 new core.Map<core.String, core.Object>(); |
| 10657 if (etag != null) { | 10622 if (etag != null) { |
| 10658 _json["etag"] = etag; | 10623 _json["etag"] = etag; |
| 10659 } | 10624 } |
| 10660 if (eventId != null) { | 10625 if (eventId != null) { |
| 10661 _json["eventId"] = eventId; | 10626 _json["eventId"] = eventId; |
| 10662 } | 10627 } |
| 10663 if (items != null) { | 10628 if (items != null) { |
| 10664 _json["items"] = items.map((value) => (value).toJson()).toList(); | 10629 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 10665 } | 10630 } |
| 10666 if (kind != null) { | 10631 if (kind != null) { |
| 10667 _json["kind"] = kind; | 10632 _json["kind"] = kind; |
| 10668 } | 10633 } |
| 10669 if (nextPageToken != null) { | 10634 if (nextPageToken != null) { |
| 10670 _json["nextPageToken"] = nextPageToken; | 10635 _json["nextPageToken"] = nextPageToken; |
| 10671 } | 10636 } |
| 10672 if (pageInfo != null) { | 10637 if (pageInfo != null) { |
| 10673 _json["pageInfo"] = (pageInfo).toJson(); | 10638 _json["pageInfo"] = (pageInfo).toJson(); |
| 10674 } | 10639 } |
| 10675 if (tokenPagination != null) { | 10640 if (tokenPagination != null) { |
| 10676 _json["tokenPagination"] = (tokenPagination).toJson(); | 10641 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 10677 } | 10642 } |
| 10678 if (visitorId != null) { | 10643 if (visitorId != null) { |
| 10679 _json["visitorId"] = visitorId; | 10644 _json["visitorId"] = visitorId; |
| 10680 } | 10645 } |
| 10681 return _json; | 10646 return _json; |
| 10682 } | 10647 } |
| 10683 } | 10648 } |
| 10684 | 10649 |
| 10685 class FanFundingEventSnippet { | 10650 class FanFundingEventSnippet { |
| 10686 /** | 10651 /// The amount of funding in micros of fund_currency. e.g., 1 is represented |
| 10687 * The amount of funding in micros of fund_currency. e.g., 1 is represented | |
| 10688 */ | |
| 10689 core.String amountMicros; | 10652 core.String amountMicros; |
| 10690 /** Channel id where the funding event occurred. */ | 10653 |
| 10654 /// Channel id where the funding event occurred. |
| 10691 core.String channelId; | 10655 core.String channelId; |
| 10692 /** The text contents of the comment left by the user. */ | 10656 |
| 10657 /// The text contents of the comment left by the user. |
| 10693 core.String commentText; | 10658 core.String commentText; |
| 10694 /** | 10659 |
| 10695 * The date and time when the funding occurred. The value is specified in ISO | 10660 /// The date and time when the funding occurred. The value is specified in |
| 10696 * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 10661 /// ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 10697 */ | |
| 10698 core.DateTime createdAt; | 10662 core.DateTime createdAt; |
| 10699 /** The currency in which the fund was made. ISO 4217. */ | 10663 |
| 10664 /// The currency in which the fund was made. ISO 4217. |
| 10700 core.String currency; | 10665 core.String currency; |
| 10701 /** | 10666 |
| 10702 * A rendered string that displays the fund amount and currency (e.g., | 10667 /// A rendered string that displays the fund amount and currency (e.g., |
| 10703 * "$1.00"). The string is rendered for the given language. | 10668 /// "$1.00"). The string is rendered for the given language. |
| 10704 */ | |
| 10705 core.String displayString; | 10669 core.String displayString; |
| 10706 /** | 10670 |
| 10707 * Details about the supporter. Only filled if the event was made public by | 10671 /// Details about the supporter. Only filled if the event was made public by |
| 10708 * the user. | 10672 /// the user. |
| 10709 */ | |
| 10710 ChannelProfileDetails supporterDetails; | 10673 ChannelProfileDetails supporterDetails; |
| 10711 | 10674 |
| 10712 FanFundingEventSnippet(); | 10675 FanFundingEventSnippet(); |
| 10713 | 10676 |
| 10714 FanFundingEventSnippet.fromJson(core.Map _json) { | 10677 FanFundingEventSnippet.fromJson(core.Map _json) { |
| 10715 if (_json.containsKey("amountMicros")) { | 10678 if (_json.containsKey("amountMicros")) { |
| 10716 amountMicros = _json["amountMicros"]; | 10679 amountMicros = _json["amountMicros"]; |
| 10717 } | 10680 } |
| 10718 if (_json.containsKey("channelId")) { | 10681 if (_json.containsKey("channelId")) { |
| 10719 channelId = _json["channelId"]; | 10682 channelId = _json["channelId"]; |
| 10720 } | 10683 } |
| 10721 if (_json.containsKey("commentText")) { | 10684 if (_json.containsKey("commentText")) { |
| 10722 commentText = _json["commentText"]; | 10685 commentText = _json["commentText"]; |
| 10723 } | 10686 } |
| 10724 if (_json.containsKey("createdAt")) { | 10687 if (_json.containsKey("createdAt")) { |
| 10725 createdAt = core.DateTime.parse(_json["createdAt"]); | 10688 createdAt = core.DateTime.parse(_json["createdAt"]); |
| 10726 } | 10689 } |
| 10727 if (_json.containsKey("currency")) { | 10690 if (_json.containsKey("currency")) { |
| 10728 currency = _json["currency"]; | 10691 currency = _json["currency"]; |
| 10729 } | 10692 } |
| 10730 if (_json.containsKey("displayString")) { | 10693 if (_json.containsKey("displayString")) { |
| 10731 displayString = _json["displayString"]; | 10694 displayString = _json["displayString"]; |
| 10732 } | 10695 } |
| 10733 if (_json.containsKey("supporterDetails")) { | 10696 if (_json.containsKey("supporterDetails")) { |
| 10734 supporterDetails = new ChannelProfileDetails.fromJson(_json["supporterDeta
ils"]); | 10697 supporterDetails = |
| 10698 new ChannelProfileDetails.fromJson(_json["supporterDetails"]); |
| 10735 } | 10699 } |
| 10736 } | 10700 } |
| 10737 | 10701 |
| 10738 core.Map<core.String, core.Object> toJson() { | 10702 core.Map<core.String, core.Object> toJson() { |
| 10739 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10703 final core.Map<core.String, core.Object> _json = |
| 10704 new core.Map<core.String, core.Object>(); |
| 10740 if (amountMicros != null) { | 10705 if (amountMicros != null) { |
| 10741 _json["amountMicros"] = amountMicros; | 10706 _json["amountMicros"] = amountMicros; |
| 10742 } | 10707 } |
| 10743 if (channelId != null) { | 10708 if (channelId != null) { |
| 10744 _json["channelId"] = channelId; | 10709 _json["channelId"] = channelId; |
| 10745 } | 10710 } |
| 10746 if (commentText != null) { | 10711 if (commentText != null) { |
| 10747 _json["commentText"] = commentText; | 10712 _json["commentText"] = commentText; |
| 10748 } | 10713 } |
| 10749 if (createdAt != null) { | 10714 if (createdAt != null) { |
| 10750 _json["createdAt"] = (createdAt).toIso8601String(); | 10715 _json["createdAt"] = (createdAt).toIso8601String(); |
| 10751 } | 10716 } |
| 10752 if (currency != null) { | 10717 if (currency != null) { |
| 10753 _json["currency"] = currency; | 10718 _json["currency"] = currency; |
| 10754 } | 10719 } |
| 10755 if (displayString != null) { | 10720 if (displayString != null) { |
| 10756 _json["displayString"] = displayString; | 10721 _json["displayString"] = displayString; |
| 10757 } | 10722 } |
| 10758 if (supporterDetails != null) { | 10723 if (supporterDetails != null) { |
| 10759 _json["supporterDetails"] = (supporterDetails).toJson(); | 10724 _json["supporterDetails"] = (supporterDetails).toJson(); |
| 10760 } | 10725 } |
| 10761 return _json; | 10726 return _json; |
| 10762 } | 10727 } |
| 10763 } | 10728 } |
| 10764 | 10729 |
| 10765 /** Geographical coordinates of a point, in WGS84. */ | 10730 /// Geographical coordinates of a point, in WGS84. |
| 10766 class GeoPoint { | 10731 class GeoPoint { |
| 10767 /** Altitude above the reference ellipsoid, in meters. */ | 10732 /// Altitude above the reference ellipsoid, in meters. |
| 10768 core.double altitude; | 10733 core.double altitude; |
| 10769 /** Latitude in degrees. */ | 10734 |
| 10735 /// Latitude in degrees. |
| 10770 core.double latitude; | 10736 core.double latitude; |
| 10771 /** Longitude in degrees. */ | 10737 |
| 10738 /// Longitude in degrees. |
| 10772 core.double longitude; | 10739 core.double longitude; |
| 10773 | 10740 |
| 10774 GeoPoint(); | 10741 GeoPoint(); |
| 10775 | 10742 |
| 10776 GeoPoint.fromJson(core.Map _json) { | 10743 GeoPoint.fromJson(core.Map _json) { |
| 10777 if (_json.containsKey("altitude")) { | 10744 if (_json.containsKey("altitude")) { |
| 10778 altitude = _json["altitude"]; | 10745 altitude = _json["altitude"]; |
| 10779 } | 10746 } |
| 10780 if (_json.containsKey("latitude")) { | 10747 if (_json.containsKey("latitude")) { |
| 10781 latitude = _json["latitude"]; | 10748 latitude = _json["latitude"]; |
| 10782 } | 10749 } |
| 10783 if (_json.containsKey("longitude")) { | 10750 if (_json.containsKey("longitude")) { |
| 10784 longitude = _json["longitude"]; | 10751 longitude = _json["longitude"]; |
| 10785 } | 10752 } |
| 10786 } | 10753 } |
| 10787 | 10754 |
| 10788 core.Map<core.String, core.Object> toJson() { | 10755 core.Map<core.String, core.Object> toJson() { |
| 10789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10756 final core.Map<core.String, core.Object> _json = |
| 10757 new core.Map<core.String, core.Object>(); |
| 10790 if (altitude != null) { | 10758 if (altitude != null) { |
| 10791 _json["altitude"] = altitude; | 10759 _json["altitude"] = altitude; |
| 10792 } | 10760 } |
| 10793 if (latitude != null) { | 10761 if (latitude != null) { |
| 10794 _json["latitude"] = latitude; | 10762 _json["latitude"] = latitude; |
| 10795 } | 10763 } |
| 10796 if (longitude != null) { | 10764 if (longitude != null) { |
| 10797 _json["longitude"] = longitude; | 10765 _json["longitude"] = longitude; |
| 10798 } | 10766 } |
| 10799 return _json; | 10767 return _json; |
| 10800 } | 10768 } |
| 10801 } | 10769 } |
| 10802 | 10770 |
| 10803 /** | 10771 /// A guideCategory resource identifies a category that YouTube algorithmically |
| 10804 * A guideCategory resource identifies a category that YouTube algorithmically | 10772 /// assigns based on a channel's content or other indicators, such as the |
| 10805 * assigns based on a channel's content or other indicators, such as the | 10773 /// channel's popularity. The list is similar to video categories, with the |
| 10806 * channel's popularity. The list is similar to video categories, with the | 10774 /// difference being that a video's uploader can assign a video category but |
| 10807 * difference being that a video's uploader can assign a video category but only | 10775 /// only YouTube can assign a channel category. |
| 10808 * YouTube can assign a channel category. | |
| 10809 */ | |
| 10810 class GuideCategory { | 10776 class GuideCategory { |
| 10811 /** Etag of this resource. */ | 10777 /// Etag of this resource. |
| 10812 core.String etag; | 10778 core.String etag; |
| 10813 /** The ID that YouTube uses to uniquely identify the guide category. */ | 10779 |
| 10780 /// The ID that YouTube uses to uniquely identify the guide category. |
| 10814 core.String id; | 10781 core.String id; |
| 10815 /** | 10782 |
| 10816 * Identifies what kind of resource this is. Value: the fixed string | 10783 /// Identifies what kind of resource this is. Value: the fixed string |
| 10817 * "youtube#guideCategory". | 10784 /// "youtube#guideCategory". |
| 10818 */ | |
| 10819 core.String kind; | 10785 core.String kind; |
| 10820 /** | 10786 |
| 10821 * The snippet object contains basic details about the category, such as its | 10787 /// The snippet object contains basic details about the category, such as its |
| 10822 * title. | 10788 /// title. |
| 10823 */ | |
| 10824 GuideCategorySnippet snippet; | 10789 GuideCategorySnippet snippet; |
| 10825 | 10790 |
| 10826 GuideCategory(); | 10791 GuideCategory(); |
| 10827 | 10792 |
| 10828 GuideCategory.fromJson(core.Map _json) { | 10793 GuideCategory.fromJson(core.Map _json) { |
| 10829 if (_json.containsKey("etag")) { | 10794 if (_json.containsKey("etag")) { |
| 10830 etag = _json["etag"]; | 10795 etag = _json["etag"]; |
| 10831 } | 10796 } |
| 10832 if (_json.containsKey("id")) { | 10797 if (_json.containsKey("id")) { |
| 10833 id = _json["id"]; | 10798 id = _json["id"]; |
| 10834 } | 10799 } |
| 10835 if (_json.containsKey("kind")) { | 10800 if (_json.containsKey("kind")) { |
| 10836 kind = _json["kind"]; | 10801 kind = _json["kind"]; |
| 10837 } | 10802 } |
| 10838 if (_json.containsKey("snippet")) { | 10803 if (_json.containsKey("snippet")) { |
| 10839 snippet = new GuideCategorySnippet.fromJson(_json["snippet"]); | 10804 snippet = new GuideCategorySnippet.fromJson(_json["snippet"]); |
| 10840 } | 10805 } |
| 10841 } | 10806 } |
| 10842 | 10807 |
| 10843 core.Map<core.String, core.Object> toJson() { | 10808 core.Map<core.String, core.Object> toJson() { |
| 10844 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10809 final core.Map<core.String, core.Object> _json = |
| 10810 new core.Map<core.String, core.Object>(); |
| 10845 if (etag != null) { | 10811 if (etag != null) { |
| 10846 _json["etag"] = etag; | 10812 _json["etag"] = etag; |
| 10847 } | 10813 } |
| 10848 if (id != null) { | 10814 if (id != null) { |
| 10849 _json["id"] = id; | 10815 _json["id"] = id; |
| 10850 } | 10816 } |
| 10851 if (kind != null) { | 10817 if (kind != null) { |
| 10852 _json["kind"] = kind; | 10818 _json["kind"] = kind; |
| 10853 } | 10819 } |
| 10854 if (snippet != null) { | 10820 if (snippet != null) { |
| 10855 _json["snippet"] = (snippet).toJson(); | 10821 _json["snippet"] = (snippet).toJson(); |
| 10856 } | 10822 } |
| 10857 return _json; | 10823 return _json; |
| 10858 } | 10824 } |
| 10859 } | 10825 } |
| 10860 | 10826 |
| 10861 class GuideCategoryListResponse { | 10827 class GuideCategoryListResponse { |
| 10862 /** Etag of this resource. */ | 10828 /// Etag of this resource. |
| 10863 core.String etag; | 10829 core.String etag; |
| 10864 /** Serialized EventId of the request which produced this response. */ | 10830 |
| 10831 /// Serialized EventId of the request which produced this response. |
| 10865 core.String eventId; | 10832 core.String eventId; |
| 10866 /** | 10833 |
| 10867 * A list of categories that can be associated with YouTube channels. In this | 10834 /// A list of categories that can be associated with YouTube channels. In |
| 10868 * map, the category ID is the map key, and its value is the corresponding | 10835 /// this map, the category ID is the map key, and its value is the |
| 10869 * guideCategory resource. | 10836 /// corresponding guideCategory resource. |
| 10870 */ | |
| 10871 core.List<GuideCategory> items; | 10837 core.List<GuideCategory> items; |
| 10872 /** | 10838 |
| 10873 * Identifies what kind of resource this is. Value: the fixed string | 10839 /// Identifies what kind of resource this is. Value: the fixed string |
| 10874 * "youtube#guideCategoryListResponse". | 10840 /// "youtube#guideCategoryListResponse". |
| 10875 */ | |
| 10876 core.String kind; | 10841 core.String kind; |
| 10877 /** | 10842 |
| 10878 * The token that can be used as the value of the pageToken parameter to | 10843 /// The token that can be used as the value of the pageToken parameter to |
| 10879 * retrieve the next page in the result set. | 10844 /// retrieve the next page in the result set. |
| 10880 */ | |
| 10881 core.String nextPageToken; | 10845 core.String nextPageToken; |
| 10882 PageInfo pageInfo; | 10846 PageInfo pageInfo; |
| 10883 /** | 10847 |
| 10884 * The token that can be used as the value of the pageToken parameter to | 10848 /// The token that can be used as the value of the pageToken parameter to |
| 10885 * retrieve the previous page in the result set. | 10849 /// retrieve the previous page in the result set. |
| 10886 */ | |
| 10887 core.String prevPageToken; | 10850 core.String prevPageToken; |
| 10888 TokenPagination tokenPagination; | 10851 TokenPagination tokenPagination; |
| 10889 /** The visitorId identifies the visitor. */ | 10852 |
| 10853 /// The visitorId identifies the visitor. |
| 10890 core.String visitorId; | 10854 core.String visitorId; |
| 10891 | 10855 |
| 10892 GuideCategoryListResponse(); | 10856 GuideCategoryListResponse(); |
| 10893 | 10857 |
| 10894 GuideCategoryListResponse.fromJson(core.Map _json) { | 10858 GuideCategoryListResponse.fromJson(core.Map _json) { |
| 10895 if (_json.containsKey("etag")) { | 10859 if (_json.containsKey("etag")) { |
| 10896 etag = _json["etag"]; | 10860 etag = _json["etag"]; |
| 10897 } | 10861 } |
| 10898 if (_json.containsKey("eventId")) { | 10862 if (_json.containsKey("eventId")) { |
| 10899 eventId = _json["eventId"]; | 10863 eventId = _json["eventId"]; |
| 10900 } | 10864 } |
| 10901 if (_json.containsKey("items")) { | 10865 if (_json.containsKey("items")) { |
| 10902 items = _json["items"].map((value) => new GuideCategory.fromJson(value)).t
oList(); | 10866 items = _json["items"] |
| 10867 .map((value) => new GuideCategory.fromJson(value)) |
| 10868 .toList(); |
| 10903 } | 10869 } |
| 10904 if (_json.containsKey("kind")) { | 10870 if (_json.containsKey("kind")) { |
| 10905 kind = _json["kind"]; | 10871 kind = _json["kind"]; |
| 10906 } | 10872 } |
| 10907 if (_json.containsKey("nextPageToken")) { | 10873 if (_json.containsKey("nextPageToken")) { |
| 10908 nextPageToken = _json["nextPageToken"]; | 10874 nextPageToken = _json["nextPageToken"]; |
| 10909 } | 10875 } |
| 10910 if (_json.containsKey("pageInfo")) { | 10876 if (_json.containsKey("pageInfo")) { |
| 10911 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 10877 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 10912 } | 10878 } |
| 10913 if (_json.containsKey("prevPageToken")) { | 10879 if (_json.containsKey("prevPageToken")) { |
| 10914 prevPageToken = _json["prevPageToken"]; | 10880 prevPageToken = _json["prevPageToken"]; |
| 10915 } | 10881 } |
| 10916 if (_json.containsKey("tokenPagination")) { | 10882 if (_json.containsKey("tokenPagination")) { |
| 10917 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 10883 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 10918 } | 10884 } |
| 10919 if (_json.containsKey("visitorId")) { | 10885 if (_json.containsKey("visitorId")) { |
| 10920 visitorId = _json["visitorId"]; | 10886 visitorId = _json["visitorId"]; |
| 10921 } | 10887 } |
| 10922 } | 10888 } |
| 10923 | 10889 |
| 10924 core.Map<core.String, core.Object> toJson() { | 10890 core.Map<core.String, core.Object> toJson() { |
| 10925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10891 final core.Map<core.String, core.Object> _json = |
| 10892 new core.Map<core.String, core.Object>(); |
| 10926 if (etag != null) { | 10893 if (etag != null) { |
| 10927 _json["etag"] = etag; | 10894 _json["etag"] = etag; |
| 10928 } | 10895 } |
| 10929 if (eventId != null) { | 10896 if (eventId != null) { |
| 10930 _json["eventId"] = eventId; | 10897 _json["eventId"] = eventId; |
| 10931 } | 10898 } |
| 10932 if (items != null) { | 10899 if (items != null) { |
| 10933 _json["items"] = items.map((value) => (value).toJson()).toList(); | 10900 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 10934 } | 10901 } |
| 10935 if (kind != null) { | 10902 if (kind != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 10947 if (tokenPagination != null) { | 10914 if (tokenPagination != null) { |
| 10948 _json["tokenPagination"] = (tokenPagination).toJson(); | 10915 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 10949 } | 10916 } |
| 10950 if (visitorId != null) { | 10917 if (visitorId != null) { |
| 10951 _json["visitorId"] = visitorId; | 10918 _json["visitorId"] = visitorId; |
| 10952 } | 10919 } |
| 10953 return _json; | 10920 return _json; |
| 10954 } | 10921 } |
| 10955 } | 10922 } |
| 10956 | 10923 |
| 10957 /** Basic details about a guide category. */ | 10924 /// Basic details about a guide category. |
| 10958 class GuideCategorySnippet { | 10925 class GuideCategorySnippet { |
| 10959 core.String channelId; | 10926 core.String channelId; |
| 10960 /** Description of the guide category. */ | 10927 |
| 10928 /// Description of the guide category. |
| 10961 core.String title; | 10929 core.String title; |
| 10962 | 10930 |
| 10963 GuideCategorySnippet(); | 10931 GuideCategorySnippet(); |
| 10964 | 10932 |
| 10965 GuideCategorySnippet.fromJson(core.Map _json) { | 10933 GuideCategorySnippet.fromJson(core.Map _json) { |
| 10966 if (_json.containsKey("channelId")) { | 10934 if (_json.containsKey("channelId")) { |
| 10967 channelId = _json["channelId"]; | 10935 channelId = _json["channelId"]; |
| 10968 } | 10936 } |
| 10969 if (_json.containsKey("title")) { | 10937 if (_json.containsKey("title")) { |
| 10970 title = _json["title"]; | 10938 title = _json["title"]; |
| 10971 } | 10939 } |
| 10972 } | 10940 } |
| 10973 | 10941 |
| 10974 core.Map<core.String, core.Object> toJson() { | 10942 core.Map<core.String, core.Object> toJson() { |
| 10975 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10943 final core.Map<core.String, core.Object> _json = |
| 10944 new core.Map<core.String, core.Object>(); |
| 10976 if (channelId != null) { | 10945 if (channelId != null) { |
| 10977 _json["channelId"] = channelId; | 10946 _json["channelId"] = channelId; |
| 10978 } | 10947 } |
| 10979 if (title != null) { | 10948 if (title != null) { |
| 10980 _json["title"] = title; | 10949 _json["title"] = title; |
| 10981 } | 10950 } |
| 10982 return _json; | 10951 return _json; |
| 10983 } | 10952 } |
| 10984 } | 10953 } |
| 10985 | 10954 |
| 10986 /** | 10955 /// An i18nLanguage resource identifies a UI language currently supported by |
| 10987 * An i18nLanguage resource identifies a UI language currently supported by | 10956 /// YouTube. |
| 10988 * YouTube. | |
| 10989 */ | |
| 10990 class I18nLanguage { | 10957 class I18nLanguage { |
| 10991 /** Etag of this resource. */ | 10958 /// Etag of this resource. |
| 10992 core.String etag; | 10959 core.String etag; |
| 10993 /** The ID that YouTube uses to uniquely identify the i18n language. */ | 10960 |
| 10961 /// The ID that YouTube uses to uniquely identify the i18n language. |
| 10994 core.String id; | 10962 core.String id; |
| 10995 /** | 10963 |
| 10996 * Identifies what kind of resource this is. Value: the fixed string | 10964 /// Identifies what kind of resource this is. Value: the fixed string |
| 10997 * "youtube#i18nLanguage". | 10965 /// "youtube#i18nLanguage". |
| 10998 */ | |
| 10999 core.String kind; | 10966 core.String kind; |
| 11000 /** | 10967 |
| 11001 * The snippet object contains basic details about the i18n language, such as | 10968 /// The snippet object contains basic details about the i18n language, such |
| 11002 * language code and human-readable name. | 10969 /// as language code and human-readable name. |
| 11003 */ | |
| 11004 I18nLanguageSnippet snippet; | 10970 I18nLanguageSnippet snippet; |
| 11005 | 10971 |
| 11006 I18nLanguage(); | 10972 I18nLanguage(); |
| 11007 | 10973 |
| 11008 I18nLanguage.fromJson(core.Map _json) { | 10974 I18nLanguage.fromJson(core.Map _json) { |
| 11009 if (_json.containsKey("etag")) { | 10975 if (_json.containsKey("etag")) { |
| 11010 etag = _json["etag"]; | 10976 etag = _json["etag"]; |
| 11011 } | 10977 } |
| 11012 if (_json.containsKey("id")) { | 10978 if (_json.containsKey("id")) { |
| 11013 id = _json["id"]; | 10979 id = _json["id"]; |
| 11014 } | 10980 } |
| 11015 if (_json.containsKey("kind")) { | 10981 if (_json.containsKey("kind")) { |
| 11016 kind = _json["kind"]; | 10982 kind = _json["kind"]; |
| 11017 } | 10983 } |
| 11018 if (_json.containsKey("snippet")) { | 10984 if (_json.containsKey("snippet")) { |
| 11019 snippet = new I18nLanguageSnippet.fromJson(_json["snippet"]); | 10985 snippet = new I18nLanguageSnippet.fromJson(_json["snippet"]); |
| 11020 } | 10986 } |
| 11021 } | 10987 } |
| 11022 | 10988 |
| 11023 core.Map<core.String, core.Object> toJson() { | 10989 core.Map<core.String, core.Object> toJson() { |
| 11024 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 10990 final core.Map<core.String, core.Object> _json = |
| 10991 new core.Map<core.String, core.Object>(); |
| 11025 if (etag != null) { | 10992 if (etag != null) { |
| 11026 _json["etag"] = etag; | 10993 _json["etag"] = etag; |
| 11027 } | 10994 } |
| 11028 if (id != null) { | 10995 if (id != null) { |
| 11029 _json["id"] = id; | 10996 _json["id"] = id; |
| 11030 } | 10997 } |
| 11031 if (kind != null) { | 10998 if (kind != null) { |
| 11032 _json["kind"] = kind; | 10999 _json["kind"] = kind; |
| 11033 } | 11000 } |
| 11034 if (snippet != null) { | 11001 if (snippet != null) { |
| 11035 _json["snippet"] = (snippet).toJson(); | 11002 _json["snippet"] = (snippet).toJson(); |
| 11036 } | 11003 } |
| 11037 return _json; | 11004 return _json; |
| 11038 } | 11005 } |
| 11039 } | 11006 } |
| 11040 | 11007 |
| 11041 class I18nLanguageListResponse { | 11008 class I18nLanguageListResponse { |
| 11042 /** Etag of this resource. */ | 11009 /// Etag of this resource. |
| 11043 core.String etag; | 11010 core.String etag; |
| 11044 /** Serialized EventId of the request which produced this response. */ | 11011 |
| 11012 /// Serialized EventId of the request which produced this response. |
| 11045 core.String eventId; | 11013 core.String eventId; |
| 11046 /** | 11014 |
| 11047 * A list of supported i18n languages. In this map, the i18n language ID is | 11015 /// A list of supported i18n languages. In this map, the i18n language ID is |
| 11048 * the map key, and its value is the corresponding i18nLanguage resource. | 11016 /// the map key, and its value is the corresponding i18nLanguage resource. |
| 11049 */ | |
| 11050 core.List<I18nLanguage> items; | 11017 core.List<I18nLanguage> items; |
| 11051 /** | 11018 |
| 11052 * Identifies what kind of resource this is. Value: the fixed string | 11019 /// Identifies what kind of resource this is. Value: the fixed string |
| 11053 * "youtube#i18nLanguageListResponse". | 11020 /// "youtube#i18nLanguageListResponse". |
| 11054 */ | |
| 11055 core.String kind; | 11021 core.String kind; |
| 11056 /** The visitorId identifies the visitor. */ | 11022 |
| 11023 /// The visitorId identifies the visitor. |
| 11057 core.String visitorId; | 11024 core.String visitorId; |
| 11058 | 11025 |
| 11059 I18nLanguageListResponse(); | 11026 I18nLanguageListResponse(); |
| 11060 | 11027 |
| 11061 I18nLanguageListResponse.fromJson(core.Map _json) { | 11028 I18nLanguageListResponse.fromJson(core.Map _json) { |
| 11062 if (_json.containsKey("etag")) { | 11029 if (_json.containsKey("etag")) { |
| 11063 etag = _json["etag"]; | 11030 etag = _json["etag"]; |
| 11064 } | 11031 } |
| 11065 if (_json.containsKey("eventId")) { | 11032 if (_json.containsKey("eventId")) { |
| 11066 eventId = _json["eventId"]; | 11033 eventId = _json["eventId"]; |
| 11067 } | 11034 } |
| 11068 if (_json.containsKey("items")) { | 11035 if (_json.containsKey("items")) { |
| 11069 items = _json["items"].map((value) => new I18nLanguage.fromJson(value)).to
List(); | 11036 items = _json["items"] |
| 11037 .map((value) => new I18nLanguage.fromJson(value)) |
| 11038 .toList(); |
| 11070 } | 11039 } |
| 11071 if (_json.containsKey("kind")) { | 11040 if (_json.containsKey("kind")) { |
| 11072 kind = _json["kind"]; | 11041 kind = _json["kind"]; |
| 11073 } | 11042 } |
| 11074 if (_json.containsKey("visitorId")) { | 11043 if (_json.containsKey("visitorId")) { |
| 11075 visitorId = _json["visitorId"]; | 11044 visitorId = _json["visitorId"]; |
| 11076 } | 11045 } |
| 11077 } | 11046 } |
| 11078 | 11047 |
| 11079 core.Map<core.String, core.Object> toJson() { | 11048 core.Map<core.String, core.Object> toJson() { |
| 11080 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11049 final core.Map<core.String, core.Object> _json = |
| 11050 new core.Map<core.String, core.Object>(); |
| 11081 if (etag != null) { | 11051 if (etag != null) { |
| 11082 _json["etag"] = etag; | 11052 _json["etag"] = etag; |
| 11083 } | 11053 } |
| 11084 if (eventId != null) { | 11054 if (eventId != null) { |
| 11085 _json["eventId"] = eventId; | 11055 _json["eventId"] = eventId; |
| 11086 } | 11056 } |
| 11087 if (items != null) { | 11057 if (items != null) { |
| 11088 _json["items"] = items.map((value) => (value).toJson()).toList(); | 11058 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 11089 } | 11059 } |
| 11090 if (kind != null) { | 11060 if (kind != null) { |
| 11091 _json["kind"] = kind; | 11061 _json["kind"] = kind; |
| 11092 } | 11062 } |
| 11093 if (visitorId != null) { | 11063 if (visitorId != null) { |
| 11094 _json["visitorId"] = visitorId; | 11064 _json["visitorId"] = visitorId; |
| 11095 } | 11065 } |
| 11096 return _json; | 11066 return _json; |
| 11097 } | 11067 } |
| 11098 } | 11068 } |
| 11099 | 11069 |
| 11100 /** | 11070 /// Basic details about an i18n language, such as language code and |
| 11101 * Basic details about an i18n language, such as language code and | 11071 /// human-readable name. |
| 11102 * human-readable name. | |
| 11103 */ | |
| 11104 class I18nLanguageSnippet { | 11072 class I18nLanguageSnippet { |
| 11105 /** A short BCP-47 code that uniquely identifies a language. */ | 11073 /// A short BCP-47 code that uniquely identifies a language. |
| 11106 core.String hl; | 11074 core.String hl; |
| 11107 /** The human-readable name of the language in the language itself. */ | 11075 |
| 11076 /// The human-readable name of the language in the language itself. |
| 11108 core.String name; | 11077 core.String name; |
| 11109 | 11078 |
| 11110 I18nLanguageSnippet(); | 11079 I18nLanguageSnippet(); |
| 11111 | 11080 |
| 11112 I18nLanguageSnippet.fromJson(core.Map _json) { | 11081 I18nLanguageSnippet.fromJson(core.Map _json) { |
| 11113 if (_json.containsKey("hl")) { | 11082 if (_json.containsKey("hl")) { |
| 11114 hl = _json["hl"]; | 11083 hl = _json["hl"]; |
| 11115 } | 11084 } |
| 11116 if (_json.containsKey("name")) { | 11085 if (_json.containsKey("name")) { |
| 11117 name = _json["name"]; | 11086 name = _json["name"]; |
| 11118 } | 11087 } |
| 11119 } | 11088 } |
| 11120 | 11089 |
| 11121 core.Map<core.String, core.Object> toJson() { | 11090 core.Map<core.String, core.Object> toJson() { |
| 11122 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11091 final core.Map<core.String, core.Object> _json = |
| 11092 new core.Map<core.String, core.Object>(); |
| 11123 if (hl != null) { | 11093 if (hl != null) { |
| 11124 _json["hl"] = hl; | 11094 _json["hl"] = hl; |
| 11125 } | 11095 } |
| 11126 if (name != null) { | 11096 if (name != null) { |
| 11127 _json["name"] = name; | 11097 _json["name"] = name; |
| 11128 } | 11098 } |
| 11129 return _json; | 11099 return _json; |
| 11130 } | 11100 } |
| 11131 } | 11101 } |
| 11132 | 11102 |
| 11133 /** A i18nRegion resource identifies a region where YouTube is available. */ | 11103 /// A i18nRegion resource identifies a region where YouTube is available. |
| 11134 class I18nRegion { | 11104 class I18nRegion { |
| 11135 /** Etag of this resource. */ | 11105 /// Etag of this resource. |
| 11136 core.String etag; | 11106 core.String etag; |
| 11137 /** The ID that YouTube uses to uniquely identify the i18n region. */ | 11107 |
| 11108 /// The ID that YouTube uses to uniquely identify the i18n region. |
| 11138 core.String id; | 11109 core.String id; |
| 11139 /** | 11110 |
| 11140 * Identifies what kind of resource this is. Value: the fixed string | 11111 /// Identifies what kind of resource this is. Value: the fixed string |
| 11141 * "youtube#i18nRegion". | 11112 /// "youtube#i18nRegion". |
| 11142 */ | |
| 11143 core.String kind; | 11113 core.String kind; |
| 11144 /** | 11114 |
| 11145 * The snippet object contains basic details about the i18n region, such as | 11115 /// The snippet object contains basic details about the i18n region, such as |
| 11146 * region code and human-readable name. | 11116 /// region code and human-readable name. |
| 11147 */ | |
| 11148 I18nRegionSnippet snippet; | 11117 I18nRegionSnippet snippet; |
| 11149 | 11118 |
| 11150 I18nRegion(); | 11119 I18nRegion(); |
| 11151 | 11120 |
| 11152 I18nRegion.fromJson(core.Map _json) { | 11121 I18nRegion.fromJson(core.Map _json) { |
| 11153 if (_json.containsKey("etag")) { | 11122 if (_json.containsKey("etag")) { |
| 11154 etag = _json["etag"]; | 11123 etag = _json["etag"]; |
| 11155 } | 11124 } |
| 11156 if (_json.containsKey("id")) { | 11125 if (_json.containsKey("id")) { |
| 11157 id = _json["id"]; | 11126 id = _json["id"]; |
| 11158 } | 11127 } |
| 11159 if (_json.containsKey("kind")) { | 11128 if (_json.containsKey("kind")) { |
| 11160 kind = _json["kind"]; | 11129 kind = _json["kind"]; |
| 11161 } | 11130 } |
| 11162 if (_json.containsKey("snippet")) { | 11131 if (_json.containsKey("snippet")) { |
| 11163 snippet = new I18nRegionSnippet.fromJson(_json["snippet"]); | 11132 snippet = new I18nRegionSnippet.fromJson(_json["snippet"]); |
| 11164 } | 11133 } |
| 11165 } | 11134 } |
| 11166 | 11135 |
| 11167 core.Map<core.String, core.Object> toJson() { | 11136 core.Map<core.String, core.Object> toJson() { |
| 11168 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11137 final core.Map<core.String, core.Object> _json = |
| 11138 new core.Map<core.String, core.Object>(); |
| 11169 if (etag != null) { | 11139 if (etag != null) { |
| 11170 _json["etag"] = etag; | 11140 _json["etag"] = etag; |
| 11171 } | 11141 } |
| 11172 if (id != null) { | 11142 if (id != null) { |
| 11173 _json["id"] = id; | 11143 _json["id"] = id; |
| 11174 } | 11144 } |
| 11175 if (kind != null) { | 11145 if (kind != null) { |
| 11176 _json["kind"] = kind; | 11146 _json["kind"] = kind; |
| 11177 } | 11147 } |
| 11178 if (snippet != null) { | 11148 if (snippet != null) { |
| 11179 _json["snippet"] = (snippet).toJson(); | 11149 _json["snippet"] = (snippet).toJson(); |
| 11180 } | 11150 } |
| 11181 return _json; | 11151 return _json; |
| 11182 } | 11152 } |
| 11183 } | 11153 } |
| 11184 | 11154 |
| 11185 class I18nRegionListResponse { | 11155 class I18nRegionListResponse { |
| 11186 /** Etag of this resource. */ | 11156 /// Etag of this resource. |
| 11187 core.String etag; | 11157 core.String etag; |
| 11188 /** Serialized EventId of the request which produced this response. */ | 11158 |
| 11159 /// Serialized EventId of the request which produced this response. |
| 11189 core.String eventId; | 11160 core.String eventId; |
| 11190 /** | 11161 |
| 11191 * A list of regions where YouTube is available. In this map, the i18n region | 11162 /// A list of regions where YouTube is available. In this map, the i18n |
| 11192 * ID is the map key, and its value is the corresponding i18nRegion resource. | 11163 /// region ID is the map key, and its value is the corresponding i18nRegion |
| 11193 */ | 11164 /// resource. |
| 11194 core.List<I18nRegion> items; | 11165 core.List<I18nRegion> items; |
| 11195 /** | 11166 |
| 11196 * Identifies what kind of resource this is. Value: the fixed string | 11167 /// Identifies what kind of resource this is. Value: the fixed string |
| 11197 * "youtube#i18nRegionListResponse". | 11168 /// "youtube#i18nRegionListResponse". |
| 11198 */ | |
| 11199 core.String kind; | 11169 core.String kind; |
| 11200 /** The visitorId identifies the visitor. */ | 11170 |
| 11171 /// The visitorId identifies the visitor. |
| 11201 core.String visitorId; | 11172 core.String visitorId; |
| 11202 | 11173 |
| 11203 I18nRegionListResponse(); | 11174 I18nRegionListResponse(); |
| 11204 | 11175 |
| 11205 I18nRegionListResponse.fromJson(core.Map _json) { | 11176 I18nRegionListResponse.fromJson(core.Map _json) { |
| 11206 if (_json.containsKey("etag")) { | 11177 if (_json.containsKey("etag")) { |
| 11207 etag = _json["etag"]; | 11178 etag = _json["etag"]; |
| 11208 } | 11179 } |
| 11209 if (_json.containsKey("eventId")) { | 11180 if (_json.containsKey("eventId")) { |
| 11210 eventId = _json["eventId"]; | 11181 eventId = _json["eventId"]; |
| 11211 } | 11182 } |
| 11212 if (_json.containsKey("items")) { | 11183 if (_json.containsKey("items")) { |
| 11213 items = _json["items"].map((value) => new I18nRegion.fromJson(value)).toLi
st(); | 11184 items = _json["items"] |
| 11185 .map((value) => new I18nRegion.fromJson(value)) |
| 11186 .toList(); |
| 11214 } | 11187 } |
| 11215 if (_json.containsKey("kind")) { | 11188 if (_json.containsKey("kind")) { |
| 11216 kind = _json["kind"]; | 11189 kind = _json["kind"]; |
| 11217 } | 11190 } |
| 11218 if (_json.containsKey("visitorId")) { | 11191 if (_json.containsKey("visitorId")) { |
| 11219 visitorId = _json["visitorId"]; | 11192 visitorId = _json["visitorId"]; |
| 11220 } | 11193 } |
| 11221 } | 11194 } |
| 11222 | 11195 |
| 11223 core.Map<core.String, core.Object> toJson() { | 11196 core.Map<core.String, core.Object> toJson() { |
| 11224 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11197 final core.Map<core.String, core.Object> _json = |
| 11198 new core.Map<core.String, core.Object>(); |
| 11225 if (etag != null) { | 11199 if (etag != null) { |
| 11226 _json["etag"] = etag; | 11200 _json["etag"] = etag; |
| 11227 } | 11201 } |
| 11228 if (eventId != null) { | 11202 if (eventId != null) { |
| 11229 _json["eventId"] = eventId; | 11203 _json["eventId"] = eventId; |
| 11230 } | 11204 } |
| 11231 if (items != null) { | 11205 if (items != null) { |
| 11232 _json["items"] = items.map((value) => (value).toJson()).toList(); | 11206 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 11233 } | 11207 } |
| 11234 if (kind != null) { | 11208 if (kind != null) { |
| 11235 _json["kind"] = kind; | 11209 _json["kind"] = kind; |
| 11236 } | 11210 } |
| 11237 if (visitorId != null) { | 11211 if (visitorId != null) { |
| 11238 _json["visitorId"] = visitorId; | 11212 _json["visitorId"] = visitorId; |
| 11239 } | 11213 } |
| 11240 return _json; | 11214 return _json; |
| 11241 } | 11215 } |
| 11242 } | 11216 } |
| 11243 | 11217 |
| 11244 /** | 11218 /// Basic details about an i18n region, such as region code and human-readable |
| 11245 * Basic details about an i18n region, such as region code and human-readable | 11219 /// name. |
| 11246 * name. | |
| 11247 */ | |
| 11248 class I18nRegionSnippet { | 11220 class I18nRegionSnippet { |
| 11249 /** The region code as a 2-letter ISO country code. */ | 11221 /// The region code as a 2-letter ISO country code. |
| 11250 core.String gl; | 11222 core.String gl; |
| 11251 /** The human-readable name of the region. */ | 11223 |
| 11224 /// The human-readable name of the region. |
| 11252 core.String name; | 11225 core.String name; |
| 11253 | 11226 |
| 11254 I18nRegionSnippet(); | 11227 I18nRegionSnippet(); |
| 11255 | 11228 |
| 11256 I18nRegionSnippet.fromJson(core.Map _json) { | 11229 I18nRegionSnippet.fromJson(core.Map _json) { |
| 11257 if (_json.containsKey("gl")) { | 11230 if (_json.containsKey("gl")) { |
| 11258 gl = _json["gl"]; | 11231 gl = _json["gl"]; |
| 11259 } | 11232 } |
| 11260 if (_json.containsKey("name")) { | 11233 if (_json.containsKey("name")) { |
| 11261 name = _json["name"]; | 11234 name = _json["name"]; |
| 11262 } | 11235 } |
| 11263 } | 11236 } |
| 11264 | 11237 |
| 11265 core.Map<core.String, core.Object> toJson() { | 11238 core.Map<core.String, core.Object> toJson() { |
| 11266 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11239 final core.Map<core.String, core.Object> _json = |
| 11240 new core.Map<core.String, core.Object>(); |
| 11267 if (gl != null) { | 11241 if (gl != null) { |
| 11268 _json["gl"] = gl; | 11242 _json["gl"] = gl; |
| 11269 } | 11243 } |
| 11270 if (name != null) { | 11244 if (name != null) { |
| 11271 _json["name"] = name; | 11245 _json["name"] = name; |
| 11272 } | 11246 } |
| 11273 return _json; | 11247 return _json; |
| 11274 } | 11248 } |
| 11275 } | 11249 } |
| 11276 | 11250 |
| 11277 /** Branding properties for images associated with the channel. */ | 11251 /// Branding properties for images associated with the channel. |
| 11278 class ImageSettings { | 11252 class ImageSettings { |
| 11279 /** | 11253 /// The URL for the background image shown on the video watch page. The image |
| 11280 * The URL for the background image shown on the video watch page. The image | 11254 /// should be 1200px by 615px, with a maximum file size of 128k. |
| 11281 * should be 1200px by 615px, with a maximum file size of 128k. | |
| 11282 */ | |
| 11283 LocalizedProperty backgroundImageUrl; | 11255 LocalizedProperty backgroundImageUrl; |
| 11284 /** | 11256 |
| 11285 * This is used only in update requests; if it's set, we use this URL to | 11257 /// This is used only in update requests; if it's set, we use this URL to |
| 11286 * generate all of the above banner URLs. | 11258 /// generate all of the above banner URLs. |
| 11287 */ | |
| 11288 core.String bannerExternalUrl; | 11259 core.String bannerExternalUrl; |
| 11289 /** Banner image. Desktop size (1060x175). */ | 11260 |
| 11261 /// Banner image. Desktop size (1060x175). |
| 11290 core.String bannerImageUrl; | 11262 core.String bannerImageUrl; |
| 11291 /** Banner image. Mobile size high resolution (1440x395). */ | 11263 |
| 11264 /// Banner image. Mobile size high resolution (1440x395). |
| 11292 core.String bannerMobileExtraHdImageUrl; | 11265 core.String bannerMobileExtraHdImageUrl; |
| 11293 /** Banner image. Mobile size high resolution (1280x360). */ | 11266 |
| 11267 /// Banner image. Mobile size high resolution (1280x360). |
| 11294 core.String bannerMobileHdImageUrl; | 11268 core.String bannerMobileHdImageUrl; |
| 11295 /** Banner image. Mobile size (640x175). */ | 11269 |
| 11270 /// Banner image. Mobile size (640x175). |
| 11296 core.String bannerMobileImageUrl; | 11271 core.String bannerMobileImageUrl; |
| 11297 /** Banner image. Mobile size low resolution (320x88). */ | 11272 |
| 11273 /// Banner image. Mobile size low resolution (320x88). |
| 11298 core.String bannerMobileLowImageUrl; | 11274 core.String bannerMobileLowImageUrl; |
| 11299 /** Banner image. Mobile size medium/high resolution (960x263). */ | 11275 |
| 11276 /// Banner image. Mobile size medium/high resolution (960x263). |
| 11300 core.String bannerMobileMediumHdImageUrl; | 11277 core.String bannerMobileMediumHdImageUrl; |
| 11301 /** Banner image. Tablet size extra high resolution (2560x424). */ | 11278 |
| 11279 /// Banner image. Tablet size extra high resolution (2560x424). |
| 11302 core.String bannerTabletExtraHdImageUrl; | 11280 core.String bannerTabletExtraHdImageUrl; |
| 11303 /** Banner image. Tablet size high resolution (2276x377). */ | 11281 |
| 11282 /// Banner image. Tablet size high resolution (2276x377). |
| 11304 core.String bannerTabletHdImageUrl; | 11283 core.String bannerTabletHdImageUrl; |
| 11305 /** Banner image. Tablet size (1707x283). */ | 11284 |
| 11285 /// Banner image. Tablet size (1707x283). |
| 11306 core.String bannerTabletImageUrl; | 11286 core.String bannerTabletImageUrl; |
| 11307 /** Banner image. Tablet size low resolution (1138x188). */ | 11287 |
| 11288 /// Banner image. Tablet size low resolution (1138x188). |
| 11308 core.String bannerTabletLowImageUrl; | 11289 core.String bannerTabletLowImageUrl; |
| 11309 /** Banner image. TV size high resolution (1920x1080). */ | 11290 |
| 11291 /// Banner image. TV size high resolution (1920x1080). |
| 11310 core.String bannerTvHighImageUrl; | 11292 core.String bannerTvHighImageUrl; |
| 11311 /** Banner image. TV size extra high resolution (2120x1192). */ | 11293 |
| 11294 /// Banner image. TV size extra high resolution (2120x1192). |
| 11312 core.String bannerTvImageUrl; | 11295 core.String bannerTvImageUrl; |
| 11313 /** Banner image. TV size low resolution (854x480). */ | 11296 |
| 11297 /// Banner image. TV size low resolution (854x480). |
| 11314 core.String bannerTvLowImageUrl; | 11298 core.String bannerTvLowImageUrl; |
| 11315 /** Banner image. TV size medium resolution (1280x720). */ | 11299 |
| 11300 /// Banner image. TV size medium resolution (1280x720). |
| 11316 core.String bannerTvMediumImageUrl; | 11301 core.String bannerTvMediumImageUrl; |
| 11317 /** The image map script for the large banner image. */ | 11302 |
| 11303 /// The image map script for the large banner image. |
| 11318 LocalizedProperty largeBrandedBannerImageImapScript; | 11304 LocalizedProperty largeBrandedBannerImageImapScript; |
| 11319 /** | 11305 |
| 11320 * The URL for the 854px by 70px image that appears below the video player in | 11306 /// The URL for the 854px by 70px image that appears below the video player |
| 11321 * the expanded video view of the video watch page. | 11307 /// in the expanded video view of the video watch page. |
| 11322 */ | |
| 11323 LocalizedProperty largeBrandedBannerImageUrl; | 11308 LocalizedProperty largeBrandedBannerImageUrl; |
| 11324 /** The image map script for the small banner image. */ | 11309 |
| 11310 /// The image map script for the small banner image. |
| 11325 LocalizedProperty smallBrandedBannerImageImapScript; | 11311 LocalizedProperty smallBrandedBannerImageImapScript; |
| 11326 /** | 11312 |
| 11327 * The URL for the 640px by 70px banner image that appears below the video | 11313 /// The URL for the 640px by 70px banner image that appears below the video |
| 11328 * player in the default view of the video watch page. | 11314 /// player in the default view of the video watch page. |
| 11329 */ | |
| 11330 LocalizedProperty smallBrandedBannerImageUrl; | 11315 LocalizedProperty smallBrandedBannerImageUrl; |
| 11331 /** | 11316 |
| 11332 * The URL for a 1px by 1px tracking pixel that can be used to collect | 11317 /// The URL for a 1px by 1px tracking pixel that can be used to collect |
| 11333 * statistics for views of the channel or video pages. | 11318 /// statistics for views of the channel or video pages. |
| 11334 */ | |
| 11335 core.String trackingImageUrl; | 11319 core.String trackingImageUrl; |
| 11336 /** | 11320 |
| 11337 * The URL for the image that appears above the top-left corner of the video | 11321 /// The URL for the image that appears above the top-left corner of the video |
| 11338 * player. This is a 25-pixel-high image with a flexible width that cannot | 11322 /// player. This is a 25-pixel-high image with a flexible width that cannot |
| 11339 * exceed 170 pixels. | 11323 /// exceed 170 pixels. |
| 11340 */ | |
| 11341 core.String watchIconImageUrl; | 11324 core.String watchIconImageUrl; |
| 11342 | 11325 |
| 11343 ImageSettings(); | 11326 ImageSettings(); |
| 11344 | 11327 |
| 11345 ImageSettings.fromJson(core.Map _json) { | 11328 ImageSettings.fromJson(core.Map _json) { |
| 11346 if (_json.containsKey("backgroundImageUrl")) { | 11329 if (_json.containsKey("backgroundImageUrl")) { |
| 11347 backgroundImageUrl = new LocalizedProperty.fromJson(_json["backgroundImage
Url"]); | 11330 backgroundImageUrl = |
| 11331 new LocalizedProperty.fromJson(_json["backgroundImageUrl"]); |
| 11348 } | 11332 } |
| 11349 if (_json.containsKey("bannerExternalUrl")) { | 11333 if (_json.containsKey("bannerExternalUrl")) { |
| 11350 bannerExternalUrl = _json["bannerExternalUrl"]; | 11334 bannerExternalUrl = _json["bannerExternalUrl"]; |
| 11351 } | 11335 } |
| 11352 if (_json.containsKey("bannerImageUrl")) { | 11336 if (_json.containsKey("bannerImageUrl")) { |
| 11353 bannerImageUrl = _json["bannerImageUrl"]; | 11337 bannerImageUrl = _json["bannerImageUrl"]; |
| 11354 } | 11338 } |
| 11355 if (_json.containsKey("bannerMobileExtraHdImageUrl")) { | 11339 if (_json.containsKey("bannerMobileExtraHdImageUrl")) { |
| 11356 bannerMobileExtraHdImageUrl = _json["bannerMobileExtraHdImageUrl"]; | 11340 bannerMobileExtraHdImageUrl = _json["bannerMobileExtraHdImageUrl"]; |
| 11357 } | 11341 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 11385 if (_json.containsKey("bannerTvImageUrl")) { | 11369 if (_json.containsKey("bannerTvImageUrl")) { |
| 11386 bannerTvImageUrl = _json["bannerTvImageUrl"]; | 11370 bannerTvImageUrl = _json["bannerTvImageUrl"]; |
| 11387 } | 11371 } |
| 11388 if (_json.containsKey("bannerTvLowImageUrl")) { | 11372 if (_json.containsKey("bannerTvLowImageUrl")) { |
| 11389 bannerTvLowImageUrl = _json["bannerTvLowImageUrl"]; | 11373 bannerTvLowImageUrl = _json["bannerTvLowImageUrl"]; |
| 11390 } | 11374 } |
| 11391 if (_json.containsKey("bannerTvMediumImageUrl")) { | 11375 if (_json.containsKey("bannerTvMediumImageUrl")) { |
| 11392 bannerTvMediumImageUrl = _json["bannerTvMediumImageUrl"]; | 11376 bannerTvMediumImageUrl = _json["bannerTvMediumImageUrl"]; |
| 11393 } | 11377 } |
| 11394 if (_json.containsKey("largeBrandedBannerImageImapScript")) { | 11378 if (_json.containsKey("largeBrandedBannerImageImapScript")) { |
| 11395 largeBrandedBannerImageImapScript = new LocalizedProperty.fromJson(_json["
largeBrandedBannerImageImapScript"]); | 11379 largeBrandedBannerImageImapScript = new LocalizedProperty.fromJson( |
| 11380 _json["largeBrandedBannerImageImapScript"]); |
| 11396 } | 11381 } |
| 11397 if (_json.containsKey("largeBrandedBannerImageUrl")) { | 11382 if (_json.containsKey("largeBrandedBannerImageUrl")) { |
| 11398 largeBrandedBannerImageUrl = new LocalizedProperty.fromJson(_json["largeBr
andedBannerImageUrl"]); | 11383 largeBrandedBannerImageUrl = |
| 11384 new LocalizedProperty.fromJson(_json["largeBrandedBannerImageUrl"]); |
| 11399 } | 11385 } |
| 11400 if (_json.containsKey("smallBrandedBannerImageImapScript")) { | 11386 if (_json.containsKey("smallBrandedBannerImageImapScript")) { |
| 11401 smallBrandedBannerImageImapScript = new LocalizedProperty.fromJson(_json["
smallBrandedBannerImageImapScript"]); | 11387 smallBrandedBannerImageImapScript = new LocalizedProperty.fromJson( |
| 11388 _json["smallBrandedBannerImageImapScript"]); |
| 11402 } | 11389 } |
| 11403 if (_json.containsKey("smallBrandedBannerImageUrl")) { | 11390 if (_json.containsKey("smallBrandedBannerImageUrl")) { |
| 11404 smallBrandedBannerImageUrl = new LocalizedProperty.fromJson(_json["smallBr
andedBannerImageUrl"]); | 11391 smallBrandedBannerImageUrl = |
| 11392 new LocalizedProperty.fromJson(_json["smallBrandedBannerImageUrl"]); |
| 11405 } | 11393 } |
| 11406 if (_json.containsKey("trackingImageUrl")) { | 11394 if (_json.containsKey("trackingImageUrl")) { |
| 11407 trackingImageUrl = _json["trackingImageUrl"]; | 11395 trackingImageUrl = _json["trackingImageUrl"]; |
| 11408 } | 11396 } |
| 11409 if (_json.containsKey("watchIconImageUrl")) { | 11397 if (_json.containsKey("watchIconImageUrl")) { |
| 11410 watchIconImageUrl = _json["watchIconImageUrl"]; | 11398 watchIconImageUrl = _json["watchIconImageUrl"]; |
| 11411 } | 11399 } |
| 11412 } | 11400 } |
| 11413 | 11401 |
| 11414 core.Map<core.String, core.Object> toJson() { | 11402 core.Map<core.String, core.Object> toJson() { |
| 11415 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11403 final core.Map<core.String, core.Object> _json = |
| 11404 new core.Map<core.String, core.Object>(); |
| 11416 if (backgroundImageUrl != null) { | 11405 if (backgroundImageUrl != null) { |
| 11417 _json["backgroundImageUrl"] = (backgroundImageUrl).toJson(); | 11406 _json["backgroundImageUrl"] = (backgroundImageUrl).toJson(); |
| 11418 } | 11407 } |
| 11419 if (bannerExternalUrl != null) { | 11408 if (bannerExternalUrl != null) { |
| 11420 _json["bannerExternalUrl"] = bannerExternalUrl; | 11409 _json["bannerExternalUrl"] = bannerExternalUrl; |
| 11421 } | 11410 } |
| 11422 if (bannerImageUrl != null) { | 11411 if (bannerImageUrl != null) { |
| 11423 _json["bannerImageUrl"] = bannerImageUrl; | 11412 _json["bannerImageUrl"] = bannerImageUrl; |
| 11424 } | 11413 } |
| 11425 if (bannerMobileExtraHdImageUrl != null) { | 11414 if (bannerMobileExtraHdImageUrl != null) { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 11455 if (bannerTvImageUrl != null) { | 11444 if (bannerTvImageUrl != null) { |
| 11456 _json["bannerTvImageUrl"] = bannerTvImageUrl; | 11445 _json["bannerTvImageUrl"] = bannerTvImageUrl; |
| 11457 } | 11446 } |
| 11458 if (bannerTvLowImageUrl != null) { | 11447 if (bannerTvLowImageUrl != null) { |
| 11459 _json["bannerTvLowImageUrl"] = bannerTvLowImageUrl; | 11448 _json["bannerTvLowImageUrl"] = bannerTvLowImageUrl; |
| 11460 } | 11449 } |
| 11461 if (bannerTvMediumImageUrl != null) { | 11450 if (bannerTvMediumImageUrl != null) { |
| 11462 _json["bannerTvMediumImageUrl"] = bannerTvMediumImageUrl; | 11451 _json["bannerTvMediumImageUrl"] = bannerTvMediumImageUrl; |
| 11463 } | 11452 } |
| 11464 if (largeBrandedBannerImageImapScript != null) { | 11453 if (largeBrandedBannerImageImapScript != null) { |
| 11465 _json["largeBrandedBannerImageImapScript"] = (largeBrandedBannerImageImapS
cript).toJson(); | 11454 _json["largeBrandedBannerImageImapScript"] = |
| 11455 (largeBrandedBannerImageImapScript).toJson(); |
| 11466 } | 11456 } |
| 11467 if (largeBrandedBannerImageUrl != null) { | 11457 if (largeBrandedBannerImageUrl != null) { |
| 11468 _json["largeBrandedBannerImageUrl"] = (largeBrandedBannerImageUrl).toJson(
); | 11458 _json["largeBrandedBannerImageUrl"] = |
| 11459 (largeBrandedBannerImageUrl).toJson(); |
| 11469 } | 11460 } |
| 11470 if (smallBrandedBannerImageImapScript != null) { | 11461 if (smallBrandedBannerImageImapScript != null) { |
| 11471 _json["smallBrandedBannerImageImapScript"] = (smallBrandedBannerImageImapS
cript).toJson(); | 11462 _json["smallBrandedBannerImageImapScript"] = |
| 11463 (smallBrandedBannerImageImapScript).toJson(); |
| 11472 } | 11464 } |
| 11473 if (smallBrandedBannerImageUrl != null) { | 11465 if (smallBrandedBannerImageUrl != null) { |
| 11474 _json["smallBrandedBannerImageUrl"] = (smallBrandedBannerImageUrl).toJson(
); | 11466 _json["smallBrandedBannerImageUrl"] = |
| 11467 (smallBrandedBannerImageUrl).toJson(); |
| 11475 } | 11468 } |
| 11476 if (trackingImageUrl != null) { | 11469 if (trackingImageUrl != null) { |
| 11477 _json["trackingImageUrl"] = trackingImageUrl; | 11470 _json["trackingImageUrl"] = trackingImageUrl; |
| 11478 } | 11471 } |
| 11479 if (watchIconImageUrl != null) { | 11472 if (watchIconImageUrl != null) { |
| 11480 _json["watchIconImageUrl"] = watchIconImageUrl; | 11473 _json["watchIconImageUrl"] = watchIconImageUrl; |
| 11481 } | 11474 } |
| 11482 return _json; | 11475 return _json; |
| 11483 } | 11476 } |
| 11484 } | 11477 } |
| 11485 | 11478 |
| 11486 /** Describes information necessary for ingesting an RTMP or an HTTP stream. */ | 11479 /// Describes information necessary for ingesting an RTMP or an HTTP stream. |
| 11487 class IngestionInfo { | 11480 class IngestionInfo { |
| 11488 /** | 11481 /// The backup ingestion URL that you should use to stream video to YouTube. |
| 11489 * The backup ingestion URL that you should use to stream video to YouTube. | 11482 /// You have the option of simultaneously streaming the content that you are |
| 11490 * You have the option of simultaneously streaming the content that you are | 11483 /// sending to the ingestionAddress to this URL. |
| 11491 * sending to the ingestionAddress to this URL. | |
| 11492 */ | |
| 11493 core.String backupIngestionAddress; | 11484 core.String backupIngestionAddress; |
| 11494 /** | 11485 |
| 11495 * The primary ingestion URL that you should use to stream video to YouTube. | 11486 /// The primary ingestion URL that you should use to stream video to YouTube. |
| 11496 * You must stream video to this URL. | 11487 /// You must stream video to this URL. |
| 11497 * | 11488 /// |
| 11498 * Depending on which application or tool you use to encode your video stream, | 11489 /// Depending on which application or tool you use to encode your video |
| 11499 * you may need to enter the stream URL and stream name separately or you may | 11490 /// stream, you may need to enter the stream URL and stream name separately |
| 11500 * need to concatenate them in the following format: | 11491 /// or you may need to concatenate them in the following format: |
| 11501 * | 11492 /// |
| 11502 * STREAM_URL/STREAM_NAME | 11493 /// STREAM_URL/STREAM_NAME |
| 11503 */ | |
| 11504 core.String ingestionAddress; | 11494 core.String ingestionAddress; |
| 11505 /** The HTTP or RTMP stream name that YouTube assigns to the video stream. */ | 11495 |
| 11496 /// The HTTP or RTMP stream name that YouTube assigns to the video stream. |
| 11506 core.String streamName; | 11497 core.String streamName; |
| 11507 | 11498 |
| 11508 IngestionInfo(); | 11499 IngestionInfo(); |
| 11509 | 11500 |
| 11510 IngestionInfo.fromJson(core.Map _json) { | 11501 IngestionInfo.fromJson(core.Map _json) { |
| 11511 if (_json.containsKey("backupIngestionAddress")) { | 11502 if (_json.containsKey("backupIngestionAddress")) { |
| 11512 backupIngestionAddress = _json["backupIngestionAddress"]; | 11503 backupIngestionAddress = _json["backupIngestionAddress"]; |
| 11513 } | 11504 } |
| 11514 if (_json.containsKey("ingestionAddress")) { | 11505 if (_json.containsKey("ingestionAddress")) { |
| 11515 ingestionAddress = _json["ingestionAddress"]; | 11506 ingestionAddress = _json["ingestionAddress"]; |
| 11516 } | 11507 } |
| 11517 if (_json.containsKey("streamName")) { | 11508 if (_json.containsKey("streamName")) { |
| 11518 streamName = _json["streamName"]; | 11509 streamName = _json["streamName"]; |
| 11519 } | 11510 } |
| 11520 } | 11511 } |
| 11521 | 11512 |
| 11522 core.Map<core.String, core.Object> toJson() { | 11513 core.Map<core.String, core.Object> toJson() { |
| 11523 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11514 final core.Map<core.String, core.Object> _json = |
| 11515 new core.Map<core.String, core.Object>(); |
| 11524 if (backupIngestionAddress != null) { | 11516 if (backupIngestionAddress != null) { |
| 11525 _json["backupIngestionAddress"] = backupIngestionAddress; | 11517 _json["backupIngestionAddress"] = backupIngestionAddress; |
| 11526 } | 11518 } |
| 11527 if (ingestionAddress != null) { | 11519 if (ingestionAddress != null) { |
| 11528 _json["ingestionAddress"] = ingestionAddress; | 11520 _json["ingestionAddress"] = ingestionAddress; |
| 11529 } | 11521 } |
| 11530 if (streamName != null) { | 11522 if (streamName != null) { |
| 11531 _json["streamName"] = streamName; | 11523 _json["streamName"] = streamName; |
| 11532 } | 11524 } |
| 11533 return _json; | 11525 return _json; |
| 11534 } | 11526 } |
| 11535 } | 11527 } |
| 11536 | 11528 |
| 11537 class InvideoBranding { | 11529 class InvideoBranding { |
| 11538 core.String imageBytes; | 11530 core.String imageBytes; |
| 11539 core.List<core.int> get imageBytesAsBytes { | 11531 core.List<core.int> get imageBytesAsBytes { |
| 11540 return convert.BASE64.decode(imageBytes); | 11532 return convert.BASE64.decode(imageBytes); |
| 11541 } | 11533 } |
| 11542 | 11534 |
| 11543 void set imageBytesAsBytes(core.List<core.int> _bytes) { | 11535 void set imageBytesAsBytes(core.List<core.int> _bytes) { |
| 11544 imageBytes = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("
+", "-"); | 11536 imageBytes = |
| 11537 convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "-"); |
| 11545 } | 11538 } |
| 11539 |
| 11546 core.String imageUrl; | 11540 core.String imageUrl; |
| 11547 InvideoPosition position; | 11541 InvideoPosition position; |
| 11548 core.String targetChannelId; | 11542 core.String targetChannelId; |
| 11549 InvideoTiming timing; | 11543 InvideoTiming timing; |
| 11550 | 11544 |
| 11551 InvideoBranding(); | 11545 InvideoBranding(); |
| 11552 | 11546 |
| 11553 InvideoBranding.fromJson(core.Map _json) { | 11547 InvideoBranding.fromJson(core.Map _json) { |
| 11554 if (_json.containsKey("imageBytes")) { | 11548 if (_json.containsKey("imageBytes")) { |
| 11555 imageBytes = _json["imageBytes"]; | 11549 imageBytes = _json["imageBytes"]; |
| 11556 } | 11550 } |
| 11557 if (_json.containsKey("imageUrl")) { | 11551 if (_json.containsKey("imageUrl")) { |
| 11558 imageUrl = _json["imageUrl"]; | 11552 imageUrl = _json["imageUrl"]; |
| 11559 } | 11553 } |
| 11560 if (_json.containsKey("position")) { | 11554 if (_json.containsKey("position")) { |
| 11561 position = new InvideoPosition.fromJson(_json["position"]); | 11555 position = new InvideoPosition.fromJson(_json["position"]); |
| 11562 } | 11556 } |
| 11563 if (_json.containsKey("targetChannelId")) { | 11557 if (_json.containsKey("targetChannelId")) { |
| 11564 targetChannelId = _json["targetChannelId"]; | 11558 targetChannelId = _json["targetChannelId"]; |
| 11565 } | 11559 } |
| 11566 if (_json.containsKey("timing")) { | 11560 if (_json.containsKey("timing")) { |
| 11567 timing = new InvideoTiming.fromJson(_json["timing"]); | 11561 timing = new InvideoTiming.fromJson(_json["timing"]); |
| 11568 } | 11562 } |
| 11569 } | 11563 } |
| 11570 | 11564 |
| 11571 core.Map<core.String, core.Object> toJson() { | 11565 core.Map<core.String, core.Object> toJson() { |
| 11572 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11566 final core.Map<core.String, core.Object> _json = |
| 11567 new core.Map<core.String, core.Object>(); |
| 11573 if (imageBytes != null) { | 11568 if (imageBytes != null) { |
| 11574 _json["imageBytes"] = imageBytes; | 11569 _json["imageBytes"] = imageBytes; |
| 11575 } | 11570 } |
| 11576 if (imageUrl != null) { | 11571 if (imageUrl != null) { |
| 11577 _json["imageUrl"] = imageUrl; | 11572 _json["imageUrl"] = imageUrl; |
| 11578 } | 11573 } |
| 11579 if (position != null) { | 11574 if (position != null) { |
| 11580 _json["position"] = (position).toJson(); | 11575 _json["position"] = (position).toJson(); |
| 11581 } | 11576 } |
| 11582 if (targetChannelId != null) { | 11577 if (targetChannelId != null) { |
| 11583 _json["targetChannelId"] = targetChannelId; | 11578 _json["targetChannelId"] = targetChannelId; |
| 11584 } | 11579 } |
| 11585 if (timing != null) { | 11580 if (timing != null) { |
| 11586 _json["timing"] = (timing).toJson(); | 11581 _json["timing"] = (timing).toJson(); |
| 11587 } | 11582 } |
| 11588 return _json; | 11583 return _json; |
| 11589 } | 11584 } |
| 11590 } | 11585 } |
| 11591 | 11586 |
| 11592 /** | 11587 /// Describes the spatial position of a visual widget inside a video. It is a |
| 11593 * Describes the spatial position of a visual widget inside a video. It is a | 11588 /// union of various position types, out of which only will be set one. |
| 11594 * union of various position types, out of which only will be set one. | |
| 11595 */ | |
| 11596 class InvideoPosition { | 11589 class InvideoPosition { |
| 11597 /** | 11590 /// Describes in which corner of the video the visual widget will appear. |
| 11598 * Describes in which corner of the video the visual widget will appear. | 11591 /// Possible string values are: |
| 11599 * Possible string values are: | 11592 /// - "bottomLeft" |
| 11600 * - "bottomLeft" | 11593 /// - "bottomRight" |
| 11601 * - "bottomRight" | 11594 /// - "topLeft" |
| 11602 * - "topLeft" | 11595 /// - "topRight" |
| 11603 * - "topRight" | |
| 11604 */ | |
| 11605 core.String cornerPosition; | 11596 core.String cornerPosition; |
| 11606 /** | 11597 |
| 11607 * Defines the position type. | 11598 /// Defines the position type. |
| 11608 * Possible string values are: | 11599 /// Possible string values are: |
| 11609 * - "corner" | 11600 /// - "corner" |
| 11610 */ | |
| 11611 core.String type; | 11601 core.String type; |
| 11612 | 11602 |
| 11613 InvideoPosition(); | 11603 InvideoPosition(); |
| 11614 | 11604 |
| 11615 InvideoPosition.fromJson(core.Map _json) { | 11605 InvideoPosition.fromJson(core.Map _json) { |
| 11616 if (_json.containsKey("cornerPosition")) { | 11606 if (_json.containsKey("cornerPosition")) { |
| 11617 cornerPosition = _json["cornerPosition"]; | 11607 cornerPosition = _json["cornerPosition"]; |
| 11618 } | 11608 } |
| 11619 if (_json.containsKey("type")) { | 11609 if (_json.containsKey("type")) { |
| 11620 type = _json["type"]; | 11610 type = _json["type"]; |
| 11621 } | 11611 } |
| 11622 } | 11612 } |
| 11623 | 11613 |
| 11624 core.Map<core.String, core.Object> toJson() { | 11614 core.Map<core.String, core.Object> toJson() { |
| 11625 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11615 final core.Map<core.String, core.Object> _json = |
| 11616 new core.Map<core.String, core.Object>(); |
| 11626 if (cornerPosition != null) { | 11617 if (cornerPosition != null) { |
| 11627 _json["cornerPosition"] = cornerPosition; | 11618 _json["cornerPosition"] = cornerPosition; |
| 11628 } | 11619 } |
| 11629 if (type != null) { | 11620 if (type != null) { |
| 11630 _json["type"] = type; | 11621 _json["type"] = type; |
| 11631 } | 11622 } |
| 11632 return _json; | 11623 return _json; |
| 11633 } | 11624 } |
| 11634 } | 11625 } |
| 11635 | 11626 |
| 11636 /** | 11627 /// Describes an invideo promotion campaign consisting of multiple promoted |
| 11637 * Describes an invideo promotion campaign consisting of multiple promoted | 11628 /// items. A campaign belongs to a single channel_id. |
| 11638 * items. A campaign belongs to a single channel_id. | |
| 11639 */ | |
| 11640 class InvideoPromotion { | 11629 class InvideoPromotion { |
| 11641 /** | 11630 /// The default temporal position within the video where the promoted item |
| 11642 * The default temporal position within the video where the promoted item will | 11631 /// will be displayed. Can be overriden by more specific timing in the item. |
| 11643 * be displayed. Can be overriden by more specific timing in the item. | |
| 11644 */ | |
| 11645 InvideoTiming defaultTiming; | 11632 InvideoTiming defaultTiming; |
| 11646 /** List of promoted items in decreasing priority. */ | 11633 |
| 11634 /// List of promoted items in decreasing priority. |
| 11647 core.List<PromotedItem> items; | 11635 core.List<PromotedItem> items; |
| 11648 /** | 11636 |
| 11649 * The spatial position within the video where the promoted item will be | 11637 /// The spatial position within the video where the promoted item will be |
| 11650 * displayed. | 11638 /// displayed. |
| 11651 */ | |
| 11652 InvideoPosition position; | 11639 InvideoPosition position; |
| 11653 /** | 11640 |
| 11654 * Indicates whether the channel's promotional campaign uses "smart timing." | 11641 /// Indicates whether the channel's promotional campaign uses "smart timing." |
| 11655 * This feature attempts to show promotions at a point in the video when they | 11642 /// This feature attempts to show promotions at a point in the video when |
| 11656 * are more likely to be clicked and less likely to disrupt the viewing | 11643 /// they are more likely to be clicked and less likely to disrupt the viewing |
| 11657 * experience. This feature also picks up a single promotion to show on each | 11644 /// experience. This feature also picks up a single promotion to show on each |
| 11658 * video. | 11645 /// video. |
| 11659 */ | |
| 11660 core.bool useSmartTiming; | 11646 core.bool useSmartTiming; |
| 11661 | 11647 |
| 11662 InvideoPromotion(); | 11648 InvideoPromotion(); |
| 11663 | 11649 |
| 11664 InvideoPromotion.fromJson(core.Map _json) { | 11650 InvideoPromotion.fromJson(core.Map _json) { |
| 11665 if (_json.containsKey("defaultTiming")) { | 11651 if (_json.containsKey("defaultTiming")) { |
| 11666 defaultTiming = new InvideoTiming.fromJson(_json["defaultTiming"]); | 11652 defaultTiming = new InvideoTiming.fromJson(_json["defaultTiming"]); |
| 11667 } | 11653 } |
| 11668 if (_json.containsKey("items")) { | 11654 if (_json.containsKey("items")) { |
| 11669 items = _json["items"].map((value) => new PromotedItem.fromJson(value)).to
List(); | 11655 items = _json["items"] |
| 11656 .map((value) => new PromotedItem.fromJson(value)) |
| 11657 .toList(); |
| 11670 } | 11658 } |
| 11671 if (_json.containsKey("position")) { | 11659 if (_json.containsKey("position")) { |
| 11672 position = new InvideoPosition.fromJson(_json["position"]); | 11660 position = new InvideoPosition.fromJson(_json["position"]); |
| 11673 } | 11661 } |
| 11674 if (_json.containsKey("useSmartTiming")) { | 11662 if (_json.containsKey("useSmartTiming")) { |
| 11675 useSmartTiming = _json["useSmartTiming"]; | 11663 useSmartTiming = _json["useSmartTiming"]; |
| 11676 } | 11664 } |
| 11677 } | 11665 } |
| 11678 | 11666 |
| 11679 core.Map<core.String, core.Object> toJson() { | 11667 core.Map<core.String, core.Object> toJson() { |
| 11680 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11668 final core.Map<core.String, core.Object> _json = |
| 11669 new core.Map<core.String, core.Object>(); |
| 11681 if (defaultTiming != null) { | 11670 if (defaultTiming != null) { |
| 11682 _json["defaultTiming"] = (defaultTiming).toJson(); | 11671 _json["defaultTiming"] = (defaultTiming).toJson(); |
| 11683 } | 11672 } |
| 11684 if (items != null) { | 11673 if (items != null) { |
| 11685 _json["items"] = items.map((value) => (value).toJson()).toList(); | 11674 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 11686 } | 11675 } |
| 11687 if (position != null) { | 11676 if (position != null) { |
| 11688 _json["position"] = (position).toJson(); | 11677 _json["position"] = (position).toJson(); |
| 11689 } | 11678 } |
| 11690 if (useSmartTiming != null) { | 11679 if (useSmartTiming != null) { |
| 11691 _json["useSmartTiming"] = useSmartTiming; | 11680 _json["useSmartTiming"] = useSmartTiming; |
| 11692 } | 11681 } |
| 11693 return _json; | 11682 return _json; |
| 11694 } | 11683 } |
| 11695 } | 11684 } |
| 11696 | 11685 |
| 11697 /** Describes a temporal position of a visual widget inside a video. */ | 11686 /// Describes a temporal position of a visual widget inside a video. |
| 11698 class InvideoTiming { | 11687 class InvideoTiming { |
| 11699 /** | 11688 /// Defines the duration in milliseconds for which the promotion should be |
| 11700 * Defines the duration in milliseconds for which the promotion should be | 11689 /// displayed. If missing, the client should use the default. |
| 11701 * displayed. If missing, the client should use the default. | |
| 11702 */ | |
| 11703 core.String durationMs; | 11690 core.String durationMs; |
| 11704 /** | 11691 |
| 11705 * Defines the time at which the promotion will appear. Depending on the value | 11692 /// Defines the time at which the promotion will appear. Depending on the |
| 11706 * of type the value of the offsetMs field will represent a time offset from | 11693 /// value of type the value of the offsetMs field will represent a time |
| 11707 * the start or from the end of the video, expressed in milliseconds. | 11694 /// offset from the start or from the end of the video, expressed in |
| 11708 */ | 11695 /// milliseconds. |
| 11709 core.String offsetMs; | 11696 core.String offsetMs; |
| 11710 /** | 11697 |
| 11711 * Describes a timing type. If the value is offsetFromStart, then the offsetMs | 11698 /// Describes a timing type. If the value is offsetFromStart, then the |
| 11712 * field represents an offset from the start of the video. If the value is | 11699 /// offsetMs field represents an offset from the start of the video. If the |
| 11713 * offsetFromEnd, then the offsetMs field represents an offset from the end of | 11700 /// value is offsetFromEnd, then the offsetMs field represents an offset from |
| 11714 * the video. | 11701 /// the end of the video. |
| 11715 * Possible string values are: | 11702 /// Possible string values are: |
| 11716 * - "offsetFromEnd" | 11703 /// - "offsetFromEnd" |
| 11717 * - "offsetFromStart" | 11704 /// - "offsetFromStart" |
| 11718 */ | |
| 11719 core.String type; | 11705 core.String type; |
| 11720 | 11706 |
| 11721 InvideoTiming(); | 11707 InvideoTiming(); |
| 11722 | 11708 |
| 11723 InvideoTiming.fromJson(core.Map _json) { | 11709 InvideoTiming.fromJson(core.Map _json) { |
| 11724 if (_json.containsKey("durationMs")) { | 11710 if (_json.containsKey("durationMs")) { |
| 11725 durationMs = _json["durationMs"]; | 11711 durationMs = _json["durationMs"]; |
| 11726 } | 11712 } |
| 11727 if (_json.containsKey("offsetMs")) { | 11713 if (_json.containsKey("offsetMs")) { |
| 11728 offsetMs = _json["offsetMs"]; | 11714 offsetMs = _json["offsetMs"]; |
| 11729 } | 11715 } |
| 11730 if (_json.containsKey("type")) { | 11716 if (_json.containsKey("type")) { |
| 11731 type = _json["type"]; | 11717 type = _json["type"]; |
| 11732 } | 11718 } |
| 11733 } | 11719 } |
| 11734 | 11720 |
| 11735 core.Map<core.String, core.Object> toJson() { | 11721 core.Map<core.String, core.Object> toJson() { |
| 11736 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11722 final core.Map<core.String, core.Object> _json = |
| 11723 new core.Map<core.String, core.Object>(); |
| 11737 if (durationMs != null) { | 11724 if (durationMs != null) { |
| 11738 _json["durationMs"] = durationMs; | 11725 _json["durationMs"] = durationMs; |
| 11739 } | 11726 } |
| 11740 if (offsetMs != null) { | 11727 if (offsetMs != null) { |
| 11741 _json["offsetMs"] = offsetMs; | 11728 _json["offsetMs"] = offsetMs; |
| 11742 } | 11729 } |
| 11743 if (type != null) { | 11730 if (type != null) { |
| 11744 _json["type"] = type; | 11731 _json["type"] = type; |
| 11745 } | 11732 } |
| 11746 return _json; | 11733 return _json; |
| 11747 } | 11734 } |
| 11748 } | 11735 } |
| 11749 | 11736 |
| 11750 class LanguageTag { | 11737 class LanguageTag { |
| 11751 core.String value; | 11738 core.String value; |
| 11752 | 11739 |
| 11753 LanguageTag(); | 11740 LanguageTag(); |
| 11754 | 11741 |
| 11755 LanguageTag.fromJson(core.Map _json) { | 11742 LanguageTag.fromJson(core.Map _json) { |
| 11756 if (_json.containsKey("value")) { | 11743 if (_json.containsKey("value")) { |
| 11757 value = _json["value"]; | 11744 value = _json["value"]; |
| 11758 } | 11745 } |
| 11759 } | 11746 } |
| 11760 | 11747 |
| 11761 core.Map<core.String, core.Object> toJson() { | 11748 core.Map<core.String, core.Object> toJson() { |
| 11762 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11749 final core.Map<core.String, core.Object> _json = |
| 11750 new core.Map<core.String, core.Object>(); |
| 11763 if (value != null) { | 11751 if (value != null) { |
| 11764 _json["value"] = value; | 11752 _json["value"] = value; |
| 11765 } | 11753 } |
| 11766 return _json; | 11754 return _json; |
| 11767 } | 11755 } |
| 11768 } | 11756 } |
| 11769 | 11757 |
| 11770 /** | 11758 /// A liveBroadcast resource represents an event that will be streamed, via |
| 11771 * A liveBroadcast resource represents an event that will be streamed, via live | 11759 /// live video, on YouTube. |
| 11772 * video, on YouTube. | |
| 11773 */ | |
| 11774 class LiveBroadcast { | 11760 class LiveBroadcast { |
| 11775 /** | 11761 /// The contentDetails object contains information about the event's video |
| 11776 * The contentDetails object contains information about the event's video | 11762 /// content, such as whether the content can be shown in an embedded video |
| 11777 * content, such as whether the content can be shown in an embedded video | 11763 /// player or if it will be archived and therefore available for viewing |
| 11778 * player or if it will be archived and therefore available for viewing after | 11764 /// after the event has concluded. |
| 11779 * the event has concluded. | |
| 11780 */ | |
| 11781 LiveBroadcastContentDetails contentDetails; | 11765 LiveBroadcastContentDetails contentDetails; |
| 11782 /** Etag of this resource. */ | 11766 |
| 11767 /// Etag of this resource. |
| 11783 core.String etag; | 11768 core.String etag; |
| 11784 /** The ID that YouTube assigns to uniquely identify the broadcast. */ | 11769 |
| 11770 /// The ID that YouTube assigns to uniquely identify the broadcast. |
| 11785 core.String id; | 11771 core.String id; |
| 11786 /** | 11772 |
| 11787 * Identifies what kind of resource this is. Value: the fixed string | 11773 /// Identifies what kind of resource this is. Value: the fixed string |
| 11788 * "youtube#liveBroadcast". | 11774 /// "youtube#liveBroadcast". |
| 11789 */ | |
| 11790 core.String kind; | 11775 core.String kind; |
| 11791 /** | 11776 |
| 11792 * The snippet object contains basic details about the event, including its | 11777 /// The snippet object contains basic details about the event, including its |
| 11793 * title, description, start time, and end time. | 11778 /// title, description, start time, and end time. |
| 11794 */ | |
| 11795 LiveBroadcastSnippet snippet; | 11779 LiveBroadcastSnippet snippet; |
| 11796 /** | 11780 |
| 11797 * The statistics object contains info about the event's current stats. These | 11781 /// The statistics object contains info about the event's current stats. |
| 11798 * include concurrent viewers and total chat count. Statistics can change (in | 11782 /// These include concurrent viewers and total chat count. Statistics can |
| 11799 * either direction) during the lifetime of an event. Statistics are only | 11783 /// change (in either direction) during the lifetime of an event. Statistics |
| 11800 * returned while the event is live. | 11784 /// are only returned while the event is live. |
| 11801 */ | |
| 11802 LiveBroadcastStatistics statistics; | 11785 LiveBroadcastStatistics statistics; |
| 11803 /** The status object contains information about the event's status. */ | 11786 |
| 11787 /// The status object contains information about the event's status. |
| 11804 LiveBroadcastStatus status; | 11788 LiveBroadcastStatus status; |
| 11805 LiveBroadcastTopicDetails topicDetails; | 11789 LiveBroadcastTopicDetails topicDetails; |
| 11806 | 11790 |
| 11807 LiveBroadcast(); | 11791 LiveBroadcast(); |
| 11808 | 11792 |
| 11809 LiveBroadcast.fromJson(core.Map _json) { | 11793 LiveBroadcast.fromJson(core.Map _json) { |
| 11810 if (_json.containsKey("contentDetails")) { | 11794 if (_json.containsKey("contentDetails")) { |
| 11811 contentDetails = new LiveBroadcastContentDetails.fromJson(_json["contentDe
tails"]); | 11795 contentDetails = |
| 11796 new LiveBroadcastContentDetails.fromJson(_json["contentDetails"]); |
| 11812 } | 11797 } |
| 11813 if (_json.containsKey("etag")) { | 11798 if (_json.containsKey("etag")) { |
| 11814 etag = _json["etag"]; | 11799 etag = _json["etag"]; |
| 11815 } | 11800 } |
| 11816 if (_json.containsKey("id")) { | 11801 if (_json.containsKey("id")) { |
| 11817 id = _json["id"]; | 11802 id = _json["id"]; |
| 11818 } | 11803 } |
| 11819 if (_json.containsKey("kind")) { | 11804 if (_json.containsKey("kind")) { |
| 11820 kind = _json["kind"]; | 11805 kind = _json["kind"]; |
| 11821 } | 11806 } |
| 11822 if (_json.containsKey("snippet")) { | 11807 if (_json.containsKey("snippet")) { |
| 11823 snippet = new LiveBroadcastSnippet.fromJson(_json["snippet"]); | 11808 snippet = new LiveBroadcastSnippet.fromJson(_json["snippet"]); |
| 11824 } | 11809 } |
| 11825 if (_json.containsKey("statistics")) { | 11810 if (_json.containsKey("statistics")) { |
| 11826 statistics = new LiveBroadcastStatistics.fromJson(_json["statistics"]); | 11811 statistics = new LiveBroadcastStatistics.fromJson(_json["statistics"]); |
| 11827 } | 11812 } |
| 11828 if (_json.containsKey("status")) { | 11813 if (_json.containsKey("status")) { |
| 11829 status = new LiveBroadcastStatus.fromJson(_json["status"]); | 11814 status = new LiveBroadcastStatus.fromJson(_json["status"]); |
| 11830 } | 11815 } |
| 11831 if (_json.containsKey("topicDetails")) { | 11816 if (_json.containsKey("topicDetails")) { |
| 11832 topicDetails = new LiveBroadcastTopicDetails.fromJson(_json["topicDetails"
]); | 11817 topicDetails = |
| 11818 new LiveBroadcastTopicDetails.fromJson(_json["topicDetails"]); |
| 11833 } | 11819 } |
| 11834 } | 11820 } |
| 11835 | 11821 |
| 11836 core.Map<core.String, core.Object> toJson() { | 11822 core.Map<core.String, core.Object> toJson() { |
| 11837 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11823 final core.Map<core.String, core.Object> _json = |
| 11824 new core.Map<core.String, core.Object>(); |
| 11838 if (contentDetails != null) { | 11825 if (contentDetails != null) { |
| 11839 _json["contentDetails"] = (contentDetails).toJson(); | 11826 _json["contentDetails"] = (contentDetails).toJson(); |
| 11840 } | 11827 } |
| 11841 if (etag != null) { | 11828 if (etag != null) { |
| 11842 _json["etag"] = etag; | 11829 _json["etag"] = etag; |
| 11843 } | 11830 } |
| 11844 if (id != null) { | 11831 if (id != null) { |
| 11845 _json["id"] = id; | 11832 _json["id"] = id; |
| 11846 } | 11833 } |
| 11847 if (kind != null) { | 11834 if (kind != null) { |
| 11848 _json["kind"] = kind; | 11835 _json["kind"] = kind; |
| 11849 } | 11836 } |
| 11850 if (snippet != null) { | 11837 if (snippet != null) { |
| 11851 _json["snippet"] = (snippet).toJson(); | 11838 _json["snippet"] = (snippet).toJson(); |
| 11852 } | 11839 } |
| 11853 if (statistics != null) { | 11840 if (statistics != null) { |
| 11854 _json["statistics"] = (statistics).toJson(); | 11841 _json["statistics"] = (statistics).toJson(); |
| 11855 } | 11842 } |
| 11856 if (status != null) { | 11843 if (status != null) { |
| 11857 _json["status"] = (status).toJson(); | 11844 _json["status"] = (status).toJson(); |
| 11858 } | 11845 } |
| 11859 if (topicDetails != null) { | 11846 if (topicDetails != null) { |
| 11860 _json["topicDetails"] = (topicDetails).toJson(); | 11847 _json["topicDetails"] = (topicDetails).toJson(); |
| 11861 } | 11848 } |
| 11862 return _json; | 11849 return _json; |
| 11863 } | 11850 } |
| 11864 } | 11851 } |
| 11865 | 11852 |
| 11866 /** Detailed settings of a broadcast. */ | 11853 /// Detailed settings of a broadcast. |
| 11867 class LiveBroadcastContentDetails { | 11854 class LiveBroadcastContentDetails { |
| 11868 /** This value uniquely identifies the live stream bound to the broadcast. */ | 11855 /// This value uniquely identifies the live stream bound to the broadcast. |
| 11869 core.String boundStreamId; | 11856 core.String boundStreamId; |
| 11870 /** | 11857 |
| 11871 * The date and time that the live stream referenced by boundStreamId was last | 11858 /// The date and time that the live stream referenced by boundStreamId was |
| 11872 * updated. | 11859 /// last updated. |
| 11873 */ | |
| 11874 core.DateTime boundStreamLastUpdateTimeMs; | 11860 core.DateTime boundStreamLastUpdateTimeMs; |
| 11875 /** | 11861 |
| 11876 * | 11862 /// |
| 11877 * Possible string values are: | 11863 /// Possible string values are: |
| 11878 * - "closedCaptionsDisabled" | 11864 /// - "closedCaptionsDisabled" |
| 11879 * - "closedCaptionsEmbedded" | 11865 /// - "closedCaptionsEmbedded" |
| 11880 * - "closedCaptionsHttpPost" | 11866 /// - "closedCaptionsHttpPost" |
| 11881 */ | |
| 11882 core.String closedCaptionsType; | 11867 core.String closedCaptionsType; |
| 11883 /** | 11868 |
| 11884 * This setting indicates whether HTTP POST closed captioning is enabled for | 11869 /// This setting indicates whether HTTP POST closed captioning is enabled for |
| 11885 * this broadcast. The ingestion URL of the closed captions is returned | 11870 /// this broadcast. The ingestion URL of the closed captions is returned |
| 11886 * through the liveStreams API. This is mutually exclusive with using the | 11871 /// through the liveStreams API. This is mutually exclusive with using the |
| 11887 * closed_captions_type property, and is equivalent to setting | 11872 /// closed_captions_type property, and is equivalent to setting |
| 11888 * closed_captions_type to CLOSED_CAPTIONS_HTTP_POST. | 11873 /// closed_captions_type to CLOSED_CAPTIONS_HTTP_POST. |
| 11889 */ | |
| 11890 core.bool enableClosedCaptions; | 11874 core.bool enableClosedCaptions; |
| 11891 /** | 11875 |
| 11892 * This setting indicates whether YouTube should enable content encryption for | 11876 /// This setting indicates whether YouTube should enable content encryption |
| 11893 * the broadcast. | 11877 /// for the broadcast. |
| 11894 */ | |
| 11895 core.bool enableContentEncryption; | 11878 core.bool enableContentEncryption; |
| 11896 /** | 11879 |
| 11897 * This setting determines whether viewers can access DVR controls while | 11880 /// This setting determines whether viewers can access DVR controls while |
| 11898 * watching the video. DVR controls enable the viewer to control the video | 11881 /// watching the video. DVR controls enable the viewer to control the video |
| 11899 * playback experience by pausing, rewinding, or fast forwarding content. The | 11882 /// playback experience by pausing, rewinding, or fast forwarding content. |
| 11900 * default value for this property is true. | 11883 /// The default value for this property is true. |
| 11901 * | 11884 /// |
| 11902 * | 11885 /// |
| 11903 * | 11886 /// |
| 11904 * Important: You must set the value to true and also set the enableArchive | 11887 /// Important: You must set the value to true and also set the enableArchive |
| 11905 * property's value to true if you want to make playback available immediately | 11888 /// property's value to true if you want to make playback available |
| 11906 * after the broadcast ends. | 11889 /// immediately after the broadcast ends. |
| 11907 */ | |
| 11908 core.bool enableDvr; | 11890 core.bool enableDvr; |
| 11909 /** | 11891 |
| 11910 * This setting indicates whether the broadcast video can be played in an | 11892 /// This setting indicates whether the broadcast video can be played in an |
| 11911 * embedded player. If you choose to archive the video (using the | 11893 /// embedded player. If you choose to archive the video (using the |
| 11912 * enableArchive property), this setting will also apply to the archived | 11894 /// enableArchive property), this setting will also apply to the archived |
| 11913 * video. | 11895 /// video. |
| 11914 */ | |
| 11915 core.bool enableEmbed; | 11896 core.bool enableEmbed; |
| 11916 /** Indicates whether this broadcast has low latency enabled. */ | 11897 |
| 11898 /// Indicates whether this broadcast has low latency enabled. |
| 11917 core.bool enableLowLatency; | 11899 core.bool enableLowLatency; |
| 11918 /** | 11900 |
| 11919 * The monitorStream object contains information about the monitor stream, | 11901 /// The monitorStream object contains information about the monitor stream, |
| 11920 * which the broadcaster can use to review the event content before the | 11902 /// which the broadcaster can use to review the event content before the |
| 11921 * broadcast stream is shown publicly. | 11903 /// broadcast stream is shown publicly. |
| 11922 */ | |
| 11923 MonitorStreamInfo monitorStream; | 11904 MonitorStreamInfo monitorStream; |
| 11924 /** | 11905 |
| 11925 * The projection format of this broadcast. This defaults to rectangular. | 11906 /// The projection format of this broadcast. This defaults to rectangular. |
| 11926 * Possible string values are: | 11907 /// Possible string values are: |
| 11927 * - "360" | 11908 /// - "360" |
| 11928 * - "rectangular" | 11909 /// - "rectangular" |
| 11929 */ | |
| 11930 core.String projection; | 11910 core.String projection; |
| 11931 /** | 11911 |
| 11932 * Automatically start recording after the event goes live. The default value | 11912 /// Automatically start recording after the event goes live. The default |
| 11933 * for this property is true. | 11913 /// value for this property is true. |
| 11934 * | 11914 /// |
| 11935 * | 11915 /// |
| 11936 * | 11916 /// |
| 11937 * Important: You must also set the enableDvr property's value to true if you | 11917 /// Important: You must also set the enableDvr property's value to true if |
| 11938 * want the playback to be available immediately after the broadcast ends. If | 11918 /// you want the playback to be available immediately after the broadcast |
| 11939 * you set this property's value to true but do not also set the enableDvr | 11919 /// ends. If you set this property's value to true but do not also set the |
| 11940 * property to true, there may be a delay of around one day before the | 11920 /// enableDvr property to true, there may be a delay of around one day before |
| 11941 * archived video will be available for playback. | 11921 /// the archived video will be available for playback. |
| 11942 */ | |
| 11943 core.bool recordFromStart; | 11922 core.bool recordFromStart; |
| 11944 /** | 11923 |
| 11945 * This setting indicates whether the broadcast should automatically begin | 11924 /// This setting indicates whether the broadcast should automatically begin |
| 11946 * with an in-stream slate when you update the broadcast's status to live. | 11925 /// with an in-stream slate when you update the broadcast's status to live. |
| 11947 * After updating the status, you then need to send a liveCuepoints.insert | 11926 /// After updating the status, you then need to send a liveCuepoints.insert |
| 11948 * request that sets the cuepoint's eventState to end to remove the in-stream | 11927 /// request that sets the cuepoint's eventState to end to remove the |
| 11949 * slate and make your broadcast stream visible to viewers. | 11928 /// in-stream slate and make your broadcast stream visible to viewers. |
| 11950 */ | |
| 11951 core.bool startWithSlate; | 11929 core.bool startWithSlate; |
| 11952 | 11930 |
| 11953 LiveBroadcastContentDetails(); | 11931 LiveBroadcastContentDetails(); |
| 11954 | 11932 |
| 11955 LiveBroadcastContentDetails.fromJson(core.Map _json) { | 11933 LiveBroadcastContentDetails.fromJson(core.Map _json) { |
| 11956 if (_json.containsKey("boundStreamId")) { | 11934 if (_json.containsKey("boundStreamId")) { |
| 11957 boundStreamId = _json["boundStreamId"]; | 11935 boundStreamId = _json["boundStreamId"]; |
| 11958 } | 11936 } |
| 11959 if (_json.containsKey("boundStreamLastUpdateTimeMs")) { | 11937 if (_json.containsKey("boundStreamLastUpdateTimeMs")) { |
| 11960 boundStreamLastUpdateTimeMs = core.DateTime.parse(_json["boundStreamLastUp
dateTimeMs"]); | 11938 boundStreamLastUpdateTimeMs = |
| 11939 core.DateTime.parse(_json["boundStreamLastUpdateTimeMs"]); |
| 11961 } | 11940 } |
| 11962 if (_json.containsKey("closedCaptionsType")) { | 11941 if (_json.containsKey("closedCaptionsType")) { |
| 11963 closedCaptionsType = _json["closedCaptionsType"]; | 11942 closedCaptionsType = _json["closedCaptionsType"]; |
| 11964 } | 11943 } |
| 11965 if (_json.containsKey("enableClosedCaptions")) { | 11944 if (_json.containsKey("enableClosedCaptions")) { |
| 11966 enableClosedCaptions = _json["enableClosedCaptions"]; | 11945 enableClosedCaptions = _json["enableClosedCaptions"]; |
| 11967 } | 11946 } |
| 11968 if (_json.containsKey("enableContentEncryption")) { | 11947 if (_json.containsKey("enableContentEncryption")) { |
| 11969 enableContentEncryption = _json["enableContentEncryption"]; | 11948 enableContentEncryption = _json["enableContentEncryption"]; |
| 11970 } | 11949 } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 11985 } | 11964 } |
| 11986 if (_json.containsKey("recordFromStart")) { | 11965 if (_json.containsKey("recordFromStart")) { |
| 11987 recordFromStart = _json["recordFromStart"]; | 11966 recordFromStart = _json["recordFromStart"]; |
| 11988 } | 11967 } |
| 11989 if (_json.containsKey("startWithSlate")) { | 11968 if (_json.containsKey("startWithSlate")) { |
| 11990 startWithSlate = _json["startWithSlate"]; | 11969 startWithSlate = _json["startWithSlate"]; |
| 11991 } | 11970 } |
| 11992 } | 11971 } |
| 11993 | 11972 |
| 11994 core.Map<core.String, core.Object> toJson() { | 11973 core.Map<core.String, core.Object> toJson() { |
| 11995 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 11974 final core.Map<core.String, core.Object> _json = |
| 11975 new core.Map<core.String, core.Object>(); |
| 11996 if (boundStreamId != null) { | 11976 if (boundStreamId != null) { |
| 11997 _json["boundStreamId"] = boundStreamId; | 11977 _json["boundStreamId"] = boundStreamId; |
| 11998 } | 11978 } |
| 11999 if (boundStreamLastUpdateTimeMs != null) { | 11979 if (boundStreamLastUpdateTimeMs != null) { |
| 12000 _json["boundStreamLastUpdateTimeMs"] = (boundStreamLastUpdateTimeMs).toIso
8601String(); | 11980 _json["boundStreamLastUpdateTimeMs"] = |
| 11981 (boundStreamLastUpdateTimeMs).toIso8601String(); |
| 12001 } | 11982 } |
| 12002 if (closedCaptionsType != null) { | 11983 if (closedCaptionsType != null) { |
| 12003 _json["closedCaptionsType"] = closedCaptionsType; | 11984 _json["closedCaptionsType"] = closedCaptionsType; |
| 12004 } | 11985 } |
| 12005 if (enableClosedCaptions != null) { | 11986 if (enableClosedCaptions != null) { |
| 12006 _json["enableClosedCaptions"] = enableClosedCaptions; | 11987 _json["enableClosedCaptions"] = enableClosedCaptions; |
| 12007 } | 11988 } |
| 12008 if (enableContentEncryption != null) { | 11989 if (enableContentEncryption != null) { |
| 12009 _json["enableContentEncryption"] = enableContentEncryption; | 11990 _json["enableContentEncryption"] = enableContentEncryption; |
| 12010 } | 11991 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 12027 _json["recordFromStart"] = recordFromStart; | 12008 _json["recordFromStart"] = recordFromStart; |
| 12028 } | 12009 } |
| 12029 if (startWithSlate != null) { | 12010 if (startWithSlate != null) { |
| 12030 _json["startWithSlate"] = startWithSlate; | 12011 _json["startWithSlate"] = startWithSlate; |
| 12031 } | 12012 } |
| 12032 return _json; | 12013 return _json; |
| 12033 } | 12014 } |
| 12034 } | 12015 } |
| 12035 | 12016 |
| 12036 class LiveBroadcastListResponse { | 12017 class LiveBroadcastListResponse { |
| 12037 /** Etag of this resource. */ | 12018 /// Etag of this resource. |
| 12038 core.String etag; | 12019 core.String etag; |
| 12039 /** Serialized EventId of the request which produced this response. */ | 12020 |
| 12021 /// Serialized EventId of the request which produced this response. |
| 12040 core.String eventId; | 12022 core.String eventId; |
| 12041 /** A list of broadcasts that match the request criteria. */ | 12023 |
| 12024 /// A list of broadcasts that match the request criteria. |
| 12042 core.List<LiveBroadcast> items; | 12025 core.List<LiveBroadcast> items; |
| 12043 /** | 12026 |
| 12044 * Identifies what kind of resource this is. Value: the fixed string | 12027 /// Identifies what kind of resource this is. Value: the fixed string |
| 12045 * "youtube#liveBroadcastListResponse". | 12028 /// "youtube#liveBroadcastListResponse". |
| 12046 */ | |
| 12047 core.String kind; | 12029 core.String kind; |
| 12048 /** | 12030 |
| 12049 * The token that can be used as the value of the pageToken parameter to | 12031 /// The token that can be used as the value of the pageToken parameter to |
| 12050 * retrieve the next page in the result set. | 12032 /// retrieve the next page in the result set. |
| 12051 */ | |
| 12052 core.String nextPageToken; | 12033 core.String nextPageToken; |
| 12053 PageInfo pageInfo; | 12034 PageInfo pageInfo; |
| 12054 /** | 12035 |
| 12055 * The token that can be used as the value of the pageToken parameter to | 12036 /// The token that can be used as the value of the pageToken parameter to |
| 12056 * retrieve the previous page in the result set. | 12037 /// retrieve the previous page in the result set. |
| 12057 */ | |
| 12058 core.String prevPageToken; | 12038 core.String prevPageToken; |
| 12059 TokenPagination tokenPagination; | 12039 TokenPagination tokenPagination; |
| 12060 /** The visitorId identifies the visitor. */ | 12040 |
| 12041 /// The visitorId identifies the visitor. |
| 12061 core.String visitorId; | 12042 core.String visitorId; |
| 12062 | 12043 |
| 12063 LiveBroadcastListResponse(); | 12044 LiveBroadcastListResponse(); |
| 12064 | 12045 |
| 12065 LiveBroadcastListResponse.fromJson(core.Map _json) { | 12046 LiveBroadcastListResponse.fromJson(core.Map _json) { |
| 12066 if (_json.containsKey("etag")) { | 12047 if (_json.containsKey("etag")) { |
| 12067 etag = _json["etag"]; | 12048 etag = _json["etag"]; |
| 12068 } | 12049 } |
| 12069 if (_json.containsKey("eventId")) { | 12050 if (_json.containsKey("eventId")) { |
| 12070 eventId = _json["eventId"]; | 12051 eventId = _json["eventId"]; |
| 12071 } | 12052 } |
| 12072 if (_json.containsKey("items")) { | 12053 if (_json.containsKey("items")) { |
| 12073 items = _json["items"].map((value) => new LiveBroadcast.fromJson(value)).t
oList(); | 12054 items = _json["items"] |
| 12055 .map((value) => new LiveBroadcast.fromJson(value)) |
| 12056 .toList(); |
| 12074 } | 12057 } |
| 12075 if (_json.containsKey("kind")) { | 12058 if (_json.containsKey("kind")) { |
| 12076 kind = _json["kind"]; | 12059 kind = _json["kind"]; |
| 12077 } | 12060 } |
| 12078 if (_json.containsKey("nextPageToken")) { | 12061 if (_json.containsKey("nextPageToken")) { |
| 12079 nextPageToken = _json["nextPageToken"]; | 12062 nextPageToken = _json["nextPageToken"]; |
| 12080 } | 12063 } |
| 12081 if (_json.containsKey("pageInfo")) { | 12064 if (_json.containsKey("pageInfo")) { |
| 12082 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 12065 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 12083 } | 12066 } |
| 12084 if (_json.containsKey("prevPageToken")) { | 12067 if (_json.containsKey("prevPageToken")) { |
| 12085 prevPageToken = _json["prevPageToken"]; | 12068 prevPageToken = _json["prevPageToken"]; |
| 12086 } | 12069 } |
| 12087 if (_json.containsKey("tokenPagination")) { | 12070 if (_json.containsKey("tokenPagination")) { |
| 12088 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 12071 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 12089 } | 12072 } |
| 12090 if (_json.containsKey("visitorId")) { | 12073 if (_json.containsKey("visitorId")) { |
| 12091 visitorId = _json["visitorId"]; | 12074 visitorId = _json["visitorId"]; |
| 12092 } | 12075 } |
| 12093 } | 12076 } |
| 12094 | 12077 |
| 12095 core.Map<core.String, core.Object> toJson() { | 12078 core.Map<core.String, core.Object> toJson() { |
| 12096 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12079 final core.Map<core.String, core.Object> _json = |
| 12080 new core.Map<core.String, core.Object>(); |
| 12097 if (etag != null) { | 12081 if (etag != null) { |
| 12098 _json["etag"] = etag; | 12082 _json["etag"] = etag; |
| 12099 } | 12083 } |
| 12100 if (eventId != null) { | 12084 if (eventId != null) { |
| 12101 _json["eventId"] = eventId; | 12085 _json["eventId"] = eventId; |
| 12102 } | 12086 } |
| 12103 if (items != null) { | 12087 if (items != null) { |
| 12104 _json["items"] = items.map((value) => (value).toJson()).toList(); | 12088 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 12105 } | 12089 } |
| 12106 if (kind != null) { | 12090 if (kind != null) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 12119 _json["tokenPagination"] = (tokenPagination).toJson(); | 12103 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 12120 } | 12104 } |
| 12121 if (visitorId != null) { | 12105 if (visitorId != null) { |
| 12122 _json["visitorId"] = visitorId; | 12106 _json["visitorId"] = visitorId; |
| 12123 } | 12107 } |
| 12124 return _json; | 12108 return _json; |
| 12125 } | 12109 } |
| 12126 } | 12110 } |
| 12127 | 12111 |
| 12128 class LiveBroadcastSnippet { | 12112 class LiveBroadcastSnippet { |
| 12129 /** | 12113 /// The date and time that the broadcast actually ended. This information is |
| 12130 * The date and time that the broadcast actually ended. This information is | 12114 /// only available once the broadcast's state is complete. The value is |
| 12131 * only available once the broadcast's state is complete. The value is | 12115 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 12132 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | |
| 12133 */ | |
| 12134 core.DateTime actualEndTime; | 12116 core.DateTime actualEndTime; |
| 12135 /** | 12117 |
| 12136 * The date and time that the broadcast actually started. This information is | 12118 /// The date and time that the broadcast actually started. This information |
| 12137 * only available once the broadcast's state is live. The value is specified | 12119 /// is only available once the broadcast's state is live. The value is |
| 12138 * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 12120 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 12139 */ | |
| 12140 core.DateTime actualStartTime; | 12121 core.DateTime actualStartTime; |
| 12141 /** | 12122 |
| 12142 * The ID that YouTube uses to uniquely identify the channel that is | 12123 /// The ID that YouTube uses to uniquely identify the channel that is |
| 12143 * publishing the broadcast. | 12124 /// publishing the broadcast. |
| 12144 */ | |
| 12145 core.String channelId; | 12125 core.String channelId; |
| 12146 /** | 12126 |
| 12147 * The broadcast's description. As with the title, you can set this field by | 12127 /// The broadcast's description. As with the title, you can set this field by |
| 12148 * modifying the broadcast resource or by setting the description field of the | 12128 /// modifying the broadcast resource or by setting the description field of |
| 12149 * corresponding video resource. | 12129 /// the corresponding video resource. |
| 12150 */ | |
| 12151 core.String description; | 12130 core.String description; |
| 12152 core.bool isDefaultBroadcast; | 12131 core.bool isDefaultBroadcast; |
| 12153 /** The id of the live chat for this broadcast. */ | 12132 |
| 12133 /// The id of the live chat for this broadcast. |
| 12154 core.String liveChatId; | 12134 core.String liveChatId; |
| 12155 /** | 12135 |
| 12156 * The date and time that the broadcast was added to YouTube's live broadcast | 12136 /// The date and time that the broadcast was added to YouTube's live |
| 12157 * schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) | 12137 /// broadcast schedule. The value is specified in ISO 8601 |
| 12158 * format. | 12138 /// (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 12159 */ | |
| 12160 core.DateTime publishedAt; | 12139 core.DateTime publishedAt; |
| 12161 /** | 12140 |
| 12162 * The date and time that the broadcast is scheduled to end. The value is | 12141 /// The date and time that the broadcast is scheduled to end. The value is |
| 12163 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 12142 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 12164 */ | |
| 12165 core.DateTime scheduledEndTime; | 12143 core.DateTime scheduledEndTime; |
| 12166 /** | 12144 |
| 12167 * The date and time that the broadcast is scheduled to start. The value is | 12145 /// The date and time that the broadcast is scheduled to start. The value is |
| 12168 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 12146 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 12169 */ | |
| 12170 core.DateTime scheduledStartTime; | 12147 core.DateTime scheduledStartTime; |
| 12171 /** | 12148 |
| 12172 * A map of thumbnail images associated with the broadcast. For each nested | 12149 /// A map of thumbnail images associated with the broadcast. For each nested |
| 12173 * object in this object, the key is the name of the thumbnail image, and the | 12150 /// object in this object, the key is the name of the thumbnail image, and |
| 12174 * value is an object that contains other information about the thumbnail. | 12151 /// the value is an object that contains other information about the |
| 12175 */ | 12152 /// thumbnail. |
| 12176 ThumbnailDetails thumbnails; | 12153 ThumbnailDetails thumbnails; |
| 12177 /** | 12154 |
| 12178 * The broadcast's title. Note that the broadcast represents exactly one | 12155 /// The broadcast's title. Note that the broadcast represents exactly one |
| 12179 * YouTube video. You can set this field by modifying the broadcast resource | 12156 /// YouTube video. You can set this field by modifying the broadcast resource |
| 12180 * or by setting the title field of the corresponding video resource. | 12157 /// or by setting the title field of the corresponding video resource. |
| 12181 */ | |
| 12182 core.String title; | 12158 core.String title; |
| 12183 | 12159 |
| 12184 LiveBroadcastSnippet(); | 12160 LiveBroadcastSnippet(); |
| 12185 | 12161 |
| 12186 LiveBroadcastSnippet.fromJson(core.Map _json) { | 12162 LiveBroadcastSnippet.fromJson(core.Map _json) { |
| 12187 if (_json.containsKey("actualEndTime")) { | 12163 if (_json.containsKey("actualEndTime")) { |
| 12188 actualEndTime = core.DateTime.parse(_json["actualEndTime"]); | 12164 actualEndTime = core.DateTime.parse(_json["actualEndTime"]); |
| 12189 } | 12165 } |
| 12190 if (_json.containsKey("actualStartTime")) { | 12166 if (_json.containsKey("actualStartTime")) { |
| 12191 actualStartTime = core.DateTime.parse(_json["actualStartTime"]); | 12167 actualStartTime = core.DateTime.parse(_json["actualStartTime"]); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 12213 } | 12189 } |
| 12214 if (_json.containsKey("thumbnails")) { | 12190 if (_json.containsKey("thumbnails")) { |
| 12215 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 12191 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
| 12216 } | 12192 } |
| 12217 if (_json.containsKey("title")) { | 12193 if (_json.containsKey("title")) { |
| 12218 title = _json["title"]; | 12194 title = _json["title"]; |
| 12219 } | 12195 } |
| 12220 } | 12196 } |
| 12221 | 12197 |
| 12222 core.Map<core.String, core.Object> toJson() { | 12198 core.Map<core.String, core.Object> toJson() { |
| 12223 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12199 final core.Map<core.String, core.Object> _json = |
| 12200 new core.Map<core.String, core.Object>(); |
| 12224 if (actualEndTime != null) { | 12201 if (actualEndTime != null) { |
| 12225 _json["actualEndTime"] = (actualEndTime).toIso8601String(); | 12202 _json["actualEndTime"] = (actualEndTime).toIso8601String(); |
| 12226 } | 12203 } |
| 12227 if (actualStartTime != null) { | 12204 if (actualStartTime != null) { |
| 12228 _json["actualStartTime"] = (actualStartTime).toIso8601String(); | 12205 _json["actualStartTime"] = (actualStartTime).toIso8601String(); |
| 12229 } | 12206 } |
| 12230 if (channelId != null) { | 12207 if (channelId != null) { |
| 12231 _json["channelId"] = channelId; | 12208 _json["channelId"] = channelId; |
| 12232 } | 12209 } |
| 12233 if (description != null) { | 12210 if (description != null) { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 12251 if (thumbnails != null) { | 12228 if (thumbnails != null) { |
| 12252 _json["thumbnails"] = (thumbnails).toJson(); | 12229 _json["thumbnails"] = (thumbnails).toJson(); |
| 12253 } | 12230 } |
| 12254 if (title != null) { | 12231 if (title != null) { |
| 12255 _json["title"] = title; | 12232 _json["title"] = title; |
| 12256 } | 12233 } |
| 12257 return _json; | 12234 return _json; |
| 12258 } | 12235 } |
| 12259 } | 12236 } |
| 12260 | 12237 |
| 12261 /** | 12238 /// Statistics about the live broadcast. These represent a snapshot of the |
| 12262 * Statistics about the live broadcast. These represent a snapshot of the values | 12239 /// values at the time of the request. Statistics are only returned for live |
| 12263 * at the time of the request. Statistics are only returned for live broadcasts. | 12240 /// broadcasts. |
| 12264 */ | |
| 12265 class LiveBroadcastStatistics { | 12241 class LiveBroadcastStatistics { |
| 12266 /** | 12242 /// The number of viewers currently watching the broadcast. The property and |
| 12267 * The number of viewers currently watching the broadcast. The property and | 12243 /// its value will be present if the broadcast has current viewers and the |
| 12268 * its value will be present if the broadcast has current viewers and the | 12244 /// broadcast owner has not hidden the viewcount for the video. Note that |
| 12269 * broadcast owner has not hidden the viewcount for the video. Note that | 12245 /// YouTube stops tracking the number of concurrent viewers for a broadcast |
| 12270 * YouTube stops tracking the number of concurrent viewers for a broadcast | 12246 /// when the broadcast ends. So, this property would not identify the number |
| 12271 * when the broadcast ends. So, this property would not identify the number of | 12247 /// of viewers watching an archived video of a live broadcast that already |
| 12272 * viewers watching an archived video of a live broadcast that already ended. | 12248 /// ended. |
| 12273 */ | |
| 12274 core.String concurrentViewers; | 12249 core.String concurrentViewers; |
| 12275 /** | 12250 |
| 12276 * The total number of live chat messages currently on the broadcast. The | 12251 /// The total number of live chat messages currently on the broadcast. The |
| 12277 * property and its value will be present if the broadcast is public, has the | 12252 /// property and its value will be present if the broadcast is public, has |
| 12278 * live chat feature enabled, and has at least one message. Note that this | 12253 /// the live chat feature enabled, and has at least one message. Note that |
| 12279 * field will not be filled after the broadcast ends. So this property would | 12254 /// this field will not be filled after the broadcast ends. So this property |
| 12280 * not identify the number of chat messages for an archived video of a | 12255 /// would not identify the number of chat messages for an archived video of a |
| 12281 * completed live broadcast. | 12256 /// completed live broadcast. |
| 12282 */ | |
| 12283 core.String totalChatCount; | 12257 core.String totalChatCount; |
| 12284 | 12258 |
| 12285 LiveBroadcastStatistics(); | 12259 LiveBroadcastStatistics(); |
| 12286 | 12260 |
| 12287 LiveBroadcastStatistics.fromJson(core.Map _json) { | 12261 LiveBroadcastStatistics.fromJson(core.Map _json) { |
| 12288 if (_json.containsKey("concurrentViewers")) { | 12262 if (_json.containsKey("concurrentViewers")) { |
| 12289 concurrentViewers = _json["concurrentViewers"]; | 12263 concurrentViewers = _json["concurrentViewers"]; |
| 12290 } | 12264 } |
| 12291 if (_json.containsKey("totalChatCount")) { | 12265 if (_json.containsKey("totalChatCount")) { |
| 12292 totalChatCount = _json["totalChatCount"]; | 12266 totalChatCount = _json["totalChatCount"]; |
| 12293 } | 12267 } |
| 12294 } | 12268 } |
| 12295 | 12269 |
| 12296 core.Map<core.String, core.Object> toJson() { | 12270 core.Map<core.String, core.Object> toJson() { |
| 12297 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12271 final core.Map<core.String, core.Object> _json = |
| 12272 new core.Map<core.String, core.Object>(); |
| 12298 if (concurrentViewers != null) { | 12273 if (concurrentViewers != null) { |
| 12299 _json["concurrentViewers"] = concurrentViewers; | 12274 _json["concurrentViewers"] = concurrentViewers; |
| 12300 } | 12275 } |
| 12301 if (totalChatCount != null) { | 12276 if (totalChatCount != null) { |
| 12302 _json["totalChatCount"] = totalChatCount; | 12277 _json["totalChatCount"] = totalChatCount; |
| 12303 } | 12278 } |
| 12304 return _json; | 12279 return _json; |
| 12305 } | 12280 } |
| 12306 } | 12281 } |
| 12307 | 12282 |
| 12308 class LiveBroadcastStatus { | 12283 class LiveBroadcastStatus { |
| 12309 /** | 12284 /// The broadcast's status. The status can be updated using the API's |
| 12310 * The broadcast's status. The status can be updated using the API's | 12285 /// liveBroadcasts.transition method. |
| 12311 * liveBroadcasts.transition method. | 12286 /// Possible string values are: |
| 12312 * Possible string values are: | 12287 /// - "abandoned" |
| 12313 * - "abandoned" | 12288 /// - "complete" |
| 12314 * - "complete" | 12289 /// - "completeStarting" |
| 12315 * - "completeStarting" | 12290 /// - "created" |
| 12316 * - "created" | 12291 /// - "live" |
| 12317 * - "live" | 12292 /// - "liveStarting" |
| 12318 * - "liveStarting" | 12293 /// - "ready" |
| 12319 * - "ready" | 12294 /// - "reclaimed" |
| 12320 * - "reclaimed" | 12295 /// - "revoked" |
| 12321 * - "revoked" | 12296 /// - "testStarting" |
| 12322 * - "testStarting" | 12297 /// - "testing" |
| 12323 * - "testing" | |
| 12324 */ | |
| 12325 core.String lifeCycleStatus; | 12298 core.String lifeCycleStatus; |
| 12326 /** | 12299 |
| 12327 * Priority of the live broadcast event (internal state). | 12300 /// Priority of the live broadcast event (internal state). |
| 12328 * Possible string values are: | 12301 /// Possible string values are: |
| 12329 * - "high" | 12302 /// - "high" |
| 12330 * - "low" | 12303 /// - "low" |
| 12331 * - "normal" | 12304 /// - "normal" |
| 12332 */ | |
| 12333 core.String liveBroadcastPriority; | 12305 core.String liveBroadcastPriority; |
| 12334 /** | 12306 |
| 12335 * The broadcast's privacy status. Note that the broadcast represents exactly | 12307 /// The broadcast's privacy status. Note that the broadcast represents |
| 12336 * one YouTube video, so the privacy settings are identical to those supported | 12308 /// exactly one YouTube video, so the privacy settings are identical to those |
| 12337 * for videos. In addition, you can set this field by modifying the broadcast | 12309 /// supported for videos. In addition, you can set this field by modifying |
| 12338 * resource or by setting the privacyStatus field of the corresponding video | 12310 /// the broadcast resource or by setting the privacyStatus field of the |
| 12339 * resource. | 12311 /// corresponding video resource. |
| 12340 * Possible string values are: | 12312 /// Possible string values are: |
| 12341 * - "private" | 12313 /// - "private" |
| 12342 * - "public" | 12314 /// - "public" |
| 12343 * - "unlisted" | 12315 /// - "unlisted" |
| 12344 */ | |
| 12345 core.String privacyStatus; | 12316 core.String privacyStatus; |
| 12346 /** | 12317 |
| 12347 * The broadcast's recording status. | 12318 /// The broadcast's recording status. |
| 12348 * Possible string values are: | 12319 /// Possible string values are: |
| 12349 * - "notRecording" | 12320 /// - "notRecording" |
| 12350 * - "recorded" | 12321 /// - "recorded" |
| 12351 * - "recording" | 12322 /// - "recording" |
| 12352 */ | |
| 12353 core.String recordingStatus; | 12323 core.String recordingStatus; |
| 12354 | 12324 |
| 12355 LiveBroadcastStatus(); | 12325 LiveBroadcastStatus(); |
| 12356 | 12326 |
| 12357 LiveBroadcastStatus.fromJson(core.Map _json) { | 12327 LiveBroadcastStatus.fromJson(core.Map _json) { |
| 12358 if (_json.containsKey("lifeCycleStatus")) { | 12328 if (_json.containsKey("lifeCycleStatus")) { |
| 12359 lifeCycleStatus = _json["lifeCycleStatus"]; | 12329 lifeCycleStatus = _json["lifeCycleStatus"]; |
| 12360 } | 12330 } |
| 12361 if (_json.containsKey("liveBroadcastPriority")) { | 12331 if (_json.containsKey("liveBroadcastPriority")) { |
| 12362 liveBroadcastPriority = _json["liveBroadcastPriority"]; | 12332 liveBroadcastPriority = _json["liveBroadcastPriority"]; |
| 12363 } | 12333 } |
| 12364 if (_json.containsKey("privacyStatus")) { | 12334 if (_json.containsKey("privacyStatus")) { |
| 12365 privacyStatus = _json["privacyStatus"]; | 12335 privacyStatus = _json["privacyStatus"]; |
| 12366 } | 12336 } |
| 12367 if (_json.containsKey("recordingStatus")) { | 12337 if (_json.containsKey("recordingStatus")) { |
| 12368 recordingStatus = _json["recordingStatus"]; | 12338 recordingStatus = _json["recordingStatus"]; |
| 12369 } | 12339 } |
| 12370 } | 12340 } |
| 12371 | 12341 |
| 12372 core.Map<core.String, core.Object> toJson() { | 12342 core.Map<core.String, core.Object> toJson() { |
| 12373 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12343 final core.Map<core.String, core.Object> _json = |
| 12344 new core.Map<core.String, core.Object>(); |
| 12374 if (lifeCycleStatus != null) { | 12345 if (lifeCycleStatus != null) { |
| 12375 _json["lifeCycleStatus"] = lifeCycleStatus; | 12346 _json["lifeCycleStatus"] = lifeCycleStatus; |
| 12376 } | 12347 } |
| 12377 if (liveBroadcastPriority != null) { | 12348 if (liveBroadcastPriority != null) { |
| 12378 _json["liveBroadcastPriority"] = liveBroadcastPriority; | 12349 _json["liveBroadcastPriority"] = liveBroadcastPriority; |
| 12379 } | 12350 } |
| 12380 if (privacyStatus != null) { | 12351 if (privacyStatus != null) { |
| 12381 _json["privacyStatus"] = privacyStatus; | 12352 _json["privacyStatus"] = privacyStatus; |
| 12382 } | 12353 } |
| 12383 if (recordingStatus != null) { | 12354 if (recordingStatus != null) { |
| 12384 _json["recordingStatus"] = recordingStatus; | 12355 _json["recordingStatus"] = recordingStatus; |
| 12385 } | 12356 } |
| 12386 return _json; | 12357 return _json; |
| 12387 } | 12358 } |
| 12388 } | 12359 } |
| 12389 | 12360 |
| 12390 class LiveBroadcastTopic { | 12361 class LiveBroadcastTopic { |
| 12391 /** Information about the topic matched. */ | 12362 /// Information about the topic matched. |
| 12392 LiveBroadcastTopicSnippet snippet; | 12363 LiveBroadcastTopicSnippet snippet; |
| 12393 /** | 12364 |
| 12394 * The type of the topic. | 12365 /// The type of the topic. |
| 12395 * Possible string values are: | 12366 /// Possible string values are: |
| 12396 * - "videoGame" | 12367 /// - "videoGame" |
| 12397 */ | |
| 12398 core.String type; | 12368 core.String type; |
| 12399 /** | 12369 |
| 12400 * If this flag is set it means that we have not been able to match the topic | 12370 /// If this flag is set it means that we have not been able to match the |
| 12401 * title and type provided to a known entity. | 12371 /// topic title and type provided to a known entity. |
| 12402 */ | |
| 12403 core.bool unmatched; | 12372 core.bool unmatched; |
| 12404 | 12373 |
| 12405 LiveBroadcastTopic(); | 12374 LiveBroadcastTopic(); |
| 12406 | 12375 |
| 12407 LiveBroadcastTopic.fromJson(core.Map _json) { | 12376 LiveBroadcastTopic.fromJson(core.Map _json) { |
| 12408 if (_json.containsKey("snippet")) { | 12377 if (_json.containsKey("snippet")) { |
| 12409 snippet = new LiveBroadcastTopicSnippet.fromJson(_json["snippet"]); | 12378 snippet = new LiveBroadcastTopicSnippet.fromJson(_json["snippet"]); |
| 12410 } | 12379 } |
| 12411 if (_json.containsKey("type")) { | 12380 if (_json.containsKey("type")) { |
| 12412 type = _json["type"]; | 12381 type = _json["type"]; |
| 12413 } | 12382 } |
| 12414 if (_json.containsKey("unmatched")) { | 12383 if (_json.containsKey("unmatched")) { |
| 12415 unmatched = _json["unmatched"]; | 12384 unmatched = _json["unmatched"]; |
| 12416 } | 12385 } |
| 12417 } | 12386 } |
| 12418 | 12387 |
| 12419 core.Map<core.String, core.Object> toJson() { | 12388 core.Map<core.String, core.Object> toJson() { |
| 12420 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12389 final core.Map<core.String, core.Object> _json = |
| 12390 new core.Map<core.String, core.Object>(); |
| 12421 if (snippet != null) { | 12391 if (snippet != null) { |
| 12422 _json["snippet"] = (snippet).toJson(); | 12392 _json["snippet"] = (snippet).toJson(); |
| 12423 } | 12393 } |
| 12424 if (type != null) { | 12394 if (type != null) { |
| 12425 _json["type"] = type; | 12395 _json["type"] = type; |
| 12426 } | 12396 } |
| 12427 if (unmatched != null) { | 12397 if (unmatched != null) { |
| 12428 _json["unmatched"] = unmatched; | 12398 _json["unmatched"] = unmatched; |
| 12429 } | 12399 } |
| 12430 return _json; | 12400 return _json; |
| 12431 } | 12401 } |
| 12432 } | 12402 } |
| 12433 | 12403 |
| 12434 class LiveBroadcastTopicDetails { | 12404 class LiveBroadcastTopicDetails { |
| 12435 core.List<LiveBroadcastTopic> topics; | 12405 core.List<LiveBroadcastTopic> topics; |
| 12436 | 12406 |
| 12437 LiveBroadcastTopicDetails(); | 12407 LiveBroadcastTopicDetails(); |
| 12438 | 12408 |
| 12439 LiveBroadcastTopicDetails.fromJson(core.Map _json) { | 12409 LiveBroadcastTopicDetails.fromJson(core.Map _json) { |
| 12440 if (_json.containsKey("topics")) { | 12410 if (_json.containsKey("topics")) { |
| 12441 topics = _json["topics"].map((value) => new LiveBroadcastTopic.fromJson(va
lue)).toList(); | 12411 topics = _json["topics"] |
| 12412 .map((value) => new LiveBroadcastTopic.fromJson(value)) |
| 12413 .toList(); |
| 12442 } | 12414 } |
| 12443 } | 12415 } |
| 12444 | 12416 |
| 12445 core.Map<core.String, core.Object> toJson() { | 12417 core.Map<core.String, core.Object> toJson() { |
| 12446 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12418 final core.Map<core.String, core.Object> _json = |
| 12419 new core.Map<core.String, core.Object>(); |
| 12447 if (topics != null) { | 12420 if (topics != null) { |
| 12448 _json["topics"] = topics.map((value) => (value).toJson()).toList(); | 12421 _json["topics"] = topics.map((value) => (value).toJson()).toList(); |
| 12449 } | 12422 } |
| 12450 return _json; | 12423 return _json; |
| 12451 } | 12424 } |
| 12452 } | 12425 } |
| 12453 | 12426 |
| 12454 class LiveBroadcastTopicSnippet { | 12427 class LiveBroadcastTopicSnippet { |
| 12455 /** The name of the topic. */ | 12428 /// The name of the topic. |
| 12456 core.String name; | 12429 core.String name; |
| 12457 /** The date at which the topic was released. Filled for types: videoGame */ | 12430 |
| 12431 /// The date at which the topic was released. Filled for types: videoGame |
| 12458 core.String releaseDate; | 12432 core.String releaseDate; |
| 12459 | 12433 |
| 12460 LiveBroadcastTopicSnippet(); | 12434 LiveBroadcastTopicSnippet(); |
| 12461 | 12435 |
| 12462 LiveBroadcastTopicSnippet.fromJson(core.Map _json) { | 12436 LiveBroadcastTopicSnippet.fromJson(core.Map _json) { |
| 12463 if (_json.containsKey("name")) { | 12437 if (_json.containsKey("name")) { |
| 12464 name = _json["name"]; | 12438 name = _json["name"]; |
| 12465 } | 12439 } |
| 12466 if (_json.containsKey("releaseDate")) { | 12440 if (_json.containsKey("releaseDate")) { |
| 12467 releaseDate = _json["releaseDate"]; | 12441 releaseDate = _json["releaseDate"]; |
| 12468 } | 12442 } |
| 12469 } | 12443 } |
| 12470 | 12444 |
| 12471 core.Map<core.String, core.Object> toJson() { | 12445 core.Map<core.String, core.Object> toJson() { |
| 12472 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12446 final core.Map<core.String, core.Object> _json = |
| 12447 new core.Map<core.String, core.Object>(); |
| 12473 if (name != null) { | 12448 if (name != null) { |
| 12474 _json["name"] = name; | 12449 _json["name"] = name; |
| 12475 } | 12450 } |
| 12476 if (releaseDate != null) { | 12451 if (releaseDate != null) { |
| 12477 _json["releaseDate"] = releaseDate; | 12452 _json["releaseDate"] = releaseDate; |
| 12478 } | 12453 } |
| 12479 return _json; | 12454 return _json; |
| 12480 } | 12455 } |
| 12481 } | 12456 } |
| 12482 | 12457 |
| 12483 /** A liveChatBan resource represents a ban for a YouTube live chat. */ | 12458 /// A liveChatBan resource represents a ban for a YouTube live chat. |
| 12484 class LiveChatBan { | 12459 class LiveChatBan { |
| 12485 /** Etag of this resource. */ | 12460 /// Etag of this resource. |
| 12486 core.String etag; | 12461 core.String etag; |
| 12487 /** The ID that YouTube assigns to uniquely identify the ban. */ | 12462 |
| 12463 /// The ID that YouTube assigns to uniquely identify the ban. |
| 12488 core.String id; | 12464 core.String id; |
| 12489 /** | 12465 |
| 12490 * Identifies what kind of resource this is. Value: the fixed string | 12466 /// Identifies what kind of resource this is. Value: the fixed string |
| 12491 * "youtube#liveChatBan". | 12467 /// "youtube#liveChatBan". |
| 12492 */ | |
| 12493 core.String kind; | 12468 core.String kind; |
| 12494 /** The snippet object contains basic details about the ban. */ | 12469 |
| 12470 /// The snippet object contains basic details about the ban. |
| 12495 LiveChatBanSnippet snippet; | 12471 LiveChatBanSnippet snippet; |
| 12496 | 12472 |
| 12497 LiveChatBan(); | 12473 LiveChatBan(); |
| 12498 | 12474 |
| 12499 LiveChatBan.fromJson(core.Map _json) { | 12475 LiveChatBan.fromJson(core.Map _json) { |
| 12500 if (_json.containsKey("etag")) { | 12476 if (_json.containsKey("etag")) { |
| 12501 etag = _json["etag"]; | 12477 etag = _json["etag"]; |
| 12502 } | 12478 } |
| 12503 if (_json.containsKey("id")) { | 12479 if (_json.containsKey("id")) { |
| 12504 id = _json["id"]; | 12480 id = _json["id"]; |
| 12505 } | 12481 } |
| 12506 if (_json.containsKey("kind")) { | 12482 if (_json.containsKey("kind")) { |
| 12507 kind = _json["kind"]; | 12483 kind = _json["kind"]; |
| 12508 } | 12484 } |
| 12509 if (_json.containsKey("snippet")) { | 12485 if (_json.containsKey("snippet")) { |
| 12510 snippet = new LiveChatBanSnippet.fromJson(_json["snippet"]); | 12486 snippet = new LiveChatBanSnippet.fromJson(_json["snippet"]); |
| 12511 } | 12487 } |
| 12512 } | 12488 } |
| 12513 | 12489 |
| 12514 core.Map<core.String, core.Object> toJson() { | 12490 core.Map<core.String, core.Object> toJson() { |
| 12515 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12491 final core.Map<core.String, core.Object> _json = |
| 12492 new core.Map<core.String, core.Object>(); |
| 12516 if (etag != null) { | 12493 if (etag != null) { |
| 12517 _json["etag"] = etag; | 12494 _json["etag"] = etag; |
| 12518 } | 12495 } |
| 12519 if (id != null) { | 12496 if (id != null) { |
| 12520 _json["id"] = id; | 12497 _json["id"] = id; |
| 12521 } | 12498 } |
| 12522 if (kind != null) { | 12499 if (kind != null) { |
| 12523 _json["kind"] = kind; | 12500 _json["kind"] = kind; |
| 12524 } | 12501 } |
| 12525 if (snippet != null) { | 12502 if (snippet != null) { |
| 12526 _json["snippet"] = (snippet).toJson(); | 12503 _json["snippet"] = (snippet).toJson(); |
| 12527 } | 12504 } |
| 12528 return _json; | 12505 return _json; |
| 12529 } | 12506 } |
| 12530 } | 12507 } |
| 12531 | 12508 |
| 12532 class LiveChatBanSnippet { | 12509 class LiveChatBanSnippet { |
| 12533 /** The duration of a ban, only filled if the ban has type TEMPORARY. */ | 12510 /// The duration of a ban, only filled if the ban has type TEMPORARY. |
| 12534 core.String banDurationSeconds; | 12511 core.String banDurationSeconds; |
| 12535 ChannelProfileDetails bannedUserDetails; | 12512 ChannelProfileDetails bannedUserDetails; |
| 12536 /** The chat this ban is pertinent to. */ | 12513 |
| 12514 /// The chat this ban is pertinent to. |
| 12537 core.String liveChatId; | 12515 core.String liveChatId; |
| 12538 /** | 12516 |
| 12539 * The type of ban. | 12517 /// The type of ban. |
| 12540 * Possible string values are: | 12518 /// Possible string values are: |
| 12541 * - "permanent" | 12519 /// - "permanent" |
| 12542 * - "temporary" | 12520 /// - "temporary" |
| 12543 */ | |
| 12544 core.String type; | 12521 core.String type; |
| 12545 | 12522 |
| 12546 LiveChatBanSnippet(); | 12523 LiveChatBanSnippet(); |
| 12547 | 12524 |
| 12548 LiveChatBanSnippet.fromJson(core.Map _json) { | 12525 LiveChatBanSnippet.fromJson(core.Map _json) { |
| 12549 if (_json.containsKey("banDurationSeconds")) { | 12526 if (_json.containsKey("banDurationSeconds")) { |
| 12550 banDurationSeconds = _json["banDurationSeconds"]; | 12527 banDurationSeconds = _json["banDurationSeconds"]; |
| 12551 } | 12528 } |
| 12552 if (_json.containsKey("bannedUserDetails")) { | 12529 if (_json.containsKey("bannedUserDetails")) { |
| 12553 bannedUserDetails = new ChannelProfileDetails.fromJson(_json["bannedUserDe
tails"]); | 12530 bannedUserDetails = |
| 12531 new ChannelProfileDetails.fromJson(_json["bannedUserDetails"]); |
| 12554 } | 12532 } |
| 12555 if (_json.containsKey("liveChatId")) { | 12533 if (_json.containsKey("liveChatId")) { |
| 12556 liveChatId = _json["liveChatId"]; | 12534 liveChatId = _json["liveChatId"]; |
| 12557 } | 12535 } |
| 12558 if (_json.containsKey("type")) { | 12536 if (_json.containsKey("type")) { |
| 12559 type = _json["type"]; | 12537 type = _json["type"]; |
| 12560 } | 12538 } |
| 12561 } | 12539 } |
| 12562 | 12540 |
| 12563 core.Map<core.String, core.Object> toJson() { | 12541 core.Map<core.String, core.Object> toJson() { |
| 12564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12542 final core.Map<core.String, core.Object> _json = |
| 12543 new core.Map<core.String, core.Object>(); |
| 12565 if (banDurationSeconds != null) { | 12544 if (banDurationSeconds != null) { |
| 12566 _json["banDurationSeconds"] = banDurationSeconds; | 12545 _json["banDurationSeconds"] = banDurationSeconds; |
| 12567 } | 12546 } |
| 12568 if (bannedUserDetails != null) { | 12547 if (bannedUserDetails != null) { |
| 12569 _json["bannedUserDetails"] = (bannedUserDetails).toJson(); | 12548 _json["bannedUserDetails"] = (bannedUserDetails).toJson(); |
| 12570 } | 12549 } |
| 12571 if (liveChatId != null) { | 12550 if (liveChatId != null) { |
| 12572 _json["liveChatId"] = liveChatId; | 12551 _json["liveChatId"] = liveChatId; |
| 12573 } | 12552 } |
| 12574 if (type != null) { | 12553 if (type != null) { |
| 12575 _json["type"] = type; | 12554 _json["type"] = type; |
| 12576 } | 12555 } |
| 12577 return _json; | 12556 return _json; |
| 12578 } | 12557 } |
| 12579 } | 12558 } |
| 12580 | 12559 |
| 12581 class LiveChatFanFundingEventDetails { | 12560 class LiveChatFanFundingEventDetails { |
| 12582 /** | 12561 /// A rendered string that displays the fund amount and currency to the user. |
| 12583 * A rendered string that displays the fund amount and currency to the user. | |
| 12584 */ | |
| 12585 core.String amountDisplayString; | 12562 core.String amountDisplayString; |
| 12586 /** The amount of the fund. */ | 12563 |
| 12564 /// The amount of the fund. |
| 12587 core.String amountMicros; | 12565 core.String amountMicros; |
| 12588 /** The currency in which the fund was made. */ | 12566 |
| 12567 /// The currency in which the fund was made. |
| 12589 core.String currency; | 12568 core.String currency; |
| 12590 /** The comment added by the user to this fan funding event. */ | 12569 |
| 12570 /// The comment added by the user to this fan funding event. |
| 12591 core.String userComment; | 12571 core.String userComment; |
| 12592 | 12572 |
| 12593 LiveChatFanFundingEventDetails(); | 12573 LiveChatFanFundingEventDetails(); |
| 12594 | 12574 |
| 12595 LiveChatFanFundingEventDetails.fromJson(core.Map _json) { | 12575 LiveChatFanFundingEventDetails.fromJson(core.Map _json) { |
| 12596 if (_json.containsKey("amountDisplayString")) { | 12576 if (_json.containsKey("amountDisplayString")) { |
| 12597 amountDisplayString = _json["amountDisplayString"]; | 12577 amountDisplayString = _json["amountDisplayString"]; |
| 12598 } | 12578 } |
| 12599 if (_json.containsKey("amountMicros")) { | 12579 if (_json.containsKey("amountMicros")) { |
| 12600 amountMicros = _json["amountMicros"]; | 12580 amountMicros = _json["amountMicros"]; |
| 12601 } | 12581 } |
| 12602 if (_json.containsKey("currency")) { | 12582 if (_json.containsKey("currency")) { |
| 12603 currency = _json["currency"]; | 12583 currency = _json["currency"]; |
| 12604 } | 12584 } |
| 12605 if (_json.containsKey("userComment")) { | 12585 if (_json.containsKey("userComment")) { |
| 12606 userComment = _json["userComment"]; | 12586 userComment = _json["userComment"]; |
| 12607 } | 12587 } |
| 12608 } | 12588 } |
| 12609 | 12589 |
| 12610 core.Map<core.String, core.Object> toJson() { | 12590 core.Map<core.String, core.Object> toJson() { |
| 12611 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12591 final core.Map<core.String, core.Object> _json = |
| 12592 new core.Map<core.String, core.Object>(); |
| 12612 if (amountDisplayString != null) { | 12593 if (amountDisplayString != null) { |
| 12613 _json["amountDisplayString"] = amountDisplayString; | 12594 _json["amountDisplayString"] = amountDisplayString; |
| 12614 } | 12595 } |
| 12615 if (amountMicros != null) { | 12596 if (amountMicros != null) { |
| 12616 _json["amountMicros"] = amountMicros; | 12597 _json["amountMicros"] = amountMicros; |
| 12617 } | 12598 } |
| 12618 if (currency != null) { | 12599 if (currency != null) { |
| 12619 _json["currency"] = currency; | 12600 _json["currency"] = currency; |
| 12620 } | 12601 } |
| 12621 if (userComment != null) { | 12602 if (userComment != null) { |
| 12622 _json["userComment"] = userComment; | 12603 _json["userComment"] = userComment; |
| 12623 } | 12604 } |
| 12624 return _json; | 12605 return _json; |
| 12625 } | 12606 } |
| 12626 } | 12607 } |
| 12627 | 12608 |
| 12628 /** | 12609 /// A liveChatMessage resource represents a chat message in a YouTube Live |
| 12629 * A liveChatMessage resource represents a chat message in a YouTube Live Chat. | 12610 /// Chat. |
| 12630 */ | |
| 12631 class LiveChatMessage { | 12611 class LiveChatMessage { |
| 12632 /** | 12612 /// The authorDetails object contains basic details about the user that |
| 12633 * The authorDetails object contains basic details about the user that posted | 12613 /// posted this message. |
| 12634 * this message. | |
| 12635 */ | |
| 12636 LiveChatMessageAuthorDetails authorDetails; | 12614 LiveChatMessageAuthorDetails authorDetails; |
| 12637 /** Etag of this resource. */ | 12615 |
| 12616 /// Etag of this resource. |
| 12638 core.String etag; | 12617 core.String etag; |
| 12639 /** The ID that YouTube assigns to uniquely identify the message. */ | 12618 |
| 12619 /// The ID that YouTube assigns to uniquely identify the message. |
| 12640 core.String id; | 12620 core.String id; |
| 12641 /** | 12621 |
| 12642 * Identifies what kind of resource this is. Value: the fixed string | 12622 /// Identifies what kind of resource this is. Value: the fixed string |
| 12643 * "youtube#liveChatMessage". | 12623 /// "youtube#liveChatMessage". |
| 12644 */ | |
| 12645 core.String kind; | 12624 core.String kind; |
| 12646 /** The snippet object contains basic details about the message. */ | 12625 |
| 12626 /// The snippet object contains basic details about the message. |
| 12647 LiveChatMessageSnippet snippet; | 12627 LiveChatMessageSnippet snippet; |
| 12648 | 12628 |
| 12649 LiveChatMessage(); | 12629 LiveChatMessage(); |
| 12650 | 12630 |
| 12651 LiveChatMessage.fromJson(core.Map _json) { | 12631 LiveChatMessage.fromJson(core.Map _json) { |
| 12652 if (_json.containsKey("authorDetails")) { | 12632 if (_json.containsKey("authorDetails")) { |
| 12653 authorDetails = new LiveChatMessageAuthorDetails.fromJson(_json["authorDet
ails"]); | 12633 authorDetails = |
| 12634 new LiveChatMessageAuthorDetails.fromJson(_json["authorDetails"]); |
| 12654 } | 12635 } |
| 12655 if (_json.containsKey("etag")) { | 12636 if (_json.containsKey("etag")) { |
| 12656 etag = _json["etag"]; | 12637 etag = _json["etag"]; |
| 12657 } | 12638 } |
| 12658 if (_json.containsKey("id")) { | 12639 if (_json.containsKey("id")) { |
| 12659 id = _json["id"]; | 12640 id = _json["id"]; |
| 12660 } | 12641 } |
| 12661 if (_json.containsKey("kind")) { | 12642 if (_json.containsKey("kind")) { |
| 12662 kind = _json["kind"]; | 12643 kind = _json["kind"]; |
| 12663 } | 12644 } |
| 12664 if (_json.containsKey("snippet")) { | 12645 if (_json.containsKey("snippet")) { |
| 12665 snippet = new LiveChatMessageSnippet.fromJson(_json["snippet"]); | 12646 snippet = new LiveChatMessageSnippet.fromJson(_json["snippet"]); |
| 12666 } | 12647 } |
| 12667 } | 12648 } |
| 12668 | 12649 |
| 12669 core.Map<core.String, core.Object> toJson() { | 12650 core.Map<core.String, core.Object> toJson() { |
| 12670 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12651 final core.Map<core.String, core.Object> _json = |
| 12652 new core.Map<core.String, core.Object>(); |
| 12671 if (authorDetails != null) { | 12653 if (authorDetails != null) { |
| 12672 _json["authorDetails"] = (authorDetails).toJson(); | 12654 _json["authorDetails"] = (authorDetails).toJson(); |
| 12673 } | 12655 } |
| 12674 if (etag != null) { | 12656 if (etag != null) { |
| 12675 _json["etag"] = etag; | 12657 _json["etag"] = etag; |
| 12676 } | 12658 } |
| 12677 if (id != null) { | 12659 if (id != null) { |
| 12678 _json["id"] = id; | 12660 _json["id"] = id; |
| 12679 } | 12661 } |
| 12680 if (kind != null) { | 12662 if (kind != null) { |
| 12681 _json["kind"] = kind; | 12663 _json["kind"] = kind; |
| 12682 } | 12664 } |
| 12683 if (snippet != null) { | 12665 if (snippet != null) { |
| 12684 _json["snippet"] = (snippet).toJson(); | 12666 _json["snippet"] = (snippet).toJson(); |
| 12685 } | 12667 } |
| 12686 return _json; | 12668 return _json; |
| 12687 } | 12669 } |
| 12688 } | 12670 } |
| 12689 | 12671 |
| 12690 class LiveChatMessageAuthorDetails { | 12672 class LiveChatMessageAuthorDetails { |
| 12691 /** The YouTube channel ID. */ | 12673 /// The YouTube channel ID. |
| 12692 core.String channelId; | 12674 core.String channelId; |
| 12693 /** The channel's URL. */ | 12675 |
| 12676 /// The channel's URL. |
| 12694 core.String channelUrl; | 12677 core.String channelUrl; |
| 12695 /** The channel's display name. */ | 12678 |
| 12679 /// The channel's display name. |
| 12696 core.String displayName; | 12680 core.String displayName; |
| 12697 /** Whether the author is a moderator of the live chat. */ | 12681 |
| 12682 /// Whether the author is a moderator of the live chat. |
| 12698 core.bool isChatModerator; | 12683 core.bool isChatModerator; |
| 12699 /** Whether the author is the owner of the live chat. */ | 12684 |
| 12685 /// Whether the author is the owner of the live chat. |
| 12700 core.bool isChatOwner; | 12686 core.bool isChatOwner; |
| 12701 /** Whether the author is a sponsor of the live chat. */ | 12687 |
| 12688 /// Whether the author is a sponsor of the live chat. |
| 12702 core.bool isChatSponsor; | 12689 core.bool isChatSponsor; |
| 12703 /** Whether the author's identity has been verified by YouTube. */ | 12690 |
| 12691 /// Whether the author's identity has been verified by YouTube. |
| 12704 core.bool isVerified; | 12692 core.bool isVerified; |
| 12705 /** The channels's avatar URL. */ | 12693 |
| 12694 /// The channels's avatar URL. |
| 12706 core.String profileImageUrl; | 12695 core.String profileImageUrl; |
| 12707 | 12696 |
| 12708 LiveChatMessageAuthorDetails(); | 12697 LiveChatMessageAuthorDetails(); |
| 12709 | 12698 |
| 12710 LiveChatMessageAuthorDetails.fromJson(core.Map _json) { | 12699 LiveChatMessageAuthorDetails.fromJson(core.Map _json) { |
| 12711 if (_json.containsKey("channelId")) { | 12700 if (_json.containsKey("channelId")) { |
| 12712 channelId = _json["channelId"]; | 12701 channelId = _json["channelId"]; |
| 12713 } | 12702 } |
| 12714 if (_json.containsKey("channelUrl")) { | 12703 if (_json.containsKey("channelUrl")) { |
| 12715 channelUrl = _json["channelUrl"]; | 12704 channelUrl = _json["channelUrl"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 12728 } | 12717 } |
| 12729 if (_json.containsKey("isVerified")) { | 12718 if (_json.containsKey("isVerified")) { |
| 12730 isVerified = _json["isVerified"]; | 12719 isVerified = _json["isVerified"]; |
| 12731 } | 12720 } |
| 12732 if (_json.containsKey("profileImageUrl")) { | 12721 if (_json.containsKey("profileImageUrl")) { |
| 12733 profileImageUrl = _json["profileImageUrl"]; | 12722 profileImageUrl = _json["profileImageUrl"]; |
| 12734 } | 12723 } |
| 12735 } | 12724 } |
| 12736 | 12725 |
| 12737 core.Map<core.String, core.Object> toJson() { | 12726 core.Map<core.String, core.Object> toJson() { |
| 12738 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12727 final core.Map<core.String, core.Object> _json = |
| 12728 new core.Map<core.String, core.Object>(); |
| 12739 if (channelId != null) { | 12729 if (channelId != null) { |
| 12740 _json["channelId"] = channelId; | 12730 _json["channelId"] = channelId; |
| 12741 } | 12731 } |
| 12742 if (channelUrl != null) { | 12732 if (channelUrl != null) { |
| 12743 _json["channelUrl"] = channelUrl; | 12733 _json["channelUrl"] = channelUrl; |
| 12744 } | 12734 } |
| 12745 if (displayName != null) { | 12735 if (displayName != null) { |
| 12746 _json["displayName"] = displayName; | 12736 _json["displayName"] = displayName; |
| 12747 } | 12737 } |
| 12748 if (isChatModerator != null) { | 12738 if (isChatModerator != null) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 12769 | 12759 |
| 12770 LiveChatMessageDeletedDetails(); | 12760 LiveChatMessageDeletedDetails(); |
| 12771 | 12761 |
| 12772 LiveChatMessageDeletedDetails.fromJson(core.Map _json) { | 12762 LiveChatMessageDeletedDetails.fromJson(core.Map _json) { |
| 12773 if (_json.containsKey("deletedMessageId")) { | 12763 if (_json.containsKey("deletedMessageId")) { |
| 12774 deletedMessageId = _json["deletedMessageId"]; | 12764 deletedMessageId = _json["deletedMessageId"]; |
| 12775 } | 12765 } |
| 12776 } | 12766 } |
| 12777 | 12767 |
| 12778 core.Map<core.String, core.Object> toJson() { | 12768 core.Map<core.String, core.Object> toJson() { |
| 12779 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12769 final core.Map<core.String, core.Object> _json = |
| 12770 new core.Map<core.String, core.Object>(); |
| 12780 if (deletedMessageId != null) { | 12771 if (deletedMessageId != null) { |
| 12781 _json["deletedMessageId"] = deletedMessageId; | 12772 _json["deletedMessageId"] = deletedMessageId; |
| 12782 } | 12773 } |
| 12783 return _json; | 12774 return _json; |
| 12784 } | 12775 } |
| 12785 } | 12776 } |
| 12786 | 12777 |
| 12787 class LiveChatMessageListResponse { | 12778 class LiveChatMessageListResponse { |
| 12788 /** Etag of this resource. */ | 12779 /// Etag of this resource. |
| 12789 core.String etag; | 12780 core.String etag; |
| 12790 /** Serialized EventId of the request which produced this response. */ | 12781 |
| 12782 /// Serialized EventId of the request which produced this response. |
| 12791 core.String eventId; | 12783 core.String eventId; |
| 12792 /** A list of live chat messages. */ | 12784 |
| 12785 /// A list of live chat messages. |
| 12793 core.List<LiveChatMessage> items; | 12786 core.List<LiveChatMessage> items; |
| 12794 /** | 12787 |
| 12795 * Identifies what kind of resource this is. Value: the fixed string | 12788 /// Identifies what kind of resource this is. Value: the fixed string |
| 12796 * "youtube#liveChatMessageListResponse". | 12789 /// "youtube#liveChatMessageListResponse". |
| 12797 */ | |
| 12798 core.String kind; | 12790 core.String kind; |
| 12799 /** | 12791 |
| 12800 * The token that can be used as the value of the pageToken parameter to | 12792 /// The token that can be used as the value of the pageToken parameter to |
| 12801 * retrieve the next page in the result set. | 12793 /// retrieve the next page in the result set. |
| 12802 */ | |
| 12803 core.String nextPageToken; | 12794 core.String nextPageToken; |
| 12804 /** | 12795 |
| 12805 * The date and time when the underlying stream went offline. The value is | 12796 /// The date and time when the underlying stream went offline. The value is |
| 12806 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 12797 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 12807 */ | |
| 12808 core.DateTime offlineAt; | 12798 core.DateTime offlineAt; |
| 12809 PageInfo pageInfo; | 12799 PageInfo pageInfo; |
| 12810 /** The amount of time the client should wait before polling again. */ | 12800 |
| 12801 /// The amount of time the client should wait before polling again. |
| 12811 core.int pollingIntervalMillis; | 12802 core.int pollingIntervalMillis; |
| 12812 TokenPagination tokenPagination; | 12803 TokenPagination tokenPagination; |
| 12813 /** The visitorId identifies the visitor. */ | 12804 |
| 12805 /// The visitorId identifies the visitor. |
| 12814 core.String visitorId; | 12806 core.String visitorId; |
| 12815 | 12807 |
| 12816 LiveChatMessageListResponse(); | 12808 LiveChatMessageListResponse(); |
| 12817 | 12809 |
| 12818 LiveChatMessageListResponse.fromJson(core.Map _json) { | 12810 LiveChatMessageListResponse.fromJson(core.Map _json) { |
| 12819 if (_json.containsKey("etag")) { | 12811 if (_json.containsKey("etag")) { |
| 12820 etag = _json["etag"]; | 12812 etag = _json["etag"]; |
| 12821 } | 12813 } |
| 12822 if (_json.containsKey("eventId")) { | 12814 if (_json.containsKey("eventId")) { |
| 12823 eventId = _json["eventId"]; | 12815 eventId = _json["eventId"]; |
| 12824 } | 12816 } |
| 12825 if (_json.containsKey("items")) { | 12817 if (_json.containsKey("items")) { |
| 12826 items = _json["items"].map((value) => new LiveChatMessage.fromJson(value))
.toList(); | 12818 items = _json["items"] |
| 12819 .map((value) => new LiveChatMessage.fromJson(value)) |
| 12820 .toList(); |
| 12827 } | 12821 } |
| 12828 if (_json.containsKey("kind")) { | 12822 if (_json.containsKey("kind")) { |
| 12829 kind = _json["kind"]; | 12823 kind = _json["kind"]; |
| 12830 } | 12824 } |
| 12831 if (_json.containsKey("nextPageToken")) { | 12825 if (_json.containsKey("nextPageToken")) { |
| 12832 nextPageToken = _json["nextPageToken"]; | 12826 nextPageToken = _json["nextPageToken"]; |
| 12833 } | 12827 } |
| 12834 if (_json.containsKey("offlineAt")) { | 12828 if (_json.containsKey("offlineAt")) { |
| 12835 offlineAt = core.DateTime.parse(_json["offlineAt"]); | 12829 offlineAt = core.DateTime.parse(_json["offlineAt"]); |
| 12836 } | 12830 } |
| 12837 if (_json.containsKey("pageInfo")) { | 12831 if (_json.containsKey("pageInfo")) { |
| 12838 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 12832 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 12839 } | 12833 } |
| 12840 if (_json.containsKey("pollingIntervalMillis")) { | 12834 if (_json.containsKey("pollingIntervalMillis")) { |
| 12841 pollingIntervalMillis = _json["pollingIntervalMillis"]; | 12835 pollingIntervalMillis = _json["pollingIntervalMillis"]; |
| 12842 } | 12836 } |
| 12843 if (_json.containsKey("tokenPagination")) { | 12837 if (_json.containsKey("tokenPagination")) { |
| 12844 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 12838 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 12845 } | 12839 } |
| 12846 if (_json.containsKey("visitorId")) { | 12840 if (_json.containsKey("visitorId")) { |
| 12847 visitorId = _json["visitorId"]; | 12841 visitorId = _json["visitorId"]; |
| 12848 } | 12842 } |
| 12849 } | 12843 } |
| 12850 | 12844 |
| 12851 core.Map<core.String, core.Object> toJson() { | 12845 core.Map<core.String, core.Object> toJson() { |
| 12852 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12846 final core.Map<core.String, core.Object> _json = |
| 12847 new core.Map<core.String, core.Object>(); |
| 12853 if (etag != null) { | 12848 if (etag != null) { |
| 12854 _json["etag"] = etag; | 12849 _json["etag"] = etag; |
| 12855 } | 12850 } |
| 12856 if (eventId != null) { | 12851 if (eventId != null) { |
| 12857 _json["eventId"] = eventId; | 12852 _json["eventId"] = eventId; |
| 12858 } | 12853 } |
| 12859 if (items != null) { | 12854 if (items != null) { |
| 12860 _json["items"] = items.map((value) => (value).toJson()).toList(); | 12855 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 12861 } | 12856 } |
| 12862 if (kind != null) { | 12857 if (kind != null) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 12889 | 12884 |
| 12890 LiveChatMessageRetractedDetails(); | 12885 LiveChatMessageRetractedDetails(); |
| 12891 | 12886 |
| 12892 LiveChatMessageRetractedDetails.fromJson(core.Map _json) { | 12887 LiveChatMessageRetractedDetails.fromJson(core.Map _json) { |
| 12893 if (_json.containsKey("retractedMessageId")) { | 12888 if (_json.containsKey("retractedMessageId")) { |
| 12894 retractedMessageId = _json["retractedMessageId"]; | 12889 retractedMessageId = _json["retractedMessageId"]; |
| 12895 } | 12890 } |
| 12896 } | 12891 } |
| 12897 | 12892 |
| 12898 core.Map<core.String, core.Object> toJson() { | 12893 core.Map<core.String, core.Object> toJson() { |
| 12899 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 12894 final core.Map<core.String, core.Object> _json = |
| 12895 new core.Map<core.String, core.Object>(); |
| 12900 if (retractedMessageId != null) { | 12896 if (retractedMessageId != null) { |
| 12901 _json["retractedMessageId"] = retractedMessageId; | 12897 _json["retractedMessageId"] = retractedMessageId; |
| 12902 } | 12898 } |
| 12903 return _json; | 12899 return _json; |
| 12904 } | 12900 } |
| 12905 } | 12901 } |
| 12906 | 12902 |
| 12907 class LiveChatMessageSnippet { | 12903 class LiveChatMessageSnippet { |
| 12908 /** | 12904 /// The ID of the user that authored this message, this field is not always |
| 12909 * The ID of the user that authored this message, this field is not always | 12905 /// filled. textMessageEvent - the user that wrote the message |
| 12910 * filled. textMessageEvent - the user that wrote the message fanFundingEvent | 12906 /// fanFundingEvent - the user that funded the broadcast newSponsorEvent - |
| 12911 * - the user that funded the broadcast newSponsorEvent - the user that just | 12907 /// the user that just became a sponsor messageDeletedEvent - the moderator |
| 12912 * became a sponsor messageDeletedEvent - the moderator that took the action | 12908 /// that took the action messageRetractedEvent - the author that retracted |
| 12913 * messageRetractedEvent - the author that retracted their message | 12909 /// their message userBannedEvent - the moderator that took the action |
| 12914 * userBannedEvent - the moderator that took the action superChatEvent - the | 12910 /// superChatEvent - the user that made the purchase |
| 12915 * user that made the purchase | |
| 12916 */ | |
| 12917 core.String authorChannelId; | 12911 core.String authorChannelId; |
| 12918 /** | 12912 |
| 12919 * Contains a string that can be displayed to the user. If this field is not | 12913 /// Contains a string that can be displayed to the user. If this field is not |
| 12920 * present the message is silent, at the moment only messages of type | 12914 /// present the message is silent, at the moment only messages of type |
| 12921 * TOMBSTONE and CHAT_ENDED_EVENT are silent. | 12915 /// TOMBSTONE and CHAT_ENDED_EVENT are silent. |
| 12922 */ | |
| 12923 core.String displayMessage; | 12916 core.String displayMessage; |
| 12924 /** | 12917 |
| 12925 * Details about the funding event, this is only set if the type is | 12918 /// Details about the funding event, this is only set if the type is |
| 12926 * 'fanFundingEvent'. | 12919 /// 'fanFundingEvent'. |
| 12927 */ | |
| 12928 LiveChatFanFundingEventDetails fanFundingEventDetails; | 12920 LiveChatFanFundingEventDetails fanFundingEventDetails; |
| 12929 /** | 12921 |
| 12930 * Whether the message has display content that should be displayed to users. | 12922 /// Whether the message has display content that should be displayed to |
| 12931 */ | 12923 /// users. |
| 12932 core.bool hasDisplayContent; | 12924 core.bool hasDisplayContent; |
| 12933 core.String liveChatId; | 12925 core.String liveChatId; |
| 12934 LiveChatMessageDeletedDetails messageDeletedDetails; | 12926 LiveChatMessageDeletedDetails messageDeletedDetails; |
| 12935 LiveChatMessageRetractedDetails messageRetractedDetails; | 12927 LiveChatMessageRetractedDetails messageRetractedDetails; |
| 12936 LiveChatPollClosedDetails pollClosedDetails; | 12928 LiveChatPollClosedDetails pollClosedDetails; |
| 12937 LiveChatPollEditedDetails pollEditedDetails; | 12929 LiveChatPollEditedDetails pollEditedDetails; |
| 12938 LiveChatPollOpenedDetails pollOpenedDetails; | 12930 LiveChatPollOpenedDetails pollOpenedDetails; |
| 12939 LiveChatPollVotedDetails pollVotedDetails; | 12931 LiveChatPollVotedDetails pollVotedDetails; |
| 12940 /** | 12932 |
| 12941 * The date and time when the message was orignally published. The value is | 12933 /// The date and time when the message was orignally published. The value is |
| 12942 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 12934 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 12943 */ | |
| 12944 core.DateTime publishedAt; | 12935 core.DateTime publishedAt; |
| 12945 /** | 12936 |
| 12946 * Details about the Super Chat event, this is only set if the type is | 12937 /// Details about the Super Chat event, this is only set if the type is |
| 12947 * 'superChatEvent'. | 12938 /// 'superChatEvent'. |
| 12948 */ | |
| 12949 LiveChatSuperChatDetails superChatDetails; | 12939 LiveChatSuperChatDetails superChatDetails; |
| 12950 /** | 12940 |
| 12951 * Details about the text message, this is only set if the type is | 12941 /// Details about the text message, this is only set if the type is |
| 12952 * 'textMessageEvent'. | 12942 /// 'textMessageEvent'. |
| 12953 */ | |
| 12954 LiveChatTextMessageDetails textMessageDetails; | 12943 LiveChatTextMessageDetails textMessageDetails; |
| 12955 /** | 12944 |
| 12956 * The type of message, this will always be present, it determines the | 12945 /// The type of message, this will always be present, it determines the |
| 12957 * contents of the message as well as which fields will be present. | 12946 /// contents of the message as well as which fields will be present. |
| 12958 * Possible string values are: | 12947 /// Possible string values are: |
| 12959 * - "chatEndedEvent" | 12948 /// - "chatEndedEvent" |
| 12960 * - "fanFundingEvent" | 12949 /// - "fanFundingEvent" |
| 12961 * - "messageDeletedEvent" | 12950 /// - "messageDeletedEvent" |
| 12962 * - "messageRetractedEvent" | 12951 /// - "messageRetractedEvent" |
| 12963 * - "newSponsorEvent" | 12952 /// - "newSponsorEvent" |
| 12964 * - "pollClosedEvent" | 12953 /// - "pollClosedEvent" |
| 12965 * - "pollEditedEvent" | 12954 /// - "pollEditedEvent" |
| 12966 * - "pollOpenedEvent" | 12955 /// - "pollOpenedEvent" |
| 12967 * - "pollVotedEvent" | 12956 /// - "pollVotedEvent" |
| 12968 * - "sponsorOnlyModeEndedEvent" | 12957 /// - "sponsorOnlyModeEndedEvent" |
| 12969 * - "sponsorOnlyModeStartedEvent" | 12958 /// - "sponsorOnlyModeStartedEvent" |
| 12970 * - "superChatEvent" | 12959 /// - "superChatEvent" |
| 12971 * - "textMessageEvent" | 12960 /// - "textMessageEvent" |
| 12972 * - "tombstone" | 12961 /// - "tombstone" |
| 12973 * - "userBannedEvent" | 12962 /// - "userBannedEvent" |
| 12974 */ | |
| 12975 core.String type; | 12963 core.String type; |
| 12976 LiveChatUserBannedMessageDetails userBannedDetails; | 12964 LiveChatUserBannedMessageDetails userBannedDetails; |
| 12977 | 12965 |
| 12978 LiveChatMessageSnippet(); | 12966 LiveChatMessageSnippet(); |
| 12979 | 12967 |
| 12980 LiveChatMessageSnippet.fromJson(core.Map _json) { | 12968 LiveChatMessageSnippet.fromJson(core.Map _json) { |
| 12981 if (_json.containsKey("authorChannelId")) { | 12969 if (_json.containsKey("authorChannelId")) { |
| 12982 authorChannelId = _json["authorChannelId"]; | 12970 authorChannelId = _json["authorChannelId"]; |
| 12983 } | 12971 } |
| 12984 if (_json.containsKey("displayMessage")) { | 12972 if (_json.containsKey("displayMessage")) { |
| 12985 displayMessage = _json["displayMessage"]; | 12973 displayMessage = _json["displayMessage"]; |
| 12986 } | 12974 } |
| 12987 if (_json.containsKey("fanFundingEventDetails")) { | 12975 if (_json.containsKey("fanFundingEventDetails")) { |
| 12988 fanFundingEventDetails = new LiveChatFanFundingEventDetails.fromJson(_json
["fanFundingEventDetails"]); | 12976 fanFundingEventDetails = new LiveChatFanFundingEventDetails.fromJson( |
| 12977 _json["fanFundingEventDetails"]); |
| 12989 } | 12978 } |
| 12990 if (_json.containsKey("hasDisplayContent")) { | 12979 if (_json.containsKey("hasDisplayContent")) { |
| 12991 hasDisplayContent = _json["hasDisplayContent"]; | 12980 hasDisplayContent = _json["hasDisplayContent"]; |
| 12992 } | 12981 } |
| 12993 if (_json.containsKey("liveChatId")) { | 12982 if (_json.containsKey("liveChatId")) { |
| 12994 liveChatId = _json["liveChatId"]; | 12983 liveChatId = _json["liveChatId"]; |
| 12995 } | 12984 } |
| 12996 if (_json.containsKey("messageDeletedDetails")) { | 12985 if (_json.containsKey("messageDeletedDetails")) { |
| 12997 messageDeletedDetails = new LiveChatMessageDeletedDetails.fromJson(_json["
messageDeletedDetails"]); | 12986 messageDeletedDetails = new LiveChatMessageDeletedDetails.fromJson( |
| 12987 _json["messageDeletedDetails"]); |
| 12998 } | 12988 } |
| 12999 if (_json.containsKey("messageRetractedDetails")) { | 12989 if (_json.containsKey("messageRetractedDetails")) { |
| 13000 messageRetractedDetails = new LiveChatMessageRetractedDetails.fromJson(_js
on["messageRetractedDetails"]); | 12990 messageRetractedDetails = new LiveChatMessageRetractedDetails.fromJson( |
| 12991 _json["messageRetractedDetails"]); |
| 13001 } | 12992 } |
| 13002 if (_json.containsKey("pollClosedDetails")) { | 12993 if (_json.containsKey("pollClosedDetails")) { |
| 13003 pollClosedDetails = new LiveChatPollClosedDetails.fromJson(_json["pollClos
edDetails"]); | 12994 pollClosedDetails = |
| 12995 new LiveChatPollClosedDetails.fromJson(_json["pollClosedDetails"]); |
| 13004 } | 12996 } |
| 13005 if (_json.containsKey("pollEditedDetails")) { | 12997 if (_json.containsKey("pollEditedDetails")) { |
| 13006 pollEditedDetails = new LiveChatPollEditedDetails.fromJson(_json["pollEdit
edDetails"]); | 12998 pollEditedDetails = |
| 12999 new LiveChatPollEditedDetails.fromJson(_json["pollEditedDetails"]); |
| 13007 } | 13000 } |
| 13008 if (_json.containsKey("pollOpenedDetails")) { | 13001 if (_json.containsKey("pollOpenedDetails")) { |
| 13009 pollOpenedDetails = new LiveChatPollOpenedDetails.fromJson(_json["pollOpen
edDetails"]); | 13002 pollOpenedDetails = |
| 13003 new LiveChatPollOpenedDetails.fromJson(_json["pollOpenedDetails"]); |
| 13010 } | 13004 } |
| 13011 if (_json.containsKey("pollVotedDetails")) { | 13005 if (_json.containsKey("pollVotedDetails")) { |
| 13012 pollVotedDetails = new LiveChatPollVotedDetails.fromJson(_json["pollVotedD
etails"]); | 13006 pollVotedDetails = |
| 13007 new LiveChatPollVotedDetails.fromJson(_json["pollVotedDetails"]); |
| 13013 } | 13008 } |
| 13014 if (_json.containsKey("publishedAt")) { | 13009 if (_json.containsKey("publishedAt")) { |
| 13015 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 13010 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
| 13016 } | 13011 } |
| 13017 if (_json.containsKey("superChatDetails")) { | 13012 if (_json.containsKey("superChatDetails")) { |
| 13018 superChatDetails = new LiveChatSuperChatDetails.fromJson(_json["superChatD
etails"]); | 13013 superChatDetails = |
| 13014 new LiveChatSuperChatDetails.fromJson(_json["superChatDetails"]); |
| 13019 } | 13015 } |
| 13020 if (_json.containsKey("textMessageDetails")) { | 13016 if (_json.containsKey("textMessageDetails")) { |
| 13021 textMessageDetails = new LiveChatTextMessageDetails.fromJson(_json["textMe
ssageDetails"]); | 13017 textMessageDetails = |
| 13018 new LiveChatTextMessageDetails.fromJson(_json["textMessageDetails"]); |
| 13022 } | 13019 } |
| 13023 if (_json.containsKey("type")) { | 13020 if (_json.containsKey("type")) { |
| 13024 type = _json["type"]; | 13021 type = _json["type"]; |
| 13025 } | 13022 } |
| 13026 if (_json.containsKey("userBannedDetails")) { | 13023 if (_json.containsKey("userBannedDetails")) { |
| 13027 userBannedDetails = new LiveChatUserBannedMessageDetails.fromJson(_json["u
serBannedDetails"]); | 13024 userBannedDetails = new LiveChatUserBannedMessageDetails.fromJson( |
| 13025 _json["userBannedDetails"]); |
| 13028 } | 13026 } |
| 13029 } | 13027 } |
| 13030 | 13028 |
| 13031 core.Map<core.String, core.Object> toJson() { | 13029 core.Map<core.String, core.Object> toJson() { |
| 13032 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13030 final core.Map<core.String, core.Object> _json = |
| 13031 new core.Map<core.String, core.Object>(); |
| 13033 if (authorChannelId != null) { | 13032 if (authorChannelId != null) { |
| 13034 _json["authorChannelId"] = authorChannelId; | 13033 _json["authorChannelId"] = authorChannelId; |
| 13035 } | 13034 } |
| 13036 if (displayMessage != null) { | 13035 if (displayMessage != null) { |
| 13037 _json["displayMessage"] = displayMessage; | 13036 _json["displayMessage"] = displayMessage; |
| 13038 } | 13037 } |
| 13039 if (fanFundingEventDetails != null) { | 13038 if (fanFundingEventDetails != null) { |
| 13040 _json["fanFundingEventDetails"] = (fanFundingEventDetails).toJson(); | 13039 _json["fanFundingEventDetails"] = (fanFundingEventDetails).toJson(); |
| 13041 } | 13040 } |
| 13042 if (hasDisplayContent != null) { | 13041 if (hasDisplayContent != null) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13075 if (type != null) { | 13074 if (type != null) { |
| 13076 _json["type"] = type; | 13075 _json["type"] = type; |
| 13077 } | 13076 } |
| 13078 if (userBannedDetails != null) { | 13077 if (userBannedDetails != null) { |
| 13079 _json["userBannedDetails"] = (userBannedDetails).toJson(); | 13078 _json["userBannedDetails"] = (userBannedDetails).toJson(); |
| 13080 } | 13079 } |
| 13081 return _json; | 13080 return _json; |
| 13082 } | 13081 } |
| 13083 } | 13082 } |
| 13084 | 13083 |
| 13085 /** | 13084 /// A liveChatModerator resource represents a moderator for a YouTube live |
| 13086 * A liveChatModerator resource represents a moderator for a YouTube live chat. | 13085 /// chat. A chat moderator has the ability to ban/unban users from a chat, |
| 13087 * A chat moderator has the ability to ban/unban users from a chat, remove | 13086 /// remove message, etc. |
| 13088 * message, etc. | |
| 13089 */ | |
| 13090 class LiveChatModerator { | 13087 class LiveChatModerator { |
| 13091 /** Etag of this resource. */ | 13088 /// Etag of this resource. |
| 13092 core.String etag; | 13089 core.String etag; |
| 13093 /** The ID that YouTube assigns to uniquely identify the moderator. */ | 13090 |
| 13091 /// The ID that YouTube assigns to uniquely identify the moderator. |
| 13094 core.String id; | 13092 core.String id; |
| 13095 /** | 13093 |
| 13096 * Identifies what kind of resource this is. Value: the fixed string | 13094 /// Identifies what kind of resource this is. Value: the fixed string |
| 13097 * "youtube#liveChatModerator". | 13095 /// "youtube#liveChatModerator". |
| 13098 */ | |
| 13099 core.String kind; | 13096 core.String kind; |
| 13100 /** The snippet object contains basic details about the moderator. */ | 13097 |
| 13098 /// The snippet object contains basic details about the moderator. |
| 13101 LiveChatModeratorSnippet snippet; | 13099 LiveChatModeratorSnippet snippet; |
| 13102 | 13100 |
| 13103 LiveChatModerator(); | 13101 LiveChatModerator(); |
| 13104 | 13102 |
| 13105 LiveChatModerator.fromJson(core.Map _json) { | 13103 LiveChatModerator.fromJson(core.Map _json) { |
| 13106 if (_json.containsKey("etag")) { | 13104 if (_json.containsKey("etag")) { |
| 13107 etag = _json["etag"]; | 13105 etag = _json["etag"]; |
| 13108 } | 13106 } |
| 13109 if (_json.containsKey("id")) { | 13107 if (_json.containsKey("id")) { |
| 13110 id = _json["id"]; | 13108 id = _json["id"]; |
| 13111 } | 13109 } |
| 13112 if (_json.containsKey("kind")) { | 13110 if (_json.containsKey("kind")) { |
| 13113 kind = _json["kind"]; | 13111 kind = _json["kind"]; |
| 13114 } | 13112 } |
| 13115 if (_json.containsKey("snippet")) { | 13113 if (_json.containsKey("snippet")) { |
| 13116 snippet = new LiveChatModeratorSnippet.fromJson(_json["snippet"]); | 13114 snippet = new LiveChatModeratorSnippet.fromJson(_json["snippet"]); |
| 13117 } | 13115 } |
| 13118 } | 13116 } |
| 13119 | 13117 |
| 13120 core.Map<core.String, core.Object> toJson() { | 13118 core.Map<core.String, core.Object> toJson() { |
| 13121 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13119 final core.Map<core.String, core.Object> _json = |
| 13120 new core.Map<core.String, core.Object>(); |
| 13122 if (etag != null) { | 13121 if (etag != null) { |
| 13123 _json["etag"] = etag; | 13122 _json["etag"] = etag; |
| 13124 } | 13123 } |
| 13125 if (id != null) { | 13124 if (id != null) { |
| 13126 _json["id"] = id; | 13125 _json["id"] = id; |
| 13127 } | 13126 } |
| 13128 if (kind != null) { | 13127 if (kind != null) { |
| 13129 _json["kind"] = kind; | 13128 _json["kind"] = kind; |
| 13130 } | 13129 } |
| 13131 if (snippet != null) { | 13130 if (snippet != null) { |
| 13132 _json["snippet"] = (snippet).toJson(); | 13131 _json["snippet"] = (snippet).toJson(); |
| 13133 } | 13132 } |
| 13134 return _json; | 13133 return _json; |
| 13135 } | 13134 } |
| 13136 } | 13135 } |
| 13137 | 13136 |
| 13138 class LiveChatModeratorListResponse { | 13137 class LiveChatModeratorListResponse { |
| 13139 /** Etag of this resource. */ | 13138 /// Etag of this resource. |
| 13140 core.String etag; | 13139 core.String etag; |
| 13141 /** Serialized EventId of the request which produced this response. */ | 13140 |
| 13141 /// Serialized EventId of the request which produced this response. |
| 13142 core.String eventId; | 13142 core.String eventId; |
| 13143 /** A list of moderators that match the request criteria. */ | 13143 |
| 13144 /// A list of moderators that match the request criteria. |
| 13144 core.List<LiveChatModerator> items; | 13145 core.List<LiveChatModerator> items; |
| 13145 /** | 13146 |
| 13146 * Identifies what kind of resource this is. Value: the fixed string | 13147 /// Identifies what kind of resource this is. Value: the fixed string |
| 13147 * "youtube#liveChatModeratorListResponse". | 13148 /// "youtube#liveChatModeratorListResponse". |
| 13148 */ | |
| 13149 core.String kind; | 13149 core.String kind; |
| 13150 /** | 13150 |
| 13151 * The token that can be used as the value of the pageToken parameter to | 13151 /// The token that can be used as the value of the pageToken parameter to |
| 13152 * retrieve the next page in the result set. | 13152 /// retrieve the next page in the result set. |
| 13153 */ | |
| 13154 core.String nextPageToken; | 13153 core.String nextPageToken; |
| 13155 PageInfo pageInfo; | 13154 PageInfo pageInfo; |
| 13156 /** | 13155 |
| 13157 * The token that can be used as the value of the pageToken parameter to | 13156 /// The token that can be used as the value of the pageToken parameter to |
| 13158 * retrieve the previous page in the result set. | 13157 /// retrieve the previous page in the result set. |
| 13159 */ | |
| 13160 core.String prevPageToken; | 13158 core.String prevPageToken; |
| 13161 TokenPagination tokenPagination; | 13159 TokenPagination tokenPagination; |
| 13162 /** The visitorId identifies the visitor. */ | 13160 |
| 13161 /// The visitorId identifies the visitor. |
| 13163 core.String visitorId; | 13162 core.String visitorId; |
| 13164 | 13163 |
| 13165 LiveChatModeratorListResponse(); | 13164 LiveChatModeratorListResponse(); |
| 13166 | 13165 |
| 13167 LiveChatModeratorListResponse.fromJson(core.Map _json) { | 13166 LiveChatModeratorListResponse.fromJson(core.Map _json) { |
| 13168 if (_json.containsKey("etag")) { | 13167 if (_json.containsKey("etag")) { |
| 13169 etag = _json["etag"]; | 13168 etag = _json["etag"]; |
| 13170 } | 13169 } |
| 13171 if (_json.containsKey("eventId")) { | 13170 if (_json.containsKey("eventId")) { |
| 13172 eventId = _json["eventId"]; | 13171 eventId = _json["eventId"]; |
| 13173 } | 13172 } |
| 13174 if (_json.containsKey("items")) { | 13173 if (_json.containsKey("items")) { |
| 13175 items = _json["items"].map((value) => new LiveChatModerator.fromJson(value
)).toList(); | 13174 items = _json["items"] |
| 13175 .map((value) => new LiveChatModerator.fromJson(value)) |
| 13176 .toList(); |
| 13176 } | 13177 } |
| 13177 if (_json.containsKey("kind")) { | 13178 if (_json.containsKey("kind")) { |
| 13178 kind = _json["kind"]; | 13179 kind = _json["kind"]; |
| 13179 } | 13180 } |
| 13180 if (_json.containsKey("nextPageToken")) { | 13181 if (_json.containsKey("nextPageToken")) { |
| 13181 nextPageToken = _json["nextPageToken"]; | 13182 nextPageToken = _json["nextPageToken"]; |
| 13182 } | 13183 } |
| 13183 if (_json.containsKey("pageInfo")) { | 13184 if (_json.containsKey("pageInfo")) { |
| 13184 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 13185 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 13185 } | 13186 } |
| 13186 if (_json.containsKey("prevPageToken")) { | 13187 if (_json.containsKey("prevPageToken")) { |
| 13187 prevPageToken = _json["prevPageToken"]; | 13188 prevPageToken = _json["prevPageToken"]; |
| 13188 } | 13189 } |
| 13189 if (_json.containsKey("tokenPagination")) { | 13190 if (_json.containsKey("tokenPagination")) { |
| 13190 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 13191 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 13191 } | 13192 } |
| 13192 if (_json.containsKey("visitorId")) { | 13193 if (_json.containsKey("visitorId")) { |
| 13193 visitorId = _json["visitorId"]; | 13194 visitorId = _json["visitorId"]; |
| 13194 } | 13195 } |
| 13195 } | 13196 } |
| 13196 | 13197 |
| 13197 core.Map<core.String, core.Object> toJson() { | 13198 core.Map<core.String, core.Object> toJson() { |
| 13198 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13199 final core.Map<core.String, core.Object> _json = |
| 13200 new core.Map<core.String, core.Object>(); |
| 13199 if (etag != null) { | 13201 if (etag != null) { |
| 13200 _json["etag"] = etag; | 13202 _json["etag"] = etag; |
| 13201 } | 13203 } |
| 13202 if (eventId != null) { | 13204 if (eventId != null) { |
| 13203 _json["eventId"] = eventId; | 13205 _json["eventId"] = eventId; |
| 13204 } | 13206 } |
| 13205 if (items != null) { | 13207 if (items != null) { |
| 13206 _json["items"] = items.map((value) => (value).toJson()).toList(); | 13208 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 13207 } | 13209 } |
| 13208 if (kind != null) { | 13210 if (kind != null) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 13221 _json["tokenPagination"] = (tokenPagination).toJson(); | 13223 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 13222 } | 13224 } |
| 13223 if (visitorId != null) { | 13225 if (visitorId != null) { |
| 13224 _json["visitorId"] = visitorId; | 13226 _json["visitorId"] = visitorId; |
| 13225 } | 13227 } |
| 13226 return _json; | 13228 return _json; |
| 13227 } | 13229 } |
| 13228 } | 13230 } |
| 13229 | 13231 |
| 13230 class LiveChatModeratorSnippet { | 13232 class LiveChatModeratorSnippet { |
| 13231 /** The ID of the live chat this moderator can act on. */ | 13233 /// The ID of the live chat this moderator can act on. |
| 13232 core.String liveChatId; | 13234 core.String liveChatId; |
| 13233 /** Details about the moderator. */ | 13235 |
| 13236 /// Details about the moderator. |
| 13234 ChannelProfileDetails moderatorDetails; | 13237 ChannelProfileDetails moderatorDetails; |
| 13235 | 13238 |
| 13236 LiveChatModeratorSnippet(); | 13239 LiveChatModeratorSnippet(); |
| 13237 | 13240 |
| 13238 LiveChatModeratorSnippet.fromJson(core.Map _json) { | 13241 LiveChatModeratorSnippet.fromJson(core.Map _json) { |
| 13239 if (_json.containsKey("liveChatId")) { | 13242 if (_json.containsKey("liveChatId")) { |
| 13240 liveChatId = _json["liveChatId"]; | 13243 liveChatId = _json["liveChatId"]; |
| 13241 } | 13244 } |
| 13242 if (_json.containsKey("moderatorDetails")) { | 13245 if (_json.containsKey("moderatorDetails")) { |
| 13243 moderatorDetails = new ChannelProfileDetails.fromJson(_json["moderatorDeta
ils"]); | 13246 moderatorDetails = |
| 13247 new ChannelProfileDetails.fromJson(_json["moderatorDetails"]); |
| 13244 } | 13248 } |
| 13245 } | 13249 } |
| 13246 | 13250 |
| 13247 core.Map<core.String, core.Object> toJson() { | 13251 core.Map<core.String, core.Object> toJson() { |
| 13248 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13252 final core.Map<core.String, core.Object> _json = |
| 13253 new core.Map<core.String, core.Object>(); |
| 13249 if (liveChatId != null) { | 13254 if (liveChatId != null) { |
| 13250 _json["liveChatId"] = liveChatId; | 13255 _json["liveChatId"] = liveChatId; |
| 13251 } | 13256 } |
| 13252 if (moderatorDetails != null) { | 13257 if (moderatorDetails != null) { |
| 13253 _json["moderatorDetails"] = (moderatorDetails).toJson(); | 13258 _json["moderatorDetails"] = (moderatorDetails).toJson(); |
| 13254 } | 13259 } |
| 13255 return _json; | 13260 return _json; |
| 13256 } | 13261 } |
| 13257 } | 13262 } |
| 13258 | 13263 |
| 13259 class LiveChatPollClosedDetails { | 13264 class LiveChatPollClosedDetails { |
| 13260 /** The id of the poll that was closed. */ | 13265 /// The id of the poll that was closed. |
| 13261 core.String pollId; | 13266 core.String pollId; |
| 13262 | 13267 |
| 13263 LiveChatPollClosedDetails(); | 13268 LiveChatPollClosedDetails(); |
| 13264 | 13269 |
| 13265 LiveChatPollClosedDetails.fromJson(core.Map _json) { | 13270 LiveChatPollClosedDetails.fromJson(core.Map _json) { |
| 13266 if (_json.containsKey("pollId")) { | 13271 if (_json.containsKey("pollId")) { |
| 13267 pollId = _json["pollId"]; | 13272 pollId = _json["pollId"]; |
| 13268 } | 13273 } |
| 13269 } | 13274 } |
| 13270 | 13275 |
| 13271 core.Map<core.String, core.Object> toJson() { | 13276 core.Map<core.String, core.Object> toJson() { |
| 13272 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13277 final core.Map<core.String, core.Object> _json = |
| 13278 new core.Map<core.String, core.Object>(); |
| 13273 if (pollId != null) { | 13279 if (pollId != null) { |
| 13274 _json["pollId"] = pollId; | 13280 _json["pollId"] = pollId; |
| 13275 } | 13281 } |
| 13276 return _json; | 13282 return _json; |
| 13277 } | 13283 } |
| 13278 } | 13284 } |
| 13279 | 13285 |
| 13280 class LiveChatPollEditedDetails { | 13286 class LiveChatPollEditedDetails { |
| 13281 core.String id; | 13287 core.String id; |
| 13282 core.List<LiveChatPollItem> items; | 13288 core.List<LiveChatPollItem> items; |
| 13283 core.String prompt; | 13289 core.String prompt; |
| 13284 | 13290 |
| 13285 LiveChatPollEditedDetails(); | 13291 LiveChatPollEditedDetails(); |
| 13286 | 13292 |
| 13287 LiveChatPollEditedDetails.fromJson(core.Map _json) { | 13293 LiveChatPollEditedDetails.fromJson(core.Map _json) { |
| 13288 if (_json.containsKey("id")) { | 13294 if (_json.containsKey("id")) { |
| 13289 id = _json["id"]; | 13295 id = _json["id"]; |
| 13290 } | 13296 } |
| 13291 if (_json.containsKey("items")) { | 13297 if (_json.containsKey("items")) { |
| 13292 items = _json["items"].map((value) => new LiveChatPollItem.fromJson(value)
).toList(); | 13298 items = _json["items"] |
| 13299 .map((value) => new LiveChatPollItem.fromJson(value)) |
| 13300 .toList(); |
| 13293 } | 13301 } |
| 13294 if (_json.containsKey("prompt")) { | 13302 if (_json.containsKey("prompt")) { |
| 13295 prompt = _json["prompt"]; | 13303 prompt = _json["prompt"]; |
| 13296 } | 13304 } |
| 13297 } | 13305 } |
| 13298 | 13306 |
| 13299 core.Map<core.String, core.Object> toJson() { | 13307 core.Map<core.String, core.Object> toJson() { |
| 13300 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13308 final core.Map<core.String, core.Object> _json = |
| 13309 new core.Map<core.String, core.Object>(); |
| 13301 if (id != null) { | 13310 if (id != null) { |
| 13302 _json["id"] = id; | 13311 _json["id"] = id; |
| 13303 } | 13312 } |
| 13304 if (items != null) { | 13313 if (items != null) { |
| 13305 _json["items"] = items.map((value) => (value).toJson()).toList(); | 13314 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 13306 } | 13315 } |
| 13307 if (prompt != null) { | 13316 if (prompt != null) { |
| 13308 _json["prompt"] = prompt; | 13317 _json["prompt"] = prompt; |
| 13309 } | 13318 } |
| 13310 return _json; | 13319 return _json; |
| 13311 } | 13320 } |
| 13312 } | 13321 } |
| 13313 | 13322 |
| 13314 class LiveChatPollItem { | 13323 class LiveChatPollItem { |
| 13315 /** Plain text description of the item. */ | 13324 /// Plain text description of the item. |
| 13316 core.String description; | 13325 core.String description; |
| 13317 core.String itemId; | 13326 core.String itemId; |
| 13318 | 13327 |
| 13319 LiveChatPollItem(); | 13328 LiveChatPollItem(); |
| 13320 | 13329 |
| 13321 LiveChatPollItem.fromJson(core.Map _json) { | 13330 LiveChatPollItem.fromJson(core.Map _json) { |
| 13322 if (_json.containsKey("description")) { | 13331 if (_json.containsKey("description")) { |
| 13323 description = _json["description"]; | 13332 description = _json["description"]; |
| 13324 } | 13333 } |
| 13325 if (_json.containsKey("itemId")) { | 13334 if (_json.containsKey("itemId")) { |
| 13326 itemId = _json["itemId"]; | 13335 itemId = _json["itemId"]; |
| 13327 } | 13336 } |
| 13328 } | 13337 } |
| 13329 | 13338 |
| 13330 core.Map<core.String, core.Object> toJson() { | 13339 core.Map<core.String, core.Object> toJson() { |
| 13331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13340 final core.Map<core.String, core.Object> _json = |
| 13341 new core.Map<core.String, core.Object>(); |
| 13332 if (description != null) { | 13342 if (description != null) { |
| 13333 _json["description"] = description; | 13343 _json["description"] = description; |
| 13334 } | 13344 } |
| 13335 if (itemId != null) { | 13345 if (itemId != null) { |
| 13336 _json["itemId"] = itemId; | 13346 _json["itemId"] = itemId; |
| 13337 } | 13347 } |
| 13338 return _json; | 13348 return _json; |
| 13339 } | 13349 } |
| 13340 } | 13350 } |
| 13341 | 13351 |
| 13342 class LiveChatPollOpenedDetails { | 13352 class LiveChatPollOpenedDetails { |
| 13343 core.String id; | 13353 core.String id; |
| 13344 core.List<LiveChatPollItem> items; | 13354 core.List<LiveChatPollItem> items; |
| 13345 core.String prompt; | 13355 core.String prompt; |
| 13346 | 13356 |
| 13347 LiveChatPollOpenedDetails(); | 13357 LiveChatPollOpenedDetails(); |
| 13348 | 13358 |
| 13349 LiveChatPollOpenedDetails.fromJson(core.Map _json) { | 13359 LiveChatPollOpenedDetails.fromJson(core.Map _json) { |
| 13350 if (_json.containsKey("id")) { | 13360 if (_json.containsKey("id")) { |
| 13351 id = _json["id"]; | 13361 id = _json["id"]; |
| 13352 } | 13362 } |
| 13353 if (_json.containsKey("items")) { | 13363 if (_json.containsKey("items")) { |
| 13354 items = _json["items"].map((value) => new LiveChatPollItem.fromJson(value)
).toList(); | 13364 items = _json["items"] |
| 13365 .map((value) => new LiveChatPollItem.fromJson(value)) |
| 13366 .toList(); |
| 13355 } | 13367 } |
| 13356 if (_json.containsKey("prompt")) { | 13368 if (_json.containsKey("prompt")) { |
| 13357 prompt = _json["prompt"]; | 13369 prompt = _json["prompt"]; |
| 13358 } | 13370 } |
| 13359 } | 13371 } |
| 13360 | 13372 |
| 13361 core.Map<core.String, core.Object> toJson() { | 13373 core.Map<core.String, core.Object> toJson() { |
| 13362 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13374 final core.Map<core.String, core.Object> _json = |
| 13375 new core.Map<core.String, core.Object>(); |
| 13363 if (id != null) { | 13376 if (id != null) { |
| 13364 _json["id"] = id; | 13377 _json["id"] = id; |
| 13365 } | 13378 } |
| 13366 if (items != null) { | 13379 if (items != null) { |
| 13367 _json["items"] = items.map((value) => (value).toJson()).toList(); | 13380 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 13368 } | 13381 } |
| 13369 if (prompt != null) { | 13382 if (prompt != null) { |
| 13370 _json["prompt"] = prompt; | 13383 _json["prompt"] = prompt; |
| 13371 } | 13384 } |
| 13372 return _json; | 13385 return _json; |
| 13373 } | 13386 } |
| 13374 } | 13387 } |
| 13375 | 13388 |
| 13376 class LiveChatPollVotedDetails { | 13389 class LiveChatPollVotedDetails { |
| 13377 /** The poll item the user chose. */ | 13390 /// The poll item the user chose. |
| 13378 core.String itemId; | 13391 core.String itemId; |
| 13379 /** The poll the user voted on. */ | 13392 |
| 13393 /// The poll the user voted on. |
| 13380 core.String pollId; | 13394 core.String pollId; |
| 13381 | 13395 |
| 13382 LiveChatPollVotedDetails(); | 13396 LiveChatPollVotedDetails(); |
| 13383 | 13397 |
| 13384 LiveChatPollVotedDetails.fromJson(core.Map _json) { | 13398 LiveChatPollVotedDetails.fromJson(core.Map _json) { |
| 13385 if (_json.containsKey("itemId")) { | 13399 if (_json.containsKey("itemId")) { |
| 13386 itemId = _json["itemId"]; | 13400 itemId = _json["itemId"]; |
| 13387 } | 13401 } |
| 13388 if (_json.containsKey("pollId")) { | 13402 if (_json.containsKey("pollId")) { |
| 13389 pollId = _json["pollId"]; | 13403 pollId = _json["pollId"]; |
| 13390 } | 13404 } |
| 13391 } | 13405 } |
| 13392 | 13406 |
| 13393 core.Map<core.String, core.Object> toJson() { | 13407 core.Map<core.String, core.Object> toJson() { |
| 13394 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13408 final core.Map<core.String, core.Object> _json = |
| 13409 new core.Map<core.String, core.Object>(); |
| 13395 if (itemId != null) { | 13410 if (itemId != null) { |
| 13396 _json["itemId"] = itemId; | 13411 _json["itemId"] = itemId; |
| 13397 } | 13412 } |
| 13398 if (pollId != null) { | 13413 if (pollId != null) { |
| 13399 _json["pollId"] = pollId; | 13414 _json["pollId"] = pollId; |
| 13400 } | 13415 } |
| 13401 return _json; | 13416 return _json; |
| 13402 } | 13417 } |
| 13403 } | 13418 } |
| 13404 | 13419 |
| 13405 class LiveChatSuperChatDetails { | 13420 class LiveChatSuperChatDetails { |
| 13406 /** | 13421 /// A rendered string that displays the fund amount and currency to the user. |
| 13407 * A rendered string that displays the fund amount and currency to the user. | |
| 13408 */ | |
| 13409 core.String amountDisplayString; | 13422 core.String amountDisplayString; |
| 13410 /** The amount purchased by the user, in micros (1,750,000 micros = 1.75). */ | 13423 |
| 13424 /// The amount purchased by the user, in micros (1,750,000 micros = 1.75). |
| 13411 core.String amountMicros; | 13425 core.String amountMicros; |
| 13412 /** The currency in which the purchase was made. */ | 13426 |
| 13427 /// The currency in which the purchase was made. |
| 13413 core.String currency; | 13428 core.String currency; |
| 13414 /** | 13429 |
| 13415 * The tier in which the amount belongs to. Lower amounts belong to lower | 13430 /// The tier in which the amount belongs to. Lower amounts belong to lower |
| 13416 * tiers. Starts at 1. | 13431 /// tiers. Starts at 1. |
| 13417 */ | |
| 13418 core.int tier; | 13432 core.int tier; |
| 13419 /** The comment added by the user to this Super Chat event. */ | 13433 |
| 13434 /// The comment added by the user to this Super Chat event. |
| 13420 core.String userComment; | 13435 core.String userComment; |
| 13421 | 13436 |
| 13422 LiveChatSuperChatDetails(); | 13437 LiveChatSuperChatDetails(); |
| 13423 | 13438 |
| 13424 LiveChatSuperChatDetails.fromJson(core.Map _json) { | 13439 LiveChatSuperChatDetails.fromJson(core.Map _json) { |
| 13425 if (_json.containsKey("amountDisplayString")) { | 13440 if (_json.containsKey("amountDisplayString")) { |
| 13426 amountDisplayString = _json["amountDisplayString"]; | 13441 amountDisplayString = _json["amountDisplayString"]; |
| 13427 } | 13442 } |
| 13428 if (_json.containsKey("amountMicros")) { | 13443 if (_json.containsKey("amountMicros")) { |
| 13429 amountMicros = _json["amountMicros"]; | 13444 amountMicros = _json["amountMicros"]; |
| 13430 } | 13445 } |
| 13431 if (_json.containsKey("currency")) { | 13446 if (_json.containsKey("currency")) { |
| 13432 currency = _json["currency"]; | 13447 currency = _json["currency"]; |
| 13433 } | 13448 } |
| 13434 if (_json.containsKey("tier")) { | 13449 if (_json.containsKey("tier")) { |
| 13435 tier = _json["tier"]; | 13450 tier = _json["tier"]; |
| 13436 } | 13451 } |
| 13437 if (_json.containsKey("userComment")) { | 13452 if (_json.containsKey("userComment")) { |
| 13438 userComment = _json["userComment"]; | 13453 userComment = _json["userComment"]; |
| 13439 } | 13454 } |
| 13440 } | 13455 } |
| 13441 | 13456 |
| 13442 core.Map<core.String, core.Object> toJson() { | 13457 core.Map<core.String, core.Object> toJson() { |
| 13443 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13458 final core.Map<core.String, core.Object> _json = |
| 13459 new core.Map<core.String, core.Object>(); |
| 13444 if (amountDisplayString != null) { | 13460 if (amountDisplayString != null) { |
| 13445 _json["amountDisplayString"] = amountDisplayString; | 13461 _json["amountDisplayString"] = amountDisplayString; |
| 13446 } | 13462 } |
| 13447 if (amountMicros != null) { | 13463 if (amountMicros != null) { |
| 13448 _json["amountMicros"] = amountMicros; | 13464 _json["amountMicros"] = amountMicros; |
| 13449 } | 13465 } |
| 13450 if (currency != null) { | 13466 if (currency != null) { |
| 13451 _json["currency"] = currency; | 13467 _json["currency"] = currency; |
| 13452 } | 13468 } |
| 13453 if (tier != null) { | 13469 if (tier != null) { |
| 13454 _json["tier"] = tier; | 13470 _json["tier"] = tier; |
| 13455 } | 13471 } |
| 13456 if (userComment != null) { | 13472 if (userComment != null) { |
| 13457 _json["userComment"] = userComment; | 13473 _json["userComment"] = userComment; |
| 13458 } | 13474 } |
| 13459 return _json; | 13475 return _json; |
| 13460 } | 13476 } |
| 13461 } | 13477 } |
| 13462 | 13478 |
| 13463 class LiveChatTextMessageDetails { | 13479 class LiveChatTextMessageDetails { |
| 13464 /** The user's message. */ | 13480 /// The user's message. |
| 13465 core.String messageText; | 13481 core.String messageText; |
| 13466 | 13482 |
| 13467 LiveChatTextMessageDetails(); | 13483 LiveChatTextMessageDetails(); |
| 13468 | 13484 |
| 13469 LiveChatTextMessageDetails.fromJson(core.Map _json) { | 13485 LiveChatTextMessageDetails.fromJson(core.Map _json) { |
| 13470 if (_json.containsKey("messageText")) { | 13486 if (_json.containsKey("messageText")) { |
| 13471 messageText = _json["messageText"]; | 13487 messageText = _json["messageText"]; |
| 13472 } | 13488 } |
| 13473 } | 13489 } |
| 13474 | 13490 |
| 13475 core.Map<core.String, core.Object> toJson() { | 13491 core.Map<core.String, core.Object> toJson() { |
| 13476 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13492 final core.Map<core.String, core.Object> _json = |
| 13493 new core.Map<core.String, core.Object>(); |
| 13477 if (messageText != null) { | 13494 if (messageText != null) { |
| 13478 _json["messageText"] = messageText; | 13495 _json["messageText"] = messageText; |
| 13479 } | 13496 } |
| 13480 return _json; | 13497 return _json; |
| 13481 } | 13498 } |
| 13482 } | 13499 } |
| 13483 | 13500 |
| 13484 class LiveChatUserBannedMessageDetails { | 13501 class LiveChatUserBannedMessageDetails { |
| 13485 /** | 13502 /// The duration of the ban. This property is only present if the banType is |
| 13486 * The duration of the ban. This property is only present if the banType is | 13503 /// temporary. |
| 13487 * temporary. | |
| 13488 */ | |
| 13489 core.String banDurationSeconds; | 13504 core.String banDurationSeconds; |
| 13490 /** | 13505 |
| 13491 * The type of ban. | 13506 /// The type of ban. |
| 13492 * Possible string values are: | 13507 /// Possible string values are: |
| 13493 * - "permanent" | 13508 /// - "permanent" |
| 13494 * - "temporary" | 13509 /// - "temporary" |
| 13495 */ | |
| 13496 core.String banType; | 13510 core.String banType; |
| 13497 /** The details of the user that was banned. */ | 13511 |
| 13512 /// The details of the user that was banned. |
| 13498 ChannelProfileDetails bannedUserDetails; | 13513 ChannelProfileDetails bannedUserDetails; |
| 13499 | 13514 |
| 13500 LiveChatUserBannedMessageDetails(); | 13515 LiveChatUserBannedMessageDetails(); |
| 13501 | 13516 |
| 13502 LiveChatUserBannedMessageDetails.fromJson(core.Map _json) { | 13517 LiveChatUserBannedMessageDetails.fromJson(core.Map _json) { |
| 13503 if (_json.containsKey("banDurationSeconds")) { | 13518 if (_json.containsKey("banDurationSeconds")) { |
| 13504 banDurationSeconds = _json["banDurationSeconds"]; | 13519 banDurationSeconds = _json["banDurationSeconds"]; |
| 13505 } | 13520 } |
| 13506 if (_json.containsKey("banType")) { | 13521 if (_json.containsKey("banType")) { |
| 13507 banType = _json["banType"]; | 13522 banType = _json["banType"]; |
| 13508 } | 13523 } |
| 13509 if (_json.containsKey("bannedUserDetails")) { | 13524 if (_json.containsKey("bannedUserDetails")) { |
| 13510 bannedUserDetails = new ChannelProfileDetails.fromJson(_json["bannedUserDe
tails"]); | 13525 bannedUserDetails = |
| 13526 new ChannelProfileDetails.fromJson(_json["bannedUserDetails"]); |
| 13511 } | 13527 } |
| 13512 } | 13528 } |
| 13513 | 13529 |
| 13514 core.Map<core.String, core.Object> toJson() { | 13530 core.Map<core.String, core.Object> toJson() { |
| 13515 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13531 final core.Map<core.String, core.Object> _json = |
| 13532 new core.Map<core.String, core.Object>(); |
| 13516 if (banDurationSeconds != null) { | 13533 if (banDurationSeconds != null) { |
| 13517 _json["banDurationSeconds"] = banDurationSeconds; | 13534 _json["banDurationSeconds"] = banDurationSeconds; |
| 13518 } | 13535 } |
| 13519 if (banType != null) { | 13536 if (banType != null) { |
| 13520 _json["banType"] = banType; | 13537 _json["banType"] = banType; |
| 13521 } | 13538 } |
| 13522 if (bannedUserDetails != null) { | 13539 if (bannedUserDetails != null) { |
| 13523 _json["bannedUserDetails"] = (bannedUserDetails).toJson(); | 13540 _json["bannedUserDetails"] = (bannedUserDetails).toJson(); |
| 13524 } | 13541 } |
| 13525 return _json; | 13542 return _json; |
| 13526 } | 13543 } |
| 13527 } | 13544 } |
| 13528 | 13545 |
| 13529 /** A live stream describes a live ingestion point. */ | 13546 /// A live stream describes a live ingestion point. |
| 13530 class LiveStream { | 13547 class LiveStream { |
| 13531 /** | 13548 /// The cdn object defines the live stream's content delivery network (CDN) |
| 13532 * The cdn object defines the live stream's content delivery network (CDN) | 13549 /// settings. These settings provide details about the manner in which you |
| 13533 * settings. These settings provide details about the manner in which you | 13550 /// stream your content to YouTube. |
| 13534 * stream your content to YouTube. | |
| 13535 */ | |
| 13536 CdnSettings cdn; | 13551 CdnSettings cdn; |
| 13537 /** | 13552 |
| 13538 * The content_details object contains information about the stream, including | 13553 /// The content_details object contains information about the stream, |
| 13539 * the closed captions ingestion URL. | 13554 /// including the closed captions ingestion URL. |
| 13540 */ | |
| 13541 LiveStreamContentDetails contentDetails; | 13555 LiveStreamContentDetails contentDetails; |
| 13542 /** Etag of this resource. */ | 13556 |
| 13557 /// Etag of this resource. |
| 13543 core.String etag; | 13558 core.String etag; |
| 13544 /** The ID that YouTube assigns to uniquely identify the stream. */ | 13559 |
| 13560 /// The ID that YouTube assigns to uniquely identify the stream. |
| 13545 core.String id; | 13561 core.String id; |
| 13546 /** | 13562 |
| 13547 * Identifies what kind of resource this is. Value: the fixed string | 13563 /// Identifies what kind of resource this is. Value: the fixed string |
| 13548 * "youtube#liveStream". | 13564 /// "youtube#liveStream". |
| 13549 */ | |
| 13550 core.String kind; | 13565 core.String kind; |
| 13551 /** | 13566 |
| 13552 * The snippet object contains basic details about the stream, including its | 13567 /// The snippet object contains basic details about the stream, including its |
| 13553 * channel, title, and description. | 13568 /// channel, title, and description. |
| 13554 */ | |
| 13555 LiveStreamSnippet snippet; | 13569 LiveStreamSnippet snippet; |
| 13556 /** The status object contains information about live stream's status. */ | 13570 |
| 13571 /// The status object contains information about live stream's status. |
| 13557 LiveStreamStatus status; | 13572 LiveStreamStatus status; |
| 13558 | 13573 |
| 13559 LiveStream(); | 13574 LiveStream(); |
| 13560 | 13575 |
| 13561 LiveStream.fromJson(core.Map _json) { | 13576 LiveStream.fromJson(core.Map _json) { |
| 13562 if (_json.containsKey("cdn")) { | 13577 if (_json.containsKey("cdn")) { |
| 13563 cdn = new CdnSettings.fromJson(_json["cdn"]); | 13578 cdn = new CdnSettings.fromJson(_json["cdn"]); |
| 13564 } | 13579 } |
| 13565 if (_json.containsKey("contentDetails")) { | 13580 if (_json.containsKey("contentDetails")) { |
| 13566 contentDetails = new LiveStreamContentDetails.fromJson(_json["contentDetai
ls"]); | 13581 contentDetails = |
| 13582 new LiveStreamContentDetails.fromJson(_json["contentDetails"]); |
| 13567 } | 13583 } |
| 13568 if (_json.containsKey("etag")) { | 13584 if (_json.containsKey("etag")) { |
| 13569 etag = _json["etag"]; | 13585 etag = _json["etag"]; |
| 13570 } | 13586 } |
| 13571 if (_json.containsKey("id")) { | 13587 if (_json.containsKey("id")) { |
| 13572 id = _json["id"]; | 13588 id = _json["id"]; |
| 13573 } | 13589 } |
| 13574 if (_json.containsKey("kind")) { | 13590 if (_json.containsKey("kind")) { |
| 13575 kind = _json["kind"]; | 13591 kind = _json["kind"]; |
| 13576 } | 13592 } |
| 13577 if (_json.containsKey("snippet")) { | 13593 if (_json.containsKey("snippet")) { |
| 13578 snippet = new LiveStreamSnippet.fromJson(_json["snippet"]); | 13594 snippet = new LiveStreamSnippet.fromJson(_json["snippet"]); |
| 13579 } | 13595 } |
| 13580 if (_json.containsKey("status")) { | 13596 if (_json.containsKey("status")) { |
| 13581 status = new LiveStreamStatus.fromJson(_json["status"]); | 13597 status = new LiveStreamStatus.fromJson(_json["status"]); |
| 13582 } | 13598 } |
| 13583 } | 13599 } |
| 13584 | 13600 |
| 13585 core.Map<core.String, core.Object> toJson() { | 13601 core.Map<core.String, core.Object> toJson() { |
| 13586 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13602 final core.Map<core.String, core.Object> _json = |
| 13603 new core.Map<core.String, core.Object>(); |
| 13587 if (cdn != null) { | 13604 if (cdn != null) { |
| 13588 _json["cdn"] = (cdn).toJson(); | 13605 _json["cdn"] = (cdn).toJson(); |
| 13589 } | 13606 } |
| 13590 if (contentDetails != null) { | 13607 if (contentDetails != null) { |
| 13591 _json["contentDetails"] = (contentDetails).toJson(); | 13608 _json["contentDetails"] = (contentDetails).toJson(); |
| 13592 } | 13609 } |
| 13593 if (etag != null) { | 13610 if (etag != null) { |
| 13594 _json["etag"] = etag; | 13611 _json["etag"] = etag; |
| 13595 } | 13612 } |
| 13596 if (id != null) { | 13613 if (id != null) { |
| 13597 _json["id"] = id; | 13614 _json["id"] = id; |
| 13598 } | 13615 } |
| 13599 if (kind != null) { | 13616 if (kind != null) { |
| 13600 _json["kind"] = kind; | 13617 _json["kind"] = kind; |
| 13601 } | 13618 } |
| 13602 if (snippet != null) { | 13619 if (snippet != null) { |
| 13603 _json["snippet"] = (snippet).toJson(); | 13620 _json["snippet"] = (snippet).toJson(); |
| 13604 } | 13621 } |
| 13605 if (status != null) { | 13622 if (status != null) { |
| 13606 _json["status"] = (status).toJson(); | 13623 _json["status"] = (status).toJson(); |
| 13607 } | 13624 } |
| 13608 return _json; | 13625 return _json; |
| 13609 } | 13626 } |
| 13610 } | 13627 } |
| 13611 | 13628 |
| 13612 class LiveStreamConfigurationIssue { | 13629 class LiveStreamConfigurationIssue { |
| 13613 /** The long-form description of the issue and how to resolve it. */ | 13630 /// The long-form description of the issue and how to resolve it. |
| 13614 core.String description; | 13631 core.String description; |
| 13615 /** The short-form reason for this issue. */ | 13632 |
| 13633 /// The short-form reason for this issue. |
| 13616 core.String reason; | 13634 core.String reason; |
| 13617 /** | 13635 |
| 13618 * How severe this issue is to the stream. | 13636 /// How severe this issue is to the stream. |
| 13619 * Possible string values are: | 13637 /// Possible string values are: |
| 13620 * - "error" | 13638 /// - "error" |
| 13621 * - "info" | 13639 /// - "info" |
| 13622 * - "warning" | 13640 /// - "warning" |
| 13623 */ | |
| 13624 core.String severity; | 13641 core.String severity; |
| 13625 /** | 13642 |
| 13626 * The kind of error happening. | 13643 /// The kind of error happening. |
| 13627 * Possible string values are: | 13644 /// Possible string values are: |
| 13628 * - "audioBitrateHigh" | 13645 /// - "audioBitrateHigh" |
| 13629 * - "audioBitrateLow" | 13646 /// - "audioBitrateLow" |
| 13630 * - "audioBitrateMismatch" | 13647 /// - "audioBitrateMismatch" |
| 13631 * - "audioCodec" | 13648 /// - "audioCodec" |
| 13632 * - "audioCodecMismatch" | 13649 /// - "audioCodecMismatch" |
| 13633 * - "audioSampleRate" | 13650 /// - "audioSampleRate" |
| 13634 * - "audioSampleRateMismatch" | 13651 /// - "audioSampleRateMismatch" |
| 13635 * - "audioStereoMismatch" | 13652 /// - "audioStereoMismatch" |
| 13636 * - "audioTooManyChannels" | 13653 /// - "audioTooManyChannels" |
| 13637 * - "badContainer" | 13654 /// - "badContainer" |
| 13638 * - "bitrateHigh" | 13655 /// - "bitrateHigh" |
| 13639 * - "bitrateLow" | 13656 /// - "bitrateLow" |
| 13640 * - "frameRateHigh" | 13657 /// - "frameRateHigh" |
| 13641 * - "framerateMismatch" | 13658 /// - "framerateMismatch" |
| 13642 * - "gopMismatch" | 13659 /// - "gopMismatch" |
| 13643 * - "gopSizeLong" | 13660 /// - "gopSizeLong" |
| 13644 * - "gopSizeOver" | 13661 /// - "gopSizeOver" |
| 13645 * - "gopSizeShort" | 13662 /// - "gopSizeShort" |
| 13646 * - "interlacedVideo" | 13663 /// - "interlacedVideo" |
| 13647 * - "multipleAudioStreams" | 13664 /// - "multipleAudioStreams" |
| 13648 * - "multipleVideoStreams" | 13665 /// - "multipleVideoStreams" |
| 13649 * - "noAudioStream" | 13666 /// - "noAudioStream" |
| 13650 * - "noVideoStream" | 13667 /// - "noVideoStream" |
| 13651 * - "openGop" | 13668 /// - "openGop" |
| 13652 * - "resolutionMismatch" | 13669 /// - "resolutionMismatch" |
| 13653 * - "videoBitrateMismatch" | 13670 /// - "videoBitrateMismatch" |
| 13654 * - "videoCodec" | 13671 /// - "videoCodec" |
| 13655 * - "videoCodecMismatch" | 13672 /// - "videoCodecMismatch" |
| 13656 * - "videoIngestionStarved" | 13673 /// - "videoIngestionStarved" |
| 13657 * - "videoInterlaceMismatch" | 13674 /// - "videoInterlaceMismatch" |
| 13658 * - "videoProfileMismatch" | 13675 /// - "videoProfileMismatch" |
| 13659 * - "videoResolutionSuboptimal" | 13676 /// - "videoResolutionSuboptimal" |
| 13660 * - "videoResolutionUnsupported" | 13677 /// - "videoResolutionUnsupported" |
| 13661 */ | |
| 13662 core.String type; | 13678 core.String type; |
| 13663 | 13679 |
| 13664 LiveStreamConfigurationIssue(); | 13680 LiveStreamConfigurationIssue(); |
| 13665 | 13681 |
| 13666 LiveStreamConfigurationIssue.fromJson(core.Map _json) { | 13682 LiveStreamConfigurationIssue.fromJson(core.Map _json) { |
| 13667 if (_json.containsKey("description")) { | 13683 if (_json.containsKey("description")) { |
| 13668 description = _json["description"]; | 13684 description = _json["description"]; |
| 13669 } | 13685 } |
| 13670 if (_json.containsKey("reason")) { | 13686 if (_json.containsKey("reason")) { |
| 13671 reason = _json["reason"]; | 13687 reason = _json["reason"]; |
| 13672 } | 13688 } |
| 13673 if (_json.containsKey("severity")) { | 13689 if (_json.containsKey("severity")) { |
| 13674 severity = _json["severity"]; | 13690 severity = _json["severity"]; |
| 13675 } | 13691 } |
| 13676 if (_json.containsKey("type")) { | 13692 if (_json.containsKey("type")) { |
| 13677 type = _json["type"]; | 13693 type = _json["type"]; |
| 13678 } | 13694 } |
| 13679 } | 13695 } |
| 13680 | 13696 |
| 13681 core.Map<core.String, core.Object> toJson() { | 13697 core.Map<core.String, core.Object> toJson() { |
| 13682 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13698 final core.Map<core.String, core.Object> _json = |
| 13699 new core.Map<core.String, core.Object>(); |
| 13683 if (description != null) { | 13700 if (description != null) { |
| 13684 _json["description"] = description; | 13701 _json["description"] = description; |
| 13685 } | 13702 } |
| 13686 if (reason != null) { | 13703 if (reason != null) { |
| 13687 _json["reason"] = reason; | 13704 _json["reason"] = reason; |
| 13688 } | 13705 } |
| 13689 if (severity != null) { | 13706 if (severity != null) { |
| 13690 _json["severity"] = severity; | 13707 _json["severity"] = severity; |
| 13691 } | 13708 } |
| 13692 if (type != null) { | 13709 if (type != null) { |
| 13693 _json["type"] = type; | 13710 _json["type"] = type; |
| 13694 } | 13711 } |
| 13695 return _json; | 13712 return _json; |
| 13696 } | 13713 } |
| 13697 } | 13714 } |
| 13698 | 13715 |
| 13699 /** Detailed settings of a stream. */ | 13716 /// Detailed settings of a stream. |
| 13700 class LiveStreamContentDetails { | 13717 class LiveStreamContentDetails { |
| 13701 /** The ingestion URL where the closed captions of this stream are sent. */ | 13718 /// The ingestion URL where the closed captions of this stream are sent. |
| 13702 core.String closedCaptionsIngestionUrl; | 13719 core.String closedCaptionsIngestionUrl; |
| 13703 /** | 13720 |
| 13704 * Indicates whether the stream is reusable, which means that it can be bound | 13721 /// Indicates whether the stream is reusable, which means that it can be |
| 13705 * to multiple broadcasts. It is common for broadcasters to reuse the same | 13722 /// bound to multiple broadcasts. It is common for broadcasters to reuse the |
| 13706 * stream for many different broadcasts if those broadcasts occur at different | 13723 /// same stream for many different broadcasts if those broadcasts occur at |
| 13707 * times. | 13724 /// different times. |
| 13708 * | 13725 /// |
| 13709 * If you set this value to false, then the stream will not be reusable, which | 13726 /// If you set this value to false, then the stream will not be reusable, |
| 13710 * means that it can only be bound to one broadcast. Non-reusable streams | 13727 /// which means that it can only be bound to one broadcast. Non-reusable |
| 13711 * differ from reusable streams in the following ways: | 13728 /// streams differ from reusable streams in the following ways: |
| 13712 * - A non-reusable stream can only be bound to one broadcast. | 13729 /// - A non-reusable stream can only be bound to one broadcast. |
| 13713 * - A non-reusable stream might be deleted by an automated process after the | 13730 /// - A non-reusable stream might be deleted by an automated process after |
| 13714 * broadcast ends. | 13731 /// the broadcast ends. |
| 13715 * - The liveStreams.list method does not list non-reusable streams if you | 13732 /// - The liveStreams.list method does not list non-reusable streams if you |
| 13716 * call the method and set the mine parameter to true. The only way to use | 13733 /// call the method and set the mine parameter to true. The only way to use |
| 13717 * that method to retrieve the resource for a non-reusable stream is to use | 13734 /// that method to retrieve the resource for a non-reusable stream is to use |
| 13718 * the id parameter to identify the stream. | 13735 /// the id parameter to identify the stream. |
| 13719 */ | |
| 13720 core.bool isReusable; | 13736 core.bool isReusable; |
| 13721 | 13737 |
| 13722 LiveStreamContentDetails(); | 13738 LiveStreamContentDetails(); |
| 13723 | 13739 |
| 13724 LiveStreamContentDetails.fromJson(core.Map _json) { | 13740 LiveStreamContentDetails.fromJson(core.Map _json) { |
| 13725 if (_json.containsKey("closedCaptionsIngestionUrl")) { | 13741 if (_json.containsKey("closedCaptionsIngestionUrl")) { |
| 13726 closedCaptionsIngestionUrl = _json["closedCaptionsIngestionUrl"]; | 13742 closedCaptionsIngestionUrl = _json["closedCaptionsIngestionUrl"]; |
| 13727 } | 13743 } |
| 13728 if (_json.containsKey("isReusable")) { | 13744 if (_json.containsKey("isReusable")) { |
| 13729 isReusable = _json["isReusable"]; | 13745 isReusable = _json["isReusable"]; |
| 13730 } | 13746 } |
| 13731 } | 13747 } |
| 13732 | 13748 |
| 13733 core.Map<core.String, core.Object> toJson() { | 13749 core.Map<core.String, core.Object> toJson() { |
| 13734 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13750 final core.Map<core.String, core.Object> _json = |
| 13751 new core.Map<core.String, core.Object>(); |
| 13735 if (closedCaptionsIngestionUrl != null) { | 13752 if (closedCaptionsIngestionUrl != null) { |
| 13736 _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; | 13753 _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; |
| 13737 } | 13754 } |
| 13738 if (isReusable != null) { | 13755 if (isReusable != null) { |
| 13739 _json["isReusable"] = isReusable; | 13756 _json["isReusable"] = isReusable; |
| 13740 } | 13757 } |
| 13741 return _json; | 13758 return _json; |
| 13742 } | 13759 } |
| 13743 } | 13760 } |
| 13744 | 13761 |
| 13745 class LiveStreamHealthStatus { | 13762 class LiveStreamHealthStatus { |
| 13746 /** The configurations issues on this stream */ | 13763 /// The configurations issues on this stream |
| 13747 core.List<LiveStreamConfigurationIssue> configurationIssues; | 13764 core.List<LiveStreamConfigurationIssue> configurationIssues; |
| 13748 /** The last time this status was updated (in seconds) */ | 13765 |
| 13766 /// The last time this status was updated (in seconds) |
| 13749 core.String lastUpdateTimeSeconds; | 13767 core.String lastUpdateTimeSeconds; |
| 13750 /** | 13768 |
| 13751 * The status code of this stream | 13769 /// The status code of this stream |
| 13752 * Possible string values are: | 13770 /// Possible string values are: |
| 13753 * - "bad" | 13771 /// - "bad" |
| 13754 * - "good" | 13772 /// - "good" |
| 13755 * - "noData" | 13773 /// - "noData" |
| 13756 * - "ok" | 13774 /// - "ok" |
| 13757 * - "revoked" | 13775 /// - "revoked" |
| 13758 */ | |
| 13759 core.String status; | 13776 core.String status; |
| 13760 | 13777 |
| 13761 LiveStreamHealthStatus(); | 13778 LiveStreamHealthStatus(); |
| 13762 | 13779 |
| 13763 LiveStreamHealthStatus.fromJson(core.Map _json) { | 13780 LiveStreamHealthStatus.fromJson(core.Map _json) { |
| 13764 if (_json.containsKey("configurationIssues")) { | 13781 if (_json.containsKey("configurationIssues")) { |
| 13765 configurationIssues = _json["configurationIssues"].map((value) => new Live
StreamConfigurationIssue.fromJson(value)).toList(); | 13782 configurationIssues = _json["configurationIssues"] |
| 13783 .map((value) => new LiveStreamConfigurationIssue.fromJson(value)) |
| 13784 .toList(); |
| 13766 } | 13785 } |
| 13767 if (_json.containsKey("lastUpdateTimeSeconds")) { | 13786 if (_json.containsKey("lastUpdateTimeSeconds")) { |
| 13768 lastUpdateTimeSeconds = _json["lastUpdateTimeSeconds"]; | 13787 lastUpdateTimeSeconds = _json["lastUpdateTimeSeconds"]; |
| 13769 } | 13788 } |
| 13770 if (_json.containsKey("status")) { | 13789 if (_json.containsKey("status")) { |
| 13771 status = _json["status"]; | 13790 status = _json["status"]; |
| 13772 } | 13791 } |
| 13773 } | 13792 } |
| 13774 | 13793 |
| 13775 core.Map<core.String, core.Object> toJson() { | 13794 core.Map<core.String, core.Object> toJson() { |
| 13776 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13795 final core.Map<core.String, core.Object> _json = |
| 13796 new core.Map<core.String, core.Object>(); |
| 13777 if (configurationIssues != null) { | 13797 if (configurationIssues != null) { |
| 13778 _json["configurationIssues"] = configurationIssues.map((value) => (value).
toJson()).toList(); | 13798 _json["configurationIssues"] = |
| 13799 configurationIssues.map((value) => (value).toJson()).toList(); |
| 13779 } | 13800 } |
| 13780 if (lastUpdateTimeSeconds != null) { | 13801 if (lastUpdateTimeSeconds != null) { |
| 13781 _json["lastUpdateTimeSeconds"] = lastUpdateTimeSeconds; | 13802 _json["lastUpdateTimeSeconds"] = lastUpdateTimeSeconds; |
| 13782 } | 13803 } |
| 13783 if (status != null) { | 13804 if (status != null) { |
| 13784 _json["status"] = status; | 13805 _json["status"] = status; |
| 13785 } | 13806 } |
| 13786 return _json; | 13807 return _json; |
| 13787 } | 13808 } |
| 13788 } | 13809 } |
| 13789 | 13810 |
| 13790 class LiveStreamListResponse { | 13811 class LiveStreamListResponse { |
| 13791 /** Etag of this resource. */ | 13812 /// Etag of this resource. |
| 13792 core.String etag; | 13813 core.String etag; |
| 13793 /** Serialized EventId of the request which produced this response. */ | 13814 |
| 13815 /// Serialized EventId of the request which produced this response. |
| 13794 core.String eventId; | 13816 core.String eventId; |
| 13795 /** A list of live streams that match the request criteria. */ | 13817 |
| 13818 /// A list of live streams that match the request criteria. |
| 13796 core.List<LiveStream> items; | 13819 core.List<LiveStream> items; |
| 13797 /** | 13820 |
| 13798 * Identifies what kind of resource this is. Value: the fixed string | 13821 /// Identifies what kind of resource this is. Value: the fixed string |
| 13799 * "youtube#liveStreamListResponse". | 13822 /// "youtube#liveStreamListResponse". |
| 13800 */ | |
| 13801 core.String kind; | 13823 core.String kind; |
| 13802 /** | 13824 |
| 13803 * The token that can be used as the value of the pageToken parameter to | 13825 /// The token that can be used as the value of the pageToken parameter to |
| 13804 * retrieve the next page in the result set. | 13826 /// retrieve the next page in the result set. |
| 13805 */ | |
| 13806 core.String nextPageToken; | 13827 core.String nextPageToken; |
| 13807 PageInfo pageInfo; | 13828 PageInfo pageInfo; |
| 13808 /** | 13829 |
| 13809 * The token that can be used as the value of the pageToken parameter to | 13830 /// The token that can be used as the value of the pageToken parameter to |
| 13810 * retrieve the previous page in the result set. | 13831 /// retrieve the previous page in the result set. |
| 13811 */ | |
| 13812 core.String prevPageToken; | 13832 core.String prevPageToken; |
| 13813 TokenPagination tokenPagination; | 13833 TokenPagination tokenPagination; |
| 13814 /** The visitorId identifies the visitor. */ | 13834 |
| 13835 /// The visitorId identifies the visitor. |
| 13815 core.String visitorId; | 13836 core.String visitorId; |
| 13816 | 13837 |
| 13817 LiveStreamListResponse(); | 13838 LiveStreamListResponse(); |
| 13818 | 13839 |
| 13819 LiveStreamListResponse.fromJson(core.Map _json) { | 13840 LiveStreamListResponse.fromJson(core.Map _json) { |
| 13820 if (_json.containsKey("etag")) { | 13841 if (_json.containsKey("etag")) { |
| 13821 etag = _json["etag"]; | 13842 etag = _json["etag"]; |
| 13822 } | 13843 } |
| 13823 if (_json.containsKey("eventId")) { | 13844 if (_json.containsKey("eventId")) { |
| 13824 eventId = _json["eventId"]; | 13845 eventId = _json["eventId"]; |
| 13825 } | 13846 } |
| 13826 if (_json.containsKey("items")) { | 13847 if (_json.containsKey("items")) { |
| 13827 items = _json["items"].map((value) => new LiveStream.fromJson(value)).toLi
st(); | 13848 items = _json["items"] |
| 13849 .map((value) => new LiveStream.fromJson(value)) |
| 13850 .toList(); |
| 13828 } | 13851 } |
| 13829 if (_json.containsKey("kind")) { | 13852 if (_json.containsKey("kind")) { |
| 13830 kind = _json["kind"]; | 13853 kind = _json["kind"]; |
| 13831 } | 13854 } |
| 13832 if (_json.containsKey("nextPageToken")) { | 13855 if (_json.containsKey("nextPageToken")) { |
| 13833 nextPageToken = _json["nextPageToken"]; | 13856 nextPageToken = _json["nextPageToken"]; |
| 13834 } | 13857 } |
| 13835 if (_json.containsKey("pageInfo")) { | 13858 if (_json.containsKey("pageInfo")) { |
| 13836 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 13859 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 13837 } | 13860 } |
| 13838 if (_json.containsKey("prevPageToken")) { | 13861 if (_json.containsKey("prevPageToken")) { |
| 13839 prevPageToken = _json["prevPageToken"]; | 13862 prevPageToken = _json["prevPageToken"]; |
| 13840 } | 13863 } |
| 13841 if (_json.containsKey("tokenPagination")) { | 13864 if (_json.containsKey("tokenPagination")) { |
| 13842 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 13865 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 13843 } | 13866 } |
| 13844 if (_json.containsKey("visitorId")) { | 13867 if (_json.containsKey("visitorId")) { |
| 13845 visitorId = _json["visitorId"]; | 13868 visitorId = _json["visitorId"]; |
| 13846 } | 13869 } |
| 13847 } | 13870 } |
| 13848 | 13871 |
| 13849 core.Map<core.String, core.Object> toJson() { | 13872 core.Map<core.String, core.Object> toJson() { |
| 13850 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13873 final core.Map<core.String, core.Object> _json = |
| 13874 new core.Map<core.String, core.Object>(); |
| 13851 if (etag != null) { | 13875 if (etag != null) { |
| 13852 _json["etag"] = etag; | 13876 _json["etag"] = etag; |
| 13853 } | 13877 } |
| 13854 if (eventId != null) { | 13878 if (eventId != null) { |
| 13855 _json["eventId"] = eventId; | 13879 _json["eventId"] = eventId; |
| 13856 } | 13880 } |
| 13857 if (items != null) { | 13881 if (items != null) { |
| 13858 _json["items"] = items.map((value) => (value).toJson()).toList(); | 13882 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 13859 } | 13883 } |
| 13860 if (kind != null) { | 13884 if (kind != null) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 13873 _json["tokenPagination"] = (tokenPagination).toJson(); | 13897 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 13874 } | 13898 } |
| 13875 if (visitorId != null) { | 13899 if (visitorId != null) { |
| 13876 _json["visitorId"] = visitorId; | 13900 _json["visitorId"] = visitorId; |
| 13877 } | 13901 } |
| 13878 return _json; | 13902 return _json; |
| 13879 } | 13903 } |
| 13880 } | 13904 } |
| 13881 | 13905 |
| 13882 class LiveStreamSnippet { | 13906 class LiveStreamSnippet { |
| 13883 /** | 13907 /// The ID that YouTube uses to uniquely identify the channel that is |
| 13884 * The ID that YouTube uses to uniquely identify the channel that is | 13908 /// transmitting the stream. |
| 13885 * transmitting the stream. | |
| 13886 */ | |
| 13887 core.String channelId; | 13909 core.String channelId; |
| 13888 /** | 13910 |
| 13889 * The stream's description. The value cannot be longer than 10000 characters. | 13911 /// The stream's description. The value cannot be longer than 10000 |
| 13890 */ | 13912 /// characters. |
| 13891 core.String description; | 13913 core.String description; |
| 13892 core.bool isDefaultStream; | 13914 core.bool isDefaultStream; |
| 13893 /** | 13915 |
| 13894 * The date and time that the stream was created. The value is specified in | 13916 /// The date and time that the stream was created. The value is specified in |
| 13895 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 13917 /// ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 13896 */ | |
| 13897 core.DateTime publishedAt; | 13918 core.DateTime publishedAt; |
| 13898 /** | 13919 |
| 13899 * The stream's title. The value must be between 1 and 128 characters long. | 13920 /// The stream's title. The value must be between 1 and 128 characters long. |
| 13900 */ | |
| 13901 core.String title; | 13921 core.String title; |
| 13902 | 13922 |
| 13903 LiveStreamSnippet(); | 13923 LiveStreamSnippet(); |
| 13904 | 13924 |
| 13905 LiveStreamSnippet.fromJson(core.Map _json) { | 13925 LiveStreamSnippet.fromJson(core.Map _json) { |
| 13906 if (_json.containsKey("channelId")) { | 13926 if (_json.containsKey("channelId")) { |
| 13907 channelId = _json["channelId"]; | 13927 channelId = _json["channelId"]; |
| 13908 } | 13928 } |
| 13909 if (_json.containsKey("description")) { | 13929 if (_json.containsKey("description")) { |
| 13910 description = _json["description"]; | 13930 description = _json["description"]; |
| 13911 } | 13931 } |
| 13912 if (_json.containsKey("isDefaultStream")) { | 13932 if (_json.containsKey("isDefaultStream")) { |
| 13913 isDefaultStream = _json["isDefaultStream"]; | 13933 isDefaultStream = _json["isDefaultStream"]; |
| 13914 } | 13934 } |
| 13915 if (_json.containsKey("publishedAt")) { | 13935 if (_json.containsKey("publishedAt")) { |
| 13916 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 13936 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
| 13917 } | 13937 } |
| 13918 if (_json.containsKey("title")) { | 13938 if (_json.containsKey("title")) { |
| 13919 title = _json["title"]; | 13939 title = _json["title"]; |
| 13920 } | 13940 } |
| 13921 } | 13941 } |
| 13922 | 13942 |
| 13923 core.Map<core.String, core.Object> toJson() { | 13943 core.Map<core.String, core.Object> toJson() { |
| 13924 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13944 final core.Map<core.String, core.Object> _json = |
| 13945 new core.Map<core.String, core.Object>(); |
| 13925 if (channelId != null) { | 13946 if (channelId != null) { |
| 13926 _json["channelId"] = channelId; | 13947 _json["channelId"] = channelId; |
| 13927 } | 13948 } |
| 13928 if (description != null) { | 13949 if (description != null) { |
| 13929 _json["description"] = description; | 13950 _json["description"] = description; |
| 13930 } | 13951 } |
| 13931 if (isDefaultStream != null) { | 13952 if (isDefaultStream != null) { |
| 13932 _json["isDefaultStream"] = isDefaultStream; | 13953 _json["isDefaultStream"] = isDefaultStream; |
| 13933 } | 13954 } |
| 13934 if (publishedAt != null) { | 13955 if (publishedAt != null) { |
| 13935 _json["publishedAt"] = (publishedAt).toIso8601String(); | 13956 _json["publishedAt"] = (publishedAt).toIso8601String(); |
| 13936 } | 13957 } |
| 13937 if (title != null) { | 13958 if (title != null) { |
| 13938 _json["title"] = title; | 13959 _json["title"] = title; |
| 13939 } | 13960 } |
| 13940 return _json; | 13961 return _json; |
| 13941 } | 13962 } |
| 13942 } | 13963 } |
| 13943 | 13964 |
| 13944 /** Brief description of the live stream status. */ | 13965 /// Brief description of the live stream status. |
| 13945 class LiveStreamStatus { | 13966 class LiveStreamStatus { |
| 13946 /** The health status of the stream. */ | 13967 /// The health status of the stream. |
| 13947 LiveStreamHealthStatus healthStatus; | 13968 LiveStreamHealthStatus healthStatus; |
| 13948 /** | 13969 |
| 13949 * | 13970 /// |
| 13950 * Possible string values are: | 13971 /// Possible string values are: |
| 13951 * - "active" | 13972 /// - "active" |
| 13952 * - "created" | 13973 /// - "created" |
| 13953 * - "error" | 13974 /// - "error" |
| 13954 * - "inactive" | 13975 /// - "inactive" |
| 13955 * - "ready" | 13976 /// - "ready" |
| 13956 */ | |
| 13957 core.String streamStatus; | 13977 core.String streamStatus; |
| 13958 | 13978 |
| 13959 LiveStreamStatus(); | 13979 LiveStreamStatus(); |
| 13960 | 13980 |
| 13961 LiveStreamStatus.fromJson(core.Map _json) { | 13981 LiveStreamStatus.fromJson(core.Map _json) { |
| 13962 if (_json.containsKey("healthStatus")) { | 13982 if (_json.containsKey("healthStatus")) { |
| 13963 healthStatus = new LiveStreamHealthStatus.fromJson(_json["healthStatus"]); | 13983 healthStatus = new LiveStreamHealthStatus.fromJson(_json["healthStatus"]); |
| 13964 } | 13984 } |
| 13965 if (_json.containsKey("streamStatus")) { | 13985 if (_json.containsKey("streamStatus")) { |
| 13966 streamStatus = _json["streamStatus"]; | 13986 streamStatus = _json["streamStatus"]; |
| 13967 } | 13987 } |
| 13968 } | 13988 } |
| 13969 | 13989 |
| 13970 core.Map<core.String, core.Object> toJson() { | 13990 core.Map<core.String, core.Object> toJson() { |
| 13971 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 13991 final core.Map<core.String, core.Object> _json = |
| 13992 new core.Map<core.String, core.Object>(); |
| 13972 if (healthStatus != null) { | 13993 if (healthStatus != null) { |
| 13973 _json["healthStatus"] = (healthStatus).toJson(); | 13994 _json["healthStatus"] = (healthStatus).toJson(); |
| 13974 } | 13995 } |
| 13975 if (streamStatus != null) { | 13996 if (streamStatus != null) { |
| 13976 _json["streamStatus"] = streamStatus; | 13997 _json["streamStatus"] = streamStatus; |
| 13977 } | 13998 } |
| 13978 return _json; | 13999 return _json; |
| 13979 } | 14000 } |
| 13980 } | 14001 } |
| 13981 | 14002 |
| 13982 class LocalizedProperty { | 14003 class LocalizedProperty { |
| 13983 core.String default_; | 14004 core.String default_; |
| 13984 /** The language of the default property. */ | 14005 |
| 14006 /// The language of the default property. |
| 13985 LanguageTag defaultLanguage; | 14007 LanguageTag defaultLanguage; |
| 13986 core.List<LocalizedString> localized; | 14008 core.List<LocalizedString> localized; |
| 13987 | 14009 |
| 13988 LocalizedProperty(); | 14010 LocalizedProperty(); |
| 13989 | 14011 |
| 13990 LocalizedProperty.fromJson(core.Map _json) { | 14012 LocalizedProperty.fromJson(core.Map _json) { |
| 13991 if (_json.containsKey("default")) { | 14013 if (_json.containsKey("default")) { |
| 13992 default_ = _json["default"]; | 14014 default_ = _json["default"]; |
| 13993 } | 14015 } |
| 13994 if (_json.containsKey("defaultLanguage")) { | 14016 if (_json.containsKey("defaultLanguage")) { |
| 13995 defaultLanguage = new LanguageTag.fromJson(_json["defaultLanguage"]); | 14017 defaultLanguage = new LanguageTag.fromJson(_json["defaultLanguage"]); |
| 13996 } | 14018 } |
| 13997 if (_json.containsKey("localized")) { | 14019 if (_json.containsKey("localized")) { |
| 13998 localized = _json["localized"].map((value) => new LocalizedString.fromJson
(value)).toList(); | 14020 localized = _json["localized"] |
| 14021 .map((value) => new LocalizedString.fromJson(value)) |
| 14022 .toList(); |
| 13999 } | 14023 } |
| 14000 } | 14024 } |
| 14001 | 14025 |
| 14002 core.Map<core.String, core.Object> toJson() { | 14026 core.Map<core.String, core.Object> toJson() { |
| 14003 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14027 final core.Map<core.String, core.Object> _json = |
| 14028 new core.Map<core.String, core.Object>(); |
| 14004 if (default_ != null) { | 14029 if (default_ != null) { |
| 14005 _json["default"] = default_; | 14030 _json["default"] = default_; |
| 14006 } | 14031 } |
| 14007 if (defaultLanguage != null) { | 14032 if (defaultLanguage != null) { |
| 14008 _json["defaultLanguage"] = (defaultLanguage).toJson(); | 14033 _json["defaultLanguage"] = (defaultLanguage).toJson(); |
| 14009 } | 14034 } |
| 14010 if (localized != null) { | 14035 if (localized != null) { |
| 14011 _json["localized"] = localized.map((value) => (value).toJson()).toList(); | 14036 _json["localized"] = localized.map((value) => (value).toJson()).toList(); |
| 14012 } | 14037 } |
| 14013 return _json; | 14038 return _json; |
| 14014 } | 14039 } |
| 14015 } | 14040 } |
| 14016 | 14041 |
| 14017 class LocalizedString { | 14042 class LocalizedString { |
| 14018 core.String language; | 14043 core.String language; |
| 14019 core.String value; | 14044 core.String value; |
| 14020 | 14045 |
| 14021 LocalizedString(); | 14046 LocalizedString(); |
| 14022 | 14047 |
| 14023 LocalizedString.fromJson(core.Map _json) { | 14048 LocalizedString.fromJson(core.Map _json) { |
| 14024 if (_json.containsKey("language")) { | 14049 if (_json.containsKey("language")) { |
| 14025 language = _json["language"]; | 14050 language = _json["language"]; |
| 14026 } | 14051 } |
| 14027 if (_json.containsKey("value")) { | 14052 if (_json.containsKey("value")) { |
| 14028 value = _json["value"]; | 14053 value = _json["value"]; |
| 14029 } | 14054 } |
| 14030 } | 14055 } |
| 14031 | 14056 |
| 14032 core.Map<core.String, core.Object> toJson() { | 14057 core.Map<core.String, core.Object> toJson() { |
| 14033 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14058 final core.Map<core.String, core.Object> _json = |
| 14059 new core.Map<core.String, core.Object>(); |
| 14034 if (language != null) { | 14060 if (language != null) { |
| 14035 _json["language"] = language; | 14061 _json["language"] = language; |
| 14036 } | 14062 } |
| 14037 if (value != null) { | 14063 if (value != null) { |
| 14038 _json["value"] = value; | 14064 _json["value"] = value; |
| 14039 } | 14065 } |
| 14040 return _json; | 14066 return _json; |
| 14041 } | 14067 } |
| 14042 } | 14068 } |
| 14043 | 14069 |
| 14044 /** Settings and Info of the monitor stream */ | 14070 /// Settings and Info of the monitor stream |
| 14045 class MonitorStreamInfo { | 14071 class MonitorStreamInfo { |
| 14046 /** | 14072 /// If you have set the enableMonitorStream property to true, then this |
| 14047 * If you have set the enableMonitorStream property to true, then this | 14073 /// property determines the length of the live broadcast delay. |
| 14048 * property determines the length of the live broadcast delay. | |
| 14049 */ | |
| 14050 core.int broadcastStreamDelayMs; | 14074 core.int broadcastStreamDelayMs; |
| 14051 /** HTML code that embeds a player that plays the monitor stream. */ | 14075 |
| 14076 /// HTML code that embeds a player that plays the monitor stream. |
| 14052 core.String embedHtml; | 14077 core.String embedHtml; |
| 14053 /** | 14078 |
| 14054 * This value determines whether the monitor stream is enabled for the | 14079 /// This value determines whether the monitor stream is enabled for the |
| 14055 * broadcast. If the monitor stream is enabled, then YouTube will broadcast | 14080 /// broadcast. If the monitor stream is enabled, then YouTube will broadcast |
| 14056 * the event content on a special stream intended only for the broadcaster's | 14081 /// the event content on a special stream intended only for the broadcaster's |
| 14057 * consumption. The broadcaster can use the stream to review the event content | 14082 /// consumption. The broadcaster can use the stream to review the event |
| 14058 * and also to identify the optimal times to insert cuepoints. | 14083 /// content and also to identify the optimal times to insert cuepoints. |
| 14059 * | 14084 /// |
| 14060 * You need to set this value to true if you intend to have a broadcast delay | 14085 /// You need to set this value to true if you intend to have a broadcast |
| 14061 * for your event. | 14086 /// delay for your event. |
| 14062 * | 14087 /// |
| 14063 * Note: This property cannot be updated once the broadcast is in the testing | 14088 /// Note: This property cannot be updated once the broadcast is in the |
| 14064 * or live state. | 14089 /// testing or live state. |
| 14065 */ | |
| 14066 core.bool enableMonitorStream; | 14090 core.bool enableMonitorStream; |
| 14067 | 14091 |
| 14068 MonitorStreamInfo(); | 14092 MonitorStreamInfo(); |
| 14069 | 14093 |
| 14070 MonitorStreamInfo.fromJson(core.Map _json) { | 14094 MonitorStreamInfo.fromJson(core.Map _json) { |
| 14071 if (_json.containsKey("broadcastStreamDelayMs")) { | 14095 if (_json.containsKey("broadcastStreamDelayMs")) { |
| 14072 broadcastStreamDelayMs = _json["broadcastStreamDelayMs"]; | 14096 broadcastStreamDelayMs = _json["broadcastStreamDelayMs"]; |
| 14073 } | 14097 } |
| 14074 if (_json.containsKey("embedHtml")) { | 14098 if (_json.containsKey("embedHtml")) { |
| 14075 embedHtml = _json["embedHtml"]; | 14099 embedHtml = _json["embedHtml"]; |
| 14076 } | 14100 } |
| 14077 if (_json.containsKey("enableMonitorStream")) { | 14101 if (_json.containsKey("enableMonitorStream")) { |
| 14078 enableMonitorStream = _json["enableMonitorStream"]; | 14102 enableMonitorStream = _json["enableMonitorStream"]; |
| 14079 } | 14103 } |
| 14080 } | 14104 } |
| 14081 | 14105 |
| 14082 core.Map<core.String, core.Object> toJson() { | 14106 core.Map<core.String, core.Object> toJson() { |
| 14083 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14107 final core.Map<core.String, core.Object> _json = |
| 14108 new core.Map<core.String, core.Object>(); |
| 14084 if (broadcastStreamDelayMs != null) { | 14109 if (broadcastStreamDelayMs != null) { |
| 14085 _json["broadcastStreamDelayMs"] = broadcastStreamDelayMs; | 14110 _json["broadcastStreamDelayMs"] = broadcastStreamDelayMs; |
| 14086 } | 14111 } |
| 14087 if (embedHtml != null) { | 14112 if (embedHtml != null) { |
| 14088 _json["embedHtml"] = embedHtml; | 14113 _json["embedHtml"] = embedHtml; |
| 14089 } | 14114 } |
| 14090 if (enableMonitorStream != null) { | 14115 if (enableMonitorStream != null) { |
| 14091 _json["enableMonitorStream"] = enableMonitorStream; | 14116 _json["enableMonitorStream"] = enableMonitorStream; |
| 14092 } | 14117 } |
| 14093 return _json; | 14118 return _json; |
| 14094 } | 14119 } |
| 14095 } | 14120 } |
| 14096 | 14121 |
| 14097 /** | 14122 /// Paging details for lists of resources, including total number of items |
| 14098 * Paging details for lists of resources, including total number of items | 14123 /// available and number of resources returned in a single page. |
| 14099 * available and number of resources returned in a single page. | |
| 14100 */ | |
| 14101 class PageInfo { | 14124 class PageInfo { |
| 14102 /** The number of results included in the API response. */ | 14125 /// The number of results included in the API response. |
| 14103 core.int resultsPerPage; | 14126 core.int resultsPerPage; |
| 14104 /** The total number of results in the result set. */ | 14127 |
| 14128 /// The total number of results in the result set. |
| 14105 core.int totalResults; | 14129 core.int totalResults; |
| 14106 | 14130 |
| 14107 PageInfo(); | 14131 PageInfo(); |
| 14108 | 14132 |
| 14109 PageInfo.fromJson(core.Map _json) { | 14133 PageInfo.fromJson(core.Map _json) { |
| 14110 if (_json.containsKey("resultsPerPage")) { | 14134 if (_json.containsKey("resultsPerPage")) { |
| 14111 resultsPerPage = _json["resultsPerPage"]; | 14135 resultsPerPage = _json["resultsPerPage"]; |
| 14112 } | 14136 } |
| 14113 if (_json.containsKey("totalResults")) { | 14137 if (_json.containsKey("totalResults")) { |
| 14114 totalResults = _json["totalResults"]; | 14138 totalResults = _json["totalResults"]; |
| 14115 } | 14139 } |
| 14116 } | 14140 } |
| 14117 | 14141 |
| 14118 core.Map<core.String, core.Object> toJson() { | 14142 core.Map<core.String, core.Object> toJson() { |
| 14119 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14143 final core.Map<core.String, core.Object> _json = |
| 14144 new core.Map<core.String, core.Object>(); |
| 14120 if (resultsPerPage != null) { | 14145 if (resultsPerPage != null) { |
| 14121 _json["resultsPerPage"] = resultsPerPage; | 14146 _json["resultsPerPage"] = resultsPerPage; |
| 14122 } | 14147 } |
| 14123 if (totalResults != null) { | 14148 if (totalResults != null) { |
| 14124 _json["totalResults"] = totalResults; | 14149 _json["totalResults"] = totalResults; |
| 14125 } | 14150 } |
| 14126 return _json; | 14151 return _json; |
| 14127 } | 14152 } |
| 14128 } | 14153 } |
| 14129 | 14154 |
| 14130 /** | 14155 /// A playlist resource represents a YouTube playlist. A playlist is a |
| 14131 * A playlist resource represents a YouTube playlist. A playlist is a collection | 14156 /// collection of videos that can be viewed sequentially and shared with other |
| 14132 * of videos that can be viewed sequentially and shared with other users. A | 14157 /// users. A playlist can contain up to 200 videos, and YouTube does not limit |
| 14133 * playlist can contain up to 200 videos, and YouTube does not limit the number | 14158 /// the number of playlists that each user creates. By default, playlists are |
| 14134 * of playlists that each user creates. By default, playlists are publicly | 14159 /// publicly visible to other users, but playlists can be public or private. |
| 14135 * visible to other users, but playlists can be public or private. | 14160 /// |
| 14136 * | 14161 /// YouTube also uses playlists to identify special collections of videos for a |
| 14137 * YouTube also uses playlists to identify special collections of videos for a | 14162 /// channel, such as: |
| 14138 * channel, such as: | 14163 /// - uploaded videos |
| 14139 * - uploaded videos | 14164 /// - favorite videos |
| 14140 * - favorite videos | 14165 /// - positively rated (liked) videos |
| 14141 * - positively rated (liked) videos | 14166 /// - watch history |
| 14142 * - watch history | 14167 /// - watch later To be more specific, these lists are associated with a |
| 14143 * - watch later To be more specific, these lists are associated with a | 14168 /// channel, which is a collection of a person, group, or company's videos, |
| 14144 * channel, which is a collection of a person, group, or company's videos, | 14169 /// playlists, and other YouTube information. You can retrieve the playlist IDs |
| 14145 * playlists, and other YouTube information. You can retrieve the playlist IDs | 14170 /// for each of these lists from the channel resource for a given channel. |
| 14146 * for each of these lists from the channel resource for a given channel. | 14171 /// |
| 14147 * | 14172 /// You can then use the playlistItems.list method to retrieve any of those |
| 14148 * You can then use the playlistItems.list method to retrieve any of those | 14173 /// lists. You can also add or remove items from those lists by calling the |
| 14149 * lists. You can also add or remove items from those lists by calling the | 14174 /// playlistItems.insert and playlistItems.delete methods. |
| 14150 * playlistItems.insert and playlistItems.delete methods. | |
| 14151 */ | |
| 14152 class Playlist { | 14175 class Playlist { |
| 14153 /** The contentDetails object contains information like video count. */ | 14176 /// The contentDetails object contains information like video count. |
| 14154 PlaylistContentDetails contentDetails; | 14177 PlaylistContentDetails contentDetails; |
| 14155 /** Etag of this resource. */ | 14178 |
| 14179 /// Etag of this resource. |
| 14156 core.String etag; | 14180 core.String etag; |
| 14157 /** The ID that YouTube uses to uniquely identify the playlist. */ | 14181 |
| 14182 /// The ID that YouTube uses to uniquely identify the playlist. |
| 14158 core.String id; | 14183 core.String id; |
| 14159 /** | 14184 |
| 14160 * Identifies what kind of resource this is. Value: the fixed string | 14185 /// Identifies what kind of resource this is. Value: the fixed string |
| 14161 * "youtube#playlist". | 14186 /// "youtube#playlist". |
| 14162 */ | |
| 14163 core.String kind; | 14187 core.String kind; |
| 14164 /** Localizations for different languages */ | 14188 |
| 14189 /// Localizations for different languages |
| 14165 core.Map<core.String, PlaylistLocalization> localizations; | 14190 core.Map<core.String, PlaylistLocalization> localizations; |
| 14166 /** | 14191 |
| 14167 * The player object contains information that you would use to play the | 14192 /// The player object contains information that you would use to play the |
| 14168 * playlist in an embedded player. | 14193 /// playlist in an embedded player. |
| 14169 */ | |
| 14170 PlaylistPlayer player; | 14194 PlaylistPlayer player; |
| 14171 /** | 14195 |
| 14172 * The snippet object contains basic details about the playlist, such as its | 14196 /// The snippet object contains basic details about the playlist, such as its |
| 14173 * title and description. | 14197 /// title and description. |
| 14174 */ | |
| 14175 PlaylistSnippet snippet; | 14198 PlaylistSnippet snippet; |
| 14176 /** The status object contains status information for the playlist. */ | 14199 |
| 14200 /// The status object contains status information for the playlist. |
| 14177 PlaylistStatus status; | 14201 PlaylistStatus status; |
| 14178 | 14202 |
| 14179 Playlist(); | 14203 Playlist(); |
| 14180 | 14204 |
| 14181 Playlist.fromJson(core.Map _json) { | 14205 Playlist.fromJson(core.Map _json) { |
| 14182 if (_json.containsKey("contentDetails")) { | 14206 if (_json.containsKey("contentDetails")) { |
| 14183 contentDetails = new PlaylistContentDetails.fromJson(_json["contentDetails
"]); | 14207 contentDetails = |
| 14208 new PlaylistContentDetails.fromJson(_json["contentDetails"]); |
| 14184 } | 14209 } |
| 14185 if (_json.containsKey("etag")) { | 14210 if (_json.containsKey("etag")) { |
| 14186 etag = _json["etag"]; | 14211 etag = _json["etag"]; |
| 14187 } | 14212 } |
| 14188 if (_json.containsKey("id")) { | 14213 if (_json.containsKey("id")) { |
| 14189 id = _json["id"]; | 14214 id = _json["id"]; |
| 14190 } | 14215 } |
| 14191 if (_json.containsKey("kind")) { | 14216 if (_json.containsKey("kind")) { |
| 14192 kind = _json["kind"]; | 14217 kind = _json["kind"]; |
| 14193 } | 14218 } |
| 14194 if (_json.containsKey("localizations")) { | 14219 if (_json.containsKey("localizations")) { |
| 14195 localizations = commons.mapMap<core.Map<core.String, core.Object>, Playlis
tLocalization>(_json["localizations"], (core.Map<core.String, core.Object> item)
=> new PlaylistLocalization.fromJson(item)); | 14220 localizations = commons |
| 14221 .mapMap<core.Map<core.String, core.Object>, PlaylistLocalization>( |
| 14222 _json["localizations"], |
| 14223 (core.Map<core.String, core.Object> item) => |
| 14224 new PlaylistLocalization.fromJson(item)); |
| 14196 } | 14225 } |
| 14197 if (_json.containsKey("player")) { | 14226 if (_json.containsKey("player")) { |
| 14198 player = new PlaylistPlayer.fromJson(_json["player"]); | 14227 player = new PlaylistPlayer.fromJson(_json["player"]); |
| 14199 } | 14228 } |
| 14200 if (_json.containsKey("snippet")) { | 14229 if (_json.containsKey("snippet")) { |
| 14201 snippet = new PlaylistSnippet.fromJson(_json["snippet"]); | 14230 snippet = new PlaylistSnippet.fromJson(_json["snippet"]); |
| 14202 } | 14231 } |
| 14203 if (_json.containsKey("status")) { | 14232 if (_json.containsKey("status")) { |
| 14204 status = new PlaylistStatus.fromJson(_json["status"]); | 14233 status = new PlaylistStatus.fromJson(_json["status"]); |
| 14205 } | 14234 } |
| 14206 } | 14235 } |
| 14207 | 14236 |
| 14208 core.Map<core.String, core.Object> toJson() { | 14237 core.Map<core.String, core.Object> toJson() { |
| 14209 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14238 final core.Map<core.String, core.Object> _json = |
| 14239 new core.Map<core.String, core.Object>(); |
| 14210 if (contentDetails != null) { | 14240 if (contentDetails != null) { |
| 14211 _json["contentDetails"] = (contentDetails).toJson(); | 14241 _json["contentDetails"] = (contentDetails).toJson(); |
| 14212 } | 14242 } |
| 14213 if (etag != null) { | 14243 if (etag != null) { |
| 14214 _json["etag"] = etag; | 14244 _json["etag"] = etag; |
| 14215 } | 14245 } |
| 14216 if (id != null) { | 14246 if (id != null) { |
| 14217 _json["id"] = id; | 14247 _json["id"] = id; |
| 14218 } | 14248 } |
| 14219 if (kind != null) { | 14249 if (kind != null) { |
| 14220 _json["kind"] = kind; | 14250 _json["kind"] = kind; |
| 14221 } | 14251 } |
| 14222 if (localizations != null) { | 14252 if (localizations != null) { |
| 14223 _json["localizations"] = commons.mapMap<PlaylistLocalization, core.Map<cor
e.String, core.Object>>(localizations, (PlaylistLocalization item) => (item).toJ
son()); | 14253 _json["localizations"] = commons |
| 14254 .mapMap<PlaylistLocalization, core.Map<core.String, core.Object>>( |
| 14255 localizations, (PlaylistLocalization item) => (item).toJson()); |
| 14224 } | 14256 } |
| 14225 if (player != null) { | 14257 if (player != null) { |
| 14226 _json["player"] = (player).toJson(); | 14258 _json["player"] = (player).toJson(); |
| 14227 } | 14259 } |
| 14228 if (snippet != null) { | 14260 if (snippet != null) { |
| 14229 _json["snippet"] = (snippet).toJson(); | 14261 _json["snippet"] = (snippet).toJson(); |
| 14230 } | 14262 } |
| 14231 if (status != null) { | 14263 if (status != null) { |
| 14232 _json["status"] = (status).toJson(); | 14264 _json["status"] = (status).toJson(); |
| 14233 } | 14265 } |
| 14234 return _json; | 14266 return _json; |
| 14235 } | 14267 } |
| 14236 } | 14268 } |
| 14237 | 14269 |
| 14238 class PlaylistContentDetails { | 14270 class PlaylistContentDetails { |
| 14239 /** The number of videos in the playlist. */ | 14271 /// The number of videos in the playlist. |
| 14240 core.int itemCount; | 14272 core.int itemCount; |
| 14241 | 14273 |
| 14242 PlaylistContentDetails(); | 14274 PlaylistContentDetails(); |
| 14243 | 14275 |
| 14244 PlaylistContentDetails.fromJson(core.Map _json) { | 14276 PlaylistContentDetails.fromJson(core.Map _json) { |
| 14245 if (_json.containsKey("itemCount")) { | 14277 if (_json.containsKey("itemCount")) { |
| 14246 itemCount = _json["itemCount"]; | 14278 itemCount = _json["itemCount"]; |
| 14247 } | 14279 } |
| 14248 } | 14280 } |
| 14249 | 14281 |
| 14250 core.Map<core.String, core.Object> toJson() { | 14282 core.Map<core.String, core.Object> toJson() { |
| 14251 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14283 final core.Map<core.String, core.Object> _json = |
| 14284 new core.Map<core.String, core.Object>(); |
| 14252 if (itemCount != null) { | 14285 if (itemCount != null) { |
| 14253 _json["itemCount"] = itemCount; | 14286 _json["itemCount"] = itemCount; |
| 14254 } | 14287 } |
| 14255 return _json; | 14288 return _json; |
| 14256 } | 14289 } |
| 14257 } | 14290 } |
| 14258 | 14291 |
| 14259 /** | 14292 /// A playlistItem resource identifies another resource, such as a video, that |
| 14260 * A playlistItem resource identifies another resource, such as a video, that is | 14293 /// is included in a playlist. In addition, the playlistItem resource contains |
| 14261 * included in a playlist. In addition, the playlistItem resource contains | 14294 /// details about the included resource that pertain specifically to how that |
| 14262 * details about the included resource that pertain specifically to how that | 14295 /// resource is used in that playlist. |
| 14263 * resource is used in that playlist. | 14296 /// |
| 14264 * | 14297 /// YouTube uses playlists to identify special collections of videos for a |
| 14265 * YouTube uses playlists to identify special collections of videos for a | 14298 /// channel, such as: |
| 14266 * channel, such as: | 14299 /// - uploaded videos |
| 14267 * - uploaded videos | 14300 /// - favorite videos |
| 14268 * - favorite videos | 14301 /// - positively rated (liked) videos |
| 14269 * - positively rated (liked) videos | 14302 /// - watch history |
| 14270 * - watch history | 14303 /// - watch later To be more specific, these lists are associated with a |
| 14271 * - watch later To be more specific, these lists are associated with a | 14304 /// channel, which is a collection of a person, group, or company's videos, |
| 14272 * channel, which is a collection of a person, group, or company's videos, | 14305 /// playlists, and other YouTube information. |
| 14273 * playlists, and other YouTube information. | 14306 /// |
| 14274 * | 14307 /// You can retrieve the playlist IDs for each of these lists from the channel |
| 14275 * You can retrieve the playlist IDs for each of these lists from the channel | 14308 /// resource for a given channel. You can then use the playlistItems.list |
| 14276 * resource for a given channel. You can then use the playlistItems.list | 14309 /// method to retrieve any of those lists. You can also add or remove items |
| 14277 * method to retrieve any of those lists. You can also add or remove items from | 14310 /// from those lists by calling the playlistItems.insert and |
| 14278 * those lists by calling the playlistItems.insert and playlistItems.delete | 14311 /// playlistItems.delete methods. For example, if a user gives a positive |
| 14279 * methods. For example, if a user gives a positive rating to a video, you would | 14312 /// rating to a video, you would insert that video into the liked videos |
| 14280 * insert that video into the liked videos playlist for that user's channel. | 14313 /// playlist for that user's channel. |
| 14281 */ | |
| 14282 class PlaylistItem { | 14314 class PlaylistItem { |
| 14283 /** | 14315 /// The contentDetails object is included in the resource if the included |
| 14284 * The contentDetails object is included in the resource if the included item | 14316 /// item is a YouTube video. The object contains additional information about |
| 14285 * is a YouTube video. The object contains additional information about the | 14317 /// the video. |
| 14286 * video. | |
| 14287 */ | |
| 14288 PlaylistItemContentDetails contentDetails; | 14318 PlaylistItemContentDetails contentDetails; |
| 14289 /** Etag of this resource. */ | 14319 |
| 14320 /// Etag of this resource. |
| 14290 core.String etag; | 14321 core.String etag; |
| 14291 /** The ID that YouTube uses to uniquely identify the playlist item. */ | 14322 |
| 14323 /// The ID that YouTube uses to uniquely identify the playlist item. |
| 14292 core.String id; | 14324 core.String id; |
| 14293 /** | 14325 |
| 14294 * Identifies what kind of resource this is. Value: the fixed string | 14326 /// Identifies what kind of resource this is. Value: the fixed string |
| 14295 * "youtube#playlistItem". | 14327 /// "youtube#playlistItem". |
| 14296 */ | |
| 14297 core.String kind; | 14328 core.String kind; |
| 14298 /** | 14329 |
| 14299 * The snippet object contains basic details about the playlist item, such as | 14330 /// The snippet object contains basic details about the playlist item, such |
| 14300 * its title and position in the playlist. | 14331 /// as its title and position in the playlist. |
| 14301 */ | |
| 14302 PlaylistItemSnippet snippet; | 14332 PlaylistItemSnippet snippet; |
| 14303 /** | 14333 |
| 14304 * The status object contains information about the playlist item's privacy | 14334 /// The status object contains information about the playlist item's privacy |
| 14305 * status. | 14335 /// status. |
| 14306 */ | |
| 14307 PlaylistItemStatus status; | 14336 PlaylistItemStatus status; |
| 14308 | 14337 |
| 14309 PlaylistItem(); | 14338 PlaylistItem(); |
| 14310 | 14339 |
| 14311 PlaylistItem.fromJson(core.Map _json) { | 14340 PlaylistItem.fromJson(core.Map _json) { |
| 14312 if (_json.containsKey("contentDetails")) { | 14341 if (_json.containsKey("contentDetails")) { |
| 14313 contentDetails = new PlaylistItemContentDetails.fromJson(_json["contentDet
ails"]); | 14342 contentDetails = |
| 14343 new PlaylistItemContentDetails.fromJson(_json["contentDetails"]); |
| 14314 } | 14344 } |
| 14315 if (_json.containsKey("etag")) { | 14345 if (_json.containsKey("etag")) { |
| 14316 etag = _json["etag"]; | 14346 etag = _json["etag"]; |
| 14317 } | 14347 } |
| 14318 if (_json.containsKey("id")) { | 14348 if (_json.containsKey("id")) { |
| 14319 id = _json["id"]; | 14349 id = _json["id"]; |
| 14320 } | 14350 } |
| 14321 if (_json.containsKey("kind")) { | 14351 if (_json.containsKey("kind")) { |
| 14322 kind = _json["kind"]; | 14352 kind = _json["kind"]; |
| 14323 } | 14353 } |
| 14324 if (_json.containsKey("snippet")) { | 14354 if (_json.containsKey("snippet")) { |
| 14325 snippet = new PlaylistItemSnippet.fromJson(_json["snippet"]); | 14355 snippet = new PlaylistItemSnippet.fromJson(_json["snippet"]); |
| 14326 } | 14356 } |
| 14327 if (_json.containsKey("status")) { | 14357 if (_json.containsKey("status")) { |
| 14328 status = new PlaylistItemStatus.fromJson(_json["status"]); | 14358 status = new PlaylistItemStatus.fromJson(_json["status"]); |
| 14329 } | 14359 } |
| 14330 } | 14360 } |
| 14331 | 14361 |
| 14332 core.Map<core.String, core.Object> toJson() { | 14362 core.Map<core.String, core.Object> toJson() { |
| 14333 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14363 final core.Map<core.String, core.Object> _json = |
| 14364 new core.Map<core.String, core.Object>(); |
| 14334 if (contentDetails != null) { | 14365 if (contentDetails != null) { |
| 14335 _json["contentDetails"] = (contentDetails).toJson(); | 14366 _json["contentDetails"] = (contentDetails).toJson(); |
| 14336 } | 14367 } |
| 14337 if (etag != null) { | 14368 if (etag != null) { |
| 14338 _json["etag"] = etag; | 14369 _json["etag"] = etag; |
| 14339 } | 14370 } |
| 14340 if (id != null) { | 14371 if (id != null) { |
| 14341 _json["id"] = id; | 14372 _json["id"] = id; |
| 14342 } | 14373 } |
| 14343 if (kind != null) { | 14374 if (kind != null) { |
| 14344 _json["kind"] = kind; | 14375 _json["kind"] = kind; |
| 14345 } | 14376 } |
| 14346 if (snippet != null) { | 14377 if (snippet != null) { |
| 14347 _json["snippet"] = (snippet).toJson(); | 14378 _json["snippet"] = (snippet).toJson(); |
| 14348 } | 14379 } |
| 14349 if (status != null) { | 14380 if (status != null) { |
| 14350 _json["status"] = (status).toJson(); | 14381 _json["status"] = (status).toJson(); |
| 14351 } | 14382 } |
| 14352 return _json; | 14383 return _json; |
| 14353 } | 14384 } |
| 14354 } | 14385 } |
| 14355 | 14386 |
| 14356 class PlaylistItemContentDetails { | 14387 class PlaylistItemContentDetails { |
| 14357 /** | 14388 /// The time, measured in seconds from the start of the video, when the video |
| 14358 * The time, measured in seconds from the start of the video, when the video | 14389 /// should stop playing. (The playlist owner can specify the times when the |
| 14359 * should stop playing. (The playlist owner can specify the times when the | 14390 /// video should start and stop playing when the video is played in the |
| 14360 * video should start and stop playing when the video is played in the context | 14391 /// context of the playlist.) By default, assume that the video.endTime is |
| 14361 * of the playlist.) By default, assume that the video.endTime is the end of | 14392 /// the end of the video. |
| 14362 * the video. | |
| 14363 */ | |
| 14364 core.String endAt; | 14393 core.String endAt; |
| 14365 /** A user-generated note for this item. */ | 14394 |
| 14395 /// A user-generated note for this item. |
| 14366 core.String note; | 14396 core.String note; |
| 14367 /** | 14397 |
| 14368 * The time, measured in seconds from the start of the video, when the video | 14398 /// The time, measured in seconds from the start of the video, when the video |
| 14369 * should start playing. (The playlist owner can specify the times when the | 14399 /// should start playing. (The playlist owner can specify the times when the |
| 14370 * video should start and stop playing when the video is played in the context | 14400 /// video should start and stop playing when the video is played in the |
| 14371 * of the playlist.) The default value is 0. | 14401 /// context of the playlist.) The default value is 0. |
| 14372 */ | |
| 14373 core.String startAt; | 14402 core.String startAt; |
| 14374 /** | 14403 |
| 14375 * The ID that YouTube uses to uniquely identify a video. To retrieve the | 14404 /// The ID that YouTube uses to uniquely identify a video. To retrieve the |
| 14376 * video resource, set the id query parameter to this value in your API | 14405 /// video resource, set the id query parameter to this value in your API |
| 14377 * request. | 14406 /// request. |
| 14378 */ | |
| 14379 core.String videoId; | 14407 core.String videoId; |
| 14380 /** | 14408 |
| 14381 * The date and time that the video was published to YouTube. The value is | 14409 /// The date and time that the video was published to YouTube. The value is |
| 14382 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 14410 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 14383 */ | |
| 14384 core.DateTime videoPublishedAt; | 14411 core.DateTime videoPublishedAt; |
| 14385 | 14412 |
| 14386 PlaylistItemContentDetails(); | 14413 PlaylistItemContentDetails(); |
| 14387 | 14414 |
| 14388 PlaylistItemContentDetails.fromJson(core.Map _json) { | 14415 PlaylistItemContentDetails.fromJson(core.Map _json) { |
| 14389 if (_json.containsKey("endAt")) { | 14416 if (_json.containsKey("endAt")) { |
| 14390 endAt = _json["endAt"]; | 14417 endAt = _json["endAt"]; |
| 14391 } | 14418 } |
| 14392 if (_json.containsKey("note")) { | 14419 if (_json.containsKey("note")) { |
| 14393 note = _json["note"]; | 14420 note = _json["note"]; |
| 14394 } | 14421 } |
| 14395 if (_json.containsKey("startAt")) { | 14422 if (_json.containsKey("startAt")) { |
| 14396 startAt = _json["startAt"]; | 14423 startAt = _json["startAt"]; |
| 14397 } | 14424 } |
| 14398 if (_json.containsKey("videoId")) { | 14425 if (_json.containsKey("videoId")) { |
| 14399 videoId = _json["videoId"]; | 14426 videoId = _json["videoId"]; |
| 14400 } | 14427 } |
| 14401 if (_json.containsKey("videoPublishedAt")) { | 14428 if (_json.containsKey("videoPublishedAt")) { |
| 14402 videoPublishedAt = core.DateTime.parse(_json["videoPublishedAt"]); | 14429 videoPublishedAt = core.DateTime.parse(_json["videoPublishedAt"]); |
| 14403 } | 14430 } |
| 14404 } | 14431 } |
| 14405 | 14432 |
| 14406 core.Map<core.String, core.Object> toJson() { | 14433 core.Map<core.String, core.Object> toJson() { |
| 14407 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14434 final core.Map<core.String, core.Object> _json = |
| 14435 new core.Map<core.String, core.Object>(); |
| 14408 if (endAt != null) { | 14436 if (endAt != null) { |
| 14409 _json["endAt"] = endAt; | 14437 _json["endAt"] = endAt; |
| 14410 } | 14438 } |
| 14411 if (note != null) { | 14439 if (note != null) { |
| 14412 _json["note"] = note; | 14440 _json["note"] = note; |
| 14413 } | 14441 } |
| 14414 if (startAt != null) { | 14442 if (startAt != null) { |
| 14415 _json["startAt"] = startAt; | 14443 _json["startAt"] = startAt; |
| 14416 } | 14444 } |
| 14417 if (videoId != null) { | 14445 if (videoId != null) { |
| 14418 _json["videoId"] = videoId; | 14446 _json["videoId"] = videoId; |
| 14419 } | 14447 } |
| 14420 if (videoPublishedAt != null) { | 14448 if (videoPublishedAt != null) { |
| 14421 _json["videoPublishedAt"] = (videoPublishedAt).toIso8601String(); | 14449 _json["videoPublishedAt"] = (videoPublishedAt).toIso8601String(); |
| 14422 } | 14450 } |
| 14423 return _json; | 14451 return _json; |
| 14424 } | 14452 } |
| 14425 } | 14453 } |
| 14426 | 14454 |
| 14427 class PlaylistItemListResponse { | 14455 class PlaylistItemListResponse { |
| 14428 /** Etag of this resource. */ | 14456 /// Etag of this resource. |
| 14429 core.String etag; | 14457 core.String etag; |
| 14430 /** Serialized EventId of the request which produced this response. */ | 14458 |
| 14459 /// Serialized EventId of the request which produced this response. |
| 14431 core.String eventId; | 14460 core.String eventId; |
| 14432 /** A list of playlist items that match the request criteria. */ | 14461 |
| 14462 /// A list of playlist items that match the request criteria. |
| 14433 core.List<PlaylistItem> items; | 14463 core.List<PlaylistItem> items; |
| 14434 /** | 14464 |
| 14435 * Identifies what kind of resource this is. Value: the fixed string | 14465 /// Identifies what kind of resource this is. Value: the fixed string |
| 14436 * "youtube#playlistItemListResponse". | 14466 /// "youtube#playlistItemListResponse". |
| 14437 */ | |
| 14438 core.String kind; | 14467 core.String kind; |
| 14439 /** | 14468 |
| 14440 * The token that can be used as the value of the pageToken parameter to | 14469 /// The token that can be used as the value of the pageToken parameter to |
| 14441 * retrieve the next page in the result set. | 14470 /// retrieve the next page in the result set. |
| 14442 */ | |
| 14443 core.String nextPageToken; | 14471 core.String nextPageToken; |
| 14444 PageInfo pageInfo; | 14472 PageInfo pageInfo; |
| 14445 /** | 14473 |
| 14446 * The token that can be used as the value of the pageToken parameter to | 14474 /// The token that can be used as the value of the pageToken parameter to |
| 14447 * retrieve the previous page in the result set. | 14475 /// retrieve the previous page in the result set. |
| 14448 */ | |
| 14449 core.String prevPageToken; | 14476 core.String prevPageToken; |
| 14450 TokenPagination tokenPagination; | 14477 TokenPagination tokenPagination; |
| 14451 /** The visitorId identifies the visitor. */ | 14478 |
| 14479 /// The visitorId identifies the visitor. |
| 14452 core.String visitorId; | 14480 core.String visitorId; |
| 14453 | 14481 |
| 14454 PlaylistItemListResponse(); | 14482 PlaylistItemListResponse(); |
| 14455 | 14483 |
| 14456 PlaylistItemListResponse.fromJson(core.Map _json) { | 14484 PlaylistItemListResponse.fromJson(core.Map _json) { |
| 14457 if (_json.containsKey("etag")) { | 14485 if (_json.containsKey("etag")) { |
| 14458 etag = _json["etag"]; | 14486 etag = _json["etag"]; |
| 14459 } | 14487 } |
| 14460 if (_json.containsKey("eventId")) { | 14488 if (_json.containsKey("eventId")) { |
| 14461 eventId = _json["eventId"]; | 14489 eventId = _json["eventId"]; |
| 14462 } | 14490 } |
| 14463 if (_json.containsKey("items")) { | 14491 if (_json.containsKey("items")) { |
| 14464 items = _json["items"].map((value) => new PlaylistItem.fromJson(value)).to
List(); | 14492 items = _json["items"] |
| 14493 .map((value) => new PlaylistItem.fromJson(value)) |
| 14494 .toList(); |
| 14465 } | 14495 } |
| 14466 if (_json.containsKey("kind")) { | 14496 if (_json.containsKey("kind")) { |
| 14467 kind = _json["kind"]; | 14497 kind = _json["kind"]; |
| 14468 } | 14498 } |
| 14469 if (_json.containsKey("nextPageToken")) { | 14499 if (_json.containsKey("nextPageToken")) { |
| 14470 nextPageToken = _json["nextPageToken"]; | 14500 nextPageToken = _json["nextPageToken"]; |
| 14471 } | 14501 } |
| 14472 if (_json.containsKey("pageInfo")) { | 14502 if (_json.containsKey("pageInfo")) { |
| 14473 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 14503 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 14474 } | 14504 } |
| 14475 if (_json.containsKey("prevPageToken")) { | 14505 if (_json.containsKey("prevPageToken")) { |
| 14476 prevPageToken = _json["prevPageToken"]; | 14506 prevPageToken = _json["prevPageToken"]; |
| 14477 } | 14507 } |
| 14478 if (_json.containsKey("tokenPagination")) { | 14508 if (_json.containsKey("tokenPagination")) { |
| 14479 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 14509 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 14480 } | 14510 } |
| 14481 if (_json.containsKey("visitorId")) { | 14511 if (_json.containsKey("visitorId")) { |
| 14482 visitorId = _json["visitorId"]; | 14512 visitorId = _json["visitorId"]; |
| 14483 } | 14513 } |
| 14484 } | 14514 } |
| 14485 | 14515 |
| 14486 core.Map<core.String, core.Object> toJson() { | 14516 core.Map<core.String, core.Object> toJson() { |
| 14487 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14517 final core.Map<core.String, core.Object> _json = |
| 14518 new core.Map<core.String, core.Object>(); |
| 14488 if (etag != null) { | 14519 if (etag != null) { |
| 14489 _json["etag"] = etag; | 14520 _json["etag"] = etag; |
| 14490 } | 14521 } |
| 14491 if (eventId != null) { | 14522 if (eventId != null) { |
| 14492 _json["eventId"] = eventId; | 14523 _json["eventId"] = eventId; |
| 14493 } | 14524 } |
| 14494 if (items != null) { | 14525 if (items != null) { |
| 14495 _json["items"] = items.map((value) => (value).toJson()).toList(); | 14526 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 14496 } | 14527 } |
| 14497 if (kind != null) { | 14528 if (kind != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 14509 if (tokenPagination != null) { | 14540 if (tokenPagination != null) { |
| 14510 _json["tokenPagination"] = (tokenPagination).toJson(); | 14541 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 14511 } | 14542 } |
| 14512 if (visitorId != null) { | 14543 if (visitorId != null) { |
| 14513 _json["visitorId"] = visitorId; | 14544 _json["visitorId"] = visitorId; |
| 14514 } | 14545 } |
| 14515 return _json; | 14546 return _json; |
| 14516 } | 14547 } |
| 14517 } | 14548 } |
| 14518 | 14549 |
| 14519 /** | 14550 /// Basic details about a playlist, including title, description and |
| 14520 * Basic details about a playlist, including title, description and thumbnails. | 14551 /// thumbnails. |
| 14521 */ | |
| 14522 class PlaylistItemSnippet { | 14552 class PlaylistItemSnippet { |
| 14523 /** | 14553 /// The ID that YouTube uses to uniquely identify the user that added the |
| 14524 * The ID that YouTube uses to uniquely identify the user that added the item | 14554 /// item to the playlist. |
| 14525 * to the playlist. | |
| 14526 */ | |
| 14527 core.String channelId; | 14555 core.String channelId; |
| 14528 /** Channel title for the channel that the playlist item belongs to. */ | 14556 |
| 14557 /// Channel title for the channel that the playlist item belongs to. |
| 14529 core.String channelTitle; | 14558 core.String channelTitle; |
| 14530 /** The item's description. */ | 14559 |
| 14560 /// The item's description. |
| 14531 core.String description; | 14561 core.String description; |
| 14532 /** | 14562 |
| 14533 * The ID that YouTube uses to uniquely identify the playlist that the | 14563 /// The ID that YouTube uses to uniquely identify the playlist that the |
| 14534 * playlist item is in. | 14564 /// playlist item is in. |
| 14535 */ | |
| 14536 core.String playlistId; | 14565 core.String playlistId; |
| 14537 /** | 14566 |
| 14538 * The order in which the item appears in the playlist. The value uses a | 14567 /// The order in which the item appears in the playlist. The value uses a |
| 14539 * zero-based index, so the first item has a position of 0, the second item | 14568 /// zero-based index, so the first item has a position of 0, the second item |
| 14540 * has a position of 1, and so forth. | 14569 /// has a position of 1, and so forth. |
| 14541 */ | |
| 14542 core.int position; | 14570 core.int position; |
| 14543 /** | 14571 |
| 14544 * The date and time that the item was added to the playlist. The value is | 14572 /// The date and time that the item was added to the playlist. The value is |
| 14545 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 14573 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 14546 */ | |
| 14547 core.DateTime publishedAt; | 14574 core.DateTime publishedAt; |
| 14548 /** | 14575 |
| 14549 * The id object contains information that can be used to uniquely identify | 14576 /// The id object contains information that can be used to uniquely identify |
| 14550 * the resource that is included in the playlist as the playlist item. | 14577 /// the resource that is included in the playlist as the playlist item. |
| 14551 */ | |
| 14552 ResourceId resourceId; | 14578 ResourceId resourceId; |
| 14553 /** | 14579 |
| 14554 * A map of thumbnail images associated with the playlist item. For each | 14580 /// A map of thumbnail images associated with the playlist item. For each |
| 14555 * object in the map, the key is the name of the thumbnail image, and the | 14581 /// object in the map, the key is the name of the thumbnail image, and the |
| 14556 * value is an object that contains other information about the thumbnail. | 14582 /// value is an object that contains other information about the thumbnail. |
| 14557 */ | |
| 14558 ThumbnailDetails thumbnails; | 14583 ThumbnailDetails thumbnails; |
| 14559 /** The item's title. */ | 14584 |
| 14585 /// The item's title. |
| 14560 core.String title; | 14586 core.String title; |
| 14561 | 14587 |
| 14562 PlaylistItemSnippet(); | 14588 PlaylistItemSnippet(); |
| 14563 | 14589 |
| 14564 PlaylistItemSnippet.fromJson(core.Map _json) { | 14590 PlaylistItemSnippet.fromJson(core.Map _json) { |
| 14565 if (_json.containsKey("channelId")) { | 14591 if (_json.containsKey("channelId")) { |
| 14566 channelId = _json["channelId"]; | 14592 channelId = _json["channelId"]; |
| 14567 } | 14593 } |
| 14568 if (_json.containsKey("channelTitle")) { | 14594 if (_json.containsKey("channelTitle")) { |
| 14569 channelTitle = _json["channelTitle"]; | 14595 channelTitle = _json["channelTitle"]; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 14585 } | 14611 } |
| 14586 if (_json.containsKey("thumbnails")) { | 14612 if (_json.containsKey("thumbnails")) { |
| 14587 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 14613 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
| 14588 } | 14614 } |
| 14589 if (_json.containsKey("title")) { | 14615 if (_json.containsKey("title")) { |
| 14590 title = _json["title"]; | 14616 title = _json["title"]; |
| 14591 } | 14617 } |
| 14592 } | 14618 } |
| 14593 | 14619 |
| 14594 core.Map<core.String, core.Object> toJson() { | 14620 core.Map<core.String, core.Object> toJson() { |
| 14595 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14621 final core.Map<core.String, core.Object> _json = |
| 14622 new core.Map<core.String, core.Object>(); |
| 14596 if (channelId != null) { | 14623 if (channelId != null) { |
| 14597 _json["channelId"] = channelId; | 14624 _json["channelId"] = channelId; |
| 14598 } | 14625 } |
| 14599 if (channelTitle != null) { | 14626 if (channelTitle != null) { |
| 14600 _json["channelTitle"] = channelTitle; | 14627 _json["channelTitle"] = channelTitle; |
| 14601 } | 14628 } |
| 14602 if (description != null) { | 14629 if (description != null) { |
| 14603 _json["description"] = description; | 14630 _json["description"] = description; |
| 14604 } | 14631 } |
| 14605 if (playlistId != null) { | 14632 if (playlistId != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 14617 if (thumbnails != null) { | 14644 if (thumbnails != null) { |
| 14618 _json["thumbnails"] = (thumbnails).toJson(); | 14645 _json["thumbnails"] = (thumbnails).toJson(); |
| 14619 } | 14646 } |
| 14620 if (title != null) { | 14647 if (title != null) { |
| 14621 _json["title"] = title; | 14648 _json["title"] = title; |
| 14622 } | 14649 } |
| 14623 return _json; | 14650 return _json; |
| 14624 } | 14651 } |
| 14625 } | 14652 } |
| 14626 | 14653 |
| 14627 /** Information about the playlist item's privacy status. */ | 14654 /// Information about the playlist item's privacy status. |
| 14628 class PlaylistItemStatus { | 14655 class PlaylistItemStatus { |
| 14629 /** | 14656 /// This resource's privacy status. |
| 14630 * This resource's privacy status. | 14657 /// Possible string values are: |
| 14631 * Possible string values are: | 14658 /// - "private" |
| 14632 * - "private" | 14659 /// - "public" |
| 14633 * - "public" | 14660 /// - "unlisted" |
| 14634 * - "unlisted" | |
| 14635 */ | |
| 14636 core.String privacyStatus; | 14661 core.String privacyStatus; |
| 14637 | 14662 |
| 14638 PlaylistItemStatus(); | 14663 PlaylistItemStatus(); |
| 14639 | 14664 |
| 14640 PlaylistItemStatus.fromJson(core.Map _json) { | 14665 PlaylistItemStatus.fromJson(core.Map _json) { |
| 14641 if (_json.containsKey("privacyStatus")) { | 14666 if (_json.containsKey("privacyStatus")) { |
| 14642 privacyStatus = _json["privacyStatus"]; | 14667 privacyStatus = _json["privacyStatus"]; |
| 14643 } | 14668 } |
| 14644 } | 14669 } |
| 14645 | 14670 |
| 14646 core.Map<core.String, core.Object> toJson() { | 14671 core.Map<core.String, core.Object> toJson() { |
| 14647 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14672 final core.Map<core.String, core.Object> _json = |
| 14673 new core.Map<core.String, core.Object>(); |
| 14648 if (privacyStatus != null) { | 14674 if (privacyStatus != null) { |
| 14649 _json["privacyStatus"] = privacyStatus; | 14675 _json["privacyStatus"] = privacyStatus; |
| 14650 } | 14676 } |
| 14651 return _json; | 14677 return _json; |
| 14652 } | 14678 } |
| 14653 } | 14679 } |
| 14654 | 14680 |
| 14655 class PlaylistListResponse { | 14681 class PlaylistListResponse { |
| 14656 /** Etag of this resource. */ | 14682 /// Etag of this resource. |
| 14657 core.String etag; | 14683 core.String etag; |
| 14658 /** Serialized EventId of the request which produced this response. */ | 14684 |
| 14685 /// Serialized EventId of the request which produced this response. |
| 14659 core.String eventId; | 14686 core.String eventId; |
| 14660 /** A list of playlists that match the request criteria. */ | 14687 |
| 14688 /// A list of playlists that match the request criteria. |
| 14661 core.List<Playlist> items; | 14689 core.List<Playlist> items; |
| 14662 /** | 14690 |
| 14663 * Identifies what kind of resource this is. Value: the fixed string | 14691 /// Identifies what kind of resource this is. Value: the fixed string |
| 14664 * "youtube#playlistListResponse". | 14692 /// "youtube#playlistListResponse". |
| 14665 */ | |
| 14666 core.String kind; | 14693 core.String kind; |
| 14667 /** | 14694 |
| 14668 * The token that can be used as the value of the pageToken parameter to | 14695 /// The token that can be used as the value of the pageToken parameter to |
| 14669 * retrieve the next page in the result set. | 14696 /// retrieve the next page in the result set. |
| 14670 */ | |
| 14671 core.String nextPageToken; | 14697 core.String nextPageToken; |
| 14672 PageInfo pageInfo; | 14698 PageInfo pageInfo; |
| 14673 /** | 14699 |
| 14674 * The token that can be used as the value of the pageToken parameter to | 14700 /// The token that can be used as the value of the pageToken parameter to |
| 14675 * retrieve the previous page in the result set. | 14701 /// retrieve the previous page in the result set. |
| 14676 */ | |
| 14677 core.String prevPageToken; | 14702 core.String prevPageToken; |
| 14678 TokenPagination tokenPagination; | 14703 TokenPagination tokenPagination; |
| 14679 /** The visitorId identifies the visitor. */ | 14704 |
| 14705 /// The visitorId identifies the visitor. |
| 14680 core.String visitorId; | 14706 core.String visitorId; |
| 14681 | 14707 |
| 14682 PlaylistListResponse(); | 14708 PlaylistListResponse(); |
| 14683 | 14709 |
| 14684 PlaylistListResponse.fromJson(core.Map _json) { | 14710 PlaylistListResponse.fromJson(core.Map _json) { |
| 14685 if (_json.containsKey("etag")) { | 14711 if (_json.containsKey("etag")) { |
| 14686 etag = _json["etag"]; | 14712 etag = _json["etag"]; |
| 14687 } | 14713 } |
| 14688 if (_json.containsKey("eventId")) { | 14714 if (_json.containsKey("eventId")) { |
| 14689 eventId = _json["eventId"]; | 14715 eventId = _json["eventId"]; |
| 14690 } | 14716 } |
| 14691 if (_json.containsKey("items")) { | 14717 if (_json.containsKey("items")) { |
| 14692 items = _json["items"].map((value) => new Playlist.fromJson(value)).toList
(); | 14718 items = |
| 14719 _json["items"].map((value) => new Playlist.fromJson(value)).toList(); |
| 14693 } | 14720 } |
| 14694 if (_json.containsKey("kind")) { | 14721 if (_json.containsKey("kind")) { |
| 14695 kind = _json["kind"]; | 14722 kind = _json["kind"]; |
| 14696 } | 14723 } |
| 14697 if (_json.containsKey("nextPageToken")) { | 14724 if (_json.containsKey("nextPageToken")) { |
| 14698 nextPageToken = _json["nextPageToken"]; | 14725 nextPageToken = _json["nextPageToken"]; |
| 14699 } | 14726 } |
| 14700 if (_json.containsKey("pageInfo")) { | 14727 if (_json.containsKey("pageInfo")) { |
| 14701 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 14728 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 14702 } | 14729 } |
| 14703 if (_json.containsKey("prevPageToken")) { | 14730 if (_json.containsKey("prevPageToken")) { |
| 14704 prevPageToken = _json["prevPageToken"]; | 14731 prevPageToken = _json["prevPageToken"]; |
| 14705 } | 14732 } |
| 14706 if (_json.containsKey("tokenPagination")) { | 14733 if (_json.containsKey("tokenPagination")) { |
| 14707 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 14734 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 14708 } | 14735 } |
| 14709 if (_json.containsKey("visitorId")) { | 14736 if (_json.containsKey("visitorId")) { |
| 14710 visitorId = _json["visitorId"]; | 14737 visitorId = _json["visitorId"]; |
| 14711 } | 14738 } |
| 14712 } | 14739 } |
| 14713 | 14740 |
| 14714 core.Map<core.String, core.Object> toJson() { | 14741 core.Map<core.String, core.Object> toJson() { |
| 14715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14742 final core.Map<core.String, core.Object> _json = |
| 14743 new core.Map<core.String, core.Object>(); |
| 14716 if (etag != null) { | 14744 if (etag != null) { |
| 14717 _json["etag"] = etag; | 14745 _json["etag"] = etag; |
| 14718 } | 14746 } |
| 14719 if (eventId != null) { | 14747 if (eventId != null) { |
| 14720 _json["eventId"] = eventId; | 14748 _json["eventId"] = eventId; |
| 14721 } | 14749 } |
| 14722 if (items != null) { | 14750 if (items != null) { |
| 14723 _json["items"] = items.map((value) => (value).toJson()).toList(); | 14751 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 14724 } | 14752 } |
| 14725 if (kind != null) { | 14753 if (kind != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 14737 if (tokenPagination != null) { | 14765 if (tokenPagination != null) { |
| 14738 _json["tokenPagination"] = (tokenPagination).toJson(); | 14766 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 14739 } | 14767 } |
| 14740 if (visitorId != null) { | 14768 if (visitorId != null) { |
| 14741 _json["visitorId"] = visitorId; | 14769 _json["visitorId"] = visitorId; |
| 14742 } | 14770 } |
| 14743 return _json; | 14771 return _json; |
| 14744 } | 14772 } |
| 14745 } | 14773 } |
| 14746 | 14774 |
| 14747 /** Playlist localization setting */ | 14775 /// Playlist localization setting |
| 14748 class PlaylistLocalization { | 14776 class PlaylistLocalization { |
| 14749 /** The localized strings for playlist's description. */ | 14777 /// The localized strings for playlist's description. |
| 14750 core.String description; | 14778 core.String description; |
| 14751 /** The localized strings for playlist's title. */ | 14779 |
| 14780 /// The localized strings for playlist's title. |
| 14752 core.String title; | 14781 core.String title; |
| 14753 | 14782 |
| 14754 PlaylistLocalization(); | 14783 PlaylistLocalization(); |
| 14755 | 14784 |
| 14756 PlaylistLocalization.fromJson(core.Map _json) { | 14785 PlaylistLocalization.fromJson(core.Map _json) { |
| 14757 if (_json.containsKey("description")) { | 14786 if (_json.containsKey("description")) { |
| 14758 description = _json["description"]; | 14787 description = _json["description"]; |
| 14759 } | 14788 } |
| 14760 if (_json.containsKey("title")) { | 14789 if (_json.containsKey("title")) { |
| 14761 title = _json["title"]; | 14790 title = _json["title"]; |
| 14762 } | 14791 } |
| 14763 } | 14792 } |
| 14764 | 14793 |
| 14765 core.Map<core.String, core.Object> toJson() { | 14794 core.Map<core.String, core.Object> toJson() { |
| 14766 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14795 final core.Map<core.String, core.Object> _json = |
| 14796 new core.Map<core.String, core.Object>(); |
| 14767 if (description != null) { | 14797 if (description != null) { |
| 14768 _json["description"] = description; | 14798 _json["description"] = description; |
| 14769 } | 14799 } |
| 14770 if (title != null) { | 14800 if (title != null) { |
| 14771 _json["title"] = title; | 14801 _json["title"] = title; |
| 14772 } | 14802 } |
| 14773 return _json; | 14803 return _json; |
| 14774 } | 14804 } |
| 14775 } | 14805 } |
| 14776 | 14806 |
| 14777 class PlaylistPlayer { | 14807 class PlaylistPlayer { |
| 14778 /** An <iframe> tag that embeds a player that will play the playlist. */ | 14808 /// An <iframe> tag that embeds a player that will play the playlist. |
| 14779 core.String embedHtml; | 14809 core.String embedHtml; |
| 14780 | 14810 |
| 14781 PlaylistPlayer(); | 14811 PlaylistPlayer(); |
| 14782 | 14812 |
| 14783 PlaylistPlayer.fromJson(core.Map _json) { | 14813 PlaylistPlayer.fromJson(core.Map _json) { |
| 14784 if (_json.containsKey("embedHtml")) { | 14814 if (_json.containsKey("embedHtml")) { |
| 14785 embedHtml = _json["embedHtml"]; | 14815 embedHtml = _json["embedHtml"]; |
| 14786 } | 14816 } |
| 14787 } | 14817 } |
| 14788 | 14818 |
| 14789 core.Map<core.String, core.Object> toJson() { | 14819 core.Map<core.String, core.Object> toJson() { |
| 14790 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14820 final core.Map<core.String, core.Object> _json = |
| 14821 new core.Map<core.String, core.Object>(); |
| 14791 if (embedHtml != null) { | 14822 if (embedHtml != null) { |
| 14792 _json["embedHtml"] = embedHtml; | 14823 _json["embedHtml"] = embedHtml; |
| 14793 } | 14824 } |
| 14794 return _json; | 14825 return _json; |
| 14795 } | 14826 } |
| 14796 } | 14827 } |
| 14797 | 14828 |
| 14798 /** | 14829 /// Basic details about a playlist, including title, description and |
| 14799 * Basic details about a playlist, including title, description and thumbnails. | 14830 /// thumbnails. |
| 14800 */ | |
| 14801 class PlaylistSnippet { | 14831 class PlaylistSnippet { |
| 14802 /** | 14832 /// The ID that YouTube uses to uniquely identify the channel that published |
| 14803 * The ID that YouTube uses to uniquely identify the channel that published | 14833 /// the playlist. |
| 14804 * the playlist. | |
| 14805 */ | |
| 14806 core.String channelId; | 14834 core.String channelId; |
| 14807 /** The channel title of the channel that the video belongs to. */ | 14835 |
| 14836 /// The channel title of the channel that the video belongs to. |
| 14808 core.String channelTitle; | 14837 core.String channelTitle; |
| 14809 /** The language of the playlist's default title and description. */ | 14838 |
| 14839 /// The language of the playlist's default title and description. |
| 14810 core.String defaultLanguage; | 14840 core.String defaultLanguage; |
| 14811 /** The playlist's description. */ | 14841 |
| 14842 /// The playlist's description. |
| 14812 core.String description; | 14843 core.String description; |
| 14813 /** Localized title and description, read-only. */ | 14844 |
| 14845 /// Localized title and description, read-only. |
| 14814 PlaylistLocalization localized; | 14846 PlaylistLocalization localized; |
| 14815 /** | 14847 |
| 14816 * The date and time that the playlist was created. The value is specified in | 14848 /// The date and time that the playlist was created. The value is specified |
| 14817 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 14849 /// in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 14818 */ | |
| 14819 core.DateTime publishedAt; | 14850 core.DateTime publishedAt; |
| 14820 /** Keyword tags associated with the playlist. */ | 14851 |
| 14852 /// Keyword tags associated with the playlist. |
| 14821 core.List<core.String> tags; | 14853 core.List<core.String> tags; |
| 14822 /** | 14854 |
| 14823 * A map of thumbnail images associated with the playlist. For each object in | 14855 /// A map of thumbnail images associated with the playlist. For each object |
| 14824 * the map, the key is the name of the thumbnail image, and the value is an | 14856 /// in the map, the key is the name of the thumbnail image, and the value is |
| 14825 * object that contains other information about the thumbnail. | 14857 /// an object that contains other information about the thumbnail. |
| 14826 */ | |
| 14827 ThumbnailDetails thumbnails; | 14858 ThumbnailDetails thumbnails; |
| 14828 /** The playlist's title. */ | 14859 |
| 14860 /// The playlist's title. |
| 14829 core.String title; | 14861 core.String title; |
| 14830 | 14862 |
| 14831 PlaylistSnippet(); | 14863 PlaylistSnippet(); |
| 14832 | 14864 |
| 14833 PlaylistSnippet.fromJson(core.Map _json) { | 14865 PlaylistSnippet.fromJson(core.Map _json) { |
| 14834 if (_json.containsKey("channelId")) { | 14866 if (_json.containsKey("channelId")) { |
| 14835 channelId = _json["channelId"]; | 14867 channelId = _json["channelId"]; |
| 14836 } | 14868 } |
| 14837 if (_json.containsKey("channelTitle")) { | 14869 if (_json.containsKey("channelTitle")) { |
| 14838 channelTitle = _json["channelTitle"]; | 14870 channelTitle = _json["channelTitle"]; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 14854 } | 14886 } |
| 14855 if (_json.containsKey("thumbnails")) { | 14887 if (_json.containsKey("thumbnails")) { |
| 14856 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 14888 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
| 14857 } | 14889 } |
| 14858 if (_json.containsKey("title")) { | 14890 if (_json.containsKey("title")) { |
| 14859 title = _json["title"]; | 14891 title = _json["title"]; |
| 14860 } | 14892 } |
| 14861 } | 14893 } |
| 14862 | 14894 |
| 14863 core.Map<core.String, core.Object> toJson() { | 14895 core.Map<core.String, core.Object> toJson() { |
| 14864 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14896 final core.Map<core.String, core.Object> _json = |
| 14897 new core.Map<core.String, core.Object>(); |
| 14865 if (channelId != null) { | 14898 if (channelId != null) { |
| 14866 _json["channelId"] = channelId; | 14899 _json["channelId"] = channelId; |
| 14867 } | 14900 } |
| 14868 if (channelTitle != null) { | 14901 if (channelTitle != null) { |
| 14869 _json["channelTitle"] = channelTitle; | 14902 _json["channelTitle"] = channelTitle; |
| 14870 } | 14903 } |
| 14871 if (defaultLanguage != null) { | 14904 if (defaultLanguage != null) { |
| 14872 _json["defaultLanguage"] = defaultLanguage; | 14905 _json["defaultLanguage"] = defaultLanguage; |
| 14873 } | 14906 } |
| 14874 if (description != null) { | 14907 if (description != null) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 14887 _json["thumbnails"] = (thumbnails).toJson(); | 14920 _json["thumbnails"] = (thumbnails).toJson(); |
| 14888 } | 14921 } |
| 14889 if (title != null) { | 14922 if (title != null) { |
| 14890 _json["title"] = title; | 14923 _json["title"] = title; |
| 14891 } | 14924 } |
| 14892 return _json; | 14925 return _json; |
| 14893 } | 14926 } |
| 14894 } | 14927 } |
| 14895 | 14928 |
| 14896 class PlaylistStatus { | 14929 class PlaylistStatus { |
| 14897 /** | 14930 /// The playlist's privacy status. |
| 14898 * The playlist's privacy status. | 14931 /// Possible string values are: |
| 14899 * Possible string values are: | 14932 /// - "private" |
| 14900 * - "private" | 14933 /// - "public" |
| 14901 * - "public" | 14934 /// - "unlisted" |
| 14902 * - "unlisted" | |
| 14903 */ | |
| 14904 core.String privacyStatus; | 14935 core.String privacyStatus; |
| 14905 | 14936 |
| 14906 PlaylistStatus(); | 14937 PlaylistStatus(); |
| 14907 | 14938 |
| 14908 PlaylistStatus.fromJson(core.Map _json) { | 14939 PlaylistStatus.fromJson(core.Map _json) { |
| 14909 if (_json.containsKey("privacyStatus")) { | 14940 if (_json.containsKey("privacyStatus")) { |
| 14910 privacyStatus = _json["privacyStatus"]; | 14941 privacyStatus = _json["privacyStatus"]; |
| 14911 } | 14942 } |
| 14912 } | 14943 } |
| 14913 | 14944 |
| 14914 core.Map<core.String, core.Object> toJson() { | 14945 core.Map<core.String, core.Object> toJson() { |
| 14915 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14946 final core.Map<core.String, core.Object> _json = |
| 14947 new core.Map<core.String, core.Object>(); |
| 14916 if (privacyStatus != null) { | 14948 if (privacyStatus != null) { |
| 14917 _json["privacyStatus"] = privacyStatus; | 14949 _json["privacyStatus"] = privacyStatus; |
| 14918 } | 14950 } |
| 14919 return _json; | 14951 return _json; |
| 14920 } | 14952 } |
| 14921 } | 14953 } |
| 14922 | 14954 |
| 14923 /** Describes a single promoted item. */ | 14955 /// Describes a single promoted item. |
| 14924 class PromotedItem { | 14956 class PromotedItem { |
| 14925 /** | 14957 /// A custom message to display for this promotion. This field is currently |
| 14926 * A custom message to display for this promotion. This field is currently | 14958 /// ignored unless the promoted item is a website. |
| 14927 * ignored unless the promoted item is a website. | |
| 14928 */ | |
| 14929 core.String customMessage; | 14959 core.String customMessage; |
| 14930 /** Identifies the promoted item. */ | 14960 |
| 14961 /// Identifies the promoted item. |
| 14931 PromotedItemId id; | 14962 PromotedItemId id; |
| 14932 /** | 14963 |
| 14933 * If true, the content owner's name will be used when displaying the | 14964 /// If true, the content owner's name will be used when displaying the |
| 14934 * promotion. This field can only be set when the update is made on behalf of | 14965 /// promotion. This field can only be set when the update is made on behalf |
| 14935 * the content owner. | 14966 /// of the content owner. |
| 14936 */ | |
| 14937 core.bool promotedByContentOwner; | 14967 core.bool promotedByContentOwner; |
| 14938 /** | 14968 |
| 14939 * The temporal position within the video where the promoted item will be | 14969 /// The temporal position within the video where the promoted item will be |
| 14940 * displayed. If present, it overrides the default timing. | 14970 /// displayed. If present, it overrides the default timing. |
| 14941 */ | |
| 14942 InvideoTiming timing; | 14971 InvideoTiming timing; |
| 14943 | 14972 |
| 14944 PromotedItem(); | 14973 PromotedItem(); |
| 14945 | 14974 |
| 14946 PromotedItem.fromJson(core.Map _json) { | 14975 PromotedItem.fromJson(core.Map _json) { |
| 14947 if (_json.containsKey("customMessage")) { | 14976 if (_json.containsKey("customMessage")) { |
| 14948 customMessage = _json["customMessage"]; | 14977 customMessage = _json["customMessage"]; |
| 14949 } | 14978 } |
| 14950 if (_json.containsKey("id")) { | 14979 if (_json.containsKey("id")) { |
| 14951 id = new PromotedItemId.fromJson(_json["id"]); | 14980 id = new PromotedItemId.fromJson(_json["id"]); |
| 14952 } | 14981 } |
| 14953 if (_json.containsKey("promotedByContentOwner")) { | 14982 if (_json.containsKey("promotedByContentOwner")) { |
| 14954 promotedByContentOwner = _json["promotedByContentOwner"]; | 14983 promotedByContentOwner = _json["promotedByContentOwner"]; |
| 14955 } | 14984 } |
| 14956 if (_json.containsKey("timing")) { | 14985 if (_json.containsKey("timing")) { |
| 14957 timing = new InvideoTiming.fromJson(_json["timing"]); | 14986 timing = new InvideoTiming.fromJson(_json["timing"]); |
| 14958 } | 14987 } |
| 14959 } | 14988 } |
| 14960 | 14989 |
| 14961 core.Map<core.String, core.Object> toJson() { | 14990 core.Map<core.String, core.Object> toJson() { |
| 14962 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 14991 final core.Map<core.String, core.Object> _json = |
| 14992 new core.Map<core.String, core.Object>(); |
| 14963 if (customMessage != null) { | 14993 if (customMessage != null) { |
| 14964 _json["customMessage"] = customMessage; | 14994 _json["customMessage"] = customMessage; |
| 14965 } | 14995 } |
| 14966 if (id != null) { | 14996 if (id != null) { |
| 14967 _json["id"] = (id).toJson(); | 14997 _json["id"] = (id).toJson(); |
| 14968 } | 14998 } |
| 14969 if (promotedByContentOwner != null) { | 14999 if (promotedByContentOwner != null) { |
| 14970 _json["promotedByContentOwner"] = promotedByContentOwner; | 15000 _json["promotedByContentOwner"] = promotedByContentOwner; |
| 14971 } | 15001 } |
| 14972 if (timing != null) { | 15002 if (timing != null) { |
| 14973 _json["timing"] = (timing).toJson(); | 15003 _json["timing"] = (timing).toJson(); |
| 14974 } | 15004 } |
| 14975 return _json; | 15005 return _json; |
| 14976 } | 15006 } |
| 14977 } | 15007 } |
| 14978 | 15008 |
| 14979 /** | 15009 /// Describes a single promoted item id. It is a union of various possible |
| 14980 * Describes a single promoted item id. It is a union of various possible types. | 15010 /// types. |
| 14981 */ | |
| 14982 class PromotedItemId { | 15011 class PromotedItemId { |
| 14983 /** | 15012 /// If type is recentUpload, this field identifies the channel from which to |
| 14984 * If type is recentUpload, this field identifies the channel from which to | 15013 /// take the recent upload. If missing, the channel is assumed to be the same |
| 14985 * take the recent upload. If missing, the channel is assumed to be the same | 15014 /// channel for which the invideoPromotion is set. |
| 14986 * channel for which the invideoPromotion is set. | |
| 14987 */ | |
| 14988 core.String recentlyUploadedBy; | 15015 core.String recentlyUploadedBy; |
| 14989 /** | 15016 |
| 14990 * Describes the type of the promoted item. | 15017 /// Describes the type of the promoted item. |
| 14991 * Possible string values are: | 15018 /// Possible string values are: |
| 14992 * - "recentUpload" | 15019 /// - "recentUpload" |
| 14993 * - "video" | 15020 /// - "video" |
| 14994 * - "website" | 15021 /// - "website" |
| 14995 */ | |
| 14996 core.String type; | 15022 core.String type; |
| 14997 /** | 15023 |
| 14998 * If the promoted item represents a video, this field represents the unique | 15024 /// If the promoted item represents a video, this field represents the unique |
| 14999 * YouTube ID identifying it. This field will be present only if type has the | 15025 /// YouTube ID identifying it. This field will be present only if type has |
| 15000 * value video. | 15026 /// the value video. |
| 15001 */ | |
| 15002 core.String videoId; | 15027 core.String videoId; |
| 15003 /** | 15028 |
| 15004 * If the promoted item represents a website, this field represents the url | 15029 /// If the promoted item represents a website, this field represents the url |
| 15005 * pointing to the website. This field will be present only if type has the | 15030 /// pointing to the website. This field will be present only if type has the |
| 15006 * value website. | 15031 /// value website. |
| 15007 */ | |
| 15008 core.String websiteUrl; | 15032 core.String websiteUrl; |
| 15009 | 15033 |
| 15010 PromotedItemId(); | 15034 PromotedItemId(); |
| 15011 | 15035 |
| 15012 PromotedItemId.fromJson(core.Map _json) { | 15036 PromotedItemId.fromJson(core.Map _json) { |
| 15013 if (_json.containsKey("recentlyUploadedBy")) { | 15037 if (_json.containsKey("recentlyUploadedBy")) { |
| 15014 recentlyUploadedBy = _json["recentlyUploadedBy"]; | 15038 recentlyUploadedBy = _json["recentlyUploadedBy"]; |
| 15015 } | 15039 } |
| 15016 if (_json.containsKey("type")) { | 15040 if (_json.containsKey("type")) { |
| 15017 type = _json["type"]; | 15041 type = _json["type"]; |
| 15018 } | 15042 } |
| 15019 if (_json.containsKey("videoId")) { | 15043 if (_json.containsKey("videoId")) { |
| 15020 videoId = _json["videoId"]; | 15044 videoId = _json["videoId"]; |
| 15021 } | 15045 } |
| 15022 if (_json.containsKey("websiteUrl")) { | 15046 if (_json.containsKey("websiteUrl")) { |
| 15023 websiteUrl = _json["websiteUrl"]; | 15047 websiteUrl = _json["websiteUrl"]; |
| 15024 } | 15048 } |
| 15025 } | 15049 } |
| 15026 | 15050 |
| 15027 core.Map<core.String, core.Object> toJson() { | 15051 core.Map<core.String, core.Object> toJson() { |
| 15028 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15052 final core.Map<core.String, core.Object> _json = |
| 15053 new core.Map<core.String, core.Object>(); |
| 15029 if (recentlyUploadedBy != null) { | 15054 if (recentlyUploadedBy != null) { |
| 15030 _json["recentlyUploadedBy"] = recentlyUploadedBy; | 15055 _json["recentlyUploadedBy"] = recentlyUploadedBy; |
| 15031 } | 15056 } |
| 15032 if (type != null) { | 15057 if (type != null) { |
| 15033 _json["type"] = type; | 15058 _json["type"] = type; |
| 15034 } | 15059 } |
| 15035 if (videoId != null) { | 15060 if (videoId != null) { |
| 15036 _json["videoId"] = videoId; | 15061 _json["videoId"] = videoId; |
| 15037 } | 15062 } |
| 15038 if (websiteUrl != null) { | 15063 if (websiteUrl != null) { |
| 15039 _json["websiteUrl"] = websiteUrl; | 15064 _json["websiteUrl"] = websiteUrl; |
| 15040 } | 15065 } |
| 15041 return _json; | 15066 return _json; |
| 15042 } | 15067 } |
| 15043 } | 15068 } |
| 15044 | 15069 |
| 15045 /** A pair Property / Value. */ | 15070 /// A pair Property / Value. |
| 15046 class PropertyValue { | 15071 class PropertyValue { |
| 15047 /** A property. */ | 15072 /// A property. |
| 15048 core.String property; | 15073 core.String property; |
| 15049 /** The property's value. */ | 15074 |
| 15075 /// The property's value. |
| 15050 core.String value; | 15076 core.String value; |
| 15051 | 15077 |
| 15052 PropertyValue(); | 15078 PropertyValue(); |
| 15053 | 15079 |
| 15054 PropertyValue.fromJson(core.Map _json) { | 15080 PropertyValue.fromJson(core.Map _json) { |
| 15055 if (_json.containsKey("property")) { | 15081 if (_json.containsKey("property")) { |
| 15056 property = _json["property"]; | 15082 property = _json["property"]; |
| 15057 } | 15083 } |
| 15058 if (_json.containsKey("value")) { | 15084 if (_json.containsKey("value")) { |
| 15059 value = _json["value"]; | 15085 value = _json["value"]; |
| 15060 } | 15086 } |
| 15061 } | 15087 } |
| 15062 | 15088 |
| 15063 core.Map<core.String, core.Object> toJson() { | 15089 core.Map<core.String, core.Object> toJson() { |
| 15064 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15090 final core.Map<core.String, core.Object> _json = |
| 15091 new core.Map<core.String, core.Object>(); |
| 15065 if (property != null) { | 15092 if (property != null) { |
| 15066 _json["property"] = property; | 15093 _json["property"] = property; |
| 15067 } | 15094 } |
| 15068 if (value != null) { | 15095 if (value != null) { |
| 15069 _json["value"] = value; | 15096 _json["value"] = value; |
| 15070 } | 15097 } |
| 15071 return _json; | 15098 return _json; |
| 15072 } | 15099 } |
| 15073 } | 15100 } |
| 15074 | 15101 |
| 15075 /** | 15102 /// A resource id is a generic reference that points to another YouTube |
| 15076 * A resource id is a generic reference that points to another YouTube resource. | 15103 /// resource. |
| 15077 */ | |
| 15078 class ResourceId { | 15104 class ResourceId { |
| 15079 /** | 15105 /// The ID that YouTube uses to uniquely identify the referred resource, if |
| 15080 * The ID that YouTube uses to uniquely identify the referred resource, if | 15106 /// that resource is a channel. This property is only present if the |
| 15081 * that resource is a channel. This property is only present if the | 15107 /// resourceId.kind value is youtube#channel. |
| 15082 * resourceId.kind value is youtube#channel. | |
| 15083 */ | |
| 15084 core.String channelId; | 15108 core.String channelId; |
| 15085 /** The type of the API resource. */ | 15109 |
| 15110 /// The type of the API resource. |
| 15086 core.String kind; | 15111 core.String kind; |
| 15087 /** | 15112 |
| 15088 * The ID that YouTube uses to uniquely identify the referred resource, if | 15113 /// The ID that YouTube uses to uniquely identify the referred resource, if |
| 15089 * that resource is a playlist. This property is only present if the | 15114 /// that resource is a playlist. This property is only present if the |
| 15090 * resourceId.kind value is youtube#playlist. | 15115 /// resourceId.kind value is youtube#playlist. |
| 15091 */ | |
| 15092 core.String playlistId; | 15116 core.String playlistId; |
| 15093 /** | 15117 |
| 15094 * The ID that YouTube uses to uniquely identify the referred resource, if | 15118 /// The ID that YouTube uses to uniquely identify the referred resource, if |
| 15095 * that resource is a video. This property is only present if the | 15119 /// that resource is a video. This property is only present if the |
| 15096 * resourceId.kind value is youtube#video. | 15120 /// resourceId.kind value is youtube#video. |
| 15097 */ | |
| 15098 core.String videoId; | 15121 core.String videoId; |
| 15099 | 15122 |
| 15100 ResourceId(); | 15123 ResourceId(); |
| 15101 | 15124 |
| 15102 ResourceId.fromJson(core.Map _json) { | 15125 ResourceId.fromJson(core.Map _json) { |
| 15103 if (_json.containsKey("channelId")) { | 15126 if (_json.containsKey("channelId")) { |
| 15104 channelId = _json["channelId"]; | 15127 channelId = _json["channelId"]; |
| 15105 } | 15128 } |
| 15106 if (_json.containsKey("kind")) { | 15129 if (_json.containsKey("kind")) { |
| 15107 kind = _json["kind"]; | 15130 kind = _json["kind"]; |
| 15108 } | 15131 } |
| 15109 if (_json.containsKey("playlistId")) { | 15132 if (_json.containsKey("playlistId")) { |
| 15110 playlistId = _json["playlistId"]; | 15133 playlistId = _json["playlistId"]; |
| 15111 } | 15134 } |
| 15112 if (_json.containsKey("videoId")) { | 15135 if (_json.containsKey("videoId")) { |
| 15113 videoId = _json["videoId"]; | 15136 videoId = _json["videoId"]; |
| 15114 } | 15137 } |
| 15115 } | 15138 } |
| 15116 | 15139 |
| 15117 core.Map<core.String, core.Object> toJson() { | 15140 core.Map<core.String, core.Object> toJson() { |
| 15118 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15141 final core.Map<core.String, core.Object> _json = |
| 15142 new core.Map<core.String, core.Object>(); |
| 15119 if (channelId != null) { | 15143 if (channelId != null) { |
| 15120 _json["channelId"] = channelId; | 15144 _json["channelId"] = channelId; |
| 15121 } | 15145 } |
| 15122 if (kind != null) { | 15146 if (kind != null) { |
| 15123 _json["kind"] = kind; | 15147 _json["kind"] = kind; |
| 15124 } | 15148 } |
| 15125 if (playlistId != null) { | 15149 if (playlistId != null) { |
| 15126 _json["playlistId"] = playlistId; | 15150 _json["playlistId"] = playlistId; |
| 15127 } | 15151 } |
| 15128 if (videoId != null) { | 15152 if (videoId != null) { |
| 15129 _json["videoId"] = videoId; | 15153 _json["videoId"] = videoId; |
| 15130 } | 15154 } |
| 15131 return _json; | 15155 return _json; |
| 15132 } | 15156 } |
| 15133 } | 15157 } |
| 15134 | 15158 |
| 15135 class SearchListResponse { | 15159 class SearchListResponse { |
| 15136 /** Etag of this resource. */ | 15160 /// Etag of this resource. |
| 15137 core.String etag; | 15161 core.String etag; |
| 15138 /** Serialized EventId of the request which produced this response. */ | 15162 |
| 15163 /// Serialized EventId of the request which produced this response. |
| 15139 core.String eventId; | 15164 core.String eventId; |
| 15140 /** A list of results that match the search criteria. */ | 15165 |
| 15166 /// A list of results that match the search criteria. |
| 15141 core.List<SearchResult> items; | 15167 core.List<SearchResult> items; |
| 15142 /** | 15168 |
| 15143 * Identifies what kind of resource this is. Value: the fixed string | 15169 /// Identifies what kind of resource this is. Value: the fixed string |
| 15144 * "youtube#searchListResponse". | 15170 /// "youtube#searchListResponse". |
| 15145 */ | |
| 15146 core.String kind; | 15171 core.String kind; |
| 15147 /** | 15172 |
| 15148 * The token that can be used as the value of the pageToken parameter to | 15173 /// The token that can be used as the value of the pageToken parameter to |
| 15149 * retrieve the next page in the result set. | 15174 /// retrieve the next page in the result set. |
| 15150 */ | |
| 15151 core.String nextPageToken; | 15175 core.String nextPageToken; |
| 15152 PageInfo pageInfo; | 15176 PageInfo pageInfo; |
| 15153 /** | 15177 |
| 15154 * The token that can be used as the value of the pageToken parameter to | 15178 /// The token that can be used as the value of the pageToken parameter to |
| 15155 * retrieve the previous page in the result set. | 15179 /// retrieve the previous page in the result set. |
| 15156 */ | |
| 15157 core.String prevPageToken; | 15180 core.String prevPageToken; |
| 15158 core.String regionCode; | 15181 core.String regionCode; |
| 15159 TokenPagination tokenPagination; | 15182 TokenPagination tokenPagination; |
| 15160 /** The visitorId identifies the visitor. */ | 15183 |
| 15184 /// The visitorId identifies the visitor. |
| 15161 core.String visitorId; | 15185 core.String visitorId; |
| 15162 | 15186 |
| 15163 SearchListResponse(); | 15187 SearchListResponse(); |
| 15164 | 15188 |
| 15165 SearchListResponse.fromJson(core.Map _json) { | 15189 SearchListResponse.fromJson(core.Map _json) { |
| 15166 if (_json.containsKey("etag")) { | 15190 if (_json.containsKey("etag")) { |
| 15167 etag = _json["etag"]; | 15191 etag = _json["etag"]; |
| 15168 } | 15192 } |
| 15169 if (_json.containsKey("eventId")) { | 15193 if (_json.containsKey("eventId")) { |
| 15170 eventId = _json["eventId"]; | 15194 eventId = _json["eventId"]; |
| 15171 } | 15195 } |
| 15172 if (_json.containsKey("items")) { | 15196 if (_json.containsKey("items")) { |
| 15173 items = _json["items"].map((value) => new SearchResult.fromJson(value)).to
List(); | 15197 items = _json["items"] |
| 15198 .map((value) => new SearchResult.fromJson(value)) |
| 15199 .toList(); |
| 15174 } | 15200 } |
| 15175 if (_json.containsKey("kind")) { | 15201 if (_json.containsKey("kind")) { |
| 15176 kind = _json["kind"]; | 15202 kind = _json["kind"]; |
| 15177 } | 15203 } |
| 15178 if (_json.containsKey("nextPageToken")) { | 15204 if (_json.containsKey("nextPageToken")) { |
| 15179 nextPageToken = _json["nextPageToken"]; | 15205 nextPageToken = _json["nextPageToken"]; |
| 15180 } | 15206 } |
| 15181 if (_json.containsKey("pageInfo")) { | 15207 if (_json.containsKey("pageInfo")) { |
| 15182 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 15208 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 15183 } | 15209 } |
| 15184 if (_json.containsKey("prevPageToken")) { | 15210 if (_json.containsKey("prevPageToken")) { |
| 15185 prevPageToken = _json["prevPageToken"]; | 15211 prevPageToken = _json["prevPageToken"]; |
| 15186 } | 15212 } |
| 15187 if (_json.containsKey("regionCode")) { | 15213 if (_json.containsKey("regionCode")) { |
| 15188 regionCode = _json["regionCode"]; | 15214 regionCode = _json["regionCode"]; |
| 15189 } | 15215 } |
| 15190 if (_json.containsKey("tokenPagination")) { | 15216 if (_json.containsKey("tokenPagination")) { |
| 15191 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 15217 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 15192 } | 15218 } |
| 15193 if (_json.containsKey("visitorId")) { | 15219 if (_json.containsKey("visitorId")) { |
| 15194 visitorId = _json["visitorId"]; | 15220 visitorId = _json["visitorId"]; |
| 15195 } | 15221 } |
| 15196 } | 15222 } |
| 15197 | 15223 |
| 15198 core.Map<core.String, core.Object> toJson() { | 15224 core.Map<core.String, core.Object> toJson() { |
| 15199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15225 final core.Map<core.String, core.Object> _json = |
| 15226 new core.Map<core.String, core.Object>(); |
| 15200 if (etag != null) { | 15227 if (etag != null) { |
| 15201 _json["etag"] = etag; | 15228 _json["etag"] = etag; |
| 15202 } | 15229 } |
| 15203 if (eventId != null) { | 15230 if (eventId != null) { |
| 15204 _json["eventId"] = eventId; | 15231 _json["eventId"] = eventId; |
| 15205 } | 15232 } |
| 15206 if (items != null) { | 15233 if (items != null) { |
| 15207 _json["items"] = items.map((value) => (value).toJson()).toList(); | 15234 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 15208 } | 15235 } |
| 15209 if (kind != null) { | 15236 if (kind != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 15224 if (tokenPagination != null) { | 15251 if (tokenPagination != null) { |
| 15225 _json["tokenPagination"] = (tokenPagination).toJson(); | 15252 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 15226 } | 15253 } |
| 15227 if (visitorId != null) { | 15254 if (visitorId != null) { |
| 15228 _json["visitorId"] = visitorId; | 15255 _json["visitorId"] = visitorId; |
| 15229 } | 15256 } |
| 15230 return _json; | 15257 return _json; |
| 15231 } | 15258 } |
| 15232 } | 15259 } |
| 15233 | 15260 |
| 15234 /** | 15261 /// A search result contains information about a YouTube video, channel, or |
| 15235 * A search result contains information about a YouTube video, channel, or | 15262 /// playlist that matches the search parameters specified in an API request. |
| 15236 * playlist that matches the search parameters specified in an API request. | 15263 /// While a search result points to a uniquely identifiable resource, like a |
| 15237 * While a search result points to a uniquely identifiable resource, like a | 15264 /// video, it does not have its own persistent data. |
| 15238 * video, it does not have its own persistent data. | |
| 15239 */ | |
| 15240 class SearchResult { | 15265 class SearchResult { |
| 15241 /** Etag of this resource. */ | 15266 /// Etag of this resource. |
| 15242 core.String etag; | 15267 core.String etag; |
| 15243 /** | 15268 |
| 15244 * The id object contains information that can be used to uniquely identify | 15269 /// The id object contains information that can be used to uniquely identify |
| 15245 * the resource that matches the search request. | 15270 /// the resource that matches the search request. |
| 15246 */ | |
| 15247 ResourceId id; | 15271 ResourceId id; |
| 15248 /** | 15272 |
| 15249 * Identifies what kind of resource this is. Value: the fixed string | 15273 /// Identifies what kind of resource this is. Value: the fixed string |
| 15250 * "youtube#searchResult". | 15274 /// "youtube#searchResult". |
| 15251 */ | |
| 15252 core.String kind; | 15275 core.String kind; |
| 15253 /** | 15276 |
| 15254 * The snippet object contains basic details about a search result, such as | 15277 /// The snippet object contains basic details about a search result, such as |
| 15255 * its title or description. For example, if the search result is a video, | 15278 /// its title or description. For example, if the search result is a video, |
| 15256 * then the title will be the video's title and the description will be the | 15279 /// then the title will be the video's title and the description will be the |
| 15257 * video's description. | 15280 /// video's description. |
| 15258 */ | |
| 15259 SearchResultSnippet snippet; | 15281 SearchResultSnippet snippet; |
| 15260 | 15282 |
| 15261 SearchResult(); | 15283 SearchResult(); |
| 15262 | 15284 |
| 15263 SearchResult.fromJson(core.Map _json) { | 15285 SearchResult.fromJson(core.Map _json) { |
| 15264 if (_json.containsKey("etag")) { | 15286 if (_json.containsKey("etag")) { |
| 15265 etag = _json["etag"]; | 15287 etag = _json["etag"]; |
| 15266 } | 15288 } |
| 15267 if (_json.containsKey("id")) { | 15289 if (_json.containsKey("id")) { |
| 15268 id = new ResourceId.fromJson(_json["id"]); | 15290 id = new ResourceId.fromJson(_json["id"]); |
| 15269 } | 15291 } |
| 15270 if (_json.containsKey("kind")) { | 15292 if (_json.containsKey("kind")) { |
| 15271 kind = _json["kind"]; | 15293 kind = _json["kind"]; |
| 15272 } | 15294 } |
| 15273 if (_json.containsKey("snippet")) { | 15295 if (_json.containsKey("snippet")) { |
| 15274 snippet = new SearchResultSnippet.fromJson(_json["snippet"]); | 15296 snippet = new SearchResultSnippet.fromJson(_json["snippet"]); |
| 15275 } | 15297 } |
| 15276 } | 15298 } |
| 15277 | 15299 |
| 15278 core.Map<core.String, core.Object> toJson() { | 15300 core.Map<core.String, core.Object> toJson() { |
| 15279 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15301 final core.Map<core.String, core.Object> _json = |
| 15302 new core.Map<core.String, core.Object>(); |
| 15280 if (etag != null) { | 15303 if (etag != null) { |
| 15281 _json["etag"] = etag; | 15304 _json["etag"] = etag; |
| 15282 } | 15305 } |
| 15283 if (id != null) { | 15306 if (id != null) { |
| 15284 _json["id"] = (id).toJson(); | 15307 _json["id"] = (id).toJson(); |
| 15285 } | 15308 } |
| 15286 if (kind != null) { | 15309 if (kind != null) { |
| 15287 _json["kind"] = kind; | 15310 _json["kind"] = kind; |
| 15288 } | 15311 } |
| 15289 if (snippet != null) { | 15312 if (snippet != null) { |
| 15290 _json["snippet"] = (snippet).toJson(); | 15313 _json["snippet"] = (snippet).toJson(); |
| 15291 } | 15314 } |
| 15292 return _json; | 15315 return _json; |
| 15293 } | 15316 } |
| 15294 } | 15317 } |
| 15295 | 15318 |
| 15296 /** | 15319 /// Basic details about a search result, including title, description and |
| 15297 * Basic details about a search result, including title, description and | 15320 /// thumbnails of the item referenced by the search result. |
| 15298 * thumbnails of the item referenced by the search result. | |
| 15299 */ | |
| 15300 class SearchResultSnippet { | 15321 class SearchResultSnippet { |
| 15301 /** | 15322 /// The value that YouTube uses to uniquely identify the channel that |
| 15302 * The value that YouTube uses to uniquely identify the channel that published | 15323 /// published the resource that the search result identifies. |
| 15303 * the resource that the search result identifies. | |
| 15304 */ | |
| 15305 core.String channelId; | 15324 core.String channelId; |
| 15306 /** | 15325 |
| 15307 * The title of the channel that published the resource that the search result | 15326 /// The title of the channel that published the resource that the search |
| 15308 * identifies. | 15327 /// result identifies. |
| 15309 */ | |
| 15310 core.String channelTitle; | 15328 core.String channelTitle; |
| 15311 /** A description of the search result. */ | 15329 |
| 15330 /// A description of the search result. |
| 15312 core.String description; | 15331 core.String description; |
| 15313 /** | 15332 |
| 15314 * It indicates if the resource (video or channel) has upcoming/active live | 15333 /// It indicates if the resource (video or channel) has upcoming/active live |
| 15315 * broadcast content. Or it's "none" if there is not any upcoming/active live | 15334 /// broadcast content. Or it's "none" if there is not any upcoming/active |
| 15316 * broadcasts. | 15335 /// live broadcasts. |
| 15317 * Possible string values are: | 15336 /// Possible string values are: |
| 15318 * - "live" | 15337 /// - "live" |
| 15319 * - "none" | 15338 /// - "none" |
| 15320 * - "upcoming" | 15339 /// - "upcoming" |
| 15321 */ | |
| 15322 core.String liveBroadcastContent; | 15340 core.String liveBroadcastContent; |
| 15323 /** | 15341 |
| 15324 * The creation date and time of the resource that the search result | 15342 /// The creation date and time of the resource that the search result |
| 15325 * identifies. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) | 15343 /// identifies. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) |
| 15326 * format. | 15344 /// format. |
| 15327 */ | |
| 15328 core.DateTime publishedAt; | 15345 core.DateTime publishedAt; |
| 15329 /** | 15346 |
| 15330 * A map of thumbnail images associated with the search result. For each | 15347 /// A map of thumbnail images associated with the search result. For each |
| 15331 * object in the map, the key is the name of the thumbnail image, and the | 15348 /// object in the map, the key is the name of the thumbnail image, and the |
| 15332 * value is an object that contains other information about the thumbnail. | 15349 /// value is an object that contains other information about the thumbnail. |
| 15333 */ | |
| 15334 ThumbnailDetails thumbnails; | 15350 ThumbnailDetails thumbnails; |
| 15335 /** The title of the search result. */ | 15351 |
| 15352 /// The title of the search result. |
| 15336 core.String title; | 15353 core.String title; |
| 15337 | 15354 |
| 15338 SearchResultSnippet(); | 15355 SearchResultSnippet(); |
| 15339 | 15356 |
| 15340 SearchResultSnippet.fromJson(core.Map _json) { | 15357 SearchResultSnippet.fromJson(core.Map _json) { |
| 15341 if (_json.containsKey("channelId")) { | 15358 if (_json.containsKey("channelId")) { |
| 15342 channelId = _json["channelId"]; | 15359 channelId = _json["channelId"]; |
| 15343 } | 15360 } |
| 15344 if (_json.containsKey("channelTitle")) { | 15361 if (_json.containsKey("channelTitle")) { |
| 15345 channelTitle = _json["channelTitle"]; | 15362 channelTitle = _json["channelTitle"]; |
| 15346 } | 15363 } |
| 15347 if (_json.containsKey("description")) { | 15364 if (_json.containsKey("description")) { |
| 15348 description = _json["description"]; | 15365 description = _json["description"]; |
| 15349 } | 15366 } |
| 15350 if (_json.containsKey("liveBroadcastContent")) { | 15367 if (_json.containsKey("liveBroadcastContent")) { |
| 15351 liveBroadcastContent = _json["liveBroadcastContent"]; | 15368 liveBroadcastContent = _json["liveBroadcastContent"]; |
| 15352 } | 15369 } |
| 15353 if (_json.containsKey("publishedAt")) { | 15370 if (_json.containsKey("publishedAt")) { |
| 15354 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 15371 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
| 15355 } | 15372 } |
| 15356 if (_json.containsKey("thumbnails")) { | 15373 if (_json.containsKey("thumbnails")) { |
| 15357 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 15374 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
| 15358 } | 15375 } |
| 15359 if (_json.containsKey("title")) { | 15376 if (_json.containsKey("title")) { |
| 15360 title = _json["title"]; | 15377 title = _json["title"]; |
| 15361 } | 15378 } |
| 15362 } | 15379 } |
| 15363 | 15380 |
| 15364 core.Map<core.String, core.Object> toJson() { | 15381 core.Map<core.String, core.Object> toJson() { |
| 15365 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15382 final core.Map<core.String, core.Object> _json = |
| 15383 new core.Map<core.String, core.Object>(); |
| 15366 if (channelId != null) { | 15384 if (channelId != null) { |
| 15367 _json["channelId"] = channelId; | 15385 _json["channelId"] = channelId; |
| 15368 } | 15386 } |
| 15369 if (channelTitle != null) { | 15387 if (channelTitle != null) { |
| 15370 _json["channelTitle"] = channelTitle; | 15388 _json["channelTitle"] = channelTitle; |
| 15371 } | 15389 } |
| 15372 if (description != null) { | 15390 if (description != null) { |
| 15373 _json["description"] = description; | 15391 _json["description"] = description; |
| 15374 } | 15392 } |
| 15375 if (liveBroadcastContent != null) { | 15393 if (liveBroadcastContent != null) { |
| 15376 _json["liveBroadcastContent"] = liveBroadcastContent; | 15394 _json["liveBroadcastContent"] = liveBroadcastContent; |
| 15377 } | 15395 } |
| 15378 if (publishedAt != null) { | 15396 if (publishedAt != null) { |
| 15379 _json["publishedAt"] = (publishedAt).toIso8601String(); | 15397 _json["publishedAt"] = (publishedAt).toIso8601String(); |
| 15380 } | 15398 } |
| 15381 if (thumbnails != null) { | 15399 if (thumbnails != null) { |
| 15382 _json["thumbnails"] = (thumbnails).toJson(); | 15400 _json["thumbnails"] = (thumbnails).toJson(); |
| 15383 } | 15401 } |
| 15384 if (title != null) { | 15402 if (title != null) { |
| 15385 _json["title"] = title; | 15403 _json["title"] = title; |
| 15386 } | 15404 } |
| 15387 return _json; | 15405 return _json; |
| 15388 } | 15406 } |
| 15389 } | 15407 } |
| 15390 | 15408 |
| 15391 /** | 15409 /// A sponsor resource represents a sponsor for a YouTube channel. A sponsor |
| 15392 * A sponsor resource represents a sponsor for a YouTube channel. A sponsor | 15410 /// provides recurring monetary support to a creator and receives special |
| 15393 * provides recurring monetary support to a creator and receives special | 15411 /// benefits. |
| 15394 * benefits. | |
| 15395 */ | |
| 15396 class Sponsor { | 15412 class Sponsor { |
| 15397 /** Etag of this resource. */ | 15413 /// Etag of this resource. |
| 15398 core.String etag; | 15414 core.String etag; |
| 15399 /** The ID that YouTube assigns to uniquely identify the sponsor. */ | 15415 |
| 15416 /// The ID that YouTube assigns to uniquely identify the sponsor. |
| 15400 core.String id; | 15417 core.String id; |
| 15401 /** | 15418 |
| 15402 * Identifies what kind of resource this is. Value: the fixed string | 15419 /// Identifies what kind of resource this is. Value: the fixed string |
| 15403 * "youtube#sponsor". | 15420 /// "youtube#sponsor". |
| 15404 */ | |
| 15405 core.String kind; | 15421 core.String kind; |
| 15406 /** The snippet object contains basic details about the sponsor. */ | 15422 |
| 15423 /// The snippet object contains basic details about the sponsor. |
| 15407 SponsorSnippet snippet; | 15424 SponsorSnippet snippet; |
| 15408 | 15425 |
| 15409 Sponsor(); | 15426 Sponsor(); |
| 15410 | 15427 |
| 15411 Sponsor.fromJson(core.Map _json) { | 15428 Sponsor.fromJson(core.Map _json) { |
| 15412 if (_json.containsKey("etag")) { | 15429 if (_json.containsKey("etag")) { |
| 15413 etag = _json["etag"]; | 15430 etag = _json["etag"]; |
| 15414 } | 15431 } |
| 15415 if (_json.containsKey("id")) { | 15432 if (_json.containsKey("id")) { |
| 15416 id = _json["id"]; | 15433 id = _json["id"]; |
| 15417 } | 15434 } |
| 15418 if (_json.containsKey("kind")) { | 15435 if (_json.containsKey("kind")) { |
| 15419 kind = _json["kind"]; | 15436 kind = _json["kind"]; |
| 15420 } | 15437 } |
| 15421 if (_json.containsKey("snippet")) { | 15438 if (_json.containsKey("snippet")) { |
| 15422 snippet = new SponsorSnippet.fromJson(_json["snippet"]); | 15439 snippet = new SponsorSnippet.fromJson(_json["snippet"]); |
| 15423 } | 15440 } |
| 15424 } | 15441 } |
| 15425 | 15442 |
| 15426 core.Map<core.String, core.Object> toJson() { | 15443 core.Map<core.String, core.Object> toJson() { |
| 15427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15444 final core.Map<core.String, core.Object> _json = |
| 15445 new core.Map<core.String, core.Object>(); |
| 15428 if (etag != null) { | 15446 if (etag != null) { |
| 15429 _json["etag"] = etag; | 15447 _json["etag"] = etag; |
| 15430 } | 15448 } |
| 15431 if (id != null) { | 15449 if (id != null) { |
| 15432 _json["id"] = id; | 15450 _json["id"] = id; |
| 15433 } | 15451 } |
| 15434 if (kind != null) { | 15452 if (kind != null) { |
| 15435 _json["kind"] = kind; | 15453 _json["kind"] = kind; |
| 15436 } | 15454 } |
| 15437 if (snippet != null) { | 15455 if (snippet != null) { |
| 15438 _json["snippet"] = (snippet).toJson(); | 15456 _json["snippet"] = (snippet).toJson(); |
| 15439 } | 15457 } |
| 15440 return _json; | 15458 return _json; |
| 15441 } | 15459 } |
| 15442 } | 15460 } |
| 15443 | 15461 |
| 15444 class SponsorListResponse { | 15462 class SponsorListResponse { |
| 15445 /** Etag of this resource. */ | 15463 /// Etag of this resource. |
| 15446 core.String etag; | 15464 core.String etag; |
| 15447 /** Serialized EventId of the request which produced this response. */ | 15465 |
| 15466 /// Serialized EventId of the request which produced this response. |
| 15448 core.String eventId; | 15467 core.String eventId; |
| 15449 /** A list of sponsors that match the request criteria. */ | 15468 |
| 15469 /// A list of sponsors that match the request criteria. |
| 15450 core.List<Sponsor> items; | 15470 core.List<Sponsor> items; |
| 15451 /** | 15471 |
| 15452 * Identifies what kind of resource this is. Value: the fixed string | 15472 /// Identifies what kind of resource this is. Value: the fixed string |
| 15453 * "youtube#sponsorListResponse". | 15473 /// "youtube#sponsorListResponse". |
| 15454 */ | |
| 15455 core.String kind; | 15474 core.String kind; |
| 15456 /** | 15475 |
| 15457 * The token that can be used as the value of the pageToken parameter to | 15476 /// The token that can be used as the value of the pageToken parameter to |
| 15458 * retrieve the next page in the result set. | 15477 /// retrieve the next page in the result set. |
| 15459 */ | |
| 15460 core.String nextPageToken; | 15478 core.String nextPageToken; |
| 15461 PageInfo pageInfo; | 15479 PageInfo pageInfo; |
| 15462 TokenPagination tokenPagination; | 15480 TokenPagination tokenPagination; |
| 15463 /** The visitorId identifies the visitor. */ | 15481 |
| 15482 /// The visitorId identifies the visitor. |
| 15464 core.String visitorId; | 15483 core.String visitorId; |
| 15465 | 15484 |
| 15466 SponsorListResponse(); | 15485 SponsorListResponse(); |
| 15467 | 15486 |
| 15468 SponsorListResponse.fromJson(core.Map _json) { | 15487 SponsorListResponse.fromJson(core.Map _json) { |
| 15469 if (_json.containsKey("etag")) { | 15488 if (_json.containsKey("etag")) { |
| 15470 etag = _json["etag"]; | 15489 etag = _json["etag"]; |
| 15471 } | 15490 } |
| 15472 if (_json.containsKey("eventId")) { | 15491 if (_json.containsKey("eventId")) { |
| 15473 eventId = _json["eventId"]; | 15492 eventId = _json["eventId"]; |
| 15474 } | 15493 } |
| 15475 if (_json.containsKey("items")) { | 15494 if (_json.containsKey("items")) { |
| 15476 items = _json["items"].map((value) => new Sponsor.fromJson(value)).toList(
); | 15495 items = |
| 15496 _json["items"].map((value) => new Sponsor.fromJson(value)).toList(); |
| 15477 } | 15497 } |
| 15478 if (_json.containsKey("kind")) { | 15498 if (_json.containsKey("kind")) { |
| 15479 kind = _json["kind"]; | 15499 kind = _json["kind"]; |
| 15480 } | 15500 } |
| 15481 if (_json.containsKey("nextPageToken")) { | 15501 if (_json.containsKey("nextPageToken")) { |
| 15482 nextPageToken = _json["nextPageToken"]; | 15502 nextPageToken = _json["nextPageToken"]; |
| 15483 } | 15503 } |
| 15484 if (_json.containsKey("pageInfo")) { | 15504 if (_json.containsKey("pageInfo")) { |
| 15485 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 15505 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 15486 } | 15506 } |
| 15487 if (_json.containsKey("tokenPagination")) { | 15507 if (_json.containsKey("tokenPagination")) { |
| 15488 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 15508 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 15489 } | 15509 } |
| 15490 if (_json.containsKey("visitorId")) { | 15510 if (_json.containsKey("visitorId")) { |
| 15491 visitorId = _json["visitorId"]; | 15511 visitorId = _json["visitorId"]; |
| 15492 } | 15512 } |
| 15493 } | 15513 } |
| 15494 | 15514 |
| 15495 core.Map<core.String, core.Object> toJson() { | 15515 core.Map<core.String, core.Object> toJson() { |
| 15496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15516 final core.Map<core.String, core.Object> _json = |
| 15517 new core.Map<core.String, core.Object>(); |
| 15497 if (etag != null) { | 15518 if (etag != null) { |
| 15498 _json["etag"] = etag; | 15519 _json["etag"] = etag; |
| 15499 } | 15520 } |
| 15500 if (eventId != null) { | 15521 if (eventId != null) { |
| 15501 _json["eventId"] = eventId; | 15522 _json["eventId"] = eventId; |
| 15502 } | 15523 } |
| 15503 if (items != null) { | 15524 if (items != null) { |
| 15504 _json["items"] = items.map((value) => (value).toJson()).toList(); | 15525 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 15505 } | 15526 } |
| 15506 if (kind != null) { | 15527 if (kind != null) { |
| 15507 _json["kind"] = kind; | 15528 _json["kind"] = kind; |
| 15508 } | 15529 } |
| 15509 if (nextPageToken != null) { | 15530 if (nextPageToken != null) { |
| 15510 _json["nextPageToken"] = nextPageToken; | 15531 _json["nextPageToken"] = nextPageToken; |
| 15511 } | 15532 } |
| 15512 if (pageInfo != null) { | 15533 if (pageInfo != null) { |
| 15513 _json["pageInfo"] = (pageInfo).toJson(); | 15534 _json["pageInfo"] = (pageInfo).toJson(); |
| 15514 } | 15535 } |
| 15515 if (tokenPagination != null) { | 15536 if (tokenPagination != null) { |
| 15516 _json["tokenPagination"] = (tokenPagination).toJson(); | 15537 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 15517 } | 15538 } |
| 15518 if (visitorId != null) { | 15539 if (visitorId != null) { |
| 15519 _json["visitorId"] = visitorId; | 15540 _json["visitorId"] = visitorId; |
| 15520 } | 15541 } |
| 15521 return _json; | 15542 return _json; |
| 15522 } | 15543 } |
| 15523 } | 15544 } |
| 15524 | 15545 |
| 15525 class SponsorSnippet { | 15546 class SponsorSnippet { |
| 15526 /** The id of the channel being sponsored. */ | 15547 /// The id of the channel being sponsored. |
| 15527 core.String channelId; | 15548 core.String channelId; |
| 15528 /** Details about the sponsor. */ | 15549 |
| 15550 /// Details about the sponsor. |
| 15529 ChannelProfileDetails sponsorDetails; | 15551 ChannelProfileDetails sponsorDetails; |
| 15530 /** | 15552 |
| 15531 * The date and time when the user became a sponsor. The value is specified in | 15553 /// The date and time when the user became a sponsor. The value is specified |
| 15532 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 15554 /// in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 15533 */ | |
| 15534 core.DateTime sponsorSince; | 15555 core.DateTime sponsorSince; |
| 15535 | 15556 |
| 15536 SponsorSnippet(); | 15557 SponsorSnippet(); |
| 15537 | 15558 |
| 15538 SponsorSnippet.fromJson(core.Map _json) { | 15559 SponsorSnippet.fromJson(core.Map _json) { |
| 15539 if (_json.containsKey("channelId")) { | 15560 if (_json.containsKey("channelId")) { |
| 15540 channelId = _json["channelId"]; | 15561 channelId = _json["channelId"]; |
| 15541 } | 15562 } |
| 15542 if (_json.containsKey("sponsorDetails")) { | 15563 if (_json.containsKey("sponsorDetails")) { |
| 15543 sponsorDetails = new ChannelProfileDetails.fromJson(_json["sponsorDetails"
]); | 15564 sponsorDetails = |
| 15565 new ChannelProfileDetails.fromJson(_json["sponsorDetails"]); |
| 15544 } | 15566 } |
| 15545 if (_json.containsKey("sponsorSince")) { | 15567 if (_json.containsKey("sponsorSince")) { |
| 15546 sponsorSince = core.DateTime.parse(_json["sponsorSince"]); | 15568 sponsorSince = core.DateTime.parse(_json["sponsorSince"]); |
| 15547 } | 15569 } |
| 15548 } | 15570 } |
| 15549 | 15571 |
| 15550 core.Map<core.String, core.Object> toJson() { | 15572 core.Map<core.String, core.Object> toJson() { |
| 15551 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15573 final core.Map<core.String, core.Object> _json = |
| 15574 new core.Map<core.String, core.Object>(); |
| 15552 if (channelId != null) { | 15575 if (channelId != null) { |
| 15553 _json["channelId"] = channelId; | 15576 _json["channelId"] = channelId; |
| 15554 } | 15577 } |
| 15555 if (sponsorDetails != null) { | 15578 if (sponsorDetails != null) { |
| 15556 _json["sponsorDetails"] = (sponsorDetails).toJson(); | 15579 _json["sponsorDetails"] = (sponsorDetails).toJson(); |
| 15557 } | 15580 } |
| 15558 if (sponsorSince != null) { | 15581 if (sponsorSince != null) { |
| 15559 _json["sponsorSince"] = (sponsorSince).toIso8601String(); | 15582 _json["sponsorSince"] = (sponsorSince).toIso8601String(); |
| 15560 } | 15583 } |
| 15561 return _json; | 15584 return _json; |
| 15562 } | 15585 } |
| 15563 } | 15586 } |
| 15564 | 15587 |
| 15565 /** | 15588 /// A subscription resource contains information about a YouTube user |
| 15566 * A subscription resource contains information about a YouTube user | 15589 /// subscription. A subscription notifies a user when new videos are added to a |
| 15567 * subscription. A subscription notifies a user when new videos are added to a | 15590 /// channel or when another user takes one of several actions on YouTube, such |
| 15568 * channel or when another user takes one of several actions on YouTube, such as | 15591 /// as uploading a video, rating a video, or commenting on a video. |
| 15569 * uploading a video, rating a video, or commenting on a video. | |
| 15570 */ | |
| 15571 class Subscription { | 15592 class Subscription { |
| 15572 /** | 15593 /// The contentDetails object contains basic statistics about the |
| 15573 * The contentDetails object contains basic statistics about the subscription. | 15594 /// subscription. |
| 15574 */ | |
| 15575 SubscriptionContentDetails contentDetails; | 15595 SubscriptionContentDetails contentDetails; |
| 15576 /** Etag of this resource. */ | 15596 |
| 15597 /// Etag of this resource. |
| 15577 core.String etag; | 15598 core.String etag; |
| 15578 /** The ID that YouTube uses to uniquely identify the subscription. */ | 15599 |
| 15600 /// The ID that YouTube uses to uniquely identify the subscription. |
| 15579 core.String id; | 15601 core.String id; |
| 15580 /** | 15602 |
| 15581 * Identifies what kind of resource this is. Value: the fixed string | 15603 /// Identifies what kind of resource this is. Value: the fixed string |
| 15582 * "youtube#subscription". | 15604 /// "youtube#subscription". |
| 15583 */ | |
| 15584 core.String kind; | 15605 core.String kind; |
| 15585 /** | 15606 |
| 15586 * The snippet object contains basic details about the subscription, including | 15607 /// The snippet object contains basic details about the subscription, |
| 15587 * its title and the channel that the user subscribed to. | 15608 /// including its title and the channel that the user subscribed to. |
| 15588 */ | |
| 15589 SubscriptionSnippet snippet; | 15609 SubscriptionSnippet snippet; |
| 15590 /** | 15610 |
| 15591 * The subscriberSnippet object contains basic details about the sbuscriber. | 15611 /// The subscriberSnippet object contains basic details about the sbuscriber. |
| 15592 */ | |
| 15593 SubscriptionSubscriberSnippet subscriberSnippet; | 15612 SubscriptionSubscriberSnippet subscriberSnippet; |
| 15594 | 15613 |
| 15595 Subscription(); | 15614 Subscription(); |
| 15596 | 15615 |
| 15597 Subscription.fromJson(core.Map _json) { | 15616 Subscription.fromJson(core.Map _json) { |
| 15598 if (_json.containsKey("contentDetails")) { | 15617 if (_json.containsKey("contentDetails")) { |
| 15599 contentDetails = new SubscriptionContentDetails.fromJson(_json["contentDet
ails"]); | 15618 contentDetails = |
| 15619 new SubscriptionContentDetails.fromJson(_json["contentDetails"]); |
| 15600 } | 15620 } |
| 15601 if (_json.containsKey("etag")) { | 15621 if (_json.containsKey("etag")) { |
| 15602 etag = _json["etag"]; | 15622 etag = _json["etag"]; |
| 15603 } | 15623 } |
| 15604 if (_json.containsKey("id")) { | 15624 if (_json.containsKey("id")) { |
| 15605 id = _json["id"]; | 15625 id = _json["id"]; |
| 15606 } | 15626 } |
| 15607 if (_json.containsKey("kind")) { | 15627 if (_json.containsKey("kind")) { |
| 15608 kind = _json["kind"]; | 15628 kind = _json["kind"]; |
| 15609 } | 15629 } |
| 15610 if (_json.containsKey("snippet")) { | 15630 if (_json.containsKey("snippet")) { |
| 15611 snippet = new SubscriptionSnippet.fromJson(_json["snippet"]); | 15631 snippet = new SubscriptionSnippet.fromJson(_json["snippet"]); |
| 15612 } | 15632 } |
| 15613 if (_json.containsKey("subscriberSnippet")) { | 15633 if (_json.containsKey("subscriberSnippet")) { |
| 15614 subscriberSnippet = new SubscriptionSubscriberSnippet.fromJson(_json["subs
criberSnippet"]); | 15634 subscriberSnippet = new SubscriptionSubscriberSnippet.fromJson( |
| 15635 _json["subscriberSnippet"]); |
| 15615 } | 15636 } |
| 15616 } | 15637 } |
| 15617 | 15638 |
| 15618 core.Map<core.String, core.Object> toJson() { | 15639 core.Map<core.String, core.Object> toJson() { |
| 15619 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15640 final core.Map<core.String, core.Object> _json = |
| 15641 new core.Map<core.String, core.Object>(); |
| 15620 if (contentDetails != null) { | 15642 if (contentDetails != null) { |
| 15621 _json["contentDetails"] = (contentDetails).toJson(); | 15643 _json["contentDetails"] = (contentDetails).toJson(); |
| 15622 } | 15644 } |
| 15623 if (etag != null) { | 15645 if (etag != null) { |
| 15624 _json["etag"] = etag; | 15646 _json["etag"] = etag; |
| 15625 } | 15647 } |
| 15626 if (id != null) { | 15648 if (id != null) { |
| 15627 _json["id"] = id; | 15649 _json["id"] = id; |
| 15628 } | 15650 } |
| 15629 if (kind != null) { | 15651 if (kind != null) { |
| 15630 _json["kind"] = kind; | 15652 _json["kind"] = kind; |
| 15631 } | 15653 } |
| 15632 if (snippet != null) { | 15654 if (snippet != null) { |
| 15633 _json["snippet"] = (snippet).toJson(); | 15655 _json["snippet"] = (snippet).toJson(); |
| 15634 } | 15656 } |
| 15635 if (subscriberSnippet != null) { | 15657 if (subscriberSnippet != null) { |
| 15636 _json["subscriberSnippet"] = (subscriberSnippet).toJson(); | 15658 _json["subscriberSnippet"] = (subscriberSnippet).toJson(); |
| 15637 } | 15659 } |
| 15638 return _json; | 15660 return _json; |
| 15639 } | 15661 } |
| 15640 } | 15662 } |
| 15641 | 15663 |
| 15642 /** Details about the content to witch a subscription refers. */ | 15664 /// Details about the content to witch a subscription refers. |
| 15643 class SubscriptionContentDetails { | 15665 class SubscriptionContentDetails { |
| 15644 /** | 15666 /// The type of activity this subscription is for (only uploads, everything). |
| 15645 * The type of activity this subscription is for (only uploads, everything). | 15667 /// Possible string values are: |
| 15646 * Possible string values are: | 15668 /// - "all" |
| 15647 * - "all" | 15669 /// - "uploads" |
| 15648 * - "uploads" | |
| 15649 */ | |
| 15650 core.String activityType; | 15670 core.String activityType; |
| 15651 /** | 15671 |
| 15652 * The number of new items in the subscription since its content was last | 15672 /// The number of new items in the subscription since its content was last |
| 15653 * read. | 15673 /// read. |
| 15654 */ | |
| 15655 core.int newItemCount; | 15674 core.int newItemCount; |
| 15656 /** The approximate number of items that the subscription points to. */ | 15675 |
| 15676 /// The approximate number of items that the subscription points to. |
| 15657 core.int totalItemCount; | 15677 core.int totalItemCount; |
| 15658 | 15678 |
| 15659 SubscriptionContentDetails(); | 15679 SubscriptionContentDetails(); |
| 15660 | 15680 |
| 15661 SubscriptionContentDetails.fromJson(core.Map _json) { | 15681 SubscriptionContentDetails.fromJson(core.Map _json) { |
| 15662 if (_json.containsKey("activityType")) { | 15682 if (_json.containsKey("activityType")) { |
| 15663 activityType = _json["activityType"]; | 15683 activityType = _json["activityType"]; |
| 15664 } | 15684 } |
| 15665 if (_json.containsKey("newItemCount")) { | 15685 if (_json.containsKey("newItemCount")) { |
| 15666 newItemCount = _json["newItemCount"]; | 15686 newItemCount = _json["newItemCount"]; |
| 15667 } | 15687 } |
| 15668 if (_json.containsKey("totalItemCount")) { | 15688 if (_json.containsKey("totalItemCount")) { |
| 15669 totalItemCount = _json["totalItemCount"]; | 15689 totalItemCount = _json["totalItemCount"]; |
| 15670 } | 15690 } |
| 15671 } | 15691 } |
| 15672 | 15692 |
| 15673 core.Map<core.String, core.Object> toJson() { | 15693 core.Map<core.String, core.Object> toJson() { |
| 15674 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15694 final core.Map<core.String, core.Object> _json = |
| 15695 new core.Map<core.String, core.Object>(); |
| 15675 if (activityType != null) { | 15696 if (activityType != null) { |
| 15676 _json["activityType"] = activityType; | 15697 _json["activityType"] = activityType; |
| 15677 } | 15698 } |
| 15678 if (newItemCount != null) { | 15699 if (newItemCount != null) { |
| 15679 _json["newItemCount"] = newItemCount; | 15700 _json["newItemCount"] = newItemCount; |
| 15680 } | 15701 } |
| 15681 if (totalItemCount != null) { | 15702 if (totalItemCount != null) { |
| 15682 _json["totalItemCount"] = totalItemCount; | 15703 _json["totalItemCount"] = totalItemCount; |
| 15683 } | 15704 } |
| 15684 return _json; | 15705 return _json; |
| 15685 } | 15706 } |
| 15686 } | 15707 } |
| 15687 | 15708 |
| 15688 class SubscriptionListResponse { | 15709 class SubscriptionListResponse { |
| 15689 /** Etag of this resource. */ | 15710 /// Etag of this resource. |
| 15690 core.String etag; | 15711 core.String etag; |
| 15691 /** Serialized EventId of the request which produced this response. */ | 15712 |
| 15713 /// Serialized EventId of the request which produced this response. |
| 15692 core.String eventId; | 15714 core.String eventId; |
| 15693 /** A list of subscriptions that match the request criteria. */ | 15715 |
| 15716 /// A list of subscriptions that match the request criteria. |
| 15694 core.List<Subscription> items; | 15717 core.List<Subscription> items; |
| 15695 /** | 15718 |
| 15696 * Identifies what kind of resource this is. Value: the fixed string | 15719 /// Identifies what kind of resource this is. Value: the fixed string |
| 15697 * "youtube#subscriptionListResponse". | 15720 /// "youtube#subscriptionListResponse". |
| 15698 */ | |
| 15699 core.String kind; | 15721 core.String kind; |
| 15700 /** | 15722 |
| 15701 * The token that can be used as the value of the pageToken parameter to | 15723 /// The token that can be used as the value of the pageToken parameter to |
| 15702 * retrieve the next page in the result set. | 15724 /// retrieve the next page in the result set. |
| 15703 */ | |
| 15704 core.String nextPageToken; | 15725 core.String nextPageToken; |
| 15705 PageInfo pageInfo; | 15726 PageInfo pageInfo; |
| 15706 /** | 15727 |
| 15707 * The token that can be used as the value of the pageToken parameter to | 15728 /// The token that can be used as the value of the pageToken parameter to |
| 15708 * retrieve the previous page in the result set. | 15729 /// retrieve the previous page in the result set. |
| 15709 */ | |
| 15710 core.String prevPageToken; | 15730 core.String prevPageToken; |
| 15711 TokenPagination tokenPagination; | 15731 TokenPagination tokenPagination; |
| 15712 /** The visitorId identifies the visitor. */ | 15732 |
| 15733 /// The visitorId identifies the visitor. |
| 15713 core.String visitorId; | 15734 core.String visitorId; |
| 15714 | 15735 |
| 15715 SubscriptionListResponse(); | 15736 SubscriptionListResponse(); |
| 15716 | 15737 |
| 15717 SubscriptionListResponse.fromJson(core.Map _json) { | 15738 SubscriptionListResponse.fromJson(core.Map _json) { |
| 15718 if (_json.containsKey("etag")) { | 15739 if (_json.containsKey("etag")) { |
| 15719 etag = _json["etag"]; | 15740 etag = _json["etag"]; |
| 15720 } | 15741 } |
| 15721 if (_json.containsKey("eventId")) { | 15742 if (_json.containsKey("eventId")) { |
| 15722 eventId = _json["eventId"]; | 15743 eventId = _json["eventId"]; |
| 15723 } | 15744 } |
| 15724 if (_json.containsKey("items")) { | 15745 if (_json.containsKey("items")) { |
| 15725 items = _json["items"].map((value) => new Subscription.fromJson(value)).to
List(); | 15746 items = _json["items"] |
| 15747 .map((value) => new Subscription.fromJson(value)) |
| 15748 .toList(); |
| 15726 } | 15749 } |
| 15727 if (_json.containsKey("kind")) { | 15750 if (_json.containsKey("kind")) { |
| 15728 kind = _json["kind"]; | 15751 kind = _json["kind"]; |
| 15729 } | 15752 } |
| 15730 if (_json.containsKey("nextPageToken")) { | 15753 if (_json.containsKey("nextPageToken")) { |
| 15731 nextPageToken = _json["nextPageToken"]; | 15754 nextPageToken = _json["nextPageToken"]; |
| 15732 } | 15755 } |
| 15733 if (_json.containsKey("pageInfo")) { | 15756 if (_json.containsKey("pageInfo")) { |
| 15734 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 15757 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 15735 } | 15758 } |
| 15736 if (_json.containsKey("prevPageToken")) { | 15759 if (_json.containsKey("prevPageToken")) { |
| 15737 prevPageToken = _json["prevPageToken"]; | 15760 prevPageToken = _json["prevPageToken"]; |
| 15738 } | 15761 } |
| 15739 if (_json.containsKey("tokenPagination")) { | 15762 if (_json.containsKey("tokenPagination")) { |
| 15740 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 15763 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 15741 } | 15764 } |
| 15742 if (_json.containsKey("visitorId")) { | 15765 if (_json.containsKey("visitorId")) { |
| 15743 visitorId = _json["visitorId"]; | 15766 visitorId = _json["visitorId"]; |
| 15744 } | 15767 } |
| 15745 } | 15768 } |
| 15746 | 15769 |
| 15747 core.Map<core.String, core.Object> toJson() { | 15770 core.Map<core.String, core.Object> toJson() { |
| 15748 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15771 final core.Map<core.String, core.Object> _json = |
| 15772 new core.Map<core.String, core.Object>(); |
| 15749 if (etag != null) { | 15773 if (etag != null) { |
| 15750 _json["etag"] = etag; | 15774 _json["etag"] = etag; |
| 15751 } | 15775 } |
| 15752 if (eventId != null) { | 15776 if (eventId != null) { |
| 15753 _json["eventId"] = eventId; | 15777 _json["eventId"] = eventId; |
| 15754 } | 15778 } |
| 15755 if (items != null) { | 15779 if (items != null) { |
| 15756 _json["items"] = items.map((value) => (value).toJson()).toList(); | 15780 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 15757 } | 15781 } |
| 15758 if (kind != null) { | 15782 if (kind != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 15770 if (tokenPagination != null) { | 15794 if (tokenPagination != null) { |
| 15771 _json["tokenPagination"] = (tokenPagination).toJson(); | 15795 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 15772 } | 15796 } |
| 15773 if (visitorId != null) { | 15797 if (visitorId != null) { |
| 15774 _json["visitorId"] = visitorId; | 15798 _json["visitorId"] = visitorId; |
| 15775 } | 15799 } |
| 15776 return _json; | 15800 return _json; |
| 15777 } | 15801 } |
| 15778 } | 15802 } |
| 15779 | 15803 |
| 15780 /** | 15804 /// Basic details about a subscription, including title, description and |
| 15781 * Basic details about a subscription, including title, description and | 15805 /// thumbnails of the subscribed item. |
| 15782 * thumbnails of the subscribed item. | |
| 15783 */ | |
| 15784 class SubscriptionSnippet { | 15806 class SubscriptionSnippet { |
| 15785 /** | 15807 /// The ID that YouTube uses to uniquely identify the subscriber's channel. |
| 15786 * The ID that YouTube uses to uniquely identify the subscriber's channel. | |
| 15787 */ | |
| 15788 core.String channelId; | 15808 core.String channelId; |
| 15789 /** Channel title for the channel that the subscription belongs to. */ | 15809 |
| 15810 /// Channel title for the channel that the subscription belongs to. |
| 15790 core.String channelTitle; | 15811 core.String channelTitle; |
| 15791 /** The subscription's details. */ | 15812 |
| 15813 /// The subscription's details. |
| 15792 core.String description; | 15814 core.String description; |
| 15793 /** | 15815 |
| 15794 * The date and time that the subscription was created. The value is specified | 15816 /// The date and time that the subscription was created. The value is |
| 15795 * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 15817 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 15796 */ | |
| 15797 core.DateTime publishedAt; | 15818 core.DateTime publishedAt; |
| 15798 /** | 15819 |
| 15799 * The id object contains information about the channel that the user | 15820 /// The id object contains information about the channel that the user |
| 15800 * subscribed to. | 15821 /// subscribed to. |
| 15801 */ | |
| 15802 ResourceId resourceId; | 15822 ResourceId resourceId; |
| 15803 /** | 15823 |
| 15804 * A map of thumbnail images associated with the video. For each object in the | 15824 /// A map of thumbnail images associated with the video. For each object in |
| 15805 * map, the key is the name of the thumbnail image, and the value is an object | 15825 /// the map, the key is the name of the thumbnail image, and the value is an |
| 15806 * that contains other information about the thumbnail. | 15826 /// object that contains other information about the thumbnail. |
| 15807 */ | |
| 15808 ThumbnailDetails thumbnails; | 15827 ThumbnailDetails thumbnails; |
| 15809 /** The subscription's title. */ | 15828 |
| 15829 /// The subscription's title. |
| 15810 core.String title; | 15830 core.String title; |
| 15811 | 15831 |
| 15812 SubscriptionSnippet(); | 15832 SubscriptionSnippet(); |
| 15813 | 15833 |
| 15814 SubscriptionSnippet.fromJson(core.Map _json) { | 15834 SubscriptionSnippet.fromJson(core.Map _json) { |
| 15815 if (_json.containsKey("channelId")) { | 15835 if (_json.containsKey("channelId")) { |
| 15816 channelId = _json["channelId"]; | 15836 channelId = _json["channelId"]; |
| 15817 } | 15837 } |
| 15818 if (_json.containsKey("channelTitle")) { | 15838 if (_json.containsKey("channelTitle")) { |
| 15819 channelTitle = _json["channelTitle"]; | 15839 channelTitle = _json["channelTitle"]; |
| 15820 } | 15840 } |
| 15821 if (_json.containsKey("description")) { | 15841 if (_json.containsKey("description")) { |
| 15822 description = _json["description"]; | 15842 description = _json["description"]; |
| 15823 } | 15843 } |
| 15824 if (_json.containsKey("publishedAt")) { | 15844 if (_json.containsKey("publishedAt")) { |
| 15825 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 15845 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
| 15826 } | 15846 } |
| 15827 if (_json.containsKey("resourceId")) { | 15847 if (_json.containsKey("resourceId")) { |
| 15828 resourceId = new ResourceId.fromJson(_json["resourceId"]); | 15848 resourceId = new ResourceId.fromJson(_json["resourceId"]); |
| 15829 } | 15849 } |
| 15830 if (_json.containsKey("thumbnails")) { | 15850 if (_json.containsKey("thumbnails")) { |
| 15831 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 15851 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
| 15832 } | 15852 } |
| 15833 if (_json.containsKey("title")) { | 15853 if (_json.containsKey("title")) { |
| 15834 title = _json["title"]; | 15854 title = _json["title"]; |
| 15835 } | 15855 } |
| 15836 } | 15856 } |
| 15837 | 15857 |
| 15838 core.Map<core.String, core.Object> toJson() { | 15858 core.Map<core.String, core.Object> toJson() { |
| 15839 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15859 final core.Map<core.String, core.Object> _json = |
| 15860 new core.Map<core.String, core.Object>(); |
| 15840 if (channelId != null) { | 15861 if (channelId != null) { |
| 15841 _json["channelId"] = channelId; | 15862 _json["channelId"] = channelId; |
| 15842 } | 15863 } |
| 15843 if (channelTitle != null) { | 15864 if (channelTitle != null) { |
| 15844 _json["channelTitle"] = channelTitle; | 15865 _json["channelTitle"] = channelTitle; |
| 15845 } | 15866 } |
| 15846 if (description != null) { | 15867 if (description != null) { |
| 15847 _json["description"] = description; | 15868 _json["description"] = description; |
| 15848 } | 15869 } |
| 15849 if (publishedAt != null) { | 15870 if (publishedAt != null) { |
| 15850 _json["publishedAt"] = (publishedAt).toIso8601String(); | 15871 _json["publishedAt"] = (publishedAt).toIso8601String(); |
| 15851 } | 15872 } |
| 15852 if (resourceId != null) { | 15873 if (resourceId != null) { |
| 15853 _json["resourceId"] = (resourceId).toJson(); | 15874 _json["resourceId"] = (resourceId).toJson(); |
| 15854 } | 15875 } |
| 15855 if (thumbnails != null) { | 15876 if (thumbnails != null) { |
| 15856 _json["thumbnails"] = (thumbnails).toJson(); | 15877 _json["thumbnails"] = (thumbnails).toJson(); |
| 15857 } | 15878 } |
| 15858 if (title != null) { | 15879 if (title != null) { |
| 15859 _json["title"] = title; | 15880 _json["title"] = title; |
| 15860 } | 15881 } |
| 15861 return _json; | 15882 return _json; |
| 15862 } | 15883 } |
| 15863 } | 15884 } |
| 15864 | 15885 |
| 15865 /** | 15886 /// Basic details about a subscription's subscriber including title, |
| 15866 * Basic details about a subscription's subscriber including title, description, | 15887 /// description, channel ID and thumbnails. |
| 15867 * channel ID and thumbnails. | |
| 15868 */ | |
| 15869 class SubscriptionSubscriberSnippet { | 15888 class SubscriptionSubscriberSnippet { |
| 15870 /** The channel ID of the subscriber. */ | 15889 /// The channel ID of the subscriber. |
| 15871 core.String channelId; | 15890 core.String channelId; |
| 15872 /** The description of the subscriber. */ | 15891 |
| 15892 /// The description of the subscriber. |
| 15873 core.String description; | 15893 core.String description; |
| 15874 /** Thumbnails for this subscriber. */ | 15894 |
| 15895 /// Thumbnails for this subscriber. |
| 15875 ThumbnailDetails thumbnails; | 15896 ThumbnailDetails thumbnails; |
| 15876 /** The title of the subscriber. */ | 15897 |
| 15898 /// The title of the subscriber. |
| 15877 core.String title; | 15899 core.String title; |
| 15878 | 15900 |
| 15879 SubscriptionSubscriberSnippet(); | 15901 SubscriptionSubscriberSnippet(); |
| 15880 | 15902 |
| 15881 SubscriptionSubscriberSnippet.fromJson(core.Map _json) { | 15903 SubscriptionSubscriberSnippet.fromJson(core.Map _json) { |
| 15882 if (_json.containsKey("channelId")) { | 15904 if (_json.containsKey("channelId")) { |
| 15883 channelId = _json["channelId"]; | 15905 channelId = _json["channelId"]; |
| 15884 } | 15906 } |
| 15885 if (_json.containsKey("description")) { | 15907 if (_json.containsKey("description")) { |
| 15886 description = _json["description"]; | 15908 description = _json["description"]; |
| 15887 } | 15909 } |
| 15888 if (_json.containsKey("thumbnails")) { | 15910 if (_json.containsKey("thumbnails")) { |
| 15889 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 15911 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
| 15890 } | 15912 } |
| 15891 if (_json.containsKey("title")) { | 15913 if (_json.containsKey("title")) { |
| 15892 title = _json["title"]; | 15914 title = _json["title"]; |
| 15893 } | 15915 } |
| 15894 } | 15916 } |
| 15895 | 15917 |
| 15896 core.Map<core.String, core.Object> toJson() { | 15918 core.Map<core.String, core.Object> toJson() { |
| 15897 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15919 final core.Map<core.String, core.Object> _json = |
| 15920 new core.Map<core.String, core.Object>(); |
| 15898 if (channelId != null) { | 15921 if (channelId != null) { |
| 15899 _json["channelId"] = channelId; | 15922 _json["channelId"] = channelId; |
| 15900 } | 15923 } |
| 15901 if (description != null) { | 15924 if (description != null) { |
| 15902 _json["description"] = description; | 15925 _json["description"] = description; |
| 15903 } | 15926 } |
| 15904 if (thumbnails != null) { | 15927 if (thumbnails != null) { |
| 15905 _json["thumbnails"] = (thumbnails).toJson(); | 15928 _json["thumbnails"] = (thumbnails).toJson(); |
| 15906 } | 15929 } |
| 15907 if (title != null) { | 15930 if (title != null) { |
| 15908 _json["title"] = title; | 15931 _json["title"] = title; |
| 15909 } | 15932 } |
| 15910 return _json; | 15933 return _json; |
| 15911 } | 15934 } |
| 15912 } | 15935 } |
| 15913 | 15936 |
| 15914 /** | 15937 /// A superChatEvent resource represents a Super Chat purchase on a YouTube |
| 15915 * A superChatEvent resource represents a Super Chat purchase on a YouTube | 15938 /// channel. |
| 15916 * channel. | |
| 15917 */ | |
| 15918 class SuperChatEvent { | 15939 class SuperChatEvent { |
| 15919 /** Etag of this resource. */ | 15940 /// Etag of this resource. |
| 15920 core.String etag; | 15941 core.String etag; |
| 15921 /** The ID that YouTube assigns to uniquely identify the Super Chat event. */ | 15942 |
| 15943 /// The ID that YouTube assigns to uniquely identify the Super Chat event. |
| 15922 core.String id; | 15944 core.String id; |
| 15923 /** | 15945 |
| 15924 * Identifies what kind of resource this is. Value: the fixed string | 15946 /// Identifies what kind of resource this is. Value: the fixed string |
| 15925 * "youtube#superChatEvent". | 15947 /// "youtube#superChatEvent". |
| 15926 */ | |
| 15927 core.String kind; | 15948 core.String kind; |
| 15928 /** The snippet object contains basic details about the Super Chat event. */ | 15949 |
| 15950 /// The snippet object contains basic details about the Super Chat event. |
| 15929 SuperChatEventSnippet snippet; | 15951 SuperChatEventSnippet snippet; |
| 15930 | 15952 |
| 15931 SuperChatEvent(); | 15953 SuperChatEvent(); |
| 15932 | 15954 |
| 15933 SuperChatEvent.fromJson(core.Map _json) { | 15955 SuperChatEvent.fromJson(core.Map _json) { |
| 15934 if (_json.containsKey("etag")) { | 15956 if (_json.containsKey("etag")) { |
| 15935 etag = _json["etag"]; | 15957 etag = _json["etag"]; |
| 15936 } | 15958 } |
| 15937 if (_json.containsKey("id")) { | 15959 if (_json.containsKey("id")) { |
| 15938 id = _json["id"]; | 15960 id = _json["id"]; |
| 15939 } | 15961 } |
| 15940 if (_json.containsKey("kind")) { | 15962 if (_json.containsKey("kind")) { |
| 15941 kind = _json["kind"]; | 15963 kind = _json["kind"]; |
| 15942 } | 15964 } |
| 15943 if (_json.containsKey("snippet")) { | 15965 if (_json.containsKey("snippet")) { |
| 15944 snippet = new SuperChatEventSnippet.fromJson(_json["snippet"]); | 15966 snippet = new SuperChatEventSnippet.fromJson(_json["snippet"]); |
| 15945 } | 15967 } |
| 15946 } | 15968 } |
| 15947 | 15969 |
| 15948 core.Map<core.String, core.Object> toJson() { | 15970 core.Map<core.String, core.Object> toJson() { |
| 15949 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 15971 final core.Map<core.String, core.Object> _json = |
| 15972 new core.Map<core.String, core.Object>(); |
| 15950 if (etag != null) { | 15973 if (etag != null) { |
| 15951 _json["etag"] = etag; | 15974 _json["etag"] = etag; |
| 15952 } | 15975 } |
| 15953 if (id != null) { | 15976 if (id != null) { |
| 15954 _json["id"] = id; | 15977 _json["id"] = id; |
| 15955 } | 15978 } |
| 15956 if (kind != null) { | 15979 if (kind != null) { |
| 15957 _json["kind"] = kind; | 15980 _json["kind"] = kind; |
| 15958 } | 15981 } |
| 15959 if (snippet != null) { | 15982 if (snippet != null) { |
| 15960 _json["snippet"] = (snippet).toJson(); | 15983 _json["snippet"] = (snippet).toJson(); |
| 15961 } | 15984 } |
| 15962 return _json; | 15985 return _json; |
| 15963 } | 15986 } |
| 15964 } | 15987 } |
| 15965 | 15988 |
| 15966 class SuperChatEventListResponse { | 15989 class SuperChatEventListResponse { |
| 15967 /** Etag of this resource. */ | 15990 /// Etag of this resource. |
| 15968 core.String etag; | 15991 core.String etag; |
| 15969 /** Serialized EventId of the request which produced this response. */ | 15992 |
| 15993 /// Serialized EventId of the request which produced this response. |
| 15970 core.String eventId; | 15994 core.String eventId; |
| 15971 /** A list of Super Chat purchases that match the request criteria. */ | 15995 |
| 15996 /// A list of Super Chat purchases that match the request criteria. |
| 15972 core.List<SuperChatEvent> items; | 15997 core.List<SuperChatEvent> items; |
| 15973 /** | 15998 |
| 15974 * Identifies what kind of resource this is. Value: the fixed string | 15999 /// Identifies what kind of resource this is. Value: the fixed string |
| 15975 * "youtube#superChatEventListResponse". | 16000 /// "youtube#superChatEventListResponse". |
| 15976 */ | |
| 15977 core.String kind; | 16001 core.String kind; |
| 15978 /** | 16002 |
| 15979 * The token that can be used as the value of the pageToken parameter to | 16003 /// The token that can be used as the value of the pageToken parameter to |
| 15980 * retrieve the next page in the result set. | 16004 /// retrieve the next page in the result set. |
| 15981 */ | |
| 15982 core.String nextPageToken; | 16005 core.String nextPageToken; |
| 15983 PageInfo pageInfo; | 16006 PageInfo pageInfo; |
| 15984 TokenPagination tokenPagination; | 16007 TokenPagination tokenPagination; |
| 15985 /** The visitorId identifies the visitor. */ | 16008 |
| 16009 /// The visitorId identifies the visitor. |
| 15986 core.String visitorId; | 16010 core.String visitorId; |
| 15987 | 16011 |
| 15988 SuperChatEventListResponse(); | 16012 SuperChatEventListResponse(); |
| 15989 | 16013 |
| 15990 SuperChatEventListResponse.fromJson(core.Map _json) { | 16014 SuperChatEventListResponse.fromJson(core.Map _json) { |
| 15991 if (_json.containsKey("etag")) { | 16015 if (_json.containsKey("etag")) { |
| 15992 etag = _json["etag"]; | 16016 etag = _json["etag"]; |
| 15993 } | 16017 } |
| 15994 if (_json.containsKey("eventId")) { | 16018 if (_json.containsKey("eventId")) { |
| 15995 eventId = _json["eventId"]; | 16019 eventId = _json["eventId"]; |
| 15996 } | 16020 } |
| 15997 if (_json.containsKey("items")) { | 16021 if (_json.containsKey("items")) { |
| 15998 items = _json["items"].map((value) => new SuperChatEvent.fromJson(value)).
toList(); | 16022 items = _json["items"] |
| 16023 .map((value) => new SuperChatEvent.fromJson(value)) |
| 16024 .toList(); |
| 15999 } | 16025 } |
| 16000 if (_json.containsKey("kind")) { | 16026 if (_json.containsKey("kind")) { |
| 16001 kind = _json["kind"]; | 16027 kind = _json["kind"]; |
| 16002 } | 16028 } |
| 16003 if (_json.containsKey("nextPageToken")) { | 16029 if (_json.containsKey("nextPageToken")) { |
| 16004 nextPageToken = _json["nextPageToken"]; | 16030 nextPageToken = _json["nextPageToken"]; |
| 16005 } | 16031 } |
| 16006 if (_json.containsKey("pageInfo")) { | 16032 if (_json.containsKey("pageInfo")) { |
| 16007 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 16033 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 16008 } | 16034 } |
| 16009 if (_json.containsKey("tokenPagination")) { | 16035 if (_json.containsKey("tokenPagination")) { |
| 16010 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 16036 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 16011 } | 16037 } |
| 16012 if (_json.containsKey("visitorId")) { | 16038 if (_json.containsKey("visitorId")) { |
| 16013 visitorId = _json["visitorId"]; | 16039 visitorId = _json["visitorId"]; |
| 16014 } | 16040 } |
| 16015 } | 16041 } |
| 16016 | 16042 |
| 16017 core.Map<core.String, core.Object> toJson() { | 16043 core.Map<core.String, core.Object> toJson() { |
| 16018 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16044 final core.Map<core.String, core.Object> _json = |
| 16045 new core.Map<core.String, core.Object>(); |
| 16019 if (etag != null) { | 16046 if (etag != null) { |
| 16020 _json["etag"] = etag; | 16047 _json["etag"] = etag; |
| 16021 } | 16048 } |
| 16022 if (eventId != null) { | 16049 if (eventId != null) { |
| 16023 _json["eventId"] = eventId; | 16050 _json["eventId"] = eventId; |
| 16024 } | 16051 } |
| 16025 if (items != null) { | 16052 if (items != null) { |
| 16026 _json["items"] = items.map((value) => (value).toJson()).toList(); | 16053 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 16027 } | 16054 } |
| 16028 if (kind != null) { | 16055 if (kind != null) { |
| 16029 _json["kind"] = kind; | 16056 _json["kind"] = kind; |
| 16030 } | 16057 } |
| 16031 if (nextPageToken != null) { | 16058 if (nextPageToken != null) { |
| 16032 _json["nextPageToken"] = nextPageToken; | 16059 _json["nextPageToken"] = nextPageToken; |
| 16033 } | 16060 } |
| 16034 if (pageInfo != null) { | 16061 if (pageInfo != null) { |
| 16035 _json["pageInfo"] = (pageInfo).toJson(); | 16062 _json["pageInfo"] = (pageInfo).toJson(); |
| 16036 } | 16063 } |
| 16037 if (tokenPagination != null) { | 16064 if (tokenPagination != null) { |
| 16038 _json["tokenPagination"] = (tokenPagination).toJson(); | 16065 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 16039 } | 16066 } |
| 16040 if (visitorId != null) { | 16067 if (visitorId != null) { |
| 16041 _json["visitorId"] = visitorId; | 16068 _json["visitorId"] = visitorId; |
| 16042 } | 16069 } |
| 16043 return _json; | 16070 return _json; |
| 16044 } | 16071 } |
| 16045 } | 16072 } |
| 16046 | 16073 |
| 16047 class SuperChatEventSnippet { | 16074 class SuperChatEventSnippet { |
| 16048 /** | 16075 /// The purchase amount, in micros of the purchase currency. e.g., 1 is |
| 16049 * The purchase amount, in micros of the purchase currency. e.g., 1 is | 16076 /// represented as 1000000. |
| 16050 * represented as 1000000. | |
| 16051 */ | |
| 16052 core.String amountMicros; | 16077 core.String amountMicros; |
| 16053 /** Channel id where the event occurred. */ | 16078 |
| 16079 /// Channel id where the event occurred. |
| 16054 core.String channelId; | 16080 core.String channelId; |
| 16055 /** The text contents of the comment left by the user. */ | 16081 |
| 16082 /// The text contents of the comment left by the user. |
| 16056 core.String commentText; | 16083 core.String commentText; |
| 16057 /** | 16084 |
| 16058 * The date and time when the event occurred. The value is specified in ISO | 16085 /// The date and time when the event occurred. The value is specified in ISO |
| 16059 * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 16086 /// 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 16060 */ | |
| 16061 core.DateTime createdAt; | 16087 core.DateTime createdAt; |
| 16062 /** The currency in which the purchase was made. ISO 4217. */ | 16088 |
| 16089 /// The currency in which the purchase was made. ISO 4217. |
| 16063 core.String currency; | 16090 core.String currency; |
| 16064 /** | 16091 |
| 16065 * A rendered string that displays the purchase amount and currency (e.g., | 16092 /// A rendered string that displays the purchase amount and currency (e.g., |
| 16066 * "$1.00"). The string is rendered for the given language. | 16093 /// "$1.00"). The string is rendered for the given language. |
| 16067 */ | |
| 16068 core.String displayString; | 16094 core.String displayString; |
| 16069 /** | 16095 |
| 16070 * The tier for the paid message, which is based on the amount of money spent | 16096 /// The tier for the paid message, which is based on the amount of money |
| 16071 * to purchase the message. | 16097 /// spent to purchase the message. |
| 16072 */ | |
| 16073 core.int messageType; | 16098 core.int messageType; |
| 16074 /** Details about the supporter. */ | 16099 |
| 16100 /// Details about the supporter. |
| 16075 ChannelProfileDetails supporterDetails; | 16101 ChannelProfileDetails supporterDetails; |
| 16076 | 16102 |
| 16077 SuperChatEventSnippet(); | 16103 SuperChatEventSnippet(); |
| 16078 | 16104 |
| 16079 SuperChatEventSnippet.fromJson(core.Map _json) { | 16105 SuperChatEventSnippet.fromJson(core.Map _json) { |
| 16080 if (_json.containsKey("amountMicros")) { | 16106 if (_json.containsKey("amountMicros")) { |
| 16081 amountMicros = _json["amountMicros"]; | 16107 amountMicros = _json["amountMicros"]; |
| 16082 } | 16108 } |
| 16083 if (_json.containsKey("channelId")) { | 16109 if (_json.containsKey("channelId")) { |
| 16084 channelId = _json["channelId"]; | 16110 channelId = _json["channelId"]; |
| 16085 } | 16111 } |
| 16086 if (_json.containsKey("commentText")) { | 16112 if (_json.containsKey("commentText")) { |
| 16087 commentText = _json["commentText"]; | 16113 commentText = _json["commentText"]; |
| 16088 } | 16114 } |
| 16089 if (_json.containsKey("createdAt")) { | 16115 if (_json.containsKey("createdAt")) { |
| 16090 createdAt = core.DateTime.parse(_json["createdAt"]); | 16116 createdAt = core.DateTime.parse(_json["createdAt"]); |
| 16091 } | 16117 } |
| 16092 if (_json.containsKey("currency")) { | 16118 if (_json.containsKey("currency")) { |
| 16093 currency = _json["currency"]; | 16119 currency = _json["currency"]; |
| 16094 } | 16120 } |
| 16095 if (_json.containsKey("displayString")) { | 16121 if (_json.containsKey("displayString")) { |
| 16096 displayString = _json["displayString"]; | 16122 displayString = _json["displayString"]; |
| 16097 } | 16123 } |
| 16098 if (_json.containsKey("messageType")) { | 16124 if (_json.containsKey("messageType")) { |
| 16099 messageType = _json["messageType"]; | 16125 messageType = _json["messageType"]; |
| 16100 } | 16126 } |
| 16101 if (_json.containsKey("supporterDetails")) { | 16127 if (_json.containsKey("supporterDetails")) { |
| 16102 supporterDetails = new ChannelProfileDetails.fromJson(_json["supporterDeta
ils"]); | 16128 supporterDetails = |
| 16129 new ChannelProfileDetails.fromJson(_json["supporterDetails"]); |
| 16103 } | 16130 } |
| 16104 } | 16131 } |
| 16105 | 16132 |
| 16106 core.Map<core.String, core.Object> toJson() { | 16133 core.Map<core.String, core.Object> toJson() { |
| 16107 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16134 final core.Map<core.String, core.Object> _json = |
| 16135 new core.Map<core.String, core.Object>(); |
| 16108 if (amountMicros != null) { | 16136 if (amountMicros != null) { |
| 16109 _json["amountMicros"] = amountMicros; | 16137 _json["amountMicros"] = amountMicros; |
| 16110 } | 16138 } |
| 16111 if (channelId != null) { | 16139 if (channelId != null) { |
| 16112 _json["channelId"] = channelId; | 16140 _json["channelId"] = channelId; |
| 16113 } | 16141 } |
| 16114 if (commentText != null) { | 16142 if (commentText != null) { |
| 16115 _json["commentText"] = commentText; | 16143 _json["commentText"] = commentText; |
| 16116 } | 16144 } |
| 16117 if (createdAt != null) { | 16145 if (createdAt != null) { |
| 16118 _json["createdAt"] = (createdAt).toIso8601String(); | 16146 _json["createdAt"] = (createdAt).toIso8601String(); |
| 16119 } | 16147 } |
| 16120 if (currency != null) { | 16148 if (currency != null) { |
| 16121 _json["currency"] = currency; | 16149 _json["currency"] = currency; |
| 16122 } | 16150 } |
| 16123 if (displayString != null) { | 16151 if (displayString != null) { |
| 16124 _json["displayString"] = displayString; | 16152 _json["displayString"] = displayString; |
| 16125 } | 16153 } |
| 16126 if (messageType != null) { | 16154 if (messageType != null) { |
| 16127 _json["messageType"] = messageType; | 16155 _json["messageType"] = messageType; |
| 16128 } | 16156 } |
| 16129 if (supporterDetails != null) { | 16157 if (supporterDetails != null) { |
| 16130 _json["supporterDetails"] = (supporterDetails).toJson(); | 16158 _json["supporterDetails"] = (supporterDetails).toJson(); |
| 16131 } | 16159 } |
| 16132 return _json; | 16160 return _json; |
| 16133 } | 16161 } |
| 16134 } | 16162 } |
| 16135 | 16163 |
| 16136 /** A thumbnail is an image representing a YouTube resource. */ | 16164 /// A thumbnail is an image representing a YouTube resource. |
| 16137 class Thumbnail { | 16165 class Thumbnail { |
| 16138 /** (Optional) Height of the thumbnail image. */ | 16166 /// (Optional) Height of the thumbnail image. |
| 16139 core.int height; | 16167 core.int height; |
| 16140 /** The thumbnail image's URL. */ | 16168 |
| 16169 /// The thumbnail image's URL. |
| 16141 core.String url; | 16170 core.String url; |
| 16142 /** (Optional) Width of the thumbnail image. */ | 16171 |
| 16172 /// (Optional) Width of the thumbnail image. |
| 16143 core.int width; | 16173 core.int width; |
| 16144 | 16174 |
| 16145 Thumbnail(); | 16175 Thumbnail(); |
| 16146 | 16176 |
| 16147 Thumbnail.fromJson(core.Map _json) { | 16177 Thumbnail.fromJson(core.Map _json) { |
| 16148 if (_json.containsKey("height")) { | 16178 if (_json.containsKey("height")) { |
| 16149 height = _json["height"]; | 16179 height = _json["height"]; |
| 16150 } | 16180 } |
| 16151 if (_json.containsKey("url")) { | 16181 if (_json.containsKey("url")) { |
| 16152 url = _json["url"]; | 16182 url = _json["url"]; |
| 16153 } | 16183 } |
| 16154 if (_json.containsKey("width")) { | 16184 if (_json.containsKey("width")) { |
| 16155 width = _json["width"]; | 16185 width = _json["width"]; |
| 16156 } | 16186 } |
| 16157 } | 16187 } |
| 16158 | 16188 |
| 16159 core.Map<core.String, core.Object> toJson() { | 16189 core.Map<core.String, core.Object> toJson() { |
| 16160 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16190 final core.Map<core.String, core.Object> _json = |
| 16191 new core.Map<core.String, core.Object>(); |
| 16161 if (height != null) { | 16192 if (height != null) { |
| 16162 _json["height"] = height; | 16193 _json["height"] = height; |
| 16163 } | 16194 } |
| 16164 if (url != null) { | 16195 if (url != null) { |
| 16165 _json["url"] = url; | 16196 _json["url"] = url; |
| 16166 } | 16197 } |
| 16167 if (width != null) { | 16198 if (width != null) { |
| 16168 _json["width"] = width; | 16199 _json["width"] = width; |
| 16169 } | 16200 } |
| 16170 return _json; | 16201 return _json; |
| 16171 } | 16202 } |
| 16172 } | 16203 } |
| 16173 | 16204 |
| 16174 /** Internal representation of thumbnails for a YouTube resource. */ | 16205 /// Internal representation of thumbnails for a YouTube resource. |
| 16175 class ThumbnailDetails { | 16206 class ThumbnailDetails { |
| 16176 /** The default image for this resource. */ | 16207 /// The default image for this resource. |
| 16177 Thumbnail default_; | 16208 Thumbnail default_; |
| 16178 /** The high quality image for this resource. */ | 16209 |
| 16210 /// The high quality image for this resource. |
| 16179 Thumbnail high; | 16211 Thumbnail high; |
| 16180 /** The maximum resolution quality image for this resource. */ | 16212 |
| 16213 /// The maximum resolution quality image for this resource. |
| 16181 Thumbnail maxres; | 16214 Thumbnail maxres; |
| 16182 /** The medium quality image for this resource. */ | 16215 |
| 16216 /// The medium quality image for this resource. |
| 16183 Thumbnail medium; | 16217 Thumbnail medium; |
| 16184 /** The standard quality image for this resource. */ | 16218 |
| 16219 /// The standard quality image for this resource. |
| 16185 Thumbnail standard; | 16220 Thumbnail standard; |
| 16186 | 16221 |
| 16187 ThumbnailDetails(); | 16222 ThumbnailDetails(); |
| 16188 | 16223 |
| 16189 ThumbnailDetails.fromJson(core.Map _json) { | 16224 ThumbnailDetails.fromJson(core.Map _json) { |
| 16190 if (_json.containsKey("default")) { | 16225 if (_json.containsKey("default")) { |
| 16191 default_ = new Thumbnail.fromJson(_json["default"]); | 16226 default_ = new Thumbnail.fromJson(_json["default"]); |
| 16192 } | 16227 } |
| 16193 if (_json.containsKey("high")) { | 16228 if (_json.containsKey("high")) { |
| 16194 high = new Thumbnail.fromJson(_json["high"]); | 16229 high = new Thumbnail.fromJson(_json["high"]); |
| 16195 } | 16230 } |
| 16196 if (_json.containsKey("maxres")) { | 16231 if (_json.containsKey("maxres")) { |
| 16197 maxres = new Thumbnail.fromJson(_json["maxres"]); | 16232 maxres = new Thumbnail.fromJson(_json["maxres"]); |
| 16198 } | 16233 } |
| 16199 if (_json.containsKey("medium")) { | 16234 if (_json.containsKey("medium")) { |
| 16200 medium = new Thumbnail.fromJson(_json["medium"]); | 16235 medium = new Thumbnail.fromJson(_json["medium"]); |
| 16201 } | 16236 } |
| 16202 if (_json.containsKey("standard")) { | 16237 if (_json.containsKey("standard")) { |
| 16203 standard = new Thumbnail.fromJson(_json["standard"]); | 16238 standard = new Thumbnail.fromJson(_json["standard"]); |
| 16204 } | 16239 } |
| 16205 } | 16240 } |
| 16206 | 16241 |
| 16207 core.Map<core.String, core.Object> toJson() { | 16242 core.Map<core.String, core.Object> toJson() { |
| 16208 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16243 final core.Map<core.String, core.Object> _json = |
| 16244 new core.Map<core.String, core.Object>(); |
| 16209 if (default_ != null) { | 16245 if (default_ != null) { |
| 16210 _json["default"] = (default_).toJson(); | 16246 _json["default"] = (default_).toJson(); |
| 16211 } | 16247 } |
| 16212 if (high != null) { | 16248 if (high != null) { |
| 16213 _json["high"] = (high).toJson(); | 16249 _json["high"] = (high).toJson(); |
| 16214 } | 16250 } |
| 16215 if (maxres != null) { | 16251 if (maxres != null) { |
| 16216 _json["maxres"] = (maxres).toJson(); | 16252 _json["maxres"] = (maxres).toJson(); |
| 16217 } | 16253 } |
| 16218 if (medium != null) { | 16254 if (medium != null) { |
| 16219 _json["medium"] = (medium).toJson(); | 16255 _json["medium"] = (medium).toJson(); |
| 16220 } | 16256 } |
| 16221 if (standard != null) { | 16257 if (standard != null) { |
| 16222 _json["standard"] = (standard).toJson(); | 16258 _json["standard"] = (standard).toJson(); |
| 16223 } | 16259 } |
| 16224 return _json; | 16260 return _json; |
| 16225 } | 16261 } |
| 16226 } | 16262 } |
| 16227 | 16263 |
| 16228 class ThumbnailSetResponse { | 16264 class ThumbnailSetResponse { |
| 16229 /** Etag of this resource. */ | 16265 /// Etag of this resource. |
| 16230 core.String etag; | 16266 core.String etag; |
| 16231 /** Serialized EventId of the request which produced this response. */ | 16267 |
| 16268 /// Serialized EventId of the request which produced this response. |
| 16232 core.String eventId; | 16269 core.String eventId; |
| 16233 /** A list of thumbnails. */ | 16270 |
| 16271 /// A list of thumbnails. |
| 16234 core.List<ThumbnailDetails> items; | 16272 core.List<ThumbnailDetails> items; |
| 16235 /** | 16273 |
| 16236 * Identifies what kind of resource this is. Value: the fixed string | 16274 /// Identifies what kind of resource this is. Value: the fixed string |
| 16237 * "youtube#thumbnailSetResponse". | 16275 /// "youtube#thumbnailSetResponse". |
| 16238 */ | |
| 16239 core.String kind; | 16276 core.String kind; |
| 16240 /** The visitorId identifies the visitor. */ | 16277 |
| 16278 /// The visitorId identifies the visitor. |
| 16241 core.String visitorId; | 16279 core.String visitorId; |
| 16242 | 16280 |
| 16243 ThumbnailSetResponse(); | 16281 ThumbnailSetResponse(); |
| 16244 | 16282 |
| 16245 ThumbnailSetResponse.fromJson(core.Map _json) { | 16283 ThumbnailSetResponse.fromJson(core.Map _json) { |
| 16246 if (_json.containsKey("etag")) { | 16284 if (_json.containsKey("etag")) { |
| 16247 etag = _json["etag"]; | 16285 etag = _json["etag"]; |
| 16248 } | 16286 } |
| 16249 if (_json.containsKey("eventId")) { | 16287 if (_json.containsKey("eventId")) { |
| 16250 eventId = _json["eventId"]; | 16288 eventId = _json["eventId"]; |
| 16251 } | 16289 } |
| 16252 if (_json.containsKey("items")) { | 16290 if (_json.containsKey("items")) { |
| 16253 items = _json["items"].map((value) => new ThumbnailDetails.fromJson(value)
).toList(); | 16291 items = _json["items"] |
| 16292 .map((value) => new ThumbnailDetails.fromJson(value)) |
| 16293 .toList(); |
| 16254 } | 16294 } |
| 16255 if (_json.containsKey("kind")) { | 16295 if (_json.containsKey("kind")) { |
| 16256 kind = _json["kind"]; | 16296 kind = _json["kind"]; |
| 16257 } | 16297 } |
| 16258 if (_json.containsKey("visitorId")) { | 16298 if (_json.containsKey("visitorId")) { |
| 16259 visitorId = _json["visitorId"]; | 16299 visitorId = _json["visitorId"]; |
| 16260 } | 16300 } |
| 16261 } | 16301 } |
| 16262 | 16302 |
| 16263 core.Map<core.String, core.Object> toJson() { | 16303 core.Map<core.String, core.Object> toJson() { |
| 16264 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16304 final core.Map<core.String, core.Object> _json = |
| 16305 new core.Map<core.String, core.Object>(); |
| 16265 if (etag != null) { | 16306 if (etag != null) { |
| 16266 _json["etag"] = etag; | 16307 _json["etag"] = etag; |
| 16267 } | 16308 } |
| 16268 if (eventId != null) { | 16309 if (eventId != null) { |
| 16269 _json["eventId"] = eventId; | 16310 _json["eventId"] = eventId; |
| 16270 } | 16311 } |
| 16271 if (items != null) { | 16312 if (items != null) { |
| 16272 _json["items"] = items.map((value) => (value).toJson()).toList(); | 16313 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 16273 } | 16314 } |
| 16274 if (kind != null) { | 16315 if (kind != null) { |
| 16275 _json["kind"] = kind; | 16316 _json["kind"] = kind; |
| 16276 } | 16317 } |
| 16277 if (visitorId != null) { | 16318 if (visitorId != null) { |
| 16278 _json["visitorId"] = visitorId; | 16319 _json["visitorId"] = visitorId; |
| 16279 } | 16320 } |
| 16280 return _json; | 16321 return _json; |
| 16281 } | 16322 } |
| 16282 } | 16323 } |
| 16283 | 16324 |
| 16284 /** Stub token pagination template to suppress results. */ | 16325 /// Stub token pagination template to suppress results. |
| 16285 class TokenPagination { | 16326 class TokenPagination { |
| 16286 | |
| 16287 TokenPagination(); | 16327 TokenPagination(); |
| 16288 | 16328 |
| 16289 TokenPagination.fromJson(core.Map _json) { | 16329 TokenPagination.fromJson(core.Map _json) {} |
| 16290 } | |
| 16291 | 16330 |
| 16292 core.Map<core.String, core.Object> toJson() { | 16331 core.Map<core.String, core.Object> toJson() { |
| 16293 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16332 final core.Map<core.String, core.Object> _json = |
| 16333 new core.Map<core.String, core.Object>(); |
| 16294 return _json; | 16334 return _json; |
| 16295 } | 16335 } |
| 16296 } | 16336 } |
| 16297 | 16337 |
| 16298 /** A video resource represents a YouTube video. */ | 16338 /// A video resource represents a YouTube video. |
| 16299 class Video { | 16339 class Video { |
| 16300 /** | 16340 /// Age restriction details related to a video. This data can only be |
| 16301 * Age restriction details related to a video. This data can only be retrieved | 16341 /// retrieved by the video owner. |
| 16302 * by the video owner. | |
| 16303 */ | |
| 16304 VideoAgeGating ageGating; | 16342 VideoAgeGating ageGating; |
| 16305 /** | 16343 |
| 16306 * The contentDetails object contains information about the video content, | 16344 /// The contentDetails object contains information about the video content, |
| 16307 * including the length of the video and its aspect ratio. | 16345 /// including the length of the video and its aspect ratio. |
| 16308 */ | |
| 16309 VideoContentDetails contentDetails; | 16346 VideoContentDetails contentDetails; |
| 16310 /** Etag of this resource. */ | 16347 |
| 16348 /// Etag of this resource. |
| 16311 core.String etag; | 16349 core.String etag; |
| 16312 /** | 16350 |
| 16313 * The fileDetails object encapsulates information about the video file that | 16351 /// The fileDetails object encapsulates information about the video file that |
| 16314 * was uploaded to YouTube, including the file's resolution, duration, audio | 16352 /// was uploaded to YouTube, including the file's resolution, duration, audio |
| 16315 * and video codecs, stream bitrates, and more. This data can only be | 16353 /// and video codecs, stream bitrates, and more. This data can only be |
| 16316 * retrieved by the video owner. | 16354 /// retrieved by the video owner. |
| 16317 */ | |
| 16318 VideoFileDetails fileDetails; | 16355 VideoFileDetails fileDetails; |
| 16319 /** The ID that YouTube uses to uniquely identify the video. */ | 16356 |
| 16357 /// The ID that YouTube uses to uniquely identify the video. |
| 16320 core.String id; | 16358 core.String id; |
| 16321 /** | 16359 |
| 16322 * Identifies what kind of resource this is. Value: the fixed string | 16360 /// Identifies what kind of resource this is. Value: the fixed string |
| 16323 * "youtube#video". | 16361 /// "youtube#video". |
| 16324 */ | |
| 16325 core.String kind; | 16362 core.String kind; |
| 16326 /** | 16363 |
| 16327 * The liveStreamingDetails object contains metadata about a live video | 16364 /// The liveStreamingDetails object contains metadata about a live video |
| 16328 * broadcast. The object will only be present in a video resource if the video | 16365 /// broadcast. The object will only be present in a video resource if the |
| 16329 * is an upcoming, live, or completed live broadcast. | 16366 /// video is an upcoming, live, or completed live broadcast. |
| 16330 */ | |
| 16331 VideoLiveStreamingDetails liveStreamingDetails; | 16367 VideoLiveStreamingDetails liveStreamingDetails; |
| 16332 /** List with all localizations. */ | 16368 |
| 16369 /// List with all localizations. |
| 16333 core.Map<core.String, VideoLocalization> localizations; | 16370 core.Map<core.String, VideoLocalization> localizations; |
| 16334 /** | 16371 |
| 16335 * The monetizationDetails object encapsulates information about the | 16372 /// The monetizationDetails object encapsulates information about the |
| 16336 * monetization status of the video. | 16373 /// monetization status of the video. |
| 16337 */ | |
| 16338 VideoMonetizationDetails monetizationDetails; | 16374 VideoMonetizationDetails monetizationDetails; |
| 16339 /** | 16375 |
| 16340 * The player object contains information that you would use to play the video | 16376 /// The player object contains information that you would use to play the |
| 16341 * in an embedded player. | 16377 /// video in an embedded player. |
| 16342 */ | |
| 16343 VideoPlayer player; | 16378 VideoPlayer player; |
| 16344 /** | 16379 |
| 16345 * The processingProgress object encapsulates information about YouTube's | 16380 /// The processingProgress object encapsulates information about YouTube's |
| 16346 * progress in processing the uploaded video file. The properties in the | 16381 /// progress in processing the uploaded video file. The properties in the |
| 16347 * object identify the current processing status and an estimate of the time | 16382 /// object identify the current processing status and an estimate of the time |
| 16348 * remaining until YouTube finishes processing the video. This part also | 16383 /// remaining until YouTube finishes processing the video. This part also |
| 16349 * indicates whether different types of data or content, such as file details | 16384 /// indicates whether different types of data or content, such as file |
| 16350 * or thumbnail images, are available for the video. | 16385 /// details or thumbnail images, are available for the video. |
| 16351 * | 16386 /// |
| 16352 * The processingProgress object is designed to be polled so that the video | 16387 /// The processingProgress object is designed to be polled so that the video |
| 16353 * uploaded can track the progress that YouTube has made in processing the | 16388 /// uploaded can track the progress that YouTube has made in processing the |
| 16354 * uploaded video file. This data can only be retrieved by the video owner. | 16389 /// uploaded video file. This data can only be retrieved by the video owner. |
| 16355 */ | |
| 16356 VideoProcessingDetails processingDetails; | 16390 VideoProcessingDetails processingDetails; |
| 16357 /** | 16391 |
| 16358 * The projectDetails object contains information about the project specific | 16392 /// The projectDetails object contains information about the project specific |
| 16359 * video metadata. | 16393 /// video metadata. |
| 16360 */ | |
| 16361 VideoProjectDetails projectDetails; | 16394 VideoProjectDetails projectDetails; |
| 16362 /** | 16395 |
| 16363 * The recordingDetails object encapsulates information about the location, | 16396 /// The recordingDetails object encapsulates information about the location, |
| 16364 * date and address where the video was recorded. | 16397 /// date and address where the video was recorded. |
| 16365 */ | |
| 16366 VideoRecordingDetails recordingDetails; | 16398 VideoRecordingDetails recordingDetails; |
| 16367 /** | 16399 |
| 16368 * The snippet object contains basic details about the video, such as its | 16400 /// The snippet object contains basic details about the video, such as its |
| 16369 * title, description, and category. | 16401 /// title, description, and category. |
| 16370 */ | |
| 16371 VideoSnippet snippet; | 16402 VideoSnippet snippet; |
| 16372 /** The statistics object contains statistics about the video. */ | 16403 |
| 16404 /// The statistics object contains statistics about the video. |
| 16373 VideoStatistics statistics; | 16405 VideoStatistics statistics; |
| 16374 /** | 16406 |
| 16375 * The status object contains information about the video's uploading, | 16407 /// The status object contains information about the video's uploading, |
| 16376 * processing, and privacy statuses. | 16408 /// processing, and privacy statuses. |
| 16377 */ | |
| 16378 VideoStatus status; | 16409 VideoStatus status; |
| 16379 /** | 16410 |
| 16380 * The suggestions object encapsulates suggestions that identify opportunities | 16411 /// The suggestions object encapsulates suggestions that identify |
| 16381 * to improve the video quality or the metadata for the uploaded video. This | 16412 /// opportunities to improve the video quality or the metadata for the |
| 16382 * data can only be retrieved by the video owner. | 16413 /// uploaded video. This data can only be retrieved by the video owner. |
| 16383 */ | |
| 16384 VideoSuggestions suggestions; | 16414 VideoSuggestions suggestions; |
| 16385 /** | 16415 |
| 16386 * The topicDetails object encapsulates information about Freebase topics | 16416 /// The topicDetails object encapsulates information about Freebase topics |
| 16387 * associated with the video. | 16417 /// associated with the video. |
| 16388 */ | |
| 16389 VideoTopicDetails topicDetails; | 16418 VideoTopicDetails topicDetails; |
| 16390 | 16419 |
| 16391 Video(); | 16420 Video(); |
| 16392 | 16421 |
| 16393 Video.fromJson(core.Map _json) { | 16422 Video.fromJson(core.Map _json) { |
| 16394 if (_json.containsKey("ageGating")) { | 16423 if (_json.containsKey("ageGating")) { |
| 16395 ageGating = new VideoAgeGating.fromJson(_json["ageGating"]); | 16424 ageGating = new VideoAgeGating.fromJson(_json["ageGating"]); |
| 16396 } | 16425 } |
| 16397 if (_json.containsKey("contentDetails")) { | 16426 if (_json.containsKey("contentDetails")) { |
| 16398 contentDetails = new VideoContentDetails.fromJson(_json["contentDetails"])
; | 16427 contentDetails = |
| 16428 new VideoContentDetails.fromJson(_json["contentDetails"]); |
| 16399 } | 16429 } |
| 16400 if (_json.containsKey("etag")) { | 16430 if (_json.containsKey("etag")) { |
| 16401 etag = _json["etag"]; | 16431 etag = _json["etag"]; |
| 16402 } | 16432 } |
| 16403 if (_json.containsKey("fileDetails")) { | 16433 if (_json.containsKey("fileDetails")) { |
| 16404 fileDetails = new VideoFileDetails.fromJson(_json["fileDetails"]); | 16434 fileDetails = new VideoFileDetails.fromJson(_json["fileDetails"]); |
| 16405 } | 16435 } |
| 16406 if (_json.containsKey("id")) { | 16436 if (_json.containsKey("id")) { |
| 16407 id = _json["id"]; | 16437 id = _json["id"]; |
| 16408 } | 16438 } |
| 16409 if (_json.containsKey("kind")) { | 16439 if (_json.containsKey("kind")) { |
| 16410 kind = _json["kind"]; | 16440 kind = _json["kind"]; |
| 16411 } | 16441 } |
| 16412 if (_json.containsKey("liveStreamingDetails")) { | 16442 if (_json.containsKey("liveStreamingDetails")) { |
| 16413 liveStreamingDetails = new VideoLiveStreamingDetails.fromJson(_json["liveS
treamingDetails"]); | 16443 liveStreamingDetails = |
| 16444 new VideoLiveStreamingDetails.fromJson(_json["liveStreamingDetails"]); |
| 16414 } | 16445 } |
| 16415 if (_json.containsKey("localizations")) { | 16446 if (_json.containsKey("localizations")) { |
| 16416 localizations = commons.mapMap<core.Map<core.String, core.Object>, VideoLo
calization>(_json["localizations"], (core.Map<core.String, core.Object> item) =>
new VideoLocalization.fromJson(item)); | 16447 localizations = |
| 16448 commons.mapMap<core.Map<core.String, core.Object>, VideoLocalization>( |
| 16449 _json["localizations"], |
| 16450 (core.Map<core.String, core.Object> item) => |
| 16451 new VideoLocalization.fromJson(item)); |
| 16417 } | 16452 } |
| 16418 if (_json.containsKey("monetizationDetails")) { | 16453 if (_json.containsKey("monetizationDetails")) { |
| 16419 monetizationDetails = new VideoMonetizationDetails.fromJson(_json["monetiz
ationDetails"]); | 16454 monetizationDetails = |
| 16455 new VideoMonetizationDetails.fromJson(_json["monetizationDetails"]); |
| 16420 } | 16456 } |
| 16421 if (_json.containsKey("player")) { | 16457 if (_json.containsKey("player")) { |
| 16422 player = new VideoPlayer.fromJson(_json["player"]); | 16458 player = new VideoPlayer.fromJson(_json["player"]); |
| 16423 } | 16459 } |
| 16424 if (_json.containsKey("processingDetails")) { | 16460 if (_json.containsKey("processingDetails")) { |
| 16425 processingDetails = new VideoProcessingDetails.fromJson(_json["processingD
etails"]); | 16461 processingDetails = |
| 16462 new VideoProcessingDetails.fromJson(_json["processingDetails"]); |
| 16426 } | 16463 } |
| 16427 if (_json.containsKey("projectDetails")) { | 16464 if (_json.containsKey("projectDetails")) { |
| 16428 projectDetails = new VideoProjectDetails.fromJson(_json["projectDetails"])
; | 16465 projectDetails = |
| 16466 new VideoProjectDetails.fromJson(_json["projectDetails"]); |
| 16429 } | 16467 } |
| 16430 if (_json.containsKey("recordingDetails")) { | 16468 if (_json.containsKey("recordingDetails")) { |
| 16431 recordingDetails = new VideoRecordingDetails.fromJson(_json["recordingDeta
ils"]); | 16469 recordingDetails = |
| 16470 new VideoRecordingDetails.fromJson(_json["recordingDetails"]); |
| 16432 } | 16471 } |
| 16433 if (_json.containsKey("snippet")) { | 16472 if (_json.containsKey("snippet")) { |
| 16434 snippet = new VideoSnippet.fromJson(_json["snippet"]); | 16473 snippet = new VideoSnippet.fromJson(_json["snippet"]); |
| 16435 } | 16474 } |
| 16436 if (_json.containsKey("statistics")) { | 16475 if (_json.containsKey("statistics")) { |
| 16437 statistics = new VideoStatistics.fromJson(_json["statistics"]); | 16476 statistics = new VideoStatistics.fromJson(_json["statistics"]); |
| 16438 } | 16477 } |
| 16439 if (_json.containsKey("status")) { | 16478 if (_json.containsKey("status")) { |
| 16440 status = new VideoStatus.fromJson(_json["status"]); | 16479 status = new VideoStatus.fromJson(_json["status"]); |
| 16441 } | 16480 } |
| 16442 if (_json.containsKey("suggestions")) { | 16481 if (_json.containsKey("suggestions")) { |
| 16443 suggestions = new VideoSuggestions.fromJson(_json["suggestions"]); | 16482 suggestions = new VideoSuggestions.fromJson(_json["suggestions"]); |
| 16444 } | 16483 } |
| 16445 if (_json.containsKey("topicDetails")) { | 16484 if (_json.containsKey("topicDetails")) { |
| 16446 topicDetails = new VideoTopicDetails.fromJson(_json["topicDetails"]); | 16485 topicDetails = new VideoTopicDetails.fromJson(_json["topicDetails"]); |
| 16447 } | 16486 } |
| 16448 } | 16487 } |
| 16449 | 16488 |
| 16450 core.Map<core.String, core.Object> toJson() { | 16489 core.Map<core.String, core.Object> toJson() { |
| 16451 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16490 final core.Map<core.String, core.Object> _json = |
| 16491 new core.Map<core.String, core.Object>(); |
| 16452 if (ageGating != null) { | 16492 if (ageGating != null) { |
| 16453 _json["ageGating"] = (ageGating).toJson(); | 16493 _json["ageGating"] = (ageGating).toJson(); |
| 16454 } | 16494 } |
| 16455 if (contentDetails != null) { | 16495 if (contentDetails != null) { |
| 16456 _json["contentDetails"] = (contentDetails).toJson(); | 16496 _json["contentDetails"] = (contentDetails).toJson(); |
| 16457 } | 16497 } |
| 16458 if (etag != null) { | 16498 if (etag != null) { |
| 16459 _json["etag"] = etag; | 16499 _json["etag"] = etag; |
| 16460 } | 16500 } |
| 16461 if (fileDetails != null) { | 16501 if (fileDetails != null) { |
| 16462 _json["fileDetails"] = (fileDetails).toJson(); | 16502 _json["fileDetails"] = (fileDetails).toJson(); |
| 16463 } | 16503 } |
| 16464 if (id != null) { | 16504 if (id != null) { |
| 16465 _json["id"] = id; | 16505 _json["id"] = id; |
| 16466 } | 16506 } |
| 16467 if (kind != null) { | 16507 if (kind != null) { |
| 16468 _json["kind"] = kind; | 16508 _json["kind"] = kind; |
| 16469 } | 16509 } |
| 16470 if (liveStreamingDetails != null) { | 16510 if (liveStreamingDetails != null) { |
| 16471 _json["liveStreamingDetails"] = (liveStreamingDetails).toJson(); | 16511 _json["liveStreamingDetails"] = (liveStreamingDetails).toJson(); |
| 16472 } | 16512 } |
| 16473 if (localizations != null) { | 16513 if (localizations != null) { |
| 16474 _json["localizations"] = commons.mapMap<VideoLocalization, core.Map<core.S
tring, core.Object>>(localizations, (VideoLocalization item) => (item).toJson())
; | 16514 _json["localizations"] = |
| 16515 commons.mapMap<VideoLocalization, core.Map<core.String, core.Object>>( |
| 16516 localizations, (VideoLocalization item) => (item).toJson()); |
| 16475 } | 16517 } |
| 16476 if (monetizationDetails != null) { | 16518 if (monetizationDetails != null) { |
| 16477 _json["monetizationDetails"] = (monetizationDetails).toJson(); | 16519 _json["monetizationDetails"] = (monetizationDetails).toJson(); |
| 16478 } | 16520 } |
| 16479 if (player != null) { | 16521 if (player != null) { |
| 16480 _json["player"] = (player).toJson(); | 16522 _json["player"] = (player).toJson(); |
| 16481 } | 16523 } |
| 16482 if (processingDetails != null) { | 16524 if (processingDetails != null) { |
| 16483 _json["processingDetails"] = (processingDetails).toJson(); | 16525 _json["processingDetails"] = (processingDetails).toJson(); |
| 16484 } | 16526 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 16501 _json["suggestions"] = (suggestions).toJson(); | 16543 _json["suggestions"] = (suggestions).toJson(); |
| 16502 } | 16544 } |
| 16503 if (topicDetails != null) { | 16545 if (topicDetails != null) { |
| 16504 _json["topicDetails"] = (topicDetails).toJson(); | 16546 _json["topicDetails"] = (topicDetails).toJson(); |
| 16505 } | 16547 } |
| 16506 return _json; | 16548 return _json; |
| 16507 } | 16549 } |
| 16508 } | 16550 } |
| 16509 | 16551 |
| 16510 class VideoAbuseReport { | 16552 class VideoAbuseReport { |
| 16511 /** Additional comments regarding the abuse report. */ | 16553 /// Additional comments regarding the abuse report. |
| 16512 core.String comments; | 16554 core.String comments; |
| 16513 /** The language that the content was viewed in. */ | 16555 |
| 16556 /// The language that the content was viewed in. |
| 16514 core.String language; | 16557 core.String language; |
| 16515 /** | 16558 |
| 16516 * The high-level, or primary, reason that the content is abusive. The value | 16559 /// The high-level, or primary, reason that the content is abusive. The value |
| 16517 * is an abuse report reason ID. | 16560 /// is an abuse report reason ID. |
| 16518 */ | |
| 16519 core.String reasonId; | 16561 core.String reasonId; |
| 16520 /** | 16562 |
| 16521 * The specific, or secondary, reason that this content is abusive (if | 16563 /// The specific, or secondary, reason that this content is abusive (if |
| 16522 * available). The value is an abuse report reason ID that is a valid | 16564 /// available). The value is an abuse report reason ID that is a valid |
| 16523 * secondary reason for the primary reason. | 16565 /// secondary reason for the primary reason. |
| 16524 */ | |
| 16525 core.String secondaryReasonId; | 16566 core.String secondaryReasonId; |
| 16526 /** The ID that YouTube uses to uniquely identify the video. */ | 16567 |
| 16568 /// The ID that YouTube uses to uniquely identify the video. |
| 16527 core.String videoId; | 16569 core.String videoId; |
| 16528 | 16570 |
| 16529 VideoAbuseReport(); | 16571 VideoAbuseReport(); |
| 16530 | 16572 |
| 16531 VideoAbuseReport.fromJson(core.Map _json) { | 16573 VideoAbuseReport.fromJson(core.Map _json) { |
| 16532 if (_json.containsKey("comments")) { | 16574 if (_json.containsKey("comments")) { |
| 16533 comments = _json["comments"]; | 16575 comments = _json["comments"]; |
| 16534 } | 16576 } |
| 16535 if (_json.containsKey("language")) { | 16577 if (_json.containsKey("language")) { |
| 16536 language = _json["language"]; | 16578 language = _json["language"]; |
| 16537 } | 16579 } |
| 16538 if (_json.containsKey("reasonId")) { | 16580 if (_json.containsKey("reasonId")) { |
| 16539 reasonId = _json["reasonId"]; | 16581 reasonId = _json["reasonId"]; |
| 16540 } | 16582 } |
| 16541 if (_json.containsKey("secondaryReasonId")) { | 16583 if (_json.containsKey("secondaryReasonId")) { |
| 16542 secondaryReasonId = _json["secondaryReasonId"]; | 16584 secondaryReasonId = _json["secondaryReasonId"]; |
| 16543 } | 16585 } |
| 16544 if (_json.containsKey("videoId")) { | 16586 if (_json.containsKey("videoId")) { |
| 16545 videoId = _json["videoId"]; | 16587 videoId = _json["videoId"]; |
| 16546 } | 16588 } |
| 16547 } | 16589 } |
| 16548 | 16590 |
| 16549 core.Map<core.String, core.Object> toJson() { | 16591 core.Map<core.String, core.Object> toJson() { |
| 16550 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16592 final core.Map<core.String, core.Object> _json = |
| 16593 new core.Map<core.String, core.Object>(); |
| 16551 if (comments != null) { | 16594 if (comments != null) { |
| 16552 _json["comments"] = comments; | 16595 _json["comments"] = comments; |
| 16553 } | 16596 } |
| 16554 if (language != null) { | 16597 if (language != null) { |
| 16555 _json["language"] = language; | 16598 _json["language"] = language; |
| 16556 } | 16599 } |
| 16557 if (reasonId != null) { | 16600 if (reasonId != null) { |
| 16558 _json["reasonId"] = reasonId; | 16601 _json["reasonId"] = reasonId; |
| 16559 } | 16602 } |
| 16560 if (secondaryReasonId != null) { | 16603 if (secondaryReasonId != null) { |
| 16561 _json["secondaryReasonId"] = secondaryReasonId; | 16604 _json["secondaryReasonId"] = secondaryReasonId; |
| 16562 } | 16605 } |
| 16563 if (videoId != null) { | 16606 if (videoId != null) { |
| 16564 _json["videoId"] = videoId; | 16607 _json["videoId"] = videoId; |
| 16565 } | 16608 } |
| 16566 return _json; | 16609 return _json; |
| 16567 } | 16610 } |
| 16568 } | 16611 } |
| 16569 | 16612 |
| 16570 /** | 16613 /// A videoAbuseReportReason resource identifies a reason that a video could be |
| 16571 * A videoAbuseReportReason resource identifies a reason that a video could be | 16614 /// reported as abusive. Video abuse report reasons are used with |
| 16572 * reported as abusive. Video abuse report reasons are used with | 16615 /// video.ReportAbuse. |
| 16573 * video.ReportAbuse. | |
| 16574 */ | |
| 16575 class VideoAbuseReportReason { | 16616 class VideoAbuseReportReason { |
| 16576 /** Etag of this resource. */ | 16617 /// Etag of this resource. |
| 16577 core.String etag; | 16618 core.String etag; |
| 16578 /** The ID of this abuse report reason. */ | 16619 |
| 16620 /// The ID of this abuse report reason. |
| 16579 core.String id; | 16621 core.String id; |
| 16580 /** | 16622 |
| 16581 * Identifies what kind of resource this is. Value: the fixed string | 16623 /// Identifies what kind of resource this is. Value: the fixed string |
| 16582 * "youtube#videoAbuseReportReason". | 16624 /// "youtube#videoAbuseReportReason". |
| 16583 */ | |
| 16584 core.String kind; | 16625 core.String kind; |
| 16585 /** | 16626 |
| 16586 * The snippet object contains basic details about the abuse report reason. | 16627 /// The snippet object contains basic details about the abuse report reason. |
| 16587 */ | |
| 16588 VideoAbuseReportReasonSnippet snippet; | 16628 VideoAbuseReportReasonSnippet snippet; |
| 16589 | 16629 |
| 16590 VideoAbuseReportReason(); | 16630 VideoAbuseReportReason(); |
| 16591 | 16631 |
| 16592 VideoAbuseReportReason.fromJson(core.Map _json) { | 16632 VideoAbuseReportReason.fromJson(core.Map _json) { |
| 16593 if (_json.containsKey("etag")) { | 16633 if (_json.containsKey("etag")) { |
| 16594 etag = _json["etag"]; | 16634 etag = _json["etag"]; |
| 16595 } | 16635 } |
| 16596 if (_json.containsKey("id")) { | 16636 if (_json.containsKey("id")) { |
| 16597 id = _json["id"]; | 16637 id = _json["id"]; |
| 16598 } | 16638 } |
| 16599 if (_json.containsKey("kind")) { | 16639 if (_json.containsKey("kind")) { |
| 16600 kind = _json["kind"]; | 16640 kind = _json["kind"]; |
| 16601 } | 16641 } |
| 16602 if (_json.containsKey("snippet")) { | 16642 if (_json.containsKey("snippet")) { |
| 16603 snippet = new VideoAbuseReportReasonSnippet.fromJson(_json["snippet"]); | 16643 snippet = new VideoAbuseReportReasonSnippet.fromJson(_json["snippet"]); |
| 16604 } | 16644 } |
| 16605 } | 16645 } |
| 16606 | 16646 |
| 16607 core.Map<core.String, core.Object> toJson() { | 16647 core.Map<core.String, core.Object> toJson() { |
| 16608 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16648 final core.Map<core.String, core.Object> _json = |
| 16649 new core.Map<core.String, core.Object>(); |
| 16609 if (etag != null) { | 16650 if (etag != null) { |
| 16610 _json["etag"] = etag; | 16651 _json["etag"] = etag; |
| 16611 } | 16652 } |
| 16612 if (id != null) { | 16653 if (id != null) { |
| 16613 _json["id"] = id; | 16654 _json["id"] = id; |
| 16614 } | 16655 } |
| 16615 if (kind != null) { | 16656 if (kind != null) { |
| 16616 _json["kind"] = kind; | 16657 _json["kind"] = kind; |
| 16617 } | 16658 } |
| 16618 if (snippet != null) { | 16659 if (snippet != null) { |
| 16619 _json["snippet"] = (snippet).toJson(); | 16660 _json["snippet"] = (snippet).toJson(); |
| 16620 } | 16661 } |
| 16621 return _json; | 16662 return _json; |
| 16622 } | 16663 } |
| 16623 } | 16664 } |
| 16624 | 16665 |
| 16625 class VideoAbuseReportReasonListResponse { | 16666 class VideoAbuseReportReasonListResponse { |
| 16626 /** Etag of this resource. */ | 16667 /// Etag of this resource. |
| 16627 core.String etag; | 16668 core.String etag; |
| 16628 /** Serialized EventId of the request which produced this response. */ | 16669 |
| 16670 /// Serialized EventId of the request which produced this response. |
| 16629 core.String eventId; | 16671 core.String eventId; |
| 16630 /** A list of valid abuse reasons that are used with video.ReportAbuse. */ | 16672 |
| 16673 /// A list of valid abuse reasons that are used with video.ReportAbuse. |
| 16631 core.List<VideoAbuseReportReason> items; | 16674 core.List<VideoAbuseReportReason> items; |
| 16632 /** | 16675 |
| 16633 * Identifies what kind of resource this is. Value: the fixed string | 16676 /// Identifies what kind of resource this is. Value: the fixed string |
| 16634 * "youtube#videoAbuseReportReasonListResponse". | 16677 /// "youtube#videoAbuseReportReasonListResponse". |
| 16635 */ | |
| 16636 core.String kind; | 16678 core.String kind; |
| 16637 /** The visitorId identifies the visitor. */ | 16679 |
| 16680 /// The visitorId identifies the visitor. |
| 16638 core.String visitorId; | 16681 core.String visitorId; |
| 16639 | 16682 |
| 16640 VideoAbuseReportReasonListResponse(); | 16683 VideoAbuseReportReasonListResponse(); |
| 16641 | 16684 |
| 16642 VideoAbuseReportReasonListResponse.fromJson(core.Map _json) { | 16685 VideoAbuseReportReasonListResponse.fromJson(core.Map _json) { |
| 16643 if (_json.containsKey("etag")) { | 16686 if (_json.containsKey("etag")) { |
| 16644 etag = _json["etag"]; | 16687 etag = _json["etag"]; |
| 16645 } | 16688 } |
| 16646 if (_json.containsKey("eventId")) { | 16689 if (_json.containsKey("eventId")) { |
| 16647 eventId = _json["eventId"]; | 16690 eventId = _json["eventId"]; |
| 16648 } | 16691 } |
| 16649 if (_json.containsKey("items")) { | 16692 if (_json.containsKey("items")) { |
| 16650 items = _json["items"].map((value) => new VideoAbuseReportReason.fromJson(
value)).toList(); | 16693 items = _json["items"] |
| 16694 .map((value) => new VideoAbuseReportReason.fromJson(value)) |
| 16695 .toList(); |
| 16651 } | 16696 } |
| 16652 if (_json.containsKey("kind")) { | 16697 if (_json.containsKey("kind")) { |
| 16653 kind = _json["kind"]; | 16698 kind = _json["kind"]; |
| 16654 } | 16699 } |
| 16655 if (_json.containsKey("visitorId")) { | 16700 if (_json.containsKey("visitorId")) { |
| 16656 visitorId = _json["visitorId"]; | 16701 visitorId = _json["visitorId"]; |
| 16657 } | 16702 } |
| 16658 } | 16703 } |
| 16659 | 16704 |
| 16660 core.Map<core.String, core.Object> toJson() { | 16705 core.Map<core.String, core.Object> toJson() { |
| 16661 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16706 final core.Map<core.String, core.Object> _json = |
| 16707 new core.Map<core.String, core.Object>(); |
| 16662 if (etag != null) { | 16708 if (etag != null) { |
| 16663 _json["etag"] = etag; | 16709 _json["etag"] = etag; |
| 16664 } | 16710 } |
| 16665 if (eventId != null) { | 16711 if (eventId != null) { |
| 16666 _json["eventId"] = eventId; | 16712 _json["eventId"] = eventId; |
| 16667 } | 16713 } |
| 16668 if (items != null) { | 16714 if (items != null) { |
| 16669 _json["items"] = items.map((value) => (value).toJson()).toList(); | 16715 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 16670 } | 16716 } |
| 16671 if (kind != null) { | 16717 if (kind != null) { |
| 16672 _json["kind"] = kind; | 16718 _json["kind"] = kind; |
| 16673 } | 16719 } |
| 16674 if (visitorId != null) { | 16720 if (visitorId != null) { |
| 16675 _json["visitorId"] = visitorId; | 16721 _json["visitorId"] = visitorId; |
| 16676 } | 16722 } |
| 16677 return _json; | 16723 return _json; |
| 16678 } | 16724 } |
| 16679 } | 16725 } |
| 16680 | 16726 |
| 16681 /** Basic details about a video category, such as its localized title. */ | 16727 /// Basic details about a video category, such as its localized title. |
| 16682 class VideoAbuseReportReasonSnippet { | 16728 class VideoAbuseReportReasonSnippet { |
| 16683 /** The localized label belonging to this abuse report reason. */ | 16729 /// The localized label belonging to this abuse report reason. |
| 16684 core.String label; | 16730 core.String label; |
| 16685 /** | 16731 |
| 16686 * The secondary reasons associated with this reason, if any are available. | 16732 /// The secondary reasons associated with this reason, if any are available. |
| 16687 * (There might be 0 or more.) | 16733 /// (There might be 0 or more.) |
| 16688 */ | |
| 16689 core.List<VideoAbuseReportSecondaryReason> secondaryReasons; | 16734 core.List<VideoAbuseReportSecondaryReason> secondaryReasons; |
| 16690 | 16735 |
| 16691 VideoAbuseReportReasonSnippet(); | 16736 VideoAbuseReportReasonSnippet(); |
| 16692 | 16737 |
| 16693 VideoAbuseReportReasonSnippet.fromJson(core.Map _json) { | 16738 VideoAbuseReportReasonSnippet.fromJson(core.Map _json) { |
| 16694 if (_json.containsKey("label")) { | 16739 if (_json.containsKey("label")) { |
| 16695 label = _json["label"]; | 16740 label = _json["label"]; |
| 16696 } | 16741 } |
| 16697 if (_json.containsKey("secondaryReasons")) { | 16742 if (_json.containsKey("secondaryReasons")) { |
| 16698 secondaryReasons = _json["secondaryReasons"].map((value) => new VideoAbuse
ReportSecondaryReason.fromJson(value)).toList(); | 16743 secondaryReasons = _json["secondaryReasons"] |
| 16744 .map((value) => new VideoAbuseReportSecondaryReason.fromJson(value)) |
| 16745 .toList(); |
| 16699 } | 16746 } |
| 16700 } | 16747 } |
| 16701 | 16748 |
| 16702 core.Map<core.String, core.Object> toJson() { | 16749 core.Map<core.String, core.Object> toJson() { |
| 16703 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16750 final core.Map<core.String, core.Object> _json = |
| 16751 new core.Map<core.String, core.Object>(); |
| 16704 if (label != null) { | 16752 if (label != null) { |
| 16705 _json["label"] = label; | 16753 _json["label"] = label; |
| 16706 } | 16754 } |
| 16707 if (secondaryReasons != null) { | 16755 if (secondaryReasons != null) { |
| 16708 _json["secondaryReasons"] = secondaryReasons.map((value) => (value).toJson
()).toList(); | 16756 _json["secondaryReasons"] = |
| 16757 secondaryReasons.map((value) => (value).toJson()).toList(); |
| 16709 } | 16758 } |
| 16710 return _json; | 16759 return _json; |
| 16711 } | 16760 } |
| 16712 } | 16761 } |
| 16713 | 16762 |
| 16714 class VideoAbuseReportSecondaryReason { | 16763 class VideoAbuseReportSecondaryReason { |
| 16715 /** The ID of this abuse report secondary reason. */ | 16764 /// The ID of this abuse report secondary reason. |
| 16716 core.String id; | 16765 core.String id; |
| 16717 /** The localized label for this abuse report secondary reason. */ | 16766 |
| 16767 /// The localized label for this abuse report secondary reason. |
| 16718 core.String label; | 16768 core.String label; |
| 16719 | 16769 |
| 16720 VideoAbuseReportSecondaryReason(); | 16770 VideoAbuseReportSecondaryReason(); |
| 16721 | 16771 |
| 16722 VideoAbuseReportSecondaryReason.fromJson(core.Map _json) { | 16772 VideoAbuseReportSecondaryReason.fromJson(core.Map _json) { |
| 16723 if (_json.containsKey("id")) { | 16773 if (_json.containsKey("id")) { |
| 16724 id = _json["id"]; | 16774 id = _json["id"]; |
| 16725 } | 16775 } |
| 16726 if (_json.containsKey("label")) { | 16776 if (_json.containsKey("label")) { |
| 16727 label = _json["label"]; | 16777 label = _json["label"]; |
| 16728 } | 16778 } |
| 16729 } | 16779 } |
| 16730 | 16780 |
| 16731 core.Map<core.String, core.Object> toJson() { | 16781 core.Map<core.String, core.Object> toJson() { |
| 16732 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16782 final core.Map<core.String, core.Object> _json = |
| 16783 new core.Map<core.String, core.Object>(); |
| 16733 if (id != null) { | 16784 if (id != null) { |
| 16734 _json["id"] = id; | 16785 _json["id"] = id; |
| 16735 } | 16786 } |
| 16736 if (label != null) { | 16787 if (label != null) { |
| 16737 _json["label"] = label; | 16788 _json["label"] = label; |
| 16738 } | 16789 } |
| 16739 return _json; | 16790 return _json; |
| 16740 } | 16791 } |
| 16741 } | 16792 } |
| 16742 | 16793 |
| 16743 class VideoAgeGating { | 16794 class VideoAgeGating { |
| 16744 /** | 16795 /// Indicates whether or not the video has alcoholic beverage content. Only |
| 16745 * Indicates whether or not the video has alcoholic beverage content. Only | 16796 /// users of legal purchasing age in a particular country, as identified by |
| 16746 * users of legal purchasing age in a particular country, as identified by | 16797 /// ICAP, can view the content. |
| 16747 * ICAP, can view the content. | |
| 16748 */ | |
| 16749 core.bool alcoholContent; | 16798 core.bool alcoholContent; |
| 16750 /** | 16799 |
| 16751 * Age-restricted trailers. For redband trailers and adult-rated video-games. | 16800 /// Age-restricted trailers. For redband trailers and adult-rated |
| 16752 * Only users aged 18+ can view the content. The the field is true the content | 16801 /// video-games. Only users aged 18+ can view the content. The the field is |
| 16753 * is restricted to viewers aged 18+. Otherwise The field won't be present. | 16802 /// true the content is restricted to viewers aged 18+. Otherwise The field |
| 16754 */ | 16803 /// won't be present. |
| 16755 core.bool restricted; | 16804 core.bool restricted; |
| 16756 /** | 16805 |
| 16757 * Video game rating, if any. | 16806 /// Video game rating, if any. |
| 16758 * Possible string values are: | 16807 /// Possible string values are: |
| 16759 * - "anyone" | 16808 /// - "anyone" |
| 16760 * - "m15Plus" | 16809 /// - "m15Plus" |
| 16761 * - "m16Plus" | 16810 /// - "m16Plus" |
| 16762 * - "m17Plus" | 16811 /// - "m17Plus" |
| 16763 */ | |
| 16764 core.String videoGameRating; | 16812 core.String videoGameRating; |
| 16765 | 16813 |
| 16766 VideoAgeGating(); | 16814 VideoAgeGating(); |
| 16767 | 16815 |
| 16768 VideoAgeGating.fromJson(core.Map _json) { | 16816 VideoAgeGating.fromJson(core.Map _json) { |
| 16769 if (_json.containsKey("alcoholContent")) { | 16817 if (_json.containsKey("alcoholContent")) { |
| 16770 alcoholContent = _json["alcoholContent"]; | 16818 alcoholContent = _json["alcoholContent"]; |
| 16771 } | 16819 } |
| 16772 if (_json.containsKey("restricted")) { | 16820 if (_json.containsKey("restricted")) { |
| 16773 restricted = _json["restricted"]; | 16821 restricted = _json["restricted"]; |
| 16774 } | 16822 } |
| 16775 if (_json.containsKey("videoGameRating")) { | 16823 if (_json.containsKey("videoGameRating")) { |
| 16776 videoGameRating = _json["videoGameRating"]; | 16824 videoGameRating = _json["videoGameRating"]; |
| 16777 } | 16825 } |
| 16778 } | 16826 } |
| 16779 | 16827 |
| 16780 core.Map<core.String, core.Object> toJson() { | 16828 core.Map<core.String, core.Object> toJson() { |
| 16781 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16829 final core.Map<core.String, core.Object> _json = |
| 16830 new core.Map<core.String, core.Object>(); |
| 16782 if (alcoholContent != null) { | 16831 if (alcoholContent != null) { |
| 16783 _json["alcoholContent"] = alcoholContent; | 16832 _json["alcoholContent"] = alcoholContent; |
| 16784 } | 16833 } |
| 16785 if (restricted != null) { | 16834 if (restricted != null) { |
| 16786 _json["restricted"] = restricted; | 16835 _json["restricted"] = restricted; |
| 16787 } | 16836 } |
| 16788 if (videoGameRating != null) { | 16837 if (videoGameRating != null) { |
| 16789 _json["videoGameRating"] = videoGameRating; | 16838 _json["videoGameRating"] = videoGameRating; |
| 16790 } | 16839 } |
| 16791 return _json; | 16840 return _json; |
| 16792 } | 16841 } |
| 16793 } | 16842 } |
| 16794 | 16843 |
| 16795 /** | 16844 /// A videoCategory resource identifies a category that has been or could be |
| 16796 * A videoCategory resource identifies a category that has been or could be | 16845 /// associated with uploaded videos. |
| 16797 * associated with uploaded videos. | |
| 16798 */ | |
| 16799 class VideoCategory { | 16846 class VideoCategory { |
| 16800 /** Etag of this resource. */ | 16847 /// Etag of this resource. |
| 16801 core.String etag; | 16848 core.String etag; |
| 16802 /** The ID that YouTube uses to uniquely identify the video category. */ | 16849 |
| 16850 /// The ID that YouTube uses to uniquely identify the video category. |
| 16803 core.String id; | 16851 core.String id; |
| 16804 /** | 16852 |
| 16805 * Identifies what kind of resource this is. Value: the fixed string | 16853 /// Identifies what kind of resource this is. Value: the fixed string |
| 16806 * "youtube#videoCategory". | 16854 /// "youtube#videoCategory". |
| 16807 */ | |
| 16808 core.String kind; | 16855 core.String kind; |
| 16809 /** | 16856 |
| 16810 * The snippet object contains basic details about the video category, | 16857 /// The snippet object contains basic details about the video category, |
| 16811 * including its title. | 16858 /// including its title. |
| 16812 */ | |
| 16813 VideoCategorySnippet snippet; | 16859 VideoCategorySnippet snippet; |
| 16814 | 16860 |
| 16815 VideoCategory(); | 16861 VideoCategory(); |
| 16816 | 16862 |
| 16817 VideoCategory.fromJson(core.Map _json) { | 16863 VideoCategory.fromJson(core.Map _json) { |
| 16818 if (_json.containsKey("etag")) { | 16864 if (_json.containsKey("etag")) { |
| 16819 etag = _json["etag"]; | 16865 etag = _json["etag"]; |
| 16820 } | 16866 } |
| 16821 if (_json.containsKey("id")) { | 16867 if (_json.containsKey("id")) { |
| 16822 id = _json["id"]; | 16868 id = _json["id"]; |
| 16823 } | 16869 } |
| 16824 if (_json.containsKey("kind")) { | 16870 if (_json.containsKey("kind")) { |
| 16825 kind = _json["kind"]; | 16871 kind = _json["kind"]; |
| 16826 } | 16872 } |
| 16827 if (_json.containsKey("snippet")) { | 16873 if (_json.containsKey("snippet")) { |
| 16828 snippet = new VideoCategorySnippet.fromJson(_json["snippet"]); | 16874 snippet = new VideoCategorySnippet.fromJson(_json["snippet"]); |
| 16829 } | 16875 } |
| 16830 } | 16876 } |
| 16831 | 16877 |
| 16832 core.Map<core.String, core.Object> toJson() { | 16878 core.Map<core.String, core.Object> toJson() { |
| 16833 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16879 final core.Map<core.String, core.Object> _json = |
| 16880 new core.Map<core.String, core.Object>(); |
| 16834 if (etag != null) { | 16881 if (etag != null) { |
| 16835 _json["etag"] = etag; | 16882 _json["etag"] = etag; |
| 16836 } | 16883 } |
| 16837 if (id != null) { | 16884 if (id != null) { |
| 16838 _json["id"] = id; | 16885 _json["id"] = id; |
| 16839 } | 16886 } |
| 16840 if (kind != null) { | 16887 if (kind != null) { |
| 16841 _json["kind"] = kind; | 16888 _json["kind"] = kind; |
| 16842 } | 16889 } |
| 16843 if (snippet != null) { | 16890 if (snippet != null) { |
| 16844 _json["snippet"] = (snippet).toJson(); | 16891 _json["snippet"] = (snippet).toJson(); |
| 16845 } | 16892 } |
| 16846 return _json; | 16893 return _json; |
| 16847 } | 16894 } |
| 16848 } | 16895 } |
| 16849 | 16896 |
| 16850 class VideoCategoryListResponse { | 16897 class VideoCategoryListResponse { |
| 16851 /** Etag of this resource. */ | 16898 /// Etag of this resource. |
| 16852 core.String etag; | 16899 core.String etag; |
| 16853 /** Serialized EventId of the request which produced this response. */ | 16900 |
| 16901 /// Serialized EventId of the request which produced this response. |
| 16854 core.String eventId; | 16902 core.String eventId; |
| 16855 /** | 16903 |
| 16856 * A list of video categories that can be associated with YouTube videos. In | 16904 /// A list of video categories that can be associated with YouTube videos. In |
| 16857 * this map, the video category ID is the map key, and its value is the | 16905 /// this map, the video category ID is the map key, and its value is the |
| 16858 * corresponding videoCategory resource. | 16906 /// corresponding videoCategory resource. |
| 16859 */ | |
| 16860 core.List<VideoCategory> items; | 16907 core.List<VideoCategory> items; |
| 16861 /** | 16908 |
| 16862 * Identifies what kind of resource this is. Value: the fixed string | 16909 /// Identifies what kind of resource this is. Value: the fixed string |
| 16863 * "youtube#videoCategoryListResponse". | 16910 /// "youtube#videoCategoryListResponse". |
| 16864 */ | |
| 16865 core.String kind; | 16911 core.String kind; |
| 16866 /** | 16912 |
| 16867 * The token that can be used as the value of the pageToken parameter to | 16913 /// The token that can be used as the value of the pageToken parameter to |
| 16868 * retrieve the next page in the result set. | 16914 /// retrieve the next page in the result set. |
| 16869 */ | |
| 16870 core.String nextPageToken; | 16915 core.String nextPageToken; |
| 16871 PageInfo pageInfo; | 16916 PageInfo pageInfo; |
| 16872 /** | 16917 |
| 16873 * The token that can be used as the value of the pageToken parameter to | 16918 /// The token that can be used as the value of the pageToken parameter to |
| 16874 * retrieve the previous page in the result set. | 16919 /// retrieve the previous page in the result set. |
| 16875 */ | |
| 16876 core.String prevPageToken; | 16920 core.String prevPageToken; |
| 16877 TokenPagination tokenPagination; | 16921 TokenPagination tokenPagination; |
| 16878 /** The visitorId identifies the visitor. */ | 16922 |
| 16923 /// The visitorId identifies the visitor. |
| 16879 core.String visitorId; | 16924 core.String visitorId; |
| 16880 | 16925 |
| 16881 VideoCategoryListResponse(); | 16926 VideoCategoryListResponse(); |
| 16882 | 16927 |
| 16883 VideoCategoryListResponse.fromJson(core.Map _json) { | 16928 VideoCategoryListResponse.fromJson(core.Map _json) { |
| 16884 if (_json.containsKey("etag")) { | 16929 if (_json.containsKey("etag")) { |
| 16885 etag = _json["etag"]; | 16930 etag = _json["etag"]; |
| 16886 } | 16931 } |
| 16887 if (_json.containsKey("eventId")) { | 16932 if (_json.containsKey("eventId")) { |
| 16888 eventId = _json["eventId"]; | 16933 eventId = _json["eventId"]; |
| 16889 } | 16934 } |
| 16890 if (_json.containsKey("items")) { | 16935 if (_json.containsKey("items")) { |
| 16891 items = _json["items"].map((value) => new VideoCategory.fromJson(value)).t
oList(); | 16936 items = _json["items"] |
| 16937 .map((value) => new VideoCategory.fromJson(value)) |
| 16938 .toList(); |
| 16892 } | 16939 } |
| 16893 if (_json.containsKey("kind")) { | 16940 if (_json.containsKey("kind")) { |
| 16894 kind = _json["kind"]; | 16941 kind = _json["kind"]; |
| 16895 } | 16942 } |
| 16896 if (_json.containsKey("nextPageToken")) { | 16943 if (_json.containsKey("nextPageToken")) { |
| 16897 nextPageToken = _json["nextPageToken"]; | 16944 nextPageToken = _json["nextPageToken"]; |
| 16898 } | 16945 } |
| 16899 if (_json.containsKey("pageInfo")) { | 16946 if (_json.containsKey("pageInfo")) { |
| 16900 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); | 16947 pageInfo = new PageInfo.fromJson(_json["pageInfo"]); |
| 16901 } | 16948 } |
| 16902 if (_json.containsKey("prevPageToken")) { | 16949 if (_json.containsKey("prevPageToken")) { |
| 16903 prevPageToken = _json["prevPageToken"]; | 16950 prevPageToken = _json["prevPageToken"]; |
| 16904 } | 16951 } |
| 16905 if (_json.containsKey("tokenPagination")) { | 16952 if (_json.containsKey("tokenPagination")) { |
| 16906 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 16953 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 16907 } | 16954 } |
| 16908 if (_json.containsKey("visitorId")) { | 16955 if (_json.containsKey("visitorId")) { |
| 16909 visitorId = _json["visitorId"]; | 16956 visitorId = _json["visitorId"]; |
| 16910 } | 16957 } |
| 16911 } | 16958 } |
| 16912 | 16959 |
| 16913 core.Map<core.String, core.Object> toJson() { | 16960 core.Map<core.String, core.Object> toJson() { |
| 16914 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 16961 final core.Map<core.String, core.Object> _json = |
| 16962 new core.Map<core.String, core.Object>(); |
| 16915 if (etag != null) { | 16963 if (etag != null) { |
| 16916 _json["etag"] = etag; | 16964 _json["etag"] = etag; |
| 16917 } | 16965 } |
| 16918 if (eventId != null) { | 16966 if (eventId != null) { |
| 16919 _json["eventId"] = eventId; | 16967 _json["eventId"] = eventId; |
| 16920 } | 16968 } |
| 16921 if (items != null) { | 16969 if (items != null) { |
| 16922 _json["items"] = items.map((value) => (value).toJson()).toList(); | 16970 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 16923 } | 16971 } |
| 16924 if (kind != null) { | 16972 if (kind != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 16936 if (tokenPagination != null) { | 16984 if (tokenPagination != null) { |
| 16937 _json["tokenPagination"] = (tokenPagination).toJson(); | 16985 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 16938 } | 16986 } |
| 16939 if (visitorId != null) { | 16987 if (visitorId != null) { |
| 16940 _json["visitorId"] = visitorId; | 16988 _json["visitorId"] = visitorId; |
| 16941 } | 16989 } |
| 16942 return _json; | 16990 return _json; |
| 16943 } | 16991 } |
| 16944 } | 16992 } |
| 16945 | 16993 |
| 16946 /** Basic details about a video category, such as its localized title. */ | 16994 /// Basic details about a video category, such as its localized title. |
| 16947 class VideoCategorySnippet { | 16995 class VideoCategorySnippet { |
| 16948 core.bool assignable; | 16996 core.bool assignable; |
| 16949 /** The YouTube channel that created the video category. */ | 16997 |
| 16998 /// The YouTube channel that created the video category. |
| 16950 core.String channelId; | 16999 core.String channelId; |
| 16951 /** The video category's title. */ | 17000 |
| 17001 /// The video category's title. |
| 16952 core.String title; | 17002 core.String title; |
| 16953 | 17003 |
| 16954 VideoCategorySnippet(); | 17004 VideoCategorySnippet(); |
| 16955 | 17005 |
| 16956 VideoCategorySnippet.fromJson(core.Map _json) { | 17006 VideoCategorySnippet.fromJson(core.Map _json) { |
| 16957 if (_json.containsKey("assignable")) { | 17007 if (_json.containsKey("assignable")) { |
| 16958 assignable = _json["assignable"]; | 17008 assignable = _json["assignable"]; |
| 16959 } | 17009 } |
| 16960 if (_json.containsKey("channelId")) { | 17010 if (_json.containsKey("channelId")) { |
| 16961 channelId = _json["channelId"]; | 17011 channelId = _json["channelId"]; |
| 16962 } | 17012 } |
| 16963 if (_json.containsKey("title")) { | 17013 if (_json.containsKey("title")) { |
| 16964 title = _json["title"]; | 17014 title = _json["title"]; |
| 16965 } | 17015 } |
| 16966 } | 17016 } |
| 16967 | 17017 |
| 16968 core.Map<core.String, core.Object> toJson() { | 17018 core.Map<core.String, core.Object> toJson() { |
| 16969 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17019 final core.Map<core.String, core.Object> _json = |
| 17020 new core.Map<core.String, core.Object>(); |
| 16970 if (assignable != null) { | 17021 if (assignable != null) { |
| 16971 _json["assignable"] = assignable; | 17022 _json["assignable"] = assignable; |
| 16972 } | 17023 } |
| 16973 if (channelId != null) { | 17024 if (channelId != null) { |
| 16974 _json["channelId"] = channelId; | 17025 _json["channelId"] = channelId; |
| 16975 } | 17026 } |
| 16976 if (title != null) { | 17027 if (title != null) { |
| 16977 _json["title"] = title; | 17028 _json["title"] = title; |
| 16978 } | 17029 } |
| 16979 return _json; | 17030 return _json; |
| 16980 } | 17031 } |
| 16981 } | 17032 } |
| 16982 | 17033 |
| 16983 /** Details about the content of a YouTube Video. */ | 17034 /// Details about the content of a YouTube Video. |
| 16984 class VideoContentDetails { | 17035 class VideoContentDetails { |
| 16985 /** | 17036 /// The value of captions indicates whether the video has captions or not. |
| 16986 * The value of captions indicates whether the video has captions or not. | 17037 /// Possible string values are: |
| 16987 * Possible string values are: | 17038 /// - "false" |
| 16988 * - "false" | 17039 /// - "true" |
| 16989 * - "true" | |
| 16990 */ | |
| 16991 core.String caption; | 17040 core.String caption; |
| 16992 /** | 17041 |
| 16993 * Specifies the ratings that the video received under various rating schemes. | 17042 /// Specifies the ratings that the video received under various rating |
| 16994 */ | 17043 /// schemes. |
| 16995 ContentRating contentRating; | 17044 ContentRating contentRating; |
| 16996 /** | 17045 |
| 16997 * The countryRestriction object contains information about the countries | 17046 /// The countryRestriction object contains information about the countries |
| 16998 * where a video is (or is not) viewable. | 17047 /// where a video is (or is not) viewable. |
| 16999 */ | |
| 17000 AccessPolicy countryRestriction; | 17048 AccessPolicy countryRestriction; |
| 17001 /** | 17049 |
| 17002 * The value of definition indicates whether the video is available in high | 17050 /// The value of definition indicates whether the video is available in high |
| 17003 * definition or only in standard definition. | 17051 /// definition or only in standard definition. |
| 17004 * Possible string values are: | 17052 /// Possible string values are: |
| 17005 * - "hd" | 17053 /// - "hd" |
| 17006 * - "sd" | 17054 /// - "sd" |
| 17007 */ | |
| 17008 core.String definition; | 17055 core.String definition; |
| 17009 /** | 17056 |
| 17010 * The value of dimension indicates whether the video is available in 3D or in | 17057 /// The value of dimension indicates whether the video is available in 3D or |
| 17011 * 2D. | 17058 /// in 2D. |
| 17012 */ | |
| 17013 core.String dimension; | 17059 core.String dimension; |
| 17014 /** | 17060 |
| 17015 * The length of the video. The tag value is an ISO 8601 duration in the | 17061 /// The length of the video. The tag value is an ISO 8601 duration in the |
| 17016 * format PT#M#S, in which the letters PT indicate that the value specifies a | 17062 /// format PT#M#S, in which the letters PT indicate that the value specifies |
| 17017 * period of time, and the letters M and S refer to length in minutes and | 17063 /// a period of time, and the letters M and S refer to length in minutes and |
| 17018 * seconds, respectively. The # characters preceding the M and S letters are | 17064 /// seconds, respectively. The # characters preceding the M and S letters are |
| 17019 * both integers that specify the number of minutes (or seconds) of the video. | 17065 /// both integers that specify the number of minutes (or seconds) of the |
| 17020 * For example, a value of PT15M51S indicates that the video is 15 minutes and | 17066 /// video. For example, a value of PT15M51S indicates that the video is 15 |
| 17021 * 51 seconds long. | 17067 /// minutes and 51 seconds long. |
| 17022 */ | |
| 17023 core.String duration; | 17068 core.String duration; |
| 17024 /** | 17069 |
| 17025 * Indicates whether the video uploader has provided a custom thumbnail image | 17070 /// Indicates whether the video uploader has provided a custom thumbnail |
| 17026 * for the video. This property is only visible to the video uploader. | 17071 /// image for the video. This property is only visible to the video uploader. |
| 17027 */ | |
| 17028 core.bool hasCustomThumbnail; | 17072 core.bool hasCustomThumbnail; |
| 17029 /** | 17073 |
| 17030 * The value of is_license_content indicates whether the video is licensed | 17074 /// The value of is_license_content indicates whether the video is licensed |
| 17031 * content. | 17075 /// content. |
| 17032 */ | |
| 17033 core.bool licensedContent; | 17076 core.bool licensedContent; |
| 17034 /** | 17077 |
| 17035 * Specifies the projection format of the video. | 17078 /// Specifies the projection format of the video. |
| 17036 * Possible string values are: | 17079 /// Possible string values are: |
| 17037 * - "360" | 17080 /// - "360" |
| 17038 * - "rectangular" | 17081 /// - "rectangular" |
| 17039 */ | |
| 17040 core.String projection; | 17082 core.String projection; |
| 17041 /** | 17083 |
| 17042 * The regionRestriction object contains information about the countries where | 17084 /// The regionRestriction object contains information about the countries |
| 17043 * a video is (or is not) viewable. The object will contain either the | 17085 /// where a video is (or is not) viewable. The object will contain either the |
| 17044 * contentDetails.regionRestriction.allowed property or the | 17086 /// contentDetails.regionRestriction.allowed property or the |
| 17045 * contentDetails.regionRestriction.blocked property. | 17087 /// contentDetails.regionRestriction.blocked property. |
| 17046 */ | |
| 17047 VideoContentDetailsRegionRestriction regionRestriction; | 17088 VideoContentDetailsRegionRestriction regionRestriction; |
| 17048 | 17089 |
| 17049 VideoContentDetails(); | 17090 VideoContentDetails(); |
| 17050 | 17091 |
| 17051 VideoContentDetails.fromJson(core.Map _json) { | 17092 VideoContentDetails.fromJson(core.Map _json) { |
| 17052 if (_json.containsKey("caption")) { | 17093 if (_json.containsKey("caption")) { |
| 17053 caption = _json["caption"]; | 17094 caption = _json["caption"]; |
| 17054 } | 17095 } |
| 17055 if (_json.containsKey("contentRating")) { | 17096 if (_json.containsKey("contentRating")) { |
| 17056 contentRating = new ContentRating.fromJson(_json["contentRating"]); | 17097 contentRating = new ContentRating.fromJson(_json["contentRating"]); |
| 17057 } | 17098 } |
| 17058 if (_json.containsKey("countryRestriction")) { | 17099 if (_json.containsKey("countryRestriction")) { |
| 17059 countryRestriction = new AccessPolicy.fromJson(_json["countryRestriction"]
); | 17100 countryRestriction = |
| 17101 new AccessPolicy.fromJson(_json["countryRestriction"]); |
| 17060 } | 17102 } |
| 17061 if (_json.containsKey("definition")) { | 17103 if (_json.containsKey("definition")) { |
| 17062 definition = _json["definition"]; | 17104 definition = _json["definition"]; |
| 17063 } | 17105 } |
| 17064 if (_json.containsKey("dimension")) { | 17106 if (_json.containsKey("dimension")) { |
| 17065 dimension = _json["dimension"]; | 17107 dimension = _json["dimension"]; |
| 17066 } | 17108 } |
| 17067 if (_json.containsKey("duration")) { | 17109 if (_json.containsKey("duration")) { |
| 17068 duration = _json["duration"]; | 17110 duration = _json["duration"]; |
| 17069 } | 17111 } |
| 17070 if (_json.containsKey("hasCustomThumbnail")) { | 17112 if (_json.containsKey("hasCustomThumbnail")) { |
| 17071 hasCustomThumbnail = _json["hasCustomThumbnail"]; | 17113 hasCustomThumbnail = _json["hasCustomThumbnail"]; |
| 17072 } | 17114 } |
| 17073 if (_json.containsKey("licensedContent")) { | 17115 if (_json.containsKey("licensedContent")) { |
| 17074 licensedContent = _json["licensedContent"]; | 17116 licensedContent = _json["licensedContent"]; |
| 17075 } | 17117 } |
| 17076 if (_json.containsKey("projection")) { | 17118 if (_json.containsKey("projection")) { |
| 17077 projection = _json["projection"]; | 17119 projection = _json["projection"]; |
| 17078 } | 17120 } |
| 17079 if (_json.containsKey("regionRestriction")) { | 17121 if (_json.containsKey("regionRestriction")) { |
| 17080 regionRestriction = new VideoContentDetailsRegionRestriction.fromJson(_jso
n["regionRestriction"]); | 17122 regionRestriction = new VideoContentDetailsRegionRestriction.fromJson( |
| 17123 _json["regionRestriction"]); |
| 17081 } | 17124 } |
| 17082 } | 17125 } |
| 17083 | 17126 |
| 17084 core.Map<core.String, core.Object> toJson() { | 17127 core.Map<core.String, core.Object> toJson() { |
| 17085 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17128 final core.Map<core.String, core.Object> _json = |
| 17129 new core.Map<core.String, core.Object>(); |
| 17086 if (caption != null) { | 17130 if (caption != null) { |
| 17087 _json["caption"] = caption; | 17131 _json["caption"] = caption; |
| 17088 } | 17132 } |
| 17089 if (contentRating != null) { | 17133 if (contentRating != null) { |
| 17090 _json["contentRating"] = (contentRating).toJson(); | 17134 _json["contentRating"] = (contentRating).toJson(); |
| 17091 } | 17135 } |
| 17092 if (countryRestriction != null) { | 17136 if (countryRestriction != null) { |
| 17093 _json["countryRestriction"] = (countryRestriction).toJson(); | 17137 _json["countryRestriction"] = (countryRestriction).toJson(); |
| 17094 } | 17138 } |
| 17095 if (definition != null) { | 17139 if (definition != null) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 17110 if (projection != null) { | 17154 if (projection != null) { |
| 17111 _json["projection"] = projection; | 17155 _json["projection"] = projection; |
| 17112 } | 17156 } |
| 17113 if (regionRestriction != null) { | 17157 if (regionRestriction != null) { |
| 17114 _json["regionRestriction"] = (regionRestriction).toJson(); | 17158 _json["regionRestriction"] = (regionRestriction).toJson(); |
| 17115 } | 17159 } |
| 17116 return _json; | 17160 return _json; |
| 17117 } | 17161 } |
| 17118 } | 17162 } |
| 17119 | 17163 |
| 17120 /** DEPRECATED Region restriction of the video. */ | 17164 /// DEPRECATED Region restriction of the video. |
| 17121 class VideoContentDetailsRegionRestriction { | 17165 class VideoContentDetailsRegionRestriction { |
| 17122 /** | 17166 /// A list of region codes that identify countries where the video is |
| 17123 * A list of region codes that identify countries where the video is viewable. | 17167 /// viewable. If this property is present and a country is not listed in its |
| 17124 * If this property is present and a country is not listed in its value, then | 17168 /// value, then the video is blocked from appearing in that country. If this |
| 17125 * the video is blocked from appearing in that country. If this property is | 17169 /// property is present and contains an empty list, the video is blocked in |
| 17126 * present and contains an empty list, the video is blocked in all countries. | 17170 /// all countries. |
| 17127 */ | |
| 17128 core.List<core.String> allowed; | 17171 core.List<core.String> allowed; |
| 17129 /** | 17172 |
| 17130 * A list of region codes that identify countries where the video is blocked. | 17173 /// A list of region codes that identify countries where the video is |
| 17131 * If this property is present and a country is not listed in its value, then | 17174 /// blocked. If this property is present and a country is not listed in its |
| 17132 * the video is viewable in that country. If this property is present and | 17175 /// value, then the video is viewable in that country. If this property is |
| 17133 * contains an empty list, the video is viewable in all countries. | 17176 /// present and contains an empty list, the video is viewable in all |
| 17134 */ | 17177 /// countries. |
| 17135 core.List<core.String> blocked; | 17178 core.List<core.String> blocked; |
| 17136 | 17179 |
| 17137 VideoContentDetailsRegionRestriction(); | 17180 VideoContentDetailsRegionRestriction(); |
| 17138 | 17181 |
| 17139 VideoContentDetailsRegionRestriction.fromJson(core.Map _json) { | 17182 VideoContentDetailsRegionRestriction.fromJson(core.Map _json) { |
| 17140 if (_json.containsKey("allowed")) { | 17183 if (_json.containsKey("allowed")) { |
| 17141 allowed = _json["allowed"]; | 17184 allowed = _json["allowed"]; |
| 17142 } | 17185 } |
| 17143 if (_json.containsKey("blocked")) { | 17186 if (_json.containsKey("blocked")) { |
| 17144 blocked = _json["blocked"]; | 17187 blocked = _json["blocked"]; |
| 17145 } | 17188 } |
| 17146 } | 17189 } |
| 17147 | 17190 |
| 17148 core.Map<core.String, core.Object> toJson() { | 17191 core.Map<core.String, core.Object> toJson() { |
| 17149 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17192 final core.Map<core.String, core.Object> _json = |
| 17193 new core.Map<core.String, core.Object>(); |
| 17150 if (allowed != null) { | 17194 if (allowed != null) { |
| 17151 _json["allowed"] = allowed; | 17195 _json["allowed"] = allowed; |
| 17152 } | 17196 } |
| 17153 if (blocked != null) { | 17197 if (blocked != null) { |
| 17154 _json["blocked"] = blocked; | 17198 _json["blocked"] = blocked; |
| 17155 } | 17199 } |
| 17156 return _json; | 17200 return _json; |
| 17157 } | 17201 } |
| 17158 } | 17202 } |
| 17159 | 17203 |
| 17160 /** | 17204 /// Describes original video file properties, including technical details about |
| 17161 * Describes original video file properties, including technical details about | 17205 /// audio and video streams, but also metadata information like content length, |
| 17162 * audio and video streams, but also metadata information like content length, | 17206 /// digitization time, or geotagging information. |
| 17163 * digitization time, or geotagging information. | |
| 17164 */ | |
| 17165 class VideoFileDetails { | 17207 class VideoFileDetails { |
| 17166 /** | 17208 /// A list of audio streams contained in the uploaded video file. Each item |
| 17167 * A list of audio streams contained in the uploaded video file. Each item in | 17209 /// in the list contains detailed metadata about an audio stream. |
| 17168 * the list contains detailed metadata about an audio stream. | |
| 17169 */ | |
| 17170 core.List<VideoFileDetailsAudioStream> audioStreams; | 17210 core.List<VideoFileDetailsAudioStream> audioStreams; |
| 17171 /** | 17211 |
| 17172 * The uploaded video file's combined (video and audio) bitrate in bits per | 17212 /// The uploaded video file's combined (video and audio) bitrate in bits per |
| 17173 * second. | 17213 /// second. |
| 17174 */ | |
| 17175 core.String bitrateBps; | 17214 core.String bitrateBps; |
| 17176 /** The uploaded video file's container format. */ | 17215 |
| 17216 /// The uploaded video file's container format. |
| 17177 core.String container; | 17217 core.String container; |
| 17178 /** | 17218 |
| 17179 * The date and time when the uploaded video file was created. The value is | 17219 /// The date and time when the uploaded video file was created. The value is |
| 17180 * specified in ISO 8601 format. Currently, the following ISO 8601 formats are | 17220 /// specified in ISO 8601 format. Currently, the following ISO 8601 formats |
| 17181 * supported: | 17221 /// are supported: |
| 17182 * - Date only: YYYY-MM-DD | 17222 /// - Date only: YYYY-MM-DD |
| 17183 * - Naive time: YYYY-MM-DDTHH:MM:SS | 17223 /// - Naive time: YYYY-MM-DDTHH:MM:SS |
| 17184 * - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM | 17224 /// - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM |
| 17185 */ | |
| 17186 core.String creationTime; | 17225 core.String creationTime; |
| 17187 /** The length of the uploaded video in milliseconds. */ | 17226 |
| 17227 /// The length of the uploaded video in milliseconds. |
| 17188 core.String durationMs; | 17228 core.String durationMs; |
| 17189 /** | 17229 |
| 17190 * The uploaded file's name. This field is present whether a video file or | 17230 /// The uploaded file's name. This field is present whether a video file or |
| 17191 * another type of file was uploaded. | 17231 /// another type of file was uploaded. |
| 17192 */ | |
| 17193 core.String fileName; | 17232 core.String fileName; |
| 17194 /** | 17233 |
| 17195 * The uploaded file's size in bytes. This field is present whether a video | 17234 /// The uploaded file's size in bytes. This field is present whether a video |
| 17196 * file or another type of file was uploaded. | 17235 /// file or another type of file was uploaded. |
| 17197 */ | |
| 17198 core.String fileSize; | 17236 core.String fileSize; |
| 17199 /** | 17237 |
| 17200 * The uploaded file's type as detected by YouTube's video processing engine. | 17238 /// The uploaded file's type as detected by YouTube's video processing |
| 17201 * Currently, YouTube only processes video files, but this field is present | 17239 /// engine. Currently, YouTube only processes video files, but this field is |
| 17202 * whether a video file or another type of file was uploaded. | 17240 /// present whether a video file or another type of file was uploaded. |
| 17203 * Possible string values are: | 17241 /// Possible string values are: |
| 17204 * - "archive" | 17242 /// - "archive" |
| 17205 * - "audio" | 17243 /// - "audio" |
| 17206 * - "document" | 17244 /// - "document" |
| 17207 * - "image" | 17245 /// - "image" |
| 17208 * - "other" | 17246 /// - "other" |
| 17209 * - "project" | 17247 /// - "project" |
| 17210 * - "video" | 17248 /// - "video" |
| 17211 */ | |
| 17212 core.String fileType; | 17249 core.String fileType; |
| 17213 /** | 17250 |
| 17214 * A list of video streams contained in the uploaded video file. Each item in | 17251 /// A list of video streams contained in the uploaded video file. Each item |
| 17215 * the list contains detailed metadata about a video stream. | 17252 /// in the list contains detailed metadata about a video stream. |
| 17216 */ | |
| 17217 core.List<VideoFileDetailsVideoStream> videoStreams; | 17253 core.List<VideoFileDetailsVideoStream> videoStreams; |
| 17218 | 17254 |
| 17219 VideoFileDetails(); | 17255 VideoFileDetails(); |
| 17220 | 17256 |
| 17221 VideoFileDetails.fromJson(core.Map _json) { | 17257 VideoFileDetails.fromJson(core.Map _json) { |
| 17222 if (_json.containsKey("audioStreams")) { | 17258 if (_json.containsKey("audioStreams")) { |
| 17223 audioStreams = _json["audioStreams"].map((value) => new VideoFileDetailsAu
dioStream.fromJson(value)).toList(); | 17259 audioStreams = _json["audioStreams"] |
| 17260 .map((value) => new VideoFileDetailsAudioStream.fromJson(value)) |
| 17261 .toList(); |
| 17224 } | 17262 } |
| 17225 if (_json.containsKey("bitrateBps")) { | 17263 if (_json.containsKey("bitrateBps")) { |
| 17226 bitrateBps = _json["bitrateBps"]; | 17264 bitrateBps = _json["bitrateBps"]; |
| 17227 } | 17265 } |
| 17228 if (_json.containsKey("container")) { | 17266 if (_json.containsKey("container")) { |
| 17229 container = _json["container"]; | 17267 container = _json["container"]; |
| 17230 } | 17268 } |
| 17231 if (_json.containsKey("creationTime")) { | 17269 if (_json.containsKey("creationTime")) { |
| 17232 creationTime = _json["creationTime"]; | 17270 creationTime = _json["creationTime"]; |
| 17233 } | 17271 } |
| 17234 if (_json.containsKey("durationMs")) { | 17272 if (_json.containsKey("durationMs")) { |
| 17235 durationMs = _json["durationMs"]; | 17273 durationMs = _json["durationMs"]; |
| 17236 } | 17274 } |
| 17237 if (_json.containsKey("fileName")) { | 17275 if (_json.containsKey("fileName")) { |
| 17238 fileName = _json["fileName"]; | 17276 fileName = _json["fileName"]; |
| 17239 } | 17277 } |
| 17240 if (_json.containsKey("fileSize")) { | 17278 if (_json.containsKey("fileSize")) { |
| 17241 fileSize = _json["fileSize"]; | 17279 fileSize = _json["fileSize"]; |
| 17242 } | 17280 } |
| 17243 if (_json.containsKey("fileType")) { | 17281 if (_json.containsKey("fileType")) { |
| 17244 fileType = _json["fileType"]; | 17282 fileType = _json["fileType"]; |
| 17245 } | 17283 } |
| 17246 if (_json.containsKey("videoStreams")) { | 17284 if (_json.containsKey("videoStreams")) { |
| 17247 videoStreams = _json["videoStreams"].map((value) => new VideoFileDetailsVi
deoStream.fromJson(value)).toList(); | 17285 videoStreams = _json["videoStreams"] |
| 17286 .map((value) => new VideoFileDetailsVideoStream.fromJson(value)) |
| 17287 .toList(); |
| 17248 } | 17288 } |
| 17249 } | 17289 } |
| 17250 | 17290 |
| 17251 core.Map<core.String, core.Object> toJson() { | 17291 core.Map<core.String, core.Object> toJson() { |
| 17252 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17292 final core.Map<core.String, core.Object> _json = |
| 17293 new core.Map<core.String, core.Object>(); |
| 17253 if (audioStreams != null) { | 17294 if (audioStreams != null) { |
| 17254 _json["audioStreams"] = audioStreams.map((value) => (value).toJson()).toLi
st(); | 17295 _json["audioStreams"] = |
| 17296 audioStreams.map((value) => (value).toJson()).toList(); |
| 17255 } | 17297 } |
| 17256 if (bitrateBps != null) { | 17298 if (bitrateBps != null) { |
| 17257 _json["bitrateBps"] = bitrateBps; | 17299 _json["bitrateBps"] = bitrateBps; |
| 17258 } | 17300 } |
| 17259 if (container != null) { | 17301 if (container != null) { |
| 17260 _json["container"] = container; | 17302 _json["container"] = container; |
| 17261 } | 17303 } |
| 17262 if (creationTime != null) { | 17304 if (creationTime != null) { |
| 17263 _json["creationTime"] = creationTime; | 17305 _json["creationTime"] = creationTime; |
| 17264 } | 17306 } |
| 17265 if (durationMs != null) { | 17307 if (durationMs != null) { |
| 17266 _json["durationMs"] = durationMs; | 17308 _json["durationMs"] = durationMs; |
| 17267 } | 17309 } |
| 17268 if (fileName != null) { | 17310 if (fileName != null) { |
| 17269 _json["fileName"] = fileName; | 17311 _json["fileName"] = fileName; |
| 17270 } | 17312 } |
| 17271 if (fileSize != null) { | 17313 if (fileSize != null) { |
| 17272 _json["fileSize"] = fileSize; | 17314 _json["fileSize"] = fileSize; |
| 17273 } | 17315 } |
| 17274 if (fileType != null) { | 17316 if (fileType != null) { |
| 17275 _json["fileType"] = fileType; | 17317 _json["fileType"] = fileType; |
| 17276 } | 17318 } |
| 17277 if (videoStreams != null) { | 17319 if (videoStreams != null) { |
| 17278 _json["videoStreams"] = videoStreams.map((value) => (value).toJson()).toLi
st(); | 17320 _json["videoStreams"] = |
| 17321 videoStreams.map((value) => (value).toJson()).toList(); |
| 17279 } | 17322 } |
| 17280 return _json; | 17323 return _json; |
| 17281 } | 17324 } |
| 17282 } | 17325 } |
| 17283 | 17326 |
| 17284 /** Information about an audio stream. */ | 17327 /// Information about an audio stream. |
| 17285 class VideoFileDetailsAudioStream { | 17328 class VideoFileDetailsAudioStream { |
| 17286 /** The audio stream's bitrate, in bits per second. */ | 17329 /// The audio stream's bitrate, in bits per second. |
| 17287 core.String bitrateBps; | 17330 core.String bitrateBps; |
| 17288 /** The number of audio channels that the stream contains. */ | 17331 |
| 17332 /// The number of audio channels that the stream contains. |
| 17289 core.int channelCount; | 17333 core.int channelCount; |
| 17290 /** The audio codec that the stream uses. */ | 17334 |
| 17335 /// The audio codec that the stream uses. |
| 17291 core.String codec; | 17336 core.String codec; |
| 17292 /** | 17337 |
| 17293 * A value that uniquely identifies a video vendor. Typically, the value is a | 17338 /// A value that uniquely identifies a video vendor. Typically, the value is |
| 17294 * four-letter vendor code. | 17339 /// a four-letter vendor code. |
| 17295 */ | |
| 17296 core.String vendor; | 17340 core.String vendor; |
| 17297 | 17341 |
| 17298 VideoFileDetailsAudioStream(); | 17342 VideoFileDetailsAudioStream(); |
| 17299 | 17343 |
| 17300 VideoFileDetailsAudioStream.fromJson(core.Map _json) { | 17344 VideoFileDetailsAudioStream.fromJson(core.Map _json) { |
| 17301 if (_json.containsKey("bitrateBps")) { | 17345 if (_json.containsKey("bitrateBps")) { |
| 17302 bitrateBps = _json["bitrateBps"]; | 17346 bitrateBps = _json["bitrateBps"]; |
| 17303 } | 17347 } |
| 17304 if (_json.containsKey("channelCount")) { | 17348 if (_json.containsKey("channelCount")) { |
| 17305 channelCount = _json["channelCount"]; | 17349 channelCount = _json["channelCount"]; |
| 17306 } | 17350 } |
| 17307 if (_json.containsKey("codec")) { | 17351 if (_json.containsKey("codec")) { |
| 17308 codec = _json["codec"]; | 17352 codec = _json["codec"]; |
| 17309 } | 17353 } |
| 17310 if (_json.containsKey("vendor")) { | 17354 if (_json.containsKey("vendor")) { |
| 17311 vendor = _json["vendor"]; | 17355 vendor = _json["vendor"]; |
| 17312 } | 17356 } |
| 17313 } | 17357 } |
| 17314 | 17358 |
| 17315 core.Map<core.String, core.Object> toJson() { | 17359 core.Map<core.String, core.Object> toJson() { |
| 17316 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17360 final core.Map<core.String, core.Object> _json = |
| 17361 new core.Map<core.String, core.Object>(); |
| 17317 if (bitrateBps != null) { | 17362 if (bitrateBps != null) { |
| 17318 _json["bitrateBps"] = bitrateBps; | 17363 _json["bitrateBps"] = bitrateBps; |
| 17319 } | 17364 } |
| 17320 if (channelCount != null) { | 17365 if (channelCount != null) { |
| 17321 _json["channelCount"] = channelCount; | 17366 _json["channelCount"] = channelCount; |
| 17322 } | 17367 } |
| 17323 if (codec != null) { | 17368 if (codec != null) { |
| 17324 _json["codec"] = codec; | 17369 _json["codec"] = codec; |
| 17325 } | 17370 } |
| 17326 if (vendor != null) { | 17371 if (vendor != null) { |
| 17327 _json["vendor"] = vendor; | 17372 _json["vendor"] = vendor; |
| 17328 } | 17373 } |
| 17329 return _json; | 17374 return _json; |
| 17330 } | 17375 } |
| 17331 } | 17376 } |
| 17332 | 17377 |
| 17333 /** Information about a video stream. */ | 17378 /// Information about a video stream. |
| 17334 class VideoFileDetailsVideoStream { | 17379 class VideoFileDetailsVideoStream { |
| 17335 /** | 17380 /// The video content's display aspect ratio, which specifies the aspect |
| 17336 * The video content's display aspect ratio, which specifies the aspect ratio | 17381 /// ratio in which the video should be displayed. |
| 17337 * in which the video should be displayed. | |
| 17338 */ | |
| 17339 core.double aspectRatio; | 17382 core.double aspectRatio; |
| 17340 /** The video stream's bitrate, in bits per second. */ | 17383 |
| 17384 /// The video stream's bitrate, in bits per second. |
| 17341 core.String bitrateBps; | 17385 core.String bitrateBps; |
| 17342 /** The video codec that the stream uses. */ | 17386 |
| 17387 /// The video codec that the stream uses. |
| 17343 core.String codec; | 17388 core.String codec; |
| 17344 /** The video stream's frame rate, in frames per second. */ | 17389 |
| 17390 /// The video stream's frame rate, in frames per second. |
| 17345 core.double frameRateFps; | 17391 core.double frameRateFps; |
| 17346 /** The encoded video content's height in pixels. */ | 17392 |
| 17393 /// The encoded video content's height in pixels. |
| 17347 core.int heightPixels; | 17394 core.int heightPixels; |
| 17348 /** | 17395 |
| 17349 * The amount that YouTube needs to rotate the original source content to | 17396 /// The amount that YouTube needs to rotate the original source content to |
| 17350 * properly display the video. | 17397 /// properly display the video. |
| 17351 * Possible string values are: | 17398 /// Possible string values are: |
| 17352 * - "clockwise" | 17399 /// - "clockwise" |
| 17353 * - "counterClockwise" | 17400 /// - "counterClockwise" |
| 17354 * - "none" | 17401 /// - "none" |
| 17355 * - "other" | 17402 /// - "other" |
| 17356 * - "upsideDown" | 17403 /// - "upsideDown" |
| 17357 */ | |
| 17358 core.String rotation; | 17404 core.String rotation; |
| 17359 /** | 17405 |
| 17360 * A value that uniquely identifies a video vendor. Typically, the value is a | 17406 /// A value that uniquely identifies a video vendor. Typically, the value is |
| 17361 * four-letter vendor code. | 17407 /// a four-letter vendor code. |
| 17362 */ | |
| 17363 core.String vendor; | 17408 core.String vendor; |
| 17364 /** | 17409 |
| 17365 * The encoded video content's width in pixels. You can calculate the video's | 17410 /// The encoded video content's width in pixels. You can calculate the |
| 17366 * encoding aspect ratio as width_pixels / height_pixels. | 17411 /// video's encoding aspect ratio as width_pixels / height_pixels. |
| 17367 */ | |
| 17368 core.int widthPixels; | 17412 core.int widthPixels; |
| 17369 | 17413 |
| 17370 VideoFileDetailsVideoStream(); | 17414 VideoFileDetailsVideoStream(); |
| 17371 | 17415 |
| 17372 VideoFileDetailsVideoStream.fromJson(core.Map _json) { | 17416 VideoFileDetailsVideoStream.fromJson(core.Map _json) { |
| 17373 if (_json.containsKey("aspectRatio")) { | 17417 if (_json.containsKey("aspectRatio")) { |
| 17374 aspectRatio = _json["aspectRatio"]; | 17418 aspectRatio = _json["aspectRatio"]; |
| 17375 } | 17419 } |
| 17376 if (_json.containsKey("bitrateBps")) { | 17420 if (_json.containsKey("bitrateBps")) { |
| 17377 bitrateBps = _json["bitrateBps"]; | 17421 bitrateBps = _json["bitrateBps"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 17390 } | 17434 } |
| 17391 if (_json.containsKey("vendor")) { | 17435 if (_json.containsKey("vendor")) { |
| 17392 vendor = _json["vendor"]; | 17436 vendor = _json["vendor"]; |
| 17393 } | 17437 } |
| 17394 if (_json.containsKey("widthPixels")) { | 17438 if (_json.containsKey("widthPixels")) { |
| 17395 widthPixels = _json["widthPixels"]; | 17439 widthPixels = _json["widthPixels"]; |
| 17396 } | 17440 } |
| 17397 } | 17441 } |
| 17398 | 17442 |
| 17399 core.Map<core.String, core.Object> toJson() { | 17443 core.Map<core.String, core.Object> toJson() { |
| 17400 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17444 final core.Map<core.String, core.Object> _json = |
| 17445 new core.Map<core.String, core.Object>(); |
| 17401 if (aspectRatio != null) { | 17446 if (aspectRatio != null) { |
| 17402 _json["aspectRatio"] = aspectRatio; | 17447 _json["aspectRatio"] = aspectRatio; |
| 17403 } | 17448 } |
| 17404 if (bitrateBps != null) { | 17449 if (bitrateBps != null) { |
| 17405 _json["bitrateBps"] = bitrateBps; | 17450 _json["bitrateBps"] = bitrateBps; |
| 17406 } | 17451 } |
| 17407 if (codec != null) { | 17452 if (codec != null) { |
| 17408 _json["codec"] = codec; | 17453 _json["codec"] = codec; |
| 17409 } | 17454 } |
| 17410 if (frameRateFps != null) { | 17455 if (frameRateFps != null) { |
| 17411 _json["frameRateFps"] = frameRateFps; | 17456 _json["frameRateFps"] = frameRateFps; |
| 17412 } | 17457 } |
| 17413 if (heightPixels != null) { | 17458 if (heightPixels != null) { |
| 17414 _json["heightPixels"] = heightPixels; | 17459 _json["heightPixels"] = heightPixels; |
| 17415 } | 17460 } |
| 17416 if (rotation != null) { | 17461 if (rotation != null) { |
| 17417 _json["rotation"] = rotation; | 17462 _json["rotation"] = rotation; |
| 17418 } | 17463 } |
| 17419 if (vendor != null) { | 17464 if (vendor != null) { |
| 17420 _json["vendor"] = vendor; | 17465 _json["vendor"] = vendor; |
| 17421 } | 17466 } |
| 17422 if (widthPixels != null) { | 17467 if (widthPixels != null) { |
| 17423 _json["widthPixels"] = widthPixels; | 17468 _json["widthPixels"] = widthPixels; |
| 17424 } | 17469 } |
| 17425 return _json; | 17470 return _json; |
| 17426 } | 17471 } |
| 17427 } | 17472 } |
| 17428 | 17473 |
| 17429 class VideoGetRatingResponse { | 17474 class VideoGetRatingResponse { |
| 17430 /** Etag of this resource. */ | 17475 /// Etag of this resource. |
| 17431 core.String etag; | 17476 core.String etag; |
| 17432 /** Serialized EventId of the request which produced this response. */ | 17477 |
| 17478 /// Serialized EventId of the request which produced this response. |
| 17433 core.String eventId; | 17479 core.String eventId; |
| 17434 /** A list of ratings that match the request criteria. */ | 17480 |
| 17481 /// A list of ratings that match the request criteria. |
| 17435 core.List<VideoRating> items; | 17482 core.List<VideoRating> items; |
| 17436 /** | 17483 |
| 17437 * Identifies what kind of resource this is. Value: the fixed string | 17484 /// Identifies what kind of resource this is. Value: the fixed string |
| 17438 * "youtube#videoGetRatingResponse". | 17485 /// "youtube#videoGetRatingResponse". |
| 17439 */ | |
| 17440 core.String kind; | 17486 core.String kind; |
| 17441 /** The visitorId identifies the visitor. */ | 17487 |
| 17488 /// The visitorId identifies the visitor. |
| 17442 core.String visitorId; | 17489 core.String visitorId; |
| 17443 | 17490 |
| 17444 VideoGetRatingResponse(); | 17491 VideoGetRatingResponse(); |
| 17445 | 17492 |
| 17446 VideoGetRatingResponse.fromJson(core.Map _json) { | 17493 VideoGetRatingResponse.fromJson(core.Map _json) { |
| 17447 if (_json.containsKey("etag")) { | 17494 if (_json.containsKey("etag")) { |
| 17448 etag = _json["etag"]; | 17495 etag = _json["etag"]; |
| 17449 } | 17496 } |
| 17450 if (_json.containsKey("eventId")) { | 17497 if (_json.containsKey("eventId")) { |
| 17451 eventId = _json["eventId"]; | 17498 eventId = _json["eventId"]; |
| 17452 } | 17499 } |
| 17453 if (_json.containsKey("items")) { | 17500 if (_json.containsKey("items")) { |
| 17454 items = _json["items"].map((value) => new VideoRating.fromJson(value)).toL
ist(); | 17501 items = _json["items"] |
| 17502 .map((value) => new VideoRating.fromJson(value)) |
| 17503 .toList(); |
| 17455 } | 17504 } |
| 17456 if (_json.containsKey("kind")) { | 17505 if (_json.containsKey("kind")) { |
| 17457 kind = _json["kind"]; | 17506 kind = _json["kind"]; |
| 17458 } | 17507 } |
| 17459 if (_json.containsKey("visitorId")) { | 17508 if (_json.containsKey("visitorId")) { |
| 17460 visitorId = _json["visitorId"]; | 17509 visitorId = _json["visitorId"]; |
| 17461 } | 17510 } |
| 17462 } | 17511 } |
| 17463 | 17512 |
| 17464 core.Map<core.String, core.Object> toJson() { | 17513 core.Map<core.String, core.Object> toJson() { |
| 17465 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17514 final core.Map<core.String, core.Object> _json = |
| 17515 new core.Map<core.String, core.Object>(); |
| 17466 if (etag != null) { | 17516 if (etag != null) { |
| 17467 _json["etag"] = etag; | 17517 _json["etag"] = etag; |
| 17468 } | 17518 } |
| 17469 if (eventId != null) { | 17519 if (eventId != null) { |
| 17470 _json["eventId"] = eventId; | 17520 _json["eventId"] = eventId; |
| 17471 } | 17521 } |
| 17472 if (items != null) { | 17522 if (items != null) { |
| 17473 _json["items"] = items.map((value) => (value).toJson()).toList(); | 17523 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 17474 } | 17524 } |
| 17475 if (kind != null) { | 17525 if (kind != null) { |
| 17476 _json["kind"] = kind; | 17526 _json["kind"] = kind; |
| 17477 } | 17527 } |
| 17478 if (visitorId != null) { | 17528 if (visitorId != null) { |
| 17479 _json["visitorId"] = visitorId; | 17529 _json["visitorId"] = visitorId; |
| 17480 } | 17530 } |
| 17481 return _json; | 17531 return _json; |
| 17482 } | 17532 } |
| 17483 } | 17533 } |
| 17484 | 17534 |
| 17485 class VideoListResponse { | 17535 class VideoListResponse { |
| 17486 /** Etag of this resource. */ | 17536 /// Etag of this resource. |
| 17487 core.String etag; | 17537 core.String etag; |
| 17488 /** Serialized EventId of the request which produced this response. */ | 17538 |
| 17539 /// Serialized EventId of the request which produced this response. |
| 17489 core.String eventId; | 17540 core.String eventId; |
| 17490 /** A list of videos that match the request criteria. */ | 17541 |
| 17542 /// A list of videos that match the request criteria. |
| 17491 core.List<Video> items; | 17543 core.List<Video> items; |
| 17492 /** | 17544 |
| 17493 * Identifies what kind of resource this is. Value: the fixed string | 17545 /// Identifies what kind of resource this is. Value: the fixed string |
| 17494 * "youtube#videoListResponse". | 17546 /// "youtube#videoListResponse". |
| 17495 */ | |
| 17496 core.String kind; | 17547 core.String kind; |
| 17497 /** | 17548 |
| 17498 * The token that can be used as the value of the pageToken parameter to | 17549 /// The token that can be used as the value of the pageToken parameter to |
| 17499 * retrieve the next page in the result set. | 17550 /// retrieve the next page in the result set. |
| 17500 */ | |
| 17501 core.String nextPageToken; | 17551 core.String nextPageToken; |
| 17502 PageInfo pageInfo; | 17552 PageInfo pageInfo; |
| 17503 /** | 17553 |
| 17504 * The token that can be used as the value of the pageToken parameter to | 17554 /// The token that can be used as the value of the pageToken parameter to |
| 17505 * retrieve the previous page in the result set. | 17555 /// retrieve the previous page in the result set. |
| 17506 */ | |
| 17507 core.String prevPageToken; | 17556 core.String prevPageToken; |
| 17508 TokenPagination tokenPagination; | 17557 TokenPagination tokenPagination; |
| 17509 /** The visitorId identifies the visitor. */ | 17558 |
| 17559 /// The visitorId identifies the visitor. |
| 17510 core.String visitorId; | 17560 core.String visitorId; |
| 17511 | 17561 |
| 17512 VideoListResponse(); | 17562 VideoListResponse(); |
| 17513 | 17563 |
| 17514 VideoListResponse.fromJson(core.Map _json) { | 17564 VideoListResponse.fromJson(core.Map _json) { |
| 17515 if (_json.containsKey("etag")) { | 17565 if (_json.containsKey("etag")) { |
| 17516 etag = _json["etag"]; | 17566 etag = _json["etag"]; |
| 17517 } | 17567 } |
| 17518 if (_json.containsKey("eventId")) { | 17568 if (_json.containsKey("eventId")) { |
| 17519 eventId = _json["eventId"]; | 17569 eventId = _json["eventId"]; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 17535 } | 17585 } |
| 17536 if (_json.containsKey("tokenPagination")) { | 17586 if (_json.containsKey("tokenPagination")) { |
| 17537 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); | 17587 tokenPagination = new TokenPagination.fromJson(_json["tokenPagination"]); |
| 17538 } | 17588 } |
| 17539 if (_json.containsKey("visitorId")) { | 17589 if (_json.containsKey("visitorId")) { |
| 17540 visitorId = _json["visitorId"]; | 17590 visitorId = _json["visitorId"]; |
| 17541 } | 17591 } |
| 17542 } | 17592 } |
| 17543 | 17593 |
| 17544 core.Map<core.String, core.Object> toJson() { | 17594 core.Map<core.String, core.Object> toJson() { |
| 17545 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17595 final core.Map<core.String, core.Object> _json = |
| 17596 new core.Map<core.String, core.Object>(); |
| 17546 if (etag != null) { | 17597 if (etag != null) { |
| 17547 _json["etag"] = etag; | 17598 _json["etag"] = etag; |
| 17548 } | 17599 } |
| 17549 if (eventId != null) { | 17600 if (eventId != null) { |
| 17550 _json["eventId"] = eventId; | 17601 _json["eventId"] = eventId; |
| 17551 } | 17602 } |
| 17552 if (items != null) { | 17603 if (items != null) { |
| 17553 _json["items"] = items.map((value) => (value).toJson()).toList(); | 17604 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 17554 } | 17605 } |
| 17555 if (kind != null) { | 17606 if (kind != null) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 17567 if (tokenPagination != null) { | 17618 if (tokenPagination != null) { |
| 17568 _json["tokenPagination"] = (tokenPagination).toJson(); | 17619 _json["tokenPagination"] = (tokenPagination).toJson(); |
| 17569 } | 17620 } |
| 17570 if (visitorId != null) { | 17621 if (visitorId != null) { |
| 17571 _json["visitorId"] = visitorId; | 17622 _json["visitorId"] = visitorId; |
| 17572 } | 17623 } |
| 17573 return _json; | 17624 return _json; |
| 17574 } | 17625 } |
| 17575 } | 17626 } |
| 17576 | 17627 |
| 17577 /** Details about the live streaming metadata. */ | 17628 /// Details about the live streaming metadata. |
| 17578 class VideoLiveStreamingDetails { | 17629 class VideoLiveStreamingDetails { |
| 17579 /** | 17630 /// The ID of the currently active live chat attached to this video. This |
| 17580 * The ID of the currently active live chat attached to this video. This field | 17631 /// field is filled only if the video is a currently live broadcast that has |
| 17581 * is filled only if the video is a currently live broadcast that has live | 17632 /// live chat. Once the broadcast transitions to complete this field will be |
| 17582 * chat. Once the broadcast transitions to complete this field will be removed | 17633 /// removed and the live chat closed down. For persistent broadcasts that |
| 17583 * and the live chat closed down. For persistent broadcasts that live chat id | 17634 /// live chat id will no longer be tied to this video but rather to the new |
| 17584 * will no longer be tied to this video but rather to the new video being | 17635 /// video being displayed at the persistent page. |
| 17585 * displayed at the persistent page. | |
| 17586 */ | |
| 17587 core.String activeLiveChatId; | 17636 core.String activeLiveChatId; |
| 17588 /** | 17637 |
| 17589 * The time that the broadcast actually ended. The value is specified in ISO | 17638 /// The time that the broadcast actually ended. The value is specified in ISO |
| 17590 * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be available | 17639 /// 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be available |
| 17591 * until the broadcast is over. | 17640 /// until the broadcast is over. |
| 17592 */ | |
| 17593 core.DateTime actualEndTime; | 17641 core.DateTime actualEndTime; |
| 17594 /** | 17642 |
| 17595 * The time that the broadcast actually started. The value is specified in ISO | 17643 /// The time that the broadcast actually started. The value is specified in |
| 17596 * 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be available | 17644 /// ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. This value will not be |
| 17597 * until the broadcast begins. | 17645 /// available until the broadcast begins. |
| 17598 */ | |
| 17599 core.DateTime actualStartTime; | 17646 core.DateTime actualStartTime; |
| 17600 /** | 17647 |
| 17601 * The number of viewers currently watching the broadcast. The property and | 17648 /// The number of viewers currently watching the broadcast. The property and |
| 17602 * its value will be present if the broadcast has current viewers and the | 17649 /// its value will be present if the broadcast has current viewers and the |
| 17603 * broadcast owner has not hidden the viewcount for the video. Note that | 17650 /// broadcast owner has not hidden the viewcount for the video. Note that |
| 17604 * YouTube stops tracking the number of concurrent viewers for a broadcast | 17651 /// YouTube stops tracking the number of concurrent viewers for a broadcast |
| 17605 * when the broadcast ends. So, this property would not identify the number of | 17652 /// when the broadcast ends. So, this property would not identify the number |
| 17606 * viewers watching an archived video of a live broadcast that already ended. | 17653 /// of viewers watching an archived video of a live broadcast that already |
| 17607 */ | 17654 /// ended. |
| 17608 core.String concurrentViewers; | 17655 core.String concurrentViewers; |
| 17609 /** | 17656 |
| 17610 * The time that the broadcast is scheduled to end. The value is specified in | 17657 /// The time that the broadcast is scheduled to end. The value is specified |
| 17611 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. If the value is empty or the | 17658 /// in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. If the value is empty or the |
| 17612 * property is not present, then the broadcast is scheduled to continue | 17659 /// property is not present, then the broadcast is scheduled to continue |
| 17613 * indefinitely. | 17660 /// indefinitely. |
| 17614 */ | |
| 17615 core.DateTime scheduledEndTime; | 17661 core.DateTime scheduledEndTime; |
| 17616 /** | 17662 |
| 17617 * The time that the broadcast is scheduled to begin. The value is specified | 17663 /// The time that the broadcast is scheduled to begin. The value is specified |
| 17618 * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 17664 /// in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 17619 */ | |
| 17620 core.DateTime scheduledStartTime; | 17665 core.DateTime scheduledStartTime; |
| 17621 | 17666 |
| 17622 VideoLiveStreamingDetails(); | 17667 VideoLiveStreamingDetails(); |
| 17623 | 17668 |
| 17624 VideoLiveStreamingDetails.fromJson(core.Map _json) { | 17669 VideoLiveStreamingDetails.fromJson(core.Map _json) { |
| 17625 if (_json.containsKey("activeLiveChatId")) { | 17670 if (_json.containsKey("activeLiveChatId")) { |
| 17626 activeLiveChatId = _json["activeLiveChatId"]; | 17671 activeLiveChatId = _json["activeLiveChatId"]; |
| 17627 } | 17672 } |
| 17628 if (_json.containsKey("actualEndTime")) { | 17673 if (_json.containsKey("actualEndTime")) { |
| 17629 actualEndTime = core.DateTime.parse(_json["actualEndTime"]); | 17674 actualEndTime = core.DateTime.parse(_json["actualEndTime"]); |
| 17630 } | 17675 } |
| 17631 if (_json.containsKey("actualStartTime")) { | 17676 if (_json.containsKey("actualStartTime")) { |
| 17632 actualStartTime = core.DateTime.parse(_json["actualStartTime"]); | 17677 actualStartTime = core.DateTime.parse(_json["actualStartTime"]); |
| 17633 } | 17678 } |
| 17634 if (_json.containsKey("concurrentViewers")) { | 17679 if (_json.containsKey("concurrentViewers")) { |
| 17635 concurrentViewers = _json["concurrentViewers"]; | 17680 concurrentViewers = _json["concurrentViewers"]; |
| 17636 } | 17681 } |
| 17637 if (_json.containsKey("scheduledEndTime")) { | 17682 if (_json.containsKey("scheduledEndTime")) { |
| 17638 scheduledEndTime = core.DateTime.parse(_json["scheduledEndTime"]); | 17683 scheduledEndTime = core.DateTime.parse(_json["scheduledEndTime"]); |
| 17639 } | 17684 } |
| 17640 if (_json.containsKey("scheduledStartTime")) { | 17685 if (_json.containsKey("scheduledStartTime")) { |
| 17641 scheduledStartTime = core.DateTime.parse(_json["scheduledStartTime"]); | 17686 scheduledStartTime = core.DateTime.parse(_json["scheduledStartTime"]); |
| 17642 } | 17687 } |
| 17643 } | 17688 } |
| 17644 | 17689 |
| 17645 core.Map<core.String, core.Object> toJson() { | 17690 core.Map<core.String, core.Object> toJson() { |
| 17646 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17691 final core.Map<core.String, core.Object> _json = |
| 17692 new core.Map<core.String, core.Object>(); |
| 17647 if (activeLiveChatId != null) { | 17693 if (activeLiveChatId != null) { |
| 17648 _json["activeLiveChatId"] = activeLiveChatId; | 17694 _json["activeLiveChatId"] = activeLiveChatId; |
| 17649 } | 17695 } |
| 17650 if (actualEndTime != null) { | 17696 if (actualEndTime != null) { |
| 17651 _json["actualEndTime"] = (actualEndTime).toIso8601String(); | 17697 _json["actualEndTime"] = (actualEndTime).toIso8601String(); |
| 17652 } | 17698 } |
| 17653 if (actualStartTime != null) { | 17699 if (actualStartTime != null) { |
| 17654 _json["actualStartTime"] = (actualStartTime).toIso8601String(); | 17700 _json["actualStartTime"] = (actualStartTime).toIso8601String(); |
| 17655 } | 17701 } |
| 17656 if (concurrentViewers != null) { | 17702 if (concurrentViewers != null) { |
| 17657 _json["concurrentViewers"] = concurrentViewers; | 17703 _json["concurrentViewers"] = concurrentViewers; |
| 17658 } | 17704 } |
| 17659 if (scheduledEndTime != null) { | 17705 if (scheduledEndTime != null) { |
| 17660 _json["scheduledEndTime"] = (scheduledEndTime).toIso8601String(); | 17706 _json["scheduledEndTime"] = (scheduledEndTime).toIso8601String(); |
| 17661 } | 17707 } |
| 17662 if (scheduledStartTime != null) { | 17708 if (scheduledStartTime != null) { |
| 17663 _json["scheduledStartTime"] = (scheduledStartTime).toIso8601String(); | 17709 _json["scheduledStartTime"] = (scheduledStartTime).toIso8601String(); |
| 17664 } | 17710 } |
| 17665 return _json; | 17711 return _json; |
| 17666 } | 17712 } |
| 17667 } | 17713 } |
| 17668 | 17714 |
| 17669 /** Localized versions of certain video properties (e.g. title). */ | 17715 /// Localized versions of certain video properties (e.g. title). |
| 17670 class VideoLocalization { | 17716 class VideoLocalization { |
| 17671 /** Localized version of the video's description. */ | 17717 /// Localized version of the video's description. |
| 17672 core.String description; | 17718 core.String description; |
| 17673 /** Localized version of the video's title. */ | 17719 |
| 17720 /// Localized version of the video's title. |
| 17674 core.String title; | 17721 core.String title; |
| 17675 | 17722 |
| 17676 VideoLocalization(); | 17723 VideoLocalization(); |
| 17677 | 17724 |
| 17678 VideoLocalization.fromJson(core.Map _json) { | 17725 VideoLocalization.fromJson(core.Map _json) { |
| 17679 if (_json.containsKey("description")) { | 17726 if (_json.containsKey("description")) { |
| 17680 description = _json["description"]; | 17727 description = _json["description"]; |
| 17681 } | 17728 } |
| 17682 if (_json.containsKey("title")) { | 17729 if (_json.containsKey("title")) { |
| 17683 title = _json["title"]; | 17730 title = _json["title"]; |
| 17684 } | 17731 } |
| 17685 } | 17732 } |
| 17686 | 17733 |
| 17687 core.Map<core.String, core.Object> toJson() { | 17734 core.Map<core.String, core.Object> toJson() { |
| 17688 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17735 final core.Map<core.String, core.Object> _json = |
| 17736 new core.Map<core.String, core.Object>(); |
| 17689 if (description != null) { | 17737 if (description != null) { |
| 17690 _json["description"] = description; | 17738 _json["description"] = description; |
| 17691 } | 17739 } |
| 17692 if (title != null) { | 17740 if (title != null) { |
| 17693 _json["title"] = title; | 17741 _json["title"] = title; |
| 17694 } | 17742 } |
| 17695 return _json; | 17743 return _json; |
| 17696 } | 17744 } |
| 17697 } | 17745 } |
| 17698 | 17746 |
| 17699 /** Details about monetization of a YouTube Video. */ | 17747 /// Details about monetization of a YouTube Video. |
| 17700 class VideoMonetizationDetails { | 17748 class VideoMonetizationDetails { |
| 17701 /** | 17749 /// The value of access indicates whether the video can be monetized or not. |
| 17702 * The value of access indicates whether the video can be monetized or not. | |
| 17703 */ | |
| 17704 AccessPolicy access; | 17750 AccessPolicy access; |
| 17705 | 17751 |
| 17706 VideoMonetizationDetails(); | 17752 VideoMonetizationDetails(); |
| 17707 | 17753 |
| 17708 VideoMonetizationDetails.fromJson(core.Map _json) { | 17754 VideoMonetizationDetails.fromJson(core.Map _json) { |
| 17709 if (_json.containsKey("access")) { | 17755 if (_json.containsKey("access")) { |
| 17710 access = new AccessPolicy.fromJson(_json["access"]); | 17756 access = new AccessPolicy.fromJson(_json["access"]); |
| 17711 } | 17757 } |
| 17712 } | 17758 } |
| 17713 | 17759 |
| 17714 core.Map<core.String, core.Object> toJson() { | 17760 core.Map<core.String, core.Object> toJson() { |
| 17715 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17761 final core.Map<core.String, core.Object> _json = |
| 17762 new core.Map<core.String, core.Object>(); |
| 17716 if (access != null) { | 17763 if (access != null) { |
| 17717 _json["access"] = (access).toJson(); | 17764 _json["access"] = (access).toJson(); |
| 17718 } | 17765 } |
| 17719 return _json; | 17766 return _json; |
| 17720 } | 17767 } |
| 17721 } | 17768 } |
| 17722 | 17769 |
| 17723 /** Player to be used for a video playback. */ | 17770 /// Player to be used for a video playback. |
| 17724 class VideoPlayer { | 17771 class VideoPlayer { |
| 17725 core.String embedHeight; | 17772 core.String embedHeight; |
| 17726 /** An <iframe> tag that embeds a player that will play the video. */ | 17773 |
| 17774 /// An <iframe> tag that embeds a player that will play the video. |
| 17727 core.String embedHtml; | 17775 core.String embedHtml; |
| 17728 /** The embed width */ | 17776 |
| 17777 /// The embed width |
| 17729 core.String embedWidth; | 17778 core.String embedWidth; |
| 17730 | 17779 |
| 17731 VideoPlayer(); | 17780 VideoPlayer(); |
| 17732 | 17781 |
| 17733 VideoPlayer.fromJson(core.Map _json) { | 17782 VideoPlayer.fromJson(core.Map _json) { |
| 17734 if (_json.containsKey("embedHeight")) { | 17783 if (_json.containsKey("embedHeight")) { |
| 17735 embedHeight = _json["embedHeight"]; | 17784 embedHeight = _json["embedHeight"]; |
| 17736 } | 17785 } |
| 17737 if (_json.containsKey("embedHtml")) { | 17786 if (_json.containsKey("embedHtml")) { |
| 17738 embedHtml = _json["embedHtml"]; | 17787 embedHtml = _json["embedHtml"]; |
| 17739 } | 17788 } |
| 17740 if (_json.containsKey("embedWidth")) { | 17789 if (_json.containsKey("embedWidth")) { |
| 17741 embedWidth = _json["embedWidth"]; | 17790 embedWidth = _json["embedWidth"]; |
| 17742 } | 17791 } |
| 17743 } | 17792 } |
| 17744 | 17793 |
| 17745 core.Map<core.String, core.Object> toJson() { | 17794 core.Map<core.String, core.Object> toJson() { |
| 17746 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17795 final core.Map<core.String, core.Object> _json = |
| 17796 new core.Map<core.String, core.Object>(); |
| 17747 if (embedHeight != null) { | 17797 if (embedHeight != null) { |
| 17748 _json["embedHeight"] = embedHeight; | 17798 _json["embedHeight"] = embedHeight; |
| 17749 } | 17799 } |
| 17750 if (embedHtml != null) { | 17800 if (embedHtml != null) { |
| 17751 _json["embedHtml"] = embedHtml; | 17801 _json["embedHtml"] = embedHtml; |
| 17752 } | 17802 } |
| 17753 if (embedWidth != null) { | 17803 if (embedWidth != null) { |
| 17754 _json["embedWidth"] = embedWidth; | 17804 _json["embedWidth"] = embedWidth; |
| 17755 } | 17805 } |
| 17756 return _json; | 17806 return _json; |
| 17757 } | 17807 } |
| 17758 } | 17808 } |
| 17759 | 17809 |
| 17760 /** | 17810 /// Describes processing status and progress and availability of some other |
| 17761 * Describes processing status and progress and availability of some other Video | 17811 /// Video resource parts. |
| 17762 * resource parts. | |
| 17763 */ | |
| 17764 class VideoProcessingDetails { | 17812 class VideoProcessingDetails { |
| 17765 /** | 17813 /// This value indicates whether video editing suggestions, which might |
| 17766 * This value indicates whether video editing suggestions, which might improve | 17814 /// improve video quality or the playback experience, are available for the |
| 17767 * video quality or the playback experience, are available for the video. You | 17815 /// video. You can retrieve these suggestions by requesting the suggestions |
| 17768 * can retrieve these suggestions by requesting the suggestions part in your | 17816 /// part in your videos.list() request. |
| 17769 * videos.list() request. | |
| 17770 */ | |
| 17771 core.String editorSuggestionsAvailability; | 17817 core.String editorSuggestionsAvailability; |
| 17772 /** | 17818 |
| 17773 * This value indicates whether file details are available for the uploaded | 17819 /// This value indicates whether file details are available for the uploaded |
| 17774 * video. You can retrieve a video's file details by requesting the | 17820 /// video. You can retrieve a video's file details by requesting the |
| 17775 * fileDetails part in your videos.list() request. | 17821 /// fileDetails part in your videos.list() request. |
| 17776 */ | |
| 17777 core.String fileDetailsAvailability; | 17822 core.String fileDetailsAvailability; |
| 17778 /** | 17823 |
| 17779 * The reason that YouTube failed to process the video. This property will | 17824 /// The reason that YouTube failed to process the video. This property will |
| 17780 * only have a value if the processingStatus property's value is failed. | 17825 /// only have a value if the processingStatus property's value is failed. |
| 17781 * Possible string values are: | 17826 /// Possible string values are: |
| 17782 * - "other" | 17827 /// - "other" |
| 17783 * - "streamingFailed" | 17828 /// - "streamingFailed" |
| 17784 * - "transcodeFailed" | 17829 /// - "transcodeFailed" |
| 17785 * - "uploadFailed" | 17830 /// - "uploadFailed" |
| 17786 */ | |
| 17787 core.String processingFailureReason; | 17831 core.String processingFailureReason; |
| 17788 /** | 17832 |
| 17789 * This value indicates whether the video processing engine has generated | 17833 /// This value indicates whether the video processing engine has generated |
| 17790 * suggestions that might improve YouTube's ability to process the the video, | 17834 /// suggestions that might improve YouTube's ability to process the the |
| 17791 * warnings that explain video processing problems, or errors that cause video | 17835 /// video, warnings that explain video processing problems, or errors that |
| 17792 * processing problems. You can retrieve these suggestions by requesting the | 17836 /// cause video processing problems. You can retrieve these suggestions by |
| 17793 * suggestions part in your videos.list() request. | 17837 /// requesting the suggestions part in your videos.list() request. |
| 17794 */ | |
| 17795 core.String processingIssuesAvailability; | 17838 core.String processingIssuesAvailability; |
| 17796 /** | 17839 |
| 17797 * The processingProgress object contains information about the progress | 17840 /// The processingProgress object contains information about the progress |
| 17798 * YouTube has made in processing the video. The values are really only | 17841 /// YouTube has made in processing the video. The values are really only |
| 17799 * relevant if the video's processing status is processing. | 17842 /// relevant if the video's processing status is processing. |
| 17800 */ | |
| 17801 VideoProcessingDetailsProcessingProgress processingProgress; | 17843 VideoProcessingDetailsProcessingProgress processingProgress; |
| 17802 /** | 17844 |
| 17803 * The video's processing status. This value indicates whether YouTube was | 17845 /// The video's processing status. This value indicates whether YouTube was |
| 17804 * able to process the video or if the video is still being processed. | 17846 /// able to process the video or if the video is still being processed. |
| 17805 * Possible string values are: | 17847 /// Possible string values are: |
| 17806 * - "failed" | 17848 /// - "failed" |
| 17807 * - "processing" | 17849 /// - "processing" |
| 17808 * - "succeeded" | 17850 /// - "succeeded" |
| 17809 * - "terminated" | 17851 /// - "terminated" |
| 17810 */ | |
| 17811 core.String processingStatus; | 17852 core.String processingStatus; |
| 17812 /** | 17853 |
| 17813 * This value indicates whether keyword (tag) suggestions are available for | 17854 /// This value indicates whether keyword (tag) suggestions are available for |
| 17814 * the video. Tags can be added to a video's metadata to make it easier for | 17855 /// the video. Tags can be added to a video's metadata to make it easier for |
| 17815 * other users to find the video. You can retrieve these suggestions by | 17856 /// other users to find the video. You can retrieve these suggestions by |
| 17816 * requesting the suggestions part in your videos.list() request. | 17857 /// requesting the suggestions part in your videos.list() request. |
| 17817 */ | |
| 17818 core.String tagSuggestionsAvailability; | 17858 core.String tagSuggestionsAvailability; |
| 17819 /** | 17859 |
| 17820 * This value indicates whether thumbnail images have been generated for the | 17860 /// This value indicates whether thumbnail images have been generated for the |
| 17821 * video. | 17861 /// video. |
| 17822 */ | |
| 17823 core.String thumbnailsAvailability; | 17862 core.String thumbnailsAvailability; |
| 17824 | 17863 |
| 17825 VideoProcessingDetails(); | 17864 VideoProcessingDetails(); |
| 17826 | 17865 |
| 17827 VideoProcessingDetails.fromJson(core.Map _json) { | 17866 VideoProcessingDetails.fromJson(core.Map _json) { |
| 17828 if (_json.containsKey("editorSuggestionsAvailability")) { | 17867 if (_json.containsKey("editorSuggestionsAvailability")) { |
| 17829 editorSuggestionsAvailability = _json["editorSuggestionsAvailability"]; | 17868 editorSuggestionsAvailability = _json["editorSuggestionsAvailability"]; |
| 17830 } | 17869 } |
| 17831 if (_json.containsKey("fileDetailsAvailability")) { | 17870 if (_json.containsKey("fileDetailsAvailability")) { |
| 17832 fileDetailsAvailability = _json["fileDetailsAvailability"]; | 17871 fileDetailsAvailability = _json["fileDetailsAvailability"]; |
| 17833 } | 17872 } |
| 17834 if (_json.containsKey("processingFailureReason")) { | 17873 if (_json.containsKey("processingFailureReason")) { |
| 17835 processingFailureReason = _json["processingFailureReason"]; | 17874 processingFailureReason = _json["processingFailureReason"]; |
| 17836 } | 17875 } |
| 17837 if (_json.containsKey("processingIssuesAvailability")) { | 17876 if (_json.containsKey("processingIssuesAvailability")) { |
| 17838 processingIssuesAvailability = _json["processingIssuesAvailability"]; | 17877 processingIssuesAvailability = _json["processingIssuesAvailability"]; |
| 17839 } | 17878 } |
| 17840 if (_json.containsKey("processingProgress")) { | 17879 if (_json.containsKey("processingProgress")) { |
| 17841 processingProgress = new VideoProcessingDetailsProcessingProgress.fromJson
(_json["processingProgress"]); | 17880 processingProgress = |
| 17881 new VideoProcessingDetailsProcessingProgress.fromJson( |
| 17882 _json["processingProgress"]); |
| 17842 } | 17883 } |
| 17843 if (_json.containsKey("processingStatus")) { | 17884 if (_json.containsKey("processingStatus")) { |
| 17844 processingStatus = _json["processingStatus"]; | 17885 processingStatus = _json["processingStatus"]; |
| 17845 } | 17886 } |
| 17846 if (_json.containsKey("tagSuggestionsAvailability")) { | 17887 if (_json.containsKey("tagSuggestionsAvailability")) { |
| 17847 tagSuggestionsAvailability = _json["tagSuggestionsAvailability"]; | 17888 tagSuggestionsAvailability = _json["tagSuggestionsAvailability"]; |
| 17848 } | 17889 } |
| 17849 if (_json.containsKey("thumbnailsAvailability")) { | 17890 if (_json.containsKey("thumbnailsAvailability")) { |
| 17850 thumbnailsAvailability = _json["thumbnailsAvailability"]; | 17891 thumbnailsAvailability = _json["thumbnailsAvailability"]; |
| 17851 } | 17892 } |
| 17852 } | 17893 } |
| 17853 | 17894 |
| 17854 core.Map<core.String, core.Object> toJson() { | 17895 core.Map<core.String, core.Object> toJson() { |
| 17855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17896 final core.Map<core.String, core.Object> _json = |
| 17897 new core.Map<core.String, core.Object>(); |
| 17856 if (editorSuggestionsAvailability != null) { | 17898 if (editorSuggestionsAvailability != null) { |
| 17857 _json["editorSuggestionsAvailability"] = editorSuggestionsAvailability; | 17899 _json["editorSuggestionsAvailability"] = editorSuggestionsAvailability; |
| 17858 } | 17900 } |
| 17859 if (fileDetailsAvailability != null) { | 17901 if (fileDetailsAvailability != null) { |
| 17860 _json["fileDetailsAvailability"] = fileDetailsAvailability; | 17902 _json["fileDetailsAvailability"] = fileDetailsAvailability; |
| 17861 } | 17903 } |
| 17862 if (processingFailureReason != null) { | 17904 if (processingFailureReason != null) { |
| 17863 _json["processingFailureReason"] = processingFailureReason; | 17905 _json["processingFailureReason"] = processingFailureReason; |
| 17864 } | 17906 } |
| 17865 if (processingIssuesAvailability != null) { | 17907 if (processingIssuesAvailability != null) { |
| 17866 _json["processingIssuesAvailability"] = processingIssuesAvailability; | 17908 _json["processingIssuesAvailability"] = processingIssuesAvailability; |
| 17867 } | 17909 } |
| 17868 if (processingProgress != null) { | 17910 if (processingProgress != null) { |
| 17869 _json["processingProgress"] = (processingProgress).toJson(); | 17911 _json["processingProgress"] = (processingProgress).toJson(); |
| 17870 } | 17912 } |
| 17871 if (processingStatus != null) { | 17913 if (processingStatus != null) { |
| 17872 _json["processingStatus"] = processingStatus; | 17914 _json["processingStatus"] = processingStatus; |
| 17873 } | 17915 } |
| 17874 if (tagSuggestionsAvailability != null) { | 17916 if (tagSuggestionsAvailability != null) { |
| 17875 _json["tagSuggestionsAvailability"] = tagSuggestionsAvailability; | 17917 _json["tagSuggestionsAvailability"] = tagSuggestionsAvailability; |
| 17876 } | 17918 } |
| 17877 if (thumbnailsAvailability != null) { | 17919 if (thumbnailsAvailability != null) { |
| 17878 _json["thumbnailsAvailability"] = thumbnailsAvailability; | 17920 _json["thumbnailsAvailability"] = thumbnailsAvailability; |
| 17879 } | 17921 } |
| 17880 return _json; | 17922 return _json; |
| 17881 } | 17923 } |
| 17882 } | 17924 } |
| 17883 | 17925 |
| 17884 /** Video processing progress and completion time estimate. */ | 17926 /// Video processing progress and completion time estimate. |
| 17885 class VideoProcessingDetailsProcessingProgress { | 17927 class VideoProcessingDetailsProcessingProgress { |
| 17886 /** | 17928 /// The number of parts of the video that YouTube has already processed. You |
| 17887 * The number of parts of the video that YouTube has already processed. You | 17929 /// can estimate the percentage of the video that YouTube has already |
| 17888 * can estimate the percentage of the video that YouTube has already processed | 17930 /// processed by calculating: |
| 17889 * by calculating: | 17931 /// 100 * parts_processed / parts_total |
| 17890 * 100 * parts_processed / parts_total | 17932 /// |
| 17891 * | 17933 /// Note that since the estimated number of parts could increase without a |
| 17892 * Note that since the estimated number of parts could increase without a | 17934 /// corresponding increase in the number of parts that have already been |
| 17893 * corresponding increase in the number of parts that have already been | 17935 /// processed, it is possible that the calculated progress could periodically |
| 17894 * processed, it is possible that the calculated progress could periodically | 17936 /// decrease while YouTube processes a video. |
| 17895 * decrease while YouTube processes a video. | |
| 17896 */ | |
| 17897 core.String partsProcessed; | 17937 core.String partsProcessed; |
| 17898 /** | 17938 |
| 17899 * An estimate of the total number of parts that need to be processed for the | 17939 /// An estimate of the total number of parts that need to be processed for |
| 17900 * video. The number may be updated with more precise estimates while YouTube | 17940 /// the video. The number may be updated with more precise estimates while |
| 17901 * processes the video. | 17941 /// YouTube processes the video. |
| 17902 */ | |
| 17903 core.String partsTotal; | 17942 core.String partsTotal; |
| 17904 /** | 17943 |
| 17905 * An estimate of the amount of time, in millseconds, that YouTube needs to | 17944 /// An estimate of the amount of time, in millseconds, that YouTube needs to |
| 17906 * finish processing the video. | 17945 /// finish processing the video. |
| 17907 */ | |
| 17908 core.String timeLeftMs; | 17946 core.String timeLeftMs; |
| 17909 | 17947 |
| 17910 VideoProcessingDetailsProcessingProgress(); | 17948 VideoProcessingDetailsProcessingProgress(); |
| 17911 | 17949 |
| 17912 VideoProcessingDetailsProcessingProgress.fromJson(core.Map _json) { | 17950 VideoProcessingDetailsProcessingProgress.fromJson(core.Map _json) { |
| 17913 if (_json.containsKey("partsProcessed")) { | 17951 if (_json.containsKey("partsProcessed")) { |
| 17914 partsProcessed = _json["partsProcessed"]; | 17952 partsProcessed = _json["partsProcessed"]; |
| 17915 } | 17953 } |
| 17916 if (_json.containsKey("partsTotal")) { | 17954 if (_json.containsKey("partsTotal")) { |
| 17917 partsTotal = _json["partsTotal"]; | 17955 partsTotal = _json["partsTotal"]; |
| 17918 } | 17956 } |
| 17919 if (_json.containsKey("timeLeftMs")) { | 17957 if (_json.containsKey("timeLeftMs")) { |
| 17920 timeLeftMs = _json["timeLeftMs"]; | 17958 timeLeftMs = _json["timeLeftMs"]; |
| 17921 } | 17959 } |
| 17922 } | 17960 } |
| 17923 | 17961 |
| 17924 core.Map<core.String, core.Object> toJson() { | 17962 core.Map<core.String, core.Object> toJson() { |
| 17925 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17963 final core.Map<core.String, core.Object> _json = |
| 17964 new core.Map<core.String, core.Object>(); |
| 17926 if (partsProcessed != null) { | 17965 if (partsProcessed != null) { |
| 17927 _json["partsProcessed"] = partsProcessed; | 17966 _json["partsProcessed"] = partsProcessed; |
| 17928 } | 17967 } |
| 17929 if (partsTotal != null) { | 17968 if (partsTotal != null) { |
| 17930 _json["partsTotal"] = partsTotal; | 17969 _json["partsTotal"] = partsTotal; |
| 17931 } | 17970 } |
| 17932 if (timeLeftMs != null) { | 17971 if (timeLeftMs != null) { |
| 17933 _json["timeLeftMs"] = timeLeftMs; | 17972 _json["timeLeftMs"] = timeLeftMs; |
| 17934 } | 17973 } |
| 17935 return _json; | 17974 return _json; |
| 17936 } | 17975 } |
| 17937 } | 17976 } |
| 17938 | 17977 |
| 17939 /** Project specific details about the content of a YouTube Video. */ | 17978 /// Project specific details about the content of a YouTube Video. |
| 17940 class VideoProjectDetails { | 17979 class VideoProjectDetails { |
| 17941 /** A list of project tags associated with the video during the upload. */ | 17980 /// A list of project tags associated with the video during the upload. |
| 17942 core.List<core.String> tags; | 17981 core.List<core.String> tags; |
| 17943 | 17982 |
| 17944 VideoProjectDetails(); | 17983 VideoProjectDetails(); |
| 17945 | 17984 |
| 17946 VideoProjectDetails.fromJson(core.Map _json) { | 17985 VideoProjectDetails.fromJson(core.Map _json) { |
| 17947 if (_json.containsKey("tags")) { | 17986 if (_json.containsKey("tags")) { |
| 17948 tags = _json["tags"]; | 17987 tags = _json["tags"]; |
| 17949 } | 17988 } |
| 17950 } | 17989 } |
| 17951 | 17990 |
| 17952 core.Map<core.String, core.Object> toJson() { | 17991 core.Map<core.String, core.Object> toJson() { |
| 17953 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 17992 final core.Map<core.String, core.Object> _json = |
| 17993 new core.Map<core.String, core.Object>(); |
| 17954 if (tags != null) { | 17994 if (tags != null) { |
| 17955 _json["tags"] = tags; | 17995 _json["tags"] = tags; |
| 17956 } | 17996 } |
| 17957 return _json; | 17997 return _json; |
| 17958 } | 17998 } |
| 17959 } | 17999 } |
| 17960 | 18000 |
| 17961 class VideoRating { | 18001 class VideoRating { |
| 17962 /** | 18002 /// |
| 17963 * | 18003 /// Possible string values are: |
| 17964 * Possible string values are: | 18004 /// - "dislike" |
| 17965 * - "dislike" | 18005 /// - "like" |
| 17966 * - "like" | 18006 /// - "none" |
| 17967 * - "none" | 18007 /// - "unspecified" |
| 17968 * - "unspecified" | |
| 17969 */ | |
| 17970 core.String rating; | 18008 core.String rating; |
| 17971 core.String videoId; | 18009 core.String videoId; |
| 17972 | 18010 |
| 17973 VideoRating(); | 18011 VideoRating(); |
| 17974 | 18012 |
| 17975 VideoRating.fromJson(core.Map _json) { | 18013 VideoRating.fromJson(core.Map _json) { |
| 17976 if (_json.containsKey("rating")) { | 18014 if (_json.containsKey("rating")) { |
| 17977 rating = _json["rating"]; | 18015 rating = _json["rating"]; |
| 17978 } | 18016 } |
| 17979 if (_json.containsKey("videoId")) { | 18017 if (_json.containsKey("videoId")) { |
| 17980 videoId = _json["videoId"]; | 18018 videoId = _json["videoId"]; |
| 17981 } | 18019 } |
| 17982 } | 18020 } |
| 17983 | 18021 |
| 17984 core.Map<core.String, core.Object> toJson() { | 18022 core.Map<core.String, core.Object> toJson() { |
| 17985 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18023 final core.Map<core.String, core.Object> _json = |
| 18024 new core.Map<core.String, core.Object>(); |
| 17986 if (rating != null) { | 18025 if (rating != null) { |
| 17987 _json["rating"] = rating; | 18026 _json["rating"] = rating; |
| 17988 } | 18027 } |
| 17989 if (videoId != null) { | 18028 if (videoId != null) { |
| 17990 _json["videoId"] = videoId; | 18029 _json["videoId"] = videoId; |
| 17991 } | 18030 } |
| 17992 return _json; | 18031 return _json; |
| 17993 } | 18032 } |
| 17994 } | 18033 } |
| 17995 | 18034 |
| 17996 /** Recording information associated with the video. */ | 18035 /// Recording information associated with the video. |
| 17997 class VideoRecordingDetails { | 18036 class VideoRecordingDetails { |
| 17998 /** The geolocation information associated with the video. */ | 18037 /// The geolocation information associated with the video. |
| 17999 GeoPoint location; | 18038 GeoPoint location; |
| 18000 /** The text description of the location where the video was recorded. */ | 18039 |
| 18040 /// The text description of the location where the video was recorded. |
| 18001 core.String locationDescription; | 18041 core.String locationDescription; |
| 18002 /** | 18042 |
| 18003 * The date and time when the video was recorded. The value is specified in | 18043 /// The date and time when the video was recorded. The value is specified in |
| 18004 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. | 18044 /// ISO 8601 (YYYY-MM-DDThh:mm:ss.sssZ) format. |
| 18005 */ | |
| 18006 core.DateTime recordingDate; | 18045 core.DateTime recordingDate; |
| 18007 | 18046 |
| 18008 VideoRecordingDetails(); | 18047 VideoRecordingDetails(); |
| 18009 | 18048 |
| 18010 VideoRecordingDetails.fromJson(core.Map _json) { | 18049 VideoRecordingDetails.fromJson(core.Map _json) { |
| 18011 if (_json.containsKey("location")) { | 18050 if (_json.containsKey("location")) { |
| 18012 location = new GeoPoint.fromJson(_json["location"]); | 18051 location = new GeoPoint.fromJson(_json["location"]); |
| 18013 } | 18052 } |
| 18014 if (_json.containsKey("locationDescription")) { | 18053 if (_json.containsKey("locationDescription")) { |
| 18015 locationDescription = _json["locationDescription"]; | 18054 locationDescription = _json["locationDescription"]; |
| 18016 } | 18055 } |
| 18017 if (_json.containsKey("recordingDate")) { | 18056 if (_json.containsKey("recordingDate")) { |
| 18018 recordingDate = core.DateTime.parse(_json["recordingDate"]); | 18057 recordingDate = core.DateTime.parse(_json["recordingDate"]); |
| 18019 } | 18058 } |
| 18020 } | 18059 } |
| 18021 | 18060 |
| 18022 core.Map<core.String, core.Object> toJson() { | 18061 core.Map<core.String, core.Object> toJson() { |
| 18023 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18062 final core.Map<core.String, core.Object> _json = |
| 18063 new core.Map<core.String, core.Object>(); |
| 18024 if (location != null) { | 18064 if (location != null) { |
| 18025 _json["location"] = (location).toJson(); | 18065 _json["location"] = (location).toJson(); |
| 18026 } | 18066 } |
| 18027 if (locationDescription != null) { | 18067 if (locationDescription != null) { |
| 18028 _json["locationDescription"] = locationDescription; | 18068 _json["locationDescription"] = locationDescription; |
| 18029 } | 18069 } |
| 18030 if (recordingDate != null) { | 18070 if (recordingDate != null) { |
| 18031 _json["recordingDate"] = (recordingDate).toIso8601String(); | 18071 _json["recordingDate"] = (recordingDate).toIso8601String(); |
| 18032 } | 18072 } |
| 18033 return _json; | 18073 return _json; |
| 18034 } | 18074 } |
| 18035 } | 18075 } |
| 18036 | 18076 |
| 18037 /** | 18077 /// Basic details about a video, including title, description, uploader, |
| 18038 * Basic details about a video, including title, description, uploader, | 18078 /// thumbnails and category. |
| 18039 * thumbnails and category. | |
| 18040 */ | |
| 18041 class VideoSnippet { | 18079 class VideoSnippet { |
| 18042 /** The YouTube video category associated with the video. */ | 18080 /// The YouTube video category associated with the video. |
| 18043 core.String categoryId; | 18081 core.String categoryId; |
| 18044 /** | 18082 |
| 18045 * The ID that YouTube uses to uniquely identify the channel that the video | 18083 /// The ID that YouTube uses to uniquely identify the channel that the video |
| 18046 * was uploaded to. | 18084 /// was uploaded to. |
| 18047 */ | |
| 18048 core.String channelId; | 18085 core.String channelId; |
| 18049 /** Channel title for the channel that the video belongs to. */ | 18086 |
| 18087 /// Channel title for the channel that the video belongs to. |
| 18050 core.String channelTitle; | 18088 core.String channelTitle; |
| 18051 /** | 18089 |
| 18052 * The default_audio_language property specifies the language spoken in the | 18090 /// The default_audio_language property specifies the language spoken in the |
| 18053 * video's default audio track. | 18091 /// video's default audio track. |
| 18054 */ | |
| 18055 core.String defaultAudioLanguage; | 18092 core.String defaultAudioLanguage; |
| 18056 /** The language of the videos's default snippet. */ | 18093 |
| 18094 /// The language of the videos's default snippet. |
| 18057 core.String defaultLanguage; | 18095 core.String defaultLanguage; |
| 18058 /** The video's description. */ | 18096 |
| 18097 /// The video's description. |
| 18059 core.String description; | 18098 core.String description; |
| 18060 /** | 18099 |
| 18061 * Indicates if the video is an upcoming/active live broadcast. Or it's "none" | 18100 /// Indicates if the video is an upcoming/active live broadcast. Or it's |
| 18062 * if the video is not an upcoming/active live broadcast. | 18101 /// "none" if the video is not an upcoming/active live broadcast. |
| 18063 * Possible string values are: | 18102 /// Possible string values are: |
| 18064 * - "live" | 18103 /// - "live" |
| 18065 * - "none" | 18104 /// - "none" |
| 18066 * - "upcoming" | 18105 /// - "upcoming" |
| 18067 */ | |
| 18068 core.String liveBroadcastContent; | 18106 core.String liveBroadcastContent; |
| 18069 /** | 18107 |
| 18070 * Localized snippet selected with the hl parameter. If no such localization | 18108 /// Localized snippet selected with the hl parameter. If no such localization |
| 18071 * exists, this field is populated with the default snippet. (Read-only) | 18109 /// exists, this field is populated with the default snippet. (Read-only) |
| 18072 */ | |
| 18073 VideoLocalization localized; | 18110 VideoLocalization localized; |
| 18074 /** | 18111 |
| 18075 * The date and time that the video was uploaded. The value is specified in | 18112 /// The date and time that the video was uploaded. The value is specified in |
| 18076 * ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 18113 /// ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 18077 */ | |
| 18078 core.DateTime publishedAt; | 18114 core.DateTime publishedAt; |
| 18079 /** | 18115 |
| 18080 * A list of keyword tags associated with the video. Tags may contain spaces. | 18116 /// A list of keyword tags associated with the video. Tags may contain |
| 18081 */ | 18117 /// spaces. |
| 18082 core.List<core.String> tags; | 18118 core.List<core.String> tags; |
| 18083 /** | 18119 |
| 18084 * A map of thumbnail images associated with the video. For each object in the | 18120 /// A map of thumbnail images associated with the video. For each object in |
| 18085 * map, the key is the name of the thumbnail image, and the value is an object | 18121 /// the map, the key is the name of the thumbnail image, and the value is an |
| 18086 * that contains other information about the thumbnail. | 18122 /// object that contains other information about the thumbnail. |
| 18087 */ | |
| 18088 ThumbnailDetails thumbnails; | 18123 ThumbnailDetails thumbnails; |
| 18089 /** The video's title. */ | 18124 |
| 18125 /// The video's title. |
| 18090 core.String title; | 18126 core.String title; |
| 18091 | 18127 |
| 18092 VideoSnippet(); | 18128 VideoSnippet(); |
| 18093 | 18129 |
| 18094 VideoSnippet.fromJson(core.Map _json) { | 18130 VideoSnippet.fromJson(core.Map _json) { |
| 18095 if (_json.containsKey("categoryId")) { | 18131 if (_json.containsKey("categoryId")) { |
| 18096 categoryId = _json["categoryId"]; | 18132 categoryId = _json["categoryId"]; |
| 18097 } | 18133 } |
| 18098 if (_json.containsKey("channelId")) { | 18134 if (_json.containsKey("channelId")) { |
| 18099 channelId = _json["channelId"]; | 18135 channelId = _json["channelId"]; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 18124 } | 18160 } |
| 18125 if (_json.containsKey("thumbnails")) { | 18161 if (_json.containsKey("thumbnails")) { |
| 18126 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); | 18162 thumbnails = new ThumbnailDetails.fromJson(_json["thumbnails"]); |
| 18127 } | 18163 } |
| 18128 if (_json.containsKey("title")) { | 18164 if (_json.containsKey("title")) { |
| 18129 title = _json["title"]; | 18165 title = _json["title"]; |
| 18130 } | 18166 } |
| 18131 } | 18167 } |
| 18132 | 18168 |
| 18133 core.Map<core.String, core.Object> toJson() { | 18169 core.Map<core.String, core.Object> toJson() { |
| 18134 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18170 final core.Map<core.String, core.Object> _json = |
| 18171 new core.Map<core.String, core.Object>(); |
| 18135 if (categoryId != null) { | 18172 if (categoryId != null) { |
| 18136 _json["categoryId"] = categoryId; | 18173 _json["categoryId"] = categoryId; |
| 18137 } | 18174 } |
| 18138 if (channelId != null) { | 18175 if (channelId != null) { |
| 18139 _json["channelId"] = channelId; | 18176 _json["channelId"] = channelId; |
| 18140 } | 18177 } |
| 18141 if (channelTitle != null) { | 18178 if (channelTitle != null) { |
| 18142 _json["channelTitle"] = channelTitle; | 18179 _json["channelTitle"] = channelTitle; |
| 18143 } | 18180 } |
| 18144 if (defaultAudioLanguage != null) { | 18181 if (defaultAudioLanguage != null) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 18165 if (thumbnails != null) { | 18202 if (thumbnails != null) { |
| 18166 _json["thumbnails"] = (thumbnails).toJson(); | 18203 _json["thumbnails"] = (thumbnails).toJson(); |
| 18167 } | 18204 } |
| 18168 if (title != null) { | 18205 if (title != null) { |
| 18169 _json["title"] = title; | 18206 _json["title"] = title; |
| 18170 } | 18207 } |
| 18171 return _json; | 18208 return _json; |
| 18172 } | 18209 } |
| 18173 } | 18210 } |
| 18174 | 18211 |
| 18175 /** | 18212 /// Statistics about the video, such as the number of times the video was |
| 18176 * Statistics about the video, such as the number of times the video was viewed | 18213 /// viewed or liked. |
| 18177 * or liked. | |
| 18178 */ | |
| 18179 class VideoStatistics { | 18214 class VideoStatistics { |
| 18180 /** The number of comments for the video. */ | 18215 /// The number of comments for the video. |
| 18181 core.String commentCount; | 18216 core.String commentCount; |
| 18182 /** | 18217 |
| 18183 * The number of users who have indicated that they disliked the video by | 18218 /// The number of users who have indicated that they disliked the video by |
| 18184 * giving it a negative rating. | 18219 /// giving it a negative rating. |
| 18185 */ | |
| 18186 core.String dislikeCount; | 18220 core.String dislikeCount; |
| 18187 /** | 18221 |
| 18188 * The number of users who currently have the video marked as a favorite | 18222 /// The number of users who currently have the video marked as a favorite |
| 18189 * video. | 18223 /// video. |
| 18190 */ | |
| 18191 core.String favoriteCount; | 18224 core.String favoriteCount; |
| 18192 /** | 18225 |
| 18193 * The number of users who have indicated that they liked the video by giving | 18226 /// The number of users who have indicated that they liked the video by |
| 18194 * it a positive rating. | 18227 /// giving it a positive rating. |
| 18195 */ | |
| 18196 core.String likeCount; | 18228 core.String likeCount; |
| 18197 /** The number of times the video has been viewed. */ | 18229 |
| 18230 /// The number of times the video has been viewed. |
| 18198 core.String viewCount; | 18231 core.String viewCount; |
| 18199 | 18232 |
| 18200 VideoStatistics(); | 18233 VideoStatistics(); |
| 18201 | 18234 |
| 18202 VideoStatistics.fromJson(core.Map _json) { | 18235 VideoStatistics.fromJson(core.Map _json) { |
| 18203 if (_json.containsKey("commentCount")) { | 18236 if (_json.containsKey("commentCount")) { |
| 18204 commentCount = _json["commentCount"]; | 18237 commentCount = _json["commentCount"]; |
| 18205 } | 18238 } |
| 18206 if (_json.containsKey("dislikeCount")) { | 18239 if (_json.containsKey("dislikeCount")) { |
| 18207 dislikeCount = _json["dislikeCount"]; | 18240 dislikeCount = _json["dislikeCount"]; |
| 18208 } | 18241 } |
| 18209 if (_json.containsKey("favoriteCount")) { | 18242 if (_json.containsKey("favoriteCount")) { |
| 18210 favoriteCount = _json["favoriteCount"]; | 18243 favoriteCount = _json["favoriteCount"]; |
| 18211 } | 18244 } |
| 18212 if (_json.containsKey("likeCount")) { | 18245 if (_json.containsKey("likeCount")) { |
| 18213 likeCount = _json["likeCount"]; | 18246 likeCount = _json["likeCount"]; |
| 18214 } | 18247 } |
| 18215 if (_json.containsKey("viewCount")) { | 18248 if (_json.containsKey("viewCount")) { |
| 18216 viewCount = _json["viewCount"]; | 18249 viewCount = _json["viewCount"]; |
| 18217 } | 18250 } |
| 18218 } | 18251 } |
| 18219 | 18252 |
| 18220 core.Map<core.String, core.Object> toJson() { | 18253 core.Map<core.String, core.Object> toJson() { |
| 18221 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18254 final core.Map<core.String, core.Object> _json = |
| 18255 new core.Map<core.String, core.Object>(); |
| 18222 if (commentCount != null) { | 18256 if (commentCount != null) { |
| 18223 _json["commentCount"] = commentCount; | 18257 _json["commentCount"] = commentCount; |
| 18224 } | 18258 } |
| 18225 if (dislikeCount != null) { | 18259 if (dislikeCount != null) { |
| 18226 _json["dislikeCount"] = dislikeCount; | 18260 _json["dislikeCount"] = dislikeCount; |
| 18227 } | 18261 } |
| 18228 if (favoriteCount != null) { | 18262 if (favoriteCount != null) { |
| 18229 _json["favoriteCount"] = favoriteCount; | 18263 _json["favoriteCount"] = favoriteCount; |
| 18230 } | 18264 } |
| 18231 if (likeCount != null) { | 18265 if (likeCount != null) { |
| 18232 _json["likeCount"] = likeCount; | 18266 _json["likeCount"] = likeCount; |
| 18233 } | 18267 } |
| 18234 if (viewCount != null) { | 18268 if (viewCount != null) { |
| 18235 _json["viewCount"] = viewCount; | 18269 _json["viewCount"] = viewCount; |
| 18236 } | 18270 } |
| 18237 return _json; | 18271 return _json; |
| 18238 } | 18272 } |
| 18239 } | 18273 } |
| 18240 | 18274 |
| 18241 /** Basic details about a video category, such as its localized title. */ | 18275 /// Basic details about a video category, such as its localized title. |
| 18242 class VideoStatus { | 18276 class VideoStatus { |
| 18243 /** This value indicates if the video can be embedded on another website. */ | 18277 /// This value indicates if the video can be embedded on another website. |
| 18244 core.bool embeddable; | 18278 core.bool embeddable; |
| 18245 /** | 18279 |
| 18246 * This value explains why a video failed to upload. This property is only | 18280 /// This value explains why a video failed to upload. This property is only |
| 18247 * present if the uploadStatus property indicates that the upload failed. | 18281 /// present if the uploadStatus property indicates that the upload failed. |
| 18248 * Possible string values are: | 18282 /// Possible string values are: |
| 18249 * - "codec" | 18283 /// - "codec" |
| 18250 * - "conversion" | 18284 /// - "conversion" |
| 18251 * - "emptyFile" | 18285 /// - "emptyFile" |
| 18252 * - "invalidFile" | 18286 /// - "invalidFile" |
| 18253 * - "tooSmall" | 18287 /// - "tooSmall" |
| 18254 * - "uploadAborted" | 18288 /// - "uploadAborted" |
| 18255 */ | |
| 18256 core.String failureReason; | 18289 core.String failureReason; |
| 18257 /** | 18290 |
| 18258 * The video's license. | 18291 /// The video's license. |
| 18259 * Possible string values are: | 18292 /// Possible string values are: |
| 18260 * - "creativeCommon" | 18293 /// - "creativeCommon" |
| 18261 * - "youtube" | 18294 /// - "youtube" |
| 18262 */ | |
| 18263 core.String license; | 18295 core.String license; |
| 18264 /** | 18296 |
| 18265 * The video's privacy status. | 18297 /// The video's privacy status. |
| 18266 * Possible string values are: | 18298 /// Possible string values are: |
| 18267 * - "private" | 18299 /// - "private" |
| 18268 * - "public" | 18300 /// - "public" |
| 18269 * - "unlisted" | 18301 /// - "unlisted" |
| 18270 */ | |
| 18271 core.String privacyStatus; | 18302 core.String privacyStatus; |
| 18272 /** | 18303 |
| 18273 * This value indicates if the extended video statistics on the watch page can | 18304 /// This value indicates if the extended video statistics on the watch page |
| 18274 * be viewed by everyone. Note that the view count, likes, etc will still be | 18305 /// can be viewed by everyone. Note that the view count, likes, etc will |
| 18275 * visible if this is disabled. | 18306 /// still be visible if this is disabled. |
| 18276 */ | |
| 18277 core.bool publicStatsViewable; | 18307 core.bool publicStatsViewable; |
| 18278 /** | 18308 |
| 18279 * The date and time when the video is scheduled to publish. It can be set | 18309 /// The date and time when the video is scheduled to publish. It can be set |
| 18280 * only if the privacy status of the video is private. The value is specified | 18310 /// only if the privacy status of the video is private. The value is |
| 18281 * in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 18311 /// specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
| 18282 */ | |
| 18283 core.DateTime publishAt; | 18312 core.DateTime publishAt; |
| 18284 /** | 18313 |
| 18285 * This value explains why YouTube rejected an uploaded video. This property | 18314 /// This value explains why YouTube rejected an uploaded video. This property |
| 18286 * is only present if the uploadStatus property indicates that the upload was | 18315 /// is only present if the uploadStatus property indicates that the upload |
| 18287 * rejected. | 18316 /// was rejected. |
| 18288 * Possible string values are: | 18317 /// Possible string values are: |
| 18289 * - "claim" | 18318 /// - "claim" |
| 18290 * - "copyright" | 18319 /// - "copyright" |
| 18291 * - "duplicate" | 18320 /// - "duplicate" |
| 18292 * - "inappropriate" | 18321 /// - "inappropriate" |
| 18293 * - "legal" | 18322 /// - "legal" |
| 18294 * - "length" | 18323 /// - "length" |
| 18295 * - "termsOfUse" | 18324 /// - "termsOfUse" |
| 18296 * - "trademark" | 18325 /// - "trademark" |
| 18297 * - "uploaderAccountClosed" | 18326 /// - "uploaderAccountClosed" |
| 18298 * - "uploaderAccountSuspended" | 18327 /// - "uploaderAccountSuspended" |
| 18299 */ | |
| 18300 core.String rejectionReason; | 18328 core.String rejectionReason; |
| 18301 /** | 18329 |
| 18302 * The status of the uploaded video. | 18330 /// The status of the uploaded video. |
| 18303 * Possible string values are: | 18331 /// Possible string values are: |
| 18304 * - "deleted" | 18332 /// - "deleted" |
| 18305 * - "failed" | 18333 /// - "failed" |
| 18306 * - "processed" | 18334 /// - "processed" |
| 18307 * - "rejected" | 18335 /// - "rejected" |
| 18308 * - "uploaded" | 18336 /// - "uploaded" |
| 18309 */ | |
| 18310 core.String uploadStatus; | 18337 core.String uploadStatus; |
| 18311 | 18338 |
| 18312 VideoStatus(); | 18339 VideoStatus(); |
| 18313 | 18340 |
| 18314 VideoStatus.fromJson(core.Map _json) { | 18341 VideoStatus.fromJson(core.Map _json) { |
| 18315 if (_json.containsKey("embeddable")) { | 18342 if (_json.containsKey("embeddable")) { |
| 18316 embeddable = _json["embeddable"]; | 18343 embeddable = _json["embeddable"]; |
| 18317 } | 18344 } |
| 18318 if (_json.containsKey("failureReason")) { | 18345 if (_json.containsKey("failureReason")) { |
| 18319 failureReason = _json["failureReason"]; | 18346 failureReason = _json["failureReason"]; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 18332 } | 18359 } |
| 18333 if (_json.containsKey("rejectionReason")) { | 18360 if (_json.containsKey("rejectionReason")) { |
| 18334 rejectionReason = _json["rejectionReason"]; | 18361 rejectionReason = _json["rejectionReason"]; |
| 18335 } | 18362 } |
| 18336 if (_json.containsKey("uploadStatus")) { | 18363 if (_json.containsKey("uploadStatus")) { |
| 18337 uploadStatus = _json["uploadStatus"]; | 18364 uploadStatus = _json["uploadStatus"]; |
| 18338 } | 18365 } |
| 18339 } | 18366 } |
| 18340 | 18367 |
| 18341 core.Map<core.String, core.Object> toJson() { | 18368 core.Map<core.String, core.Object> toJson() { |
| 18342 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18369 final core.Map<core.String, core.Object> _json = |
| 18370 new core.Map<core.String, core.Object>(); |
| 18343 if (embeddable != null) { | 18371 if (embeddable != null) { |
| 18344 _json["embeddable"] = embeddable; | 18372 _json["embeddable"] = embeddable; |
| 18345 } | 18373 } |
| 18346 if (failureReason != null) { | 18374 if (failureReason != null) { |
| 18347 _json["failureReason"] = failureReason; | 18375 _json["failureReason"] = failureReason; |
| 18348 } | 18376 } |
| 18349 if (license != null) { | 18377 if (license != null) { |
| 18350 _json["license"] = license; | 18378 _json["license"] = license; |
| 18351 } | 18379 } |
| 18352 if (privacyStatus != null) { | 18380 if (privacyStatus != null) { |
| 18353 _json["privacyStatus"] = privacyStatus; | 18381 _json["privacyStatus"] = privacyStatus; |
| 18354 } | 18382 } |
| 18355 if (publicStatsViewable != null) { | 18383 if (publicStatsViewable != null) { |
| 18356 _json["publicStatsViewable"] = publicStatsViewable; | 18384 _json["publicStatsViewable"] = publicStatsViewable; |
| 18357 } | 18385 } |
| 18358 if (publishAt != null) { | 18386 if (publishAt != null) { |
| 18359 _json["publishAt"] = (publishAt).toIso8601String(); | 18387 _json["publishAt"] = (publishAt).toIso8601String(); |
| 18360 } | 18388 } |
| 18361 if (rejectionReason != null) { | 18389 if (rejectionReason != null) { |
| 18362 _json["rejectionReason"] = rejectionReason; | 18390 _json["rejectionReason"] = rejectionReason; |
| 18363 } | 18391 } |
| 18364 if (uploadStatus != null) { | 18392 if (uploadStatus != null) { |
| 18365 _json["uploadStatus"] = uploadStatus; | 18393 _json["uploadStatus"] = uploadStatus; |
| 18366 } | 18394 } |
| 18367 return _json; | 18395 return _json; |
| 18368 } | 18396 } |
| 18369 } | 18397 } |
| 18370 | 18398 |
| 18371 /** | 18399 /// Specifies suggestions on how to improve video content, including encoding |
| 18372 * Specifies suggestions on how to improve video content, including encoding | 18400 /// hints, tag suggestions, and editor suggestions. |
| 18373 * hints, tag suggestions, and editor suggestions. | |
| 18374 */ | |
| 18375 class VideoSuggestions { | 18401 class VideoSuggestions { |
| 18376 /** | 18402 /// A list of video editing operations that might improve the video quality |
| 18377 * A list of video editing operations that might improve the video quality or | 18403 /// or playback experience of the uploaded video. |
| 18378 * playback experience of the uploaded video. | |
| 18379 */ | |
| 18380 core.List<core.String> editorSuggestions; | 18404 core.List<core.String> editorSuggestions; |
| 18381 /** | 18405 |
| 18382 * A list of errors that will prevent YouTube from successfully processing the | 18406 /// A list of errors that will prevent YouTube from successfully processing |
| 18383 * uploaded video video. These errors indicate that, regardless of the video's | 18407 /// the uploaded video video. These errors indicate that, regardless of the |
| 18384 * current processing status, eventually, that status will almost certainly be | 18408 /// video's current processing status, eventually, that status will almost |
| 18385 * failed. | 18409 /// certainly be failed. |
| 18386 */ | |
| 18387 core.List<core.String> processingErrors; | 18410 core.List<core.String> processingErrors; |
| 18388 /** | 18411 |
| 18389 * A list of suggestions that may improve YouTube's ability to process the | 18412 /// A list of suggestions that may improve YouTube's ability to process the |
| 18390 * video. | 18413 /// video. |
| 18391 */ | |
| 18392 core.List<core.String> processingHints; | 18414 core.List<core.String> processingHints; |
| 18393 /** | 18415 |
| 18394 * A list of reasons why YouTube may have difficulty transcoding the uploaded | 18416 /// A list of reasons why YouTube may have difficulty transcoding the |
| 18395 * video or that might result in an erroneous transcoding. These warnings are | 18417 /// uploaded video or that might result in an erroneous transcoding. These |
| 18396 * generated before YouTube actually processes the uploaded video file. In | 18418 /// warnings are generated before YouTube actually processes the uploaded |
| 18397 * addition, they identify issues that are unlikely to cause the video | 18419 /// video file. In addition, they identify issues that are unlikely to cause |
| 18398 * processing to fail but that might cause problems such as sync issues, video | 18420 /// the video processing to fail but that might cause problems such as sync |
| 18399 * artifacts, or a missing audio track. | 18421 /// issues, video artifacts, or a missing audio track. |
| 18400 */ | |
| 18401 core.List<core.String> processingWarnings; | 18422 core.List<core.String> processingWarnings; |
| 18402 /** | 18423 |
| 18403 * A list of keyword tags that could be added to the video's metadata to | 18424 /// A list of keyword tags that could be added to the video's metadata to |
| 18404 * increase the likelihood that users will locate your video when searching or | 18425 /// increase the likelihood that users will locate your video when searching |
| 18405 * browsing on YouTube. | 18426 /// or browsing on YouTube. |
| 18406 */ | |
| 18407 core.List<VideoSuggestionsTagSuggestion> tagSuggestions; | 18427 core.List<VideoSuggestionsTagSuggestion> tagSuggestions; |
| 18408 | 18428 |
| 18409 VideoSuggestions(); | 18429 VideoSuggestions(); |
| 18410 | 18430 |
| 18411 VideoSuggestions.fromJson(core.Map _json) { | 18431 VideoSuggestions.fromJson(core.Map _json) { |
| 18412 if (_json.containsKey("editorSuggestions")) { | 18432 if (_json.containsKey("editorSuggestions")) { |
| 18413 editorSuggestions = _json["editorSuggestions"]; | 18433 editorSuggestions = _json["editorSuggestions"]; |
| 18414 } | 18434 } |
| 18415 if (_json.containsKey("processingErrors")) { | 18435 if (_json.containsKey("processingErrors")) { |
| 18416 processingErrors = _json["processingErrors"]; | 18436 processingErrors = _json["processingErrors"]; |
| 18417 } | 18437 } |
| 18418 if (_json.containsKey("processingHints")) { | 18438 if (_json.containsKey("processingHints")) { |
| 18419 processingHints = _json["processingHints"]; | 18439 processingHints = _json["processingHints"]; |
| 18420 } | 18440 } |
| 18421 if (_json.containsKey("processingWarnings")) { | 18441 if (_json.containsKey("processingWarnings")) { |
| 18422 processingWarnings = _json["processingWarnings"]; | 18442 processingWarnings = _json["processingWarnings"]; |
| 18423 } | 18443 } |
| 18424 if (_json.containsKey("tagSuggestions")) { | 18444 if (_json.containsKey("tagSuggestions")) { |
| 18425 tagSuggestions = _json["tagSuggestions"].map((value) => new VideoSuggestio
nsTagSuggestion.fromJson(value)).toList(); | 18445 tagSuggestions = _json["tagSuggestions"] |
| 18446 .map((value) => new VideoSuggestionsTagSuggestion.fromJson(value)) |
| 18447 .toList(); |
| 18426 } | 18448 } |
| 18427 } | 18449 } |
| 18428 | 18450 |
| 18429 core.Map<core.String, core.Object> toJson() { | 18451 core.Map<core.String, core.Object> toJson() { |
| 18430 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18452 final core.Map<core.String, core.Object> _json = |
| 18453 new core.Map<core.String, core.Object>(); |
| 18431 if (editorSuggestions != null) { | 18454 if (editorSuggestions != null) { |
| 18432 _json["editorSuggestions"] = editorSuggestions; | 18455 _json["editorSuggestions"] = editorSuggestions; |
| 18433 } | 18456 } |
| 18434 if (processingErrors != null) { | 18457 if (processingErrors != null) { |
| 18435 _json["processingErrors"] = processingErrors; | 18458 _json["processingErrors"] = processingErrors; |
| 18436 } | 18459 } |
| 18437 if (processingHints != null) { | 18460 if (processingHints != null) { |
| 18438 _json["processingHints"] = processingHints; | 18461 _json["processingHints"] = processingHints; |
| 18439 } | 18462 } |
| 18440 if (processingWarnings != null) { | 18463 if (processingWarnings != null) { |
| 18441 _json["processingWarnings"] = processingWarnings; | 18464 _json["processingWarnings"] = processingWarnings; |
| 18442 } | 18465 } |
| 18443 if (tagSuggestions != null) { | 18466 if (tagSuggestions != null) { |
| 18444 _json["tagSuggestions"] = tagSuggestions.map((value) => (value).toJson()).
toList(); | 18467 _json["tagSuggestions"] = |
| 18468 tagSuggestions.map((value) => (value).toJson()).toList(); |
| 18445 } | 18469 } |
| 18446 return _json; | 18470 return _json; |
| 18447 } | 18471 } |
| 18448 } | 18472 } |
| 18449 | 18473 |
| 18450 /** A single tag suggestion with it's relevance information. */ | 18474 /// A single tag suggestion with it's relevance information. |
| 18451 class VideoSuggestionsTagSuggestion { | 18475 class VideoSuggestionsTagSuggestion { |
| 18452 /** | 18476 /// A set of video categories for which the tag is relevant. You can use this |
| 18453 * A set of video categories for which the tag is relevant. You can use this | 18477 /// information to display appropriate tag suggestions based on the video |
| 18454 * information to display appropriate tag suggestions based on the video | 18478 /// category that the video uploader associates with the video. By default, |
| 18455 * category that the video uploader associates with the video. By default, tag | 18479 /// tag suggestions are relevant for all categories if there are no restricts |
| 18456 * suggestions are relevant for all categories if there are no restricts | 18480 /// defined for the keyword. |
| 18457 * defined for the keyword. | |
| 18458 */ | |
| 18459 core.List<core.String> categoryRestricts; | 18481 core.List<core.String> categoryRestricts; |
| 18460 /** The keyword tag suggested for the video. */ | 18482 |
| 18483 /// The keyword tag suggested for the video. |
| 18461 core.String tag; | 18484 core.String tag; |
| 18462 | 18485 |
| 18463 VideoSuggestionsTagSuggestion(); | 18486 VideoSuggestionsTagSuggestion(); |
| 18464 | 18487 |
| 18465 VideoSuggestionsTagSuggestion.fromJson(core.Map _json) { | 18488 VideoSuggestionsTagSuggestion.fromJson(core.Map _json) { |
| 18466 if (_json.containsKey("categoryRestricts")) { | 18489 if (_json.containsKey("categoryRestricts")) { |
| 18467 categoryRestricts = _json["categoryRestricts"]; | 18490 categoryRestricts = _json["categoryRestricts"]; |
| 18468 } | 18491 } |
| 18469 if (_json.containsKey("tag")) { | 18492 if (_json.containsKey("tag")) { |
| 18470 tag = _json["tag"]; | 18493 tag = _json["tag"]; |
| 18471 } | 18494 } |
| 18472 } | 18495 } |
| 18473 | 18496 |
| 18474 core.Map<core.String, core.Object> toJson() { | 18497 core.Map<core.String, core.Object> toJson() { |
| 18475 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18498 final core.Map<core.String, core.Object> _json = |
| 18499 new core.Map<core.String, core.Object>(); |
| 18476 if (categoryRestricts != null) { | 18500 if (categoryRestricts != null) { |
| 18477 _json["categoryRestricts"] = categoryRestricts; | 18501 _json["categoryRestricts"] = categoryRestricts; |
| 18478 } | 18502 } |
| 18479 if (tag != null) { | 18503 if (tag != null) { |
| 18480 _json["tag"] = tag; | 18504 _json["tag"] = tag; |
| 18481 } | 18505 } |
| 18482 return _json; | 18506 return _json; |
| 18483 } | 18507 } |
| 18484 } | 18508 } |
| 18485 | 18509 |
| 18486 /** Freebase topic information related to the video. */ | 18510 /// Freebase topic information related to the video. |
| 18487 class VideoTopicDetails { | 18511 class VideoTopicDetails { |
| 18488 /** | 18512 /// Similar to topic_id, except that these topics are merely relevant to the |
| 18489 * Similar to topic_id, except that these topics are merely relevant to the | 18513 /// video. These are topics that may be mentioned in, or appear in the video. |
| 18490 * video. These are topics that may be mentioned in, or appear in the video. | 18514 /// You can retrieve information about each topic using Freebase Topic API. |
| 18491 * You can retrieve information about each topic using Freebase Topic API. | |
| 18492 */ | |
| 18493 core.List<core.String> relevantTopicIds; | 18515 core.List<core.String> relevantTopicIds; |
| 18494 /** | 18516 |
| 18495 * A list of Wikipedia URLs that provide a high-level description of the | 18517 /// A list of Wikipedia URLs that provide a high-level description of the |
| 18496 * video's content. | 18518 /// video's content. |
| 18497 */ | |
| 18498 core.List<core.String> topicCategories; | 18519 core.List<core.String> topicCategories; |
| 18499 /** | 18520 |
| 18500 * A list of Freebase topic IDs that are centrally associated with the video. | 18521 /// A list of Freebase topic IDs that are centrally associated with the |
| 18501 * These are topics that are centrally featured in the video, and it can be | 18522 /// video. These are topics that are centrally featured in the video, and it |
| 18502 * said that the video is mainly about each of these. You can retrieve | 18523 /// can be said that the video is mainly about each of these. You can |
| 18503 * information about each topic using the Freebase Topic API. | 18524 /// retrieve information about each topic using the Freebase Topic API. |
| 18504 */ | |
| 18505 core.List<core.String> topicIds; | 18525 core.List<core.String> topicIds; |
| 18506 | 18526 |
| 18507 VideoTopicDetails(); | 18527 VideoTopicDetails(); |
| 18508 | 18528 |
| 18509 VideoTopicDetails.fromJson(core.Map _json) { | 18529 VideoTopicDetails.fromJson(core.Map _json) { |
| 18510 if (_json.containsKey("relevantTopicIds")) { | 18530 if (_json.containsKey("relevantTopicIds")) { |
| 18511 relevantTopicIds = _json["relevantTopicIds"]; | 18531 relevantTopicIds = _json["relevantTopicIds"]; |
| 18512 } | 18532 } |
| 18513 if (_json.containsKey("topicCategories")) { | 18533 if (_json.containsKey("topicCategories")) { |
| 18514 topicCategories = _json["topicCategories"]; | 18534 topicCategories = _json["topicCategories"]; |
| 18515 } | 18535 } |
| 18516 if (_json.containsKey("topicIds")) { | 18536 if (_json.containsKey("topicIds")) { |
| 18517 topicIds = _json["topicIds"]; | 18537 topicIds = _json["topicIds"]; |
| 18518 } | 18538 } |
| 18519 } | 18539 } |
| 18520 | 18540 |
| 18521 core.Map<core.String, core.Object> toJson() { | 18541 core.Map<core.String, core.Object> toJson() { |
| 18522 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18542 final core.Map<core.String, core.Object> _json = |
| 18543 new core.Map<core.String, core.Object>(); |
| 18523 if (relevantTopicIds != null) { | 18544 if (relevantTopicIds != null) { |
| 18524 _json["relevantTopicIds"] = relevantTopicIds; | 18545 _json["relevantTopicIds"] = relevantTopicIds; |
| 18525 } | 18546 } |
| 18526 if (topicCategories != null) { | 18547 if (topicCategories != null) { |
| 18527 _json["topicCategories"] = topicCategories; | 18548 _json["topicCategories"] = topicCategories; |
| 18528 } | 18549 } |
| 18529 if (topicIds != null) { | 18550 if (topicIds != null) { |
| 18530 _json["topicIds"] = topicIds; | 18551 _json["topicIds"] = topicIds; |
| 18531 } | 18552 } |
| 18532 return _json; | 18553 return _json; |
| 18533 } | 18554 } |
| 18534 } | 18555 } |
| 18535 | 18556 |
| 18536 /** Branding properties for the watch. All deprecated. */ | 18557 /// Branding properties for the watch. All deprecated. |
| 18537 class WatchSettings { | 18558 class WatchSettings { |
| 18538 /** The text color for the video watch page's branded area. */ | 18559 /// The text color for the video watch page's branded area. |
| 18539 core.String backgroundColor; | 18560 core.String backgroundColor; |
| 18540 /** | 18561 |
| 18541 * An ID that uniquely identifies a playlist that displays next to the video | 18562 /// An ID that uniquely identifies a playlist that displays next to the video |
| 18542 * player. | 18563 /// player. |
| 18543 */ | |
| 18544 core.String featuredPlaylistId; | 18564 core.String featuredPlaylistId; |
| 18545 /** The background color for the video watch page's branded area. */ | 18565 |
| 18566 /// The background color for the video watch page's branded area. |
| 18546 core.String textColor; | 18567 core.String textColor; |
| 18547 | 18568 |
| 18548 WatchSettings(); | 18569 WatchSettings(); |
| 18549 | 18570 |
| 18550 WatchSettings.fromJson(core.Map _json) { | 18571 WatchSettings.fromJson(core.Map _json) { |
| 18551 if (_json.containsKey("backgroundColor")) { | 18572 if (_json.containsKey("backgroundColor")) { |
| 18552 backgroundColor = _json["backgroundColor"]; | 18573 backgroundColor = _json["backgroundColor"]; |
| 18553 } | 18574 } |
| 18554 if (_json.containsKey("featuredPlaylistId")) { | 18575 if (_json.containsKey("featuredPlaylistId")) { |
| 18555 featuredPlaylistId = _json["featuredPlaylistId"]; | 18576 featuredPlaylistId = _json["featuredPlaylistId"]; |
| 18556 } | 18577 } |
| 18557 if (_json.containsKey("textColor")) { | 18578 if (_json.containsKey("textColor")) { |
| 18558 textColor = _json["textColor"]; | 18579 textColor = _json["textColor"]; |
| 18559 } | 18580 } |
| 18560 } | 18581 } |
| 18561 | 18582 |
| 18562 core.Map<core.String, core.Object> toJson() { | 18583 core.Map<core.String, core.Object> toJson() { |
| 18563 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 18584 final core.Map<core.String, core.Object> _json = |
| 18585 new core.Map<core.String, core.Object>(); |
| 18564 if (backgroundColor != null) { | 18586 if (backgroundColor != null) { |
| 18565 _json["backgroundColor"] = backgroundColor; | 18587 _json["backgroundColor"] = backgroundColor; |
| 18566 } | 18588 } |
| 18567 if (featuredPlaylistId != null) { | 18589 if (featuredPlaylistId != null) { |
| 18568 _json["featuredPlaylistId"] = featuredPlaylistId; | 18590 _json["featuredPlaylistId"] = featuredPlaylistId; |
| 18569 } | 18591 } |
| 18570 if (textColor != null) { | 18592 if (textColor != null) { |
| 18571 _json["textColor"] = textColor; | 18593 _json["textColor"] = textColor; |
| 18572 } | 18594 } |
| 18573 return _json; | 18595 return _json; |
| 18574 } | 18596 } |
| 18575 } | 18597 } |
| OLD | NEW |