| 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.playmoviespartner.v1; | 3 library googleapis.playmoviespartner.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
| 13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client playmoviespartner/v1'; | 15 const core.String USER_AGENT = 'dart-api-client playmoviespartner/v1'; |
| 16 | 16 |
| 17 /** Gets the delivery status of titles for Google Play Movies Partners. */ | 17 /// Gets the delivery status of titles for Google Play Movies Partners. |
| 18 class PlaymoviespartnerApi { | 18 class PlaymoviespartnerApi { |
| 19 /** View the digital assets you publish on Google Play Movies and TV */ | 19 /// View the digital assets you publish on Google Play Movies and TV |
| 20 static const PlaymoviesPartnerReadonlyScope = "https://www.googleapis.com/auth
/playmovies_partner.readonly"; | 20 static const PlaymoviesPartnerReadonlyScope = |
| 21 | 21 "https://www.googleapis.com/auth/playmovies_partner.readonly"; |
| 22 | 22 |
| 23 final commons.ApiRequester _requester; | 23 final commons.ApiRequester _requester; |
| 24 | 24 |
| 25 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); | 25 AccountsResourceApi get accounts => new AccountsResourceApi(_requester); |
| 26 | 26 |
| 27 PlaymoviespartnerApi(http.Client client, {core.String rootUrl: "https://playmo
viespartner.googleapis.com/", core.String servicePath: ""}) : | 27 PlaymoviespartnerApi(http.Client client, |
| 28 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 28 {core.String rootUrl: "https://playmoviespartner.googleapis.com/", |
| 29 core.String servicePath: ""}) |
| 30 : _requester = |
| 31 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 29 } | 32 } |
| 30 | 33 |
| 31 | |
| 32 class AccountsResourceApi { | 34 class AccountsResourceApi { |
| 33 final commons.ApiRequester _requester; | 35 final commons.ApiRequester _requester; |
| 34 | 36 |
| 35 AccountsAvailsResourceApi get avails => new AccountsAvailsResourceApi(_request
er); | 37 AccountsAvailsResourceApi get avails => |
| 36 AccountsOrdersResourceApi get orders => new AccountsOrdersResourceApi(_request
er); | 38 new AccountsAvailsResourceApi(_requester); |
| 37 AccountsStoreInfosResourceApi get storeInfos => new AccountsStoreInfosResource
Api(_requester); | 39 AccountsOrdersResourceApi get orders => |
| 40 new AccountsOrdersResourceApi(_requester); |
| 41 AccountsStoreInfosResourceApi get storeInfos => |
| 42 new AccountsStoreInfosResourceApi(_requester); |
| 38 | 43 |
| 39 AccountsResourceApi(commons.ApiRequester client) : | 44 AccountsResourceApi(commons.ApiRequester client) : _requester = client; |
| 40 _requester = client; | |
| 41 } | 45 } |
| 42 | 46 |
| 43 | |
| 44 class AccountsAvailsResourceApi { | 47 class AccountsAvailsResourceApi { |
| 45 final commons.ApiRequester _requester; | 48 final commons.ApiRequester _requester; |
| 46 | 49 |
| 47 AccountsAvailsResourceApi(commons.ApiRequester client) : | 50 AccountsAvailsResourceApi(commons.ApiRequester client) : _requester = client; |
| 48 _requester = client; | |
| 49 | 51 |
| 50 /** | 52 /// Get an Avail given its avail group id and avail id. |
| 51 * Get an Avail given its avail group id and avail id. | 53 /// |
| 52 * | 54 /// Request parameters: |
| 53 * Request parameters: | 55 /// |
| 54 * | 56 /// [accountId] - REQUIRED. See _General rules_ for more information about |
| 55 * [accountId] - REQUIRED. See _General rules_ for more information about this | 57 /// this field. |
| 56 * field. | 58 /// |
| 57 * | 59 /// [availId] - REQUIRED. Avail ID. |
| 58 * [availId] - REQUIRED. Avail ID. | 60 /// |
| 59 * | 61 /// Completes with a [Avail]. |
| 60 * Completes with a [Avail]. | 62 /// |
| 61 * | 63 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 62 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 64 /// an error. |
| 63 * error. | 65 /// |
| 64 * | 66 /// If the used [http.Client] completes with an error when making a REST |
| 65 * If the used [http.Client] completes with an error when making a REST call, | 67 /// call, this method will complete with the same error. |
| 66 * this method will complete with the same error. | |
| 67 */ | |
| 68 async.Future<Avail> get(core.String accountId, core.String availId) { | 68 async.Future<Avail> get(core.String accountId, core.String availId) { |
| 69 var _url = null; | 69 var _url = null; |
| 70 var _queryParams = new core.Map(); | 70 var _queryParams = new core.Map(); |
| 71 var _uploadMedia = null; | 71 var _uploadMedia = null; |
| 72 var _uploadOptions = null; | 72 var _uploadOptions = null; |
| 73 var _downloadOptions = commons.DownloadOptions.Metadata; | 73 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 74 var _body = null; | 74 var _body = null; |
| 75 | 75 |
| 76 if (accountId == null) { | 76 if (accountId == null) { |
| 77 throw new core.ArgumentError("Parameter accountId is required."); | 77 throw new core.ArgumentError("Parameter accountId is required."); |
| 78 } | 78 } |
| 79 if (availId == null) { | 79 if (availId == null) { |
| 80 throw new core.ArgumentError("Parameter availId is required."); | 80 throw new core.ArgumentError("Parameter availId is required."); |
| 81 } | 81 } |
| 82 | 82 |
| 83 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
ls/' + commons.Escaper.ecapeVariable('$availId'); | 83 _url = 'v1/accounts/' + |
| 84 commons.Escaper.ecapeVariable('$accountId') + |
| 85 '/avails/' + |
| 86 commons.Escaper.ecapeVariable('$availId'); |
| 84 | 87 |
| 85 var _response = _requester.request(_url, | 88 var _response = _requester.request(_url, "GET", |
| 86 "GET", | 89 body: _body, |
| 87 body: _body, | 90 queryParams: _queryParams, |
| 88 queryParams: _queryParams, | 91 uploadOptions: _uploadOptions, |
| 89 uploadOptions: _uploadOptions, | 92 uploadMedia: _uploadMedia, |
| 90 uploadMedia: _uploadMedia, | 93 downloadOptions: _downloadOptions); |
| 91 downloadOptions: _downloadOptions); | |
| 92 return _response.then((data) => new Avail.fromJson(data)); | 94 return _response.then((data) => new Avail.fromJson(data)); |
| 93 } | 95 } |
| 94 | 96 |
| 95 /** | 97 /// List Avails owned or managed by the partner. |
| 96 * List Avails owned or managed by the partner. | 98 /// |
| 97 * | 99 /// See _Authentication and Authorization rules_ and |
| 98 * See _Authentication and Authorization rules_ and | 100 /// _List methods rules_ for more information about this method. |
| 99 * _List methods rules_ for more information about this method. | 101 /// |
| 100 * | 102 /// Request parameters: |
| 101 * Request parameters: | 103 /// |
| 102 * | 104 /// [accountId] - REQUIRED. See _General rules_ for more information about |
| 103 * [accountId] - REQUIRED. See _General rules_ for more information about this | 105 /// this field. |
| 104 * field. | 106 /// |
| 105 * | 107 /// [territories] - Filter Avails that match (case-insensitive) any of the |
| 106 * [pphNames] - See _List methods rules_ for info about this field. | 108 /// given country codes, |
| 107 * | 109 /// using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). |
| 108 * [altId] - Filter Avails that match a case-insensitive, partner-specific | 110 /// |
| 109 * custom id. | 111 /// [title] - Filter that matches Avails with a `title_internal_alias`, |
| 110 * NOTE: this field is deprecated and will be removed on V2; `alt_ids` | 112 /// `series_title_internal_alias`, `season_title_internal_alias`, |
| 111 * should be used instead. | 113 /// or `episode_title_internal_alias` that contains the given |
| 112 * | 114 /// case-insensitive title. |
| 113 * [studioNames] - See _List methods rules_ for info about this field. | 115 /// |
| 114 * | 116 /// [videoIds] - Filter Avails that match any of the given `video_id`s. |
| 115 * [territories] - Filter Avails that match (case-insensitive) any of the | 117 /// |
| 116 * given country codes, | 118 /// [pageToken] - See _List methods rules_ for info about this field. |
| 117 * using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). | 119 /// |
| 118 * | 120 /// [pageSize] - See _List methods rules_ for info about this field. |
| 119 * [title] - Filter that matches Avails with a `title_internal_alias`, | 121 /// |
| 120 * `series_title_internal_alias`, `season_title_internal_alias`, | 122 /// [altIds] - Filter Avails that match (case-insensitive) any of the given |
| 121 * or `episode_title_internal_alias` that contains the given | 123 /// partner-specific custom ids. |
| 122 * case-insensitive title. | 124 /// |
| 123 * | 125 /// [pphNames] - See _List methods rules_ for info about this field. |
| 124 * [videoIds] - Filter Avails that match any of the given `video_id`s. | 126 /// |
| 125 * | 127 /// [altId] - Filter Avails that match a case-insensitive, partner-specific |
| 126 * [pageToken] - See _List methods rules_ for info about this field. | 128 /// custom id. |
| 127 * | 129 /// NOTE: this field is deprecated and will be removed on V2; `alt_ids` |
| 128 * [pageSize] - See _List methods rules_ for info about this field. | 130 /// should be used instead. |
| 129 * | 131 /// |
| 130 * [altIds] - Filter Avails that match (case-insensitive) any of the given | 132 /// [studioNames] - See _List methods rules_ for info about this field. |
| 131 * partner-specific custom ids. | 133 /// |
| 132 * | 134 /// Completes with a [ListAvailsResponse]. |
| 133 * Completes with a [ListAvailsResponse]. | 135 /// |
| 134 * | 136 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 137 /// an error. |
| 136 * error. | 138 /// |
| 137 * | 139 /// If the used [http.Client] completes with an error when making a REST |
| 138 * If the used [http.Client] completes with an error when making a REST call, | 140 /// call, this method will complete with the same error. |
| 139 * this method will complete with the same error. | 141 async.Future<ListAvailsResponse> list(core.String accountId, |
| 140 */ | 142 {core.List<core.String> territories, |
| 141 async.Future<ListAvailsResponse> list(core.String accountId, {core.List<core.S
tring> pphNames, core.String altId, core.List<core.String> studioNames, core.Lis
t<core.String> territories, core.String title, core.List<core.String> videoIds,
core.String pageToken, core.int pageSize, core.List<core.String> altIds}) { | 143 core.String title, |
| 144 core.List<core.String> videoIds, |
| 145 core.String pageToken, |
| 146 core.int pageSize, |
| 147 core.List<core.String> altIds, |
| 148 core.List<core.String> pphNames, |
| 149 core.String altId, |
| 150 core.List<core.String> studioNames}) { |
| 142 var _url = null; | 151 var _url = null; |
| 143 var _queryParams = new core.Map(); | 152 var _queryParams = new core.Map(); |
| 144 var _uploadMedia = null; | 153 var _uploadMedia = null; |
| 145 var _uploadOptions = null; | 154 var _uploadOptions = null; |
| 146 var _downloadOptions = commons.DownloadOptions.Metadata; | 155 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 147 var _body = null; | 156 var _body = null; |
| 148 | 157 |
| 149 if (accountId == null) { | 158 if (accountId == null) { |
| 150 throw new core.ArgumentError("Parameter accountId is required."); | 159 throw new core.ArgumentError("Parameter accountId is required."); |
| 151 } | 160 } |
| 152 if (pphNames != null) { | |
| 153 _queryParams["pphNames"] = pphNames; | |
| 154 } | |
| 155 if (altId != null) { | |
| 156 _queryParams["altId"] = [altId]; | |
| 157 } | |
| 158 if (studioNames != null) { | |
| 159 _queryParams["studioNames"] = studioNames; | |
| 160 } | |
| 161 if (territories != null) { | 161 if (territories != null) { |
| 162 _queryParams["territories"] = territories; | 162 _queryParams["territories"] = territories; |
| 163 } | 163 } |
| 164 if (title != null) { | 164 if (title != null) { |
| 165 _queryParams["title"] = [title]; | 165 _queryParams["title"] = [title]; |
| 166 } | 166 } |
| 167 if (videoIds != null) { | 167 if (videoIds != null) { |
| 168 _queryParams["videoIds"] = videoIds; | 168 _queryParams["videoIds"] = videoIds; |
| 169 } | 169 } |
| 170 if (pageToken != null) { | 170 if (pageToken != null) { |
| 171 _queryParams["pageToken"] = [pageToken]; | 171 _queryParams["pageToken"] = [pageToken]; |
| 172 } | 172 } |
| 173 if (pageSize != null) { | 173 if (pageSize != null) { |
| 174 _queryParams["pageSize"] = ["${pageSize}"]; | 174 _queryParams["pageSize"] = ["${pageSize}"]; |
| 175 } | 175 } |
| 176 if (altIds != null) { | 176 if (altIds != null) { |
| 177 _queryParams["altIds"] = altIds; | 177 _queryParams["altIds"] = altIds; |
| 178 } | 178 } |
| 179 if (pphNames != null) { |
| 180 _queryParams["pphNames"] = pphNames; |
| 181 } |
| 182 if (altId != null) { |
| 183 _queryParams["altId"] = [altId]; |
| 184 } |
| 185 if (studioNames != null) { |
| 186 _queryParams["studioNames"] = studioNames; |
| 187 } |
| 179 | 188 |
| 180 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/avai
ls'; | 189 _url = 'v1/accounts/' + |
| 190 commons.Escaper.ecapeVariable('$accountId') + |
| 191 '/avails'; |
| 181 | 192 |
| 182 var _response = _requester.request(_url, | 193 var _response = _requester.request(_url, "GET", |
| 183 "GET", | 194 body: _body, |
| 184 body: _body, | 195 queryParams: _queryParams, |
| 185 queryParams: _queryParams, | 196 uploadOptions: _uploadOptions, |
| 186 uploadOptions: _uploadOptions, | 197 uploadMedia: _uploadMedia, |
| 187 uploadMedia: _uploadMedia, | 198 downloadOptions: _downloadOptions); |
| 188 downloadOptions: _downloadOptions); | |
| 189 return _response.then((data) => new ListAvailsResponse.fromJson(data)); | 199 return _response.then((data) => new ListAvailsResponse.fromJson(data)); |
| 190 } | 200 } |
| 191 | |
| 192 } | 201 } |
| 193 | 202 |
| 194 | |
| 195 class AccountsOrdersResourceApi { | 203 class AccountsOrdersResourceApi { |
| 196 final commons.ApiRequester _requester; | 204 final commons.ApiRequester _requester; |
| 197 | 205 |
| 198 AccountsOrdersResourceApi(commons.ApiRequester client) : | 206 AccountsOrdersResourceApi(commons.ApiRequester client) : _requester = client; |
| 199 _requester = client; | |
| 200 | 207 |
| 201 /** | 208 /// Get an Order given its id. |
| 202 * Get an Order given its id. | 209 /// |
| 203 * | 210 /// See _Authentication and Authorization rules_ and |
| 204 * See _Authentication and Authorization rules_ and | 211 /// _Get methods rules_ for more information about this method. |
| 205 * _Get methods rules_ for more information about this method. | 212 /// |
| 206 * | 213 /// Request parameters: |
| 207 * Request parameters: | 214 /// |
| 208 * | 215 /// [accountId] - REQUIRED. See _General rules_ for more information about |
| 209 * [accountId] - REQUIRED. See _General rules_ for more information about this | 216 /// this field. |
| 210 * field. | 217 /// |
| 211 * | 218 /// [orderId] - REQUIRED. Order ID. |
| 212 * [orderId] - REQUIRED. Order ID. | 219 /// |
| 213 * | 220 /// Completes with a [Order]. |
| 214 * Completes with a [Order]. | 221 /// |
| 215 * | 222 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 216 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 223 /// an error. |
| 217 * error. | 224 /// |
| 218 * | 225 /// If the used [http.Client] completes with an error when making a REST |
| 219 * If the used [http.Client] completes with an error when making a REST call, | 226 /// call, this method will complete with the same error. |
| 220 * this method will complete with the same error. | |
| 221 */ | |
| 222 async.Future<Order> get(core.String accountId, core.String orderId) { | 227 async.Future<Order> get(core.String accountId, core.String orderId) { |
| 223 var _url = null; | 228 var _url = null; |
| 224 var _queryParams = new core.Map(); | 229 var _queryParams = new core.Map(); |
| 225 var _uploadMedia = null; | 230 var _uploadMedia = null; |
| 226 var _uploadOptions = null; | 231 var _uploadOptions = null; |
| 227 var _downloadOptions = commons.DownloadOptions.Metadata; | 232 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 228 var _body = null; | 233 var _body = null; |
| 229 | 234 |
| 230 if (accountId == null) { | 235 if (accountId == null) { |
| 231 throw new core.ArgumentError("Parameter accountId is required."); | 236 throw new core.ArgumentError("Parameter accountId is required."); |
| 232 } | 237 } |
| 233 if (orderId == null) { | 238 if (orderId == null) { |
| 234 throw new core.ArgumentError("Parameter orderId is required."); | 239 throw new core.ArgumentError("Parameter orderId is required."); |
| 235 } | 240 } |
| 236 | 241 |
| 237 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orde
rs/' + commons.Escaper.ecapeVariable('$orderId'); | 242 _url = 'v1/accounts/' + |
| 243 commons.Escaper.ecapeVariable('$accountId') + |
| 244 '/orders/' + |
| 245 commons.Escaper.ecapeVariable('$orderId'); |
| 238 | 246 |
| 239 var _response = _requester.request(_url, | 247 var _response = _requester.request(_url, "GET", |
| 240 "GET", | 248 body: _body, |
| 241 body: _body, | 249 queryParams: _queryParams, |
| 242 queryParams: _queryParams, | 250 uploadOptions: _uploadOptions, |
| 243 uploadOptions: _uploadOptions, | 251 uploadMedia: _uploadMedia, |
| 244 uploadMedia: _uploadMedia, | 252 downloadOptions: _downloadOptions); |
| 245 downloadOptions: _downloadOptions); | |
| 246 return _response.then((data) => new Order.fromJson(data)); | 253 return _response.then((data) => new Order.fromJson(data)); |
| 247 } | 254 } |
| 248 | 255 |
| 249 /** | 256 /// List Orders owned or managed by the partner. |
| 250 * List Orders owned or managed by the partner. | 257 /// |
| 251 * | 258 /// See _Authentication and Authorization rules_ and |
| 252 * See _Authentication and Authorization rules_ and | 259 /// _List methods rules_ for more information about this method. |
| 253 * _List methods rules_ for more information about this method. | 260 /// |
| 254 * | 261 /// Request parameters: |
| 255 * Request parameters: | 262 /// |
| 256 * | 263 /// [accountId] - REQUIRED. See _General rules_ for more information about |
| 257 * [accountId] - REQUIRED. See _General rules_ for more information about this | 264 /// this field. |
| 258 * field. | 265 /// |
| 259 * | 266 /// [pageToken] - See _List methods rules_ for info about this field. |
| 260 * [pageToken] - See _List methods rules_ for info about this field. | 267 /// |
| 261 * | 268 /// [customId] - Filter Orders that match a case-insensitive, |
| 262 * [customId] - Filter Orders that match a case-insensitive, partner-specific | 269 /// partner-specific custom id. |
| 263 * custom id. | 270 /// |
| 264 * | 271 /// [videoIds] - Filter Orders that match any of the given `video_id`s. |
| 265 * [videoIds] - Filter Orders that match any of the given `video_id`s. | 272 /// |
| 266 * | 273 /// [pageSize] - See _List methods rules_ for info about this field. |
| 267 * [pageSize] - See _List methods rules_ for info about this field. | 274 /// |
| 268 * | 275 /// [pphNames] - See _List methods rules_ for info about this field. |
| 269 * [pphNames] - See _List methods rules_ for info about this field. | 276 /// |
| 270 * | 277 /// [status] - Filter Orders that match one of the given status. |
| 271 * [status] - Filter Orders that match one of the given status. | 278 /// |
| 272 * | 279 /// [studioNames] - See _List methods rules_ for info about this field. |
| 273 * [studioNames] - See _List methods rules_ for info about this field. | 280 /// |
| 274 * | 281 /// [name] - Filter that matches Orders with a `name`, `show`, `season` or |
| 275 * [name] - Filter that matches Orders with a `name`, `show`, `season` or | 282 /// `episode` |
| 276 * `episode` | 283 /// that contains the given case-insensitive name. |
| 277 * that contains the given case-insensitive name. | 284 /// |
| 278 * | 285 /// Completes with a [ListOrdersResponse]. |
| 279 * Completes with a [ListOrdersResponse]. | 286 /// |
| 280 * | 287 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 281 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 288 /// an error. |
| 282 * error. | 289 /// |
| 283 * | 290 /// If the used [http.Client] completes with an error when making a REST |
| 284 * If the used [http.Client] completes with an error when making a REST call, | 291 /// call, this method will complete with the same error. |
| 285 * this method will complete with the same error. | 292 async.Future<ListOrdersResponse> list(core.String accountId, |
| 286 */ | 293 {core.String pageToken, |
| 287 async.Future<ListOrdersResponse> list(core.String accountId, {core.String page
Token, core.String customId, core.List<core.String> videoIds, core.int pageSize,
core.List<core.String> pphNames, core.List<core.String> status, core.List<core.
String> studioNames, core.String name}) { | 294 core.String customId, |
| 295 core.List<core.String> videoIds, |
| 296 core.int pageSize, |
| 297 core.List<core.String> pphNames, |
| 298 core.List<core.String> status, |
| 299 core.List<core.String> studioNames, |
| 300 core.String name}) { |
| 288 var _url = null; | 301 var _url = null; |
| 289 var _queryParams = new core.Map(); | 302 var _queryParams = new core.Map(); |
| 290 var _uploadMedia = null; | 303 var _uploadMedia = null; |
| 291 var _uploadOptions = null; | 304 var _uploadOptions = null; |
| 292 var _downloadOptions = commons.DownloadOptions.Metadata; | 305 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 293 var _body = null; | 306 var _body = null; |
| 294 | 307 |
| 295 if (accountId == null) { | 308 if (accountId == null) { |
| 296 throw new core.ArgumentError("Parameter accountId is required."); | 309 throw new core.ArgumentError("Parameter accountId is required."); |
| 297 } | 310 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 313 if (status != null) { | 326 if (status != null) { |
| 314 _queryParams["status"] = status; | 327 _queryParams["status"] = status; |
| 315 } | 328 } |
| 316 if (studioNames != null) { | 329 if (studioNames != null) { |
| 317 _queryParams["studioNames"] = studioNames; | 330 _queryParams["studioNames"] = studioNames; |
| 318 } | 331 } |
| 319 if (name != null) { | 332 if (name != null) { |
| 320 _queryParams["name"] = [name]; | 333 _queryParams["name"] = [name]; |
| 321 } | 334 } |
| 322 | 335 |
| 323 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/orde
rs'; | 336 _url = 'v1/accounts/' + |
| 337 commons.Escaper.ecapeVariable('$accountId') + |
| 338 '/orders'; |
| 324 | 339 |
| 325 var _response = _requester.request(_url, | 340 var _response = _requester.request(_url, "GET", |
| 326 "GET", | 341 body: _body, |
| 327 body: _body, | 342 queryParams: _queryParams, |
| 328 queryParams: _queryParams, | 343 uploadOptions: _uploadOptions, |
| 329 uploadOptions: _uploadOptions, | 344 uploadMedia: _uploadMedia, |
| 330 uploadMedia: _uploadMedia, | 345 downloadOptions: _downloadOptions); |
| 331 downloadOptions: _downloadOptions); | |
| 332 return _response.then((data) => new ListOrdersResponse.fromJson(data)); | 346 return _response.then((data) => new ListOrdersResponse.fromJson(data)); |
| 333 } | 347 } |
| 334 | |
| 335 } | 348 } |
| 336 | 349 |
| 337 | |
| 338 class AccountsStoreInfosResourceApi { | 350 class AccountsStoreInfosResourceApi { |
| 339 final commons.ApiRequester _requester; | 351 final commons.ApiRequester _requester; |
| 340 | 352 |
| 341 AccountsStoreInfosCountryResourceApi get country => new AccountsStoreInfosCoun
tryResourceApi(_requester); | 353 AccountsStoreInfosCountryResourceApi get country => |
| 354 new AccountsStoreInfosCountryResourceApi(_requester); |
| 342 | 355 |
| 343 AccountsStoreInfosResourceApi(commons.ApiRequester client) : | 356 AccountsStoreInfosResourceApi(commons.ApiRequester client) |
| 344 _requester = client; | 357 : _requester = client; |
| 345 | 358 |
| 346 /** | 359 /// List StoreInfos owned or managed by the partner. |
| 347 * List StoreInfos owned or managed by the partner. | 360 /// |
| 348 * | 361 /// See _Authentication and Authorization rules_ and |
| 349 * See _Authentication and Authorization rules_ and | 362 /// _List methods rules_ for more information about this method. |
| 350 * _List methods rules_ for more information about this method. | 363 /// |
| 351 * | 364 /// Request parameters: |
| 352 * Request parameters: | 365 /// |
| 353 * | 366 /// [accountId] - REQUIRED. See _General rules_ for more information about |
| 354 * [accountId] - REQUIRED. See _General rules_ for more information about this | 367 /// this field. |
| 355 * field. | 368 /// |
| 356 * | 369 /// [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. |
| 357 * [seasonIds] - Filter StoreInfos that match any of the given `season_id`s. | 370 /// |
| 358 * | 371 /// [pageToken] - See _List methods rules_ for info about this field. |
| 359 * [videoIds] - Filter StoreInfos that match any of the given `video_id`s. | 372 /// |
| 360 * | 373 /// [videoId] - Filter StoreInfos that match a given `video_id`. |
| 361 * [videoId] - Filter StoreInfos that match a given `video_id`. | 374 /// NOTE: this field is deprecated and will be removed on V2; `video_ids` |
| 362 * NOTE: this field is deprecated and will be removed on V2; `video_ids` | 375 /// should be used instead. |
| 363 * should be used instead. | 376 /// |
| 364 * | 377 /// [videoIds] - Filter StoreInfos that match any of the given `video_id`s. |
| 365 * [pageToken] - See _List methods rules_ for info about this field. | 378 /// |
| 366 * | 379 /// [pageSize] - See _List methods rules_ for info about this field. |
| 367 * [pageSize] - See _List methods rules_ for info about this field. | 380 /// |
| 368 * | 381 /// [mids] - Filter StoreInfos that match any of the given `mid`s. |
| 369 * [mids] - Filter StoreInfos that match any of the given `mid`s. | 382 /// |
| 370 * | 383 /// [pphNames] - See _List methods rules_ for info about this field. |
| 371 * [pphNames] - See _List methods rules_ for info about this field. | 384 /// |
| 372 * | 385 /// [countries] - Filter StoreInfos that match (case-insensitive) any of the |
| 373 * [countries] - Filter StoreInfos that match (case-insensitive) any of the | 386 /// given country |
| 374 * given country | 387 /// codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", |
| 375 * codes, using the "ISO 3166-1 alpha-2" format (examples: "US", "us", "Us"). | 388 /// "Us"). |
| 376 * | 389 /// |
| 377 * [name] - Filter that matches StoreInfos with a `name` or `show_name` | 390 /// [studioNames] - See _List methods rules_ for info about this field. |
| 378 * that contains the given case-insensitive name. | 391 /// |
| 379 * | 392 /// [name] - Filter that matches StoreInfos with a `name` or `show_name` |
| 380 * [studioNames] - See _List methods rules_ for info about this field. | 393 /// that contains the given case-insensitive name. |
| 381 * | 394 /// |
| 382 * Completes with a [ListStoreInfosResponse]. | 395 /// Completes with a [ListStoreInfosResponse]. |
| 383 * | 396 /// |
| 384 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 397 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 385 * error. | 398 /// an error. |
| 386 * | 399 /// |
| 387 * If the used [http.Client] completes with an error when making a REST call, | 400 /// If the used [http.Client] completes with an error when making a REST |
| 388 * this method will complete with the same error. | 401 /// call, this method will complete with the same error. |
| 389 */ | 402 async.Future<ListStoreInfosResponse> list(core.String accountId, |
| 390 async.Future<ListStoreInfosResponse> list(core.String accountId, {core.List<co
re.String> seasonIds, core.List<core.String> videoIds, core.String videoId, core
.String pageToken, core.int pageSize, core.List<core.String> mids, core.List<cor
e.String> pphNames, core.List<core.String> countries, core.String name, core.Lis
t<core.String> studioNames}) { | 403 {core.List<core.String> seasonIds, |
| 404 core.String pageToken, |
| 405 core.String videoId, |
| 406 core.List<core.String> videoIds, |
| 407 core.int pageSize, |
| 408 core.List<core.String> mids, |
| 409 core.List<core.String> pphNames, |
| 410 core.List<core.String> countries, |
| 411 core.List<core.String> studioNames, |
| 412 core.String name}) { |
| 391 var _url = null; | 413 var _url = null; |
| 392 var _queryParams = new core.Map(); | 414 var _queryParams = new core.Map(); |
| 393 var _uploadMedia = null; | 415 var _uploadMedia = null; |
| 394 var _uploadOptions = null; | 416 var _uploadOptions = null; |
| 395 var _downloadOptions = commons.DownloadOptions.Metadata; | 417 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 396 var _body = null; | 418 var _body = null; |
| 397 | 419 |
| 398 if (accountId == null) { | 420 if (accountId == null) { |
| 399 throw new core.ArgumentError("Parameter accountId is required."); | 421 throw new core.ArgumentError("Parameter accountId is required."); |
| 400 } | 422 } |
| 401 if (seasonIds != null) { | 423 if (seasonIds != null) { |
| 402 _queryParams["seasonIds"] = seasonIds; | 424 _queryParams["seasonIds"] = seasonIds; |
| 403 } | 425 } |
| 426 if (pageToken != null) { |
| 427 _queryParams["pageToken"] = [pageToken]; |
| 428 } |
| 429 if (videoId != null) { |
| 430 _queryParams["videoId"] = [videoId]; |
| 431 } |
| 404 if (videoIds != null) { | 432 if (videoIds != null) { |
| 405 _queryParams["videoIds"] = videoIds; | 433 _queryParams["videoIds"] = videoIds; |
| 406 } | 434 } |
| 407 if (videoId != null) { | |
| 408 _queryParams["videoId"] = [videoId]; | |
| 409 } | |
| 410 if (pageToken != null) { | |
| 411 _queryParams["pageToken"] = [pageToken]; | |
| 412 } | |
| 413 if (pageSize != null) { | 435 if (pageSize != null) { |
| 414 _queryParams["pageSize"] = ["${pageSize}"]; | 436 _queryParams["pageSize"] = ["${pageSize}"]; |
| 415 } | 437 } |
| 416 if (mids != null) { | 438 if (mids != null) { |
| 417 _queryParams["mids"] = mids; | 439 _queryParams["mids"] = mids; |
| 418 } | 440 } |
| 419 if (pphNames != null) { | 441 if (pphNames != null) { |
| 420 _queryParams["pphNames"] = pphNames; | 442 _queryParams["pphNames"] = pphNames; |
| 421 } | 443 } |
| 422 if (countries != null) { | 444 if (countries != null) { |
| 423 _queryParams["countries"] = countries; | 445 _queryParams["countries"] = countries; |
| 424 } | 446 } |
| 447 if (studioNames != null) { |
| 448 _queryParams["studioNames"] = studioNames; |
| 449 } |
| 425 if (name != null) { | 450 if (name != null) { |
| 426 _queryParams["name"] = [name]; | 451 _queryParams["name"] = [name]; |
| 427 } | 452 } |
| 428 if (studioNames != null) { | |
| 429 _queryParams["studioNames"] = studioNames; | |
| 430 } | |
| 431 | 453 |
| 432 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
eInfos'; | 454 _url = 'v1/accounts/' + |
| 455 commons.Escaper.ecapeVariable('$accountId') + |
| 456 '/storeInfos'; |
| 433 | 457 |
| 434 var _response = _requester.request(_url, | 458 var _response = _requester.request(_url, "GET", |
| 435 "GET", | 459 body: _body, |
| 436 body: _body, | 460 queryParams: _queryParams, |
| 437 queryParams: _queryParams, | 461 uploadOptions: _uploadOptions, |
| 438 uploadOptions: _uploadOptions, | 462 uploadMedia: _uploadMedia, |
| 439 uploadMedia: _uploadMedia, | 463 downloadOptions: _downloadOptions); |
| 440 downloadOptions: _downloadOptions); | |
| 441 return _response.then((data) => new ListStoreInfosResponse.fromJson(data)); | 464 return _response.then((data) => new ListStoreInfosResponse.fromJson(data)); |
| 442 } | 465 } |
| 443 | |
| 444 } | 466 } |
| 445 | 467 |
| 446 | |
| 447 class AccountsStoreInfosCountryResourceApi { | 468 class AccountsStoreInfosCountryResourceApi { |
| 448 final commons.ApiRequester _requester; | 469 final commons.ApiRequester _requester; |
| 449 | 470 |
| 450 AccountsStoreInfosCountryResourceApi(commons.ApiRequester client) : | 471 AccountsStoreInfosCountryResourceApi(commons.ApiRequester client) |
| 451 _requester = client; | 472 : _requester = client; |
| 452 | 473 |
| 453 /** | 474 /// Get a StoreInfo given its video id and country. |
| 454 * Get a StoreInfo given its video id and country. | 475 /// |
| 455 * | 476 /// See _Authentication and Authorization rules_ and |
| 456 * See _Authentication and Authorization rules_ and | 477 /// _Get methods rules_ for more information about this method. |
| 457 * _Get methods rules_ for more information about this method. | 478 /// |
| 458 * | 479 /// Request parameters: |
| 459 * Request parameters: | 480 /// |
| 460 * | 481 /// [accountId] - REQUIRED. See _General rules_ for more information about |
| 461 * [accountId] - REQUIRED. See _General rules_ for more information about this | 482 /// this field. |
| 462 * field. | 483 /// |
| 463 * | 484 /// [videoId] - REQUIRED. Video ID. |
| 464 * [videoId] - REQUIRED. Video ID. | 485 /// |
| 465 * | 486 /// [country] - REQUIRED. Edit country. |
| 466 * [country] - REQUIRED. Edit country. | 487 /// |
| 467 * | 488 /// Completes with a [StoreInfo]. |
| 468 * Completes with a [StoreInfo]. | 489 /// |
| 469 * | 490 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 491 /// an error. |
| 471 * error. | 492 /// |
| 472 * | 493 /// If the used [http.Client] completes with an error when making a REST |
| 473 * If the used [http.Client] completes with an error when making a REST call, | 494 /// call, this method will complete with the same error. |
| 474 * this method will complete with the same error. | 495 async.Future<StoreInfo> get( |
| 475 */ | 496 core.String accountId, core.String videoId, core.String country) { |
| 476 async.Future<StoreInfo> get(core.String accountId, core.String videoId, core.S
tring country) { | |
| 477 var _url = null; | 497 var _url = null; |
| 478 var _queryParams = new core.Map(); | 498 var _queryParams = new core.Map(); |
| 479 var _uploadMedia = null; | 499 var _uploadMedia = null; |
| 480 var _uploadOptions = null; | 500 var _uploadOptions = null; |
| 481 var _downloadOptions = commons.DownloadOptions.Metadata; | 501 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 482 var _body = null; | 502 var _body = null; |
| 483 | 503 |
| 484 if (accountId == null) { | 504 if (accountId == null) { |
| 485 throw new core.ArgumentError("Parameter accountId is required."); | 505 throw new core.ArgumentError("Parameter accountId is required."); |
| 486 } | 506 } |
| 487 if (videoId == null) { | 507 if (videoId == null) { |
| 488 throw new core.ArgumentError("Parameter videoId is required."); | 508 throw new core.ArgumentError("Parameter videoId is required."); |
| 489 } | 509 } |
| 490 if (country == null) { | 510 if (country == null) { |
| 491 throw new core.ArgumentError("Parameter country is required."); | 511 throw new core.ArgumentError("Parameter country is required."); |
| 492 } | 512 } |
| 493 | 513 |
| 494 _url = 'v1/accounts/' + commons.Escaper.ecapeVariable('$accountId') + '/stor
eInfos/' + commons.Escaper.ecapeVariable('$videoId') + '/country/' + commons.Esc
aper.ecapeVariable('$country'); | 514 _url = 'v1/accounts/' + |
| 495 | 515 commons.Escaper.ecapeVariable('$accountId') + |
| 496 var _response = _requester.request(_url, | 516 '/storeInfos/' + |
| 497 "GET", | 517 commons.Escaper.ecapeVariable('$videoId') + |
| 498 body: _body, | 518 '/country/' + |
| 499 queryParams: _queryParams, | 519 commons.Escaper.ecapeVariable('$country'); |
| 500 uploadOptions: _uploadOptions, | 520 |
| 501 uploadMedia: _uploadMedia, | 521 var _response = _requester.request(_url, "GET", |
| 502 downloadOptions: _downloadOptions); | 522 body: _body, |
| 523 queryParams: _queryParams, |
| 524 uploadOptions: _uploadOptions, |
| 525 uploadMedia: _uploadMedia, |
| 526 downloadOptions: _downloadOptions); |
| 503 return _response.then((data) => new StoreInfo.fromJson(data)); | 527 return _response.then((data) => new StoreInfo.fromJson(data)); |
| 504 } | 528 } |
| 505 | |
| 506 } | 529 } |
| 507 | 530 |
| 508 | 531 /// An Avail describes the Availability Window of a specific Edit in a given |
| 509 | 532 /// country, which means the period Google is allowed to sell or rent the Edit. |
| 510 /** | 533 /// |
| 511 * An Avail describes the Availability Window of a specific Edit in a given | 534 /// Avails are exposed in EMA format Version 1.6b (available at |
| 512 * country, which means the period Google is allowed to sell or rent the Edit. | 535 /// http://www.movielabs.com/md/avails/) |
| 513 * | 536 /// |
| 514 * Avails are exposed in EMA format Version 1.6b (available at | 537 /// Studios can see the Avails for the Titles they own. |
| 515 * http://www.movielabs.com/md/avails/) | 538 /// Post-production houses cannot see any Avails. |
| 516 * | |
| 517 * Studios can see the Avails for the Titles they own. | |
| 518 * Post-production houses cannot see any Avails. | |
| 519 */ | |
| 520 class Avail { | 539 class Avail { |
| 521 /** | 540 /// Other identifier referring to the Edit, as defined by partner. |
| 522 * Other identifier referring to the Edit, as defined by partner. | 541 /// Example: "GOOGLER_2006" |
| 523 * Example: "GOOGLER_2006" | |
| 524 */ | |
| 525 core.String altId; | 542 core.String altId; |
| 526 /** | 543 |
| 527 * ID internally generated by Google to uniquely identify an Avail. | 544 /// ID internally generated by Google to uniquely identify an Avail. |
| 528 * Not part of EMA Specs. | 545 /// Not part of EMA Specs. |
| 529 */ | |
| 530 core.String availId; | 546 core.String availId; |
| 531 /** | 547 |
| 532 * Communicating an exempt category as defined by FCC regulations. | 548 /// Communicating an exempt category as defined by FCC regulations. |
| 533 * It is not required for non-US Avails. | 549 /// It is not required for non-US Avails. |
| 534 * Example: "1" | 550 /// Example: "1" |
| 535 */ | |
| 536 core.String captionExemption; | 551 core.String captionExemption; |
| 537 /** Communicating if caption file will be delivered. */ | 552 |
| 553 /// Communicating if caption file will be delivered. |
| 538 core.bool captionIncluded; | 554 core.bool captionIncluded; |
| 539 /** | 555 |
| 540 * Title Identifier. This should be the Title Level EIDR. | 556 /// Title Identifier. This should be the Title Level EIDR. |
| 541 * Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". | 557 /// Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". |
| 542 */ | |
| 543 core.String contentId; | 558 core.String contentId; |
| 544 /** | 559 |
| 545 * The name of the studio that owns the Edit referred in the Avail. | 560 /// The name of the studio that owns the Edit referred in the Avail. |
| 546 * This is the equivalent of `studio_name` in other resources, but it follows | 561 /// This is the equivalent of `studio_name` in other resources, but it |
| 547 * the EMA nomenclature. | 562 /// follows |
| 548 * Example: "Google Films". | 563 /// the EMA nomenclature. |
| 549 */ | 564 /// Example: "Google Films". |
| 550 core.String displayName; | 565 core.String displayName; |
| 551 /** | 566 |
| 552 * Manifestation Identifier. This should be the Manifestation | 567 /// Manifestation Identifier. This should be the Manifestation |
| 553 * Level EIDR. | 568 /// Level EIDR. |
| 554 * Example: "10.2340/1489-49A2-3956-4B2D-FE16-7" | 569 /// Example: "10.2340/1489-49A2-3956-4B2D-FE16-7" |
| 555 */ | |
| 556 core.String encodeId; | 570 core.String encodeId; |
| 557 /** | 571 |
| 558 * End of term in YYYY-MM-DD format in the timezone of the country | 572 /// End of term in YYYY-MM-DD format in the timezone of the country |
| 559 * of the Avail. | 573 /// of the Avail. |
| 560 * "Open" if no end date is available. | 574 /// "Open" if no end date is available. |
| 561 * Example: "2019-02-17" | 575 /// Example: "2019-02-17" |
| 562 */ | |
| 563 core.String end; | 576 core.String end; |
| 564 /** | 577 |
| 565 * Other identifier referring to the episode, as defined by partner. | 578 /// Other identifier referring to the episode, as defined by partner. |
| 566 * Only available on TV avails. | 579 /// Only available on TV avails. |
| 567 * Example: "rs_googlers_s1_3". | 580 /// Example: "rs_googlers_s1_3". |
| 568 */ | |
| 569 core.String episodeAltId; | 581 core.String episodeAltId; |
| 570 /** | 582 |
| 571 * The number assigned to the episode within a season. | 583 /// The number assigned to the episode within a season. |
| 572 * Only available on TV Avails. | 584 /// Only available on TV Avails. |
| 573 * Example: "3". | 585 /// Example: "3". |
| 574 */ | |
| 575 core.String episodeNumber; | 586 core.String episodeNumber; |
| 576 /** | 587 |
| 577 * OPTIONAL.TV Only. Title used by involved parties to refer to this episode. | 588 /// OPTIONAL.TV Only. Title used by involved parties to refer to this |
| 578 * Only available on TV Avails. | 589 /// episode. |
| 579 * Example: "Coding at Google". | 590 /// Only available on TV Avails. |
| 580 */ | 591 /// Example: "Coding at Google". |
| 581 core.String episodeTitleInternalAlias; | 592 core.String episodeTitleInternalAlias; |
| 582 /** | 593 |
| 583 * Indicates the format profile covered by the transaction. | 594 /// Indicates the format profile covered by the transaction. |
| 584 * Possible string values are: | 595 /// Possible string values are: |
| 585 * - "FORMAT_PROFILE_UNSPECIFIED" : Value could not be determined, please | 596 /// - "FORMAT_PROFILE_UNSPECIFIED" : Value could not be determined, please |
| 586 * contact technical support if | 597 /// contact technical support if |
| 587 * it should. | 598 /// it should. |
| 588 * - "SD" : Standard-definition format. | 599 /// - "SD" : Standard-definition format. |
| 589 * - "HD" : High-definition format. | 600 /// - "HD" : High-definition format. |
| 590 * - "UHD" : 4K UHD. | 601 /// - "UHD" : 4K UHD. |
| 591 */ | |
| 592 core.String formatProfile; | 602 core.String formatProfile; |
| 593 /** | 603 |
| 594 * Type of transaction. | 604 /// Type of transaction. |
| 595 * Possible string values are: | 605 /// Possible string values are: |
| 596 * - "LICENSE_TYPE_UNSPECIFIED" : Value could not be determined, please | 606 /// - "LICENSE_TYPE_UNSPECIFIED" : Value could not be determined, please |
| 597 * contact technical support if | 607 /// contact technical support if |
| 598 * it should. | 608 /// it should. |
| 599 * - "EST" : Electronic Sell Through - purchase policy for unlimited viewing. | 609 /// - "EST" : Electronic Sell Through - purchase policy for unlimited |
| 600 * - "VOD" : Video On Demand - rental policy for temporary viewing. | 610 /// viewing. |
| 601 * - "SVOD" : Subscription Video On Demand - used for subscription platforms. | 611 /// - "VOD" : Video On Demand - rental policy for temporary viewing. |
| 602 * Not supported on Google Play. | 612 /// - "SVOD" : Subscription Video On Demand - used for subscription |
| 603 * - "POEST" : Pre-order Electronic Sell Through - pre-order purchase only | 613 /// platforms. |
| 604 * window. | 614 /// Not supported on Google Play. |
| 605 */ | 615 /// - "POEST" : Pre-order Electronic Sell Through - pre-order purchase only |
| 616 /// window. |
| 606 core.String licenseType; | 617 core.String licenseType; |
| 607 /** | 618 |
| 608 * Name of the post-production houses that manage the Avail. | 619 /// Name of the post-production houses that manage the Avail. |
| 609 * Not part of EMA Specs. | 620 /// Not part of EMA Specs. |
| 610 */ | |
| 611 core.List<core.String> pphNames; | 621 core.List<core.String> pphNames; |
| 612 /** | 622 |
| 613 * Type of pricing that should be applied to this Avail | 623 /// Type of pricing that should be applied to this Avail |
| 614 * based on how the partner classify them. | 624 /// based on how the partner classify them. |
| 615 * Example: "Tier", "WSP", "SRP", or "Category". | 625 /// Example: "Tier", "WSP", "SRP", or "Category". |
| 616 */ | |
| 617 core.String priceType; | 626 core.String priceType; |
| 618 /** | 627 |
| 619 * Value to be applied to the pricing type. | 628 /// Value to be applied to the pricing type. |
| 620 * Example: "4" or "2.99" | 629 /// Example: "4" or "2.99" |
| 621 */ | |
| 622 core.String priceValue; | 630 core.String priceValue; |
| 623 /** | 631 |
| 624 * Edit Identifier. This should be the Edit Level EIDR. | 632 /// Edit Identifier. This should be the Edit Level EIDR. |
| 625 * Example: "10.2340/1489-49A2-3956-4B2D-FE16-6" | 633 /// Example: "10.2340/1489-49A2-3956-4B2D-FE16-6" |
| 626 */ | |
| 627 core.String productId; | 634 core.String productId; |
| 628 /** | 635 |
| 629 * Value representing the rating reason. | 636 /// Value representing the rating reason. |
| 630 * Rating reasons should be formatted as per | 637 /// Rating reasons should be formatted as per |
| 631 * [EMA ratings spec](http://www.movielabs.com/md/ratings/) | 638 /// [EMA ratings spec](http://www.movielabs.com/md/ratings/) |
| 632 * and comma-separated for inclusion of multiple reasons. | 639 /// and comma-separated for inclusion of multiple reasons. |
| 633 * Example: "L, S, V" | 640 /// Example: "L, S, V" |
| 634 */ | |
| 635 core.String ratingReason; | 641 core.String ratingReason; |
| 636 /** | 642 |
| 637 * Rating system applied to the version of title within territory | 643 /// Rating system applied to the version of title within territory |
| 638 * of Avail. | 644 /// of Avail. |
| 639 * Rating systems should be formatted as per | 645 /// Rating systems should be formatted as per |
| 640 * [EMA ratings spec](http://www.movielabs.com/md/ratings/) | 646 /// [EMA ratings spec](http://www.movielabs.com/md/ratings/) |
| 641 * Example: "MPAA" | 647 /// Example: "MPAA" |
| 642 */ | |
| 643 core.String ratingSystem; | 648 core.String ratingSystem; |
| 644 /** | 649 |
| 645 * Value representing the rating. | 650 /// Value representing the rating. |
| 646 * Ratings should be formatted as per http://www.movielabs.com/md/ratings/ | 651 /// Ratings should be formatted as per http://www.movielabs.com/md/ratings/ |
| 647 * Example: "PG" | 652 /// Example: "PG" |
| 648 */ | |
| 649 core.String ratingValue; | 653 core.String ratingValue; |
| 650 /** | 654 |
| 651 * Release date of the Title in earliest released territory. | 655 /// Release date of the Title in earliest released territory. |
| 652 * Typically it is just the year, but it is free-form as per EMA spec. | 656 /// Typically it is just the year, but it is free-form as per EMA spec. |
| 653 * Examples: "1979", "Oct 2014" | 657 /// Examples: "1979", "Oct 2014" |
| 654 */ | |
| 655 core.String releaseDate; | 658 core.String releaseDate; |
| 656 /** | 659 |
| 657 * Other identifier referring to the season, as defined by partner. | 660 /// Other identifier referring to the season, as defined by partner. |
| 658 * Only available on TV avails. | 661 /// Only available on TV avails. |
| 659 * Example: "rs_googlers_s1". | 662 /// Example: "rs_googlers_s1". |
| 660 */ | |
| 661 core.String seasonAltId; | 663 core.String seasonAltId; |
| 662 /** | 664 |
| 663 * The number assigned to the season within a series. | 665 /// The number assigned to the season within a series. |
| 664 * Only available on TV Avails. | 666 /// Only available on TV Avails. |
| 665 * Example: "1". | 667 /// Example: "1". |
| 666 */ | |
| 667 core.String seasonNumber; | 668 core.String seasonNumber; |
| 668 /** | 669 |
| 669 * Title used by involved parties to refer to this season. | 670 /// Title used by involved parties to refer to this season. |
| 670 * Only available on TV Avails. | 671 /// Only available on TV Avails. |
| 671 * Example: "Googlers, The". | 672 /// Example: "Googlers, The". |
| 672 */ | |
| 673 core.String seasonTitleInternalAlias; | 673 core.String seasonTitleInternalAlias; |
| 674 /** | 674 |
| 675 * Other identifier referring to the series, as defined by partner. | 675 /// Other identifier referring to the series, as defined by partner. |
| 676 * Only available on TV avails. | 676 /// Only available on TV avails. |
| 677 * Example: "rs_googlers". | 677 /// Example: "rs_googlers". |
| 678 */ | |
| 679 core.String seriesAltId; | 678 core.String seriesAltId; |
| 680 /** | 679 |
| 681 * Title used by involved parties to refer to this series. | 680 /// Title used by involved parties to refer to this series. |
| 682 * Only available on TV Avails. | 681 /// Only available on TV Avails. |
| 683 * Example: "Googlers, The". | 682 /// Example: "Googlers, The". |
| 684 */ | |
| 685 core.String seriesTitleInternalAlias; | 683 core.String seriesTitleInternalAlias; |
| 686 /** | 684 |
| 687 * Start of term in YYYY-MM-DD format in the timezone of the | 685 /// Start of term in YYYY-MM-DD format in the timezone of the |
| 688 * country of the Avail. | 686 /// country of the Avail. |
| 689 * Example: "2013-05-14". | 687 /// Example: "2013-05-14". |
| 690 */ | |
| 691 core.String start; | 688 core.String start; |
| 692 /** | 689 |
| 693 * Spoken language of the intended audience. | 690 /// Spoken language of the intended audience. |
| 694 * Language shall be encoded in accordance with RFC 5646. | 691 /// Language shall be encoded in accordance with RFC 5646. |
| 695 * Example: "fr". | 692 /// Example: "fr". |
| 696 */ | |
| 697 core.String storeLanguage; | 693 core.String storeLanguage; |
| 698 /** | 694 |
| 699 * First date an Edit could be publically announced as becoming | 695 /// First date an Edit could be publically announced as becoming |
| 700 * available at a specific future date in territory of Avail. | 696 /// available at a specific future date in territory of Avail. |
| 701 * *Not* the Avail start date or pre-order start date. | 697 /// *Not* the Avail start date or pre-order start date. |
| 702 * Format is YYYY-MM-DD. | 698 /// Format is YYYY-MM-DD. |
| 703 * Only available for pre-orders. | 699 /// Only available for pre-orders. |
| 704 * Example: "2012-12-10" | 700 /// Example: "2012-12-10" |
| 705 */ | |
| 706 core.String suppressionLiftDate; | 701 core.String suppressionLiftDate; |
| 707 /** | 702 |
| 708 * ISO 3166-1 alpha-2 country code for the country or territory | 703 /// ISO 3166-1 alpha-2 country code for the country or territory |
| 709 * of this Avail. | 704 /// of this Avail. |
| 710 * For Avails, we use Territory in lieu of Country to comply with | 705 /// For Avails, we use Territory in lieu of Country to comply with |
| 711 * EMA specifications. | 706 /// EMA specifications. |
| 712 * But please note that Territory and Country identify the same thing. | 707 /// But please note that Territory and Country identify the same thing. |
| 713 * Example: "US". | 708 /// Example: "US". |
| 714 */ | |
| 715 core.String territory; | 709 core.String territory; |
| 716 /** | 710 |
| 717 * Title used by involved parties to refer to this content. | 711 /// Title used by involved parties to refer to this content. |
| 718 * Example: "Googlers, The". | 712 /// Example: "Googlers, The". |
| 719 * Only available on Movie Avails. | 713 /// Only available on Movie Avails. |
| 720 */ | |
| 721 core.String titleInternalAlias; | 714 core.String titleInternalAlias; |
| 722 /** | 715 |
| 723 * Google-generated ID identifying the video linked to this Avail, once | 716 /// Google-generated ID identifying the video linked to this Avail, once |
| 724 * delivered. | 717 /// delivered. |
| 725 * Not part of EMA Specs. | 718 /// Not part of EMA Specs. |
| 726 * Example: 'gtry456_xc' | 719 /// Example: 'gtry456_xc' |
| 727 */ | |
| 728 core.String videoId; | 720 core.String videoId; |
| 729 /** | 721 |
| 730 * Work type as enumerated in EMA. | 722 /// Work type as enumerated in EMA. |
| 731 * Possible string values are: | 723 /// Possible string values are: |
| 732 * - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please contact | 724 /// - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please |
| 733 * technical support if | 725 /// contact technical support if |
| 734 * it should. | 726 /// it should. |
| 735 * - "MOVIE" : A movie picture. | 727 /// - "MOVIE" : A movie picture. |
| 736 * - "SEASON" : A season of a TV show. | 728 /// - "SEASON" : A season of a TV show. |
| 737 * - "EPISODE" : An episode of a TV show. | 729 /// - "EPISODE" : An episode of a TV show. |
| 738 * - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the | 730 /// - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the |
| 739 * return" | 731 /// return" |
| 740 */ | |
| 741 core.String workType; | 732 core.String workType; |
| 742 | 733 |
| 743 Avail(); | 734 Avail(); |
| 744 | 735 |
| 745 Avail.fromJson(core.Map _json) { | 736 Avail.fromJson(core.Map _json) { |
| 746 if (_json.containsKey("altId")) { | 737 if (_json.containsKey("altId")) { |
| 747 altId = _json["altId"]; | 738 altId = _json["altId"]; |
| 748 } | 739 } |
| 749 if (_json.containsKey("availId")) { | 740 if (_json.containsKey("availId")) { |
| 750 availId = _json["availId"]; | 741 availId = _json["availId"]; |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 838 } | 829 } |
| 839 if (_json.containsKey("videoId")) { | 830 if (_json.containsKey("videoId")) { |
| 840 videoId = _json["videoId"]; | 831 videoId = _json["videoId"]; |
| 841 } | 832 } |
| 842 if (_json.containsKey("workType")) { | 833 if (_json.containsKey("workType")) { |
| 843 workType = _json["workType"]; | 834 workType = _json["workType"]; |
| 844 } | 835 } |
| 845 } | 836 } |
| 846 | 837 |
| 847 core.Map<core.String, core.Object> toJson() { | 838 core.Map<core.String, core.Object> toJson() { |
| 848 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 839 final core.Map<core.String, core.Object> _json = |
| 840 new core.Map<core.String, core.Object>(); |
| 849 if (altId != null) { | 841 if (altId != null) { |
| 850 _json["altId"] = altId; | 842 _json["altId"] = altId; |
| 851 } | 843 } |
| 852 if (availId != null) { | 844 if (availId != null) { |
| 853 _json["availId"] = availId; | 845 _json["availId"] = availId; |
| 854 } | 846 } |
| 855 if (captionExemption != null) { | 847 if (captionExemption != null) { |
| 856 _json["captionExemption"] = captionExemption; | 848 _json["captionExemption"] = captionExemption; |
| 857 } | 849 } |
| 858 if (captionIncluded != null) { | 850 if (captionIncluded != null) { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 942 if (videoId != null) { | 934 if (videoId != null) { |
| 943 _json["videoId"] = videoId; | 935 _json["videoId"] = videoId; |
| 944 } | 936 } |
| 945 if (workType != null) { | 937 if (workType != null) { |
| 946 _json["workType"] = workType; | 938 _json["workType"] = workType; |
| 947 } | 939 } |
| 948 return _json; | 940 return _json; |
| 949 } | 941 } |
| 950 } | 942 } |
| 951 | 943 |
| 952 /** Response to the 'ListAvails' method. */ | 944 /// Response to the 'ListAvails' method. |
| 953 class ListAvailsResponse { | 945 class ListAvailsResponse { |
| 954 /** List of Avails that match the request criteria. */ | 946 /// List of Avails that match the request criteria. |
| 955 core.List<Avail> avails; | 947 core.List<Avail> avails; |
| 956 /** See _List methods rules_ for info about this field. */ | 948 |
| 949 /// See _List methods rules_ for info about this field. |
| 957 core.String nextPageToken; | 950 core.String nextPageToken; |
| 958 /** See _List methods rules_ for more information about this field. */ | 951 |
| 952 /// See _List methods rules_ for more information about this field. |
| 959 core.int totalSize; | 953 core.int totalSize; |
| 960 | 954 |
| 961 ListAvailsResponse(); | 955 ListAvailsResponse(); |
| 962 | 956 |
| 963 ListAvailsResponse.fromJson(core.Map _json) { | 957 ListAvailsResponse.fromJson(core.Map _json) { |
| 964 if (_json.containsKey("avails")) { | 958 if (_json.containsKey("avails")) { |
| 965 avails = _json["avails"].map((value) => new Avail.fromJson(value)).toList(
); | 959 avails = |
| 960 _json["avails"].map((value) => new Avail.fromJson(value)).toList(); |
| 966 } | 961 } |
| 967 if (_json.containsKey("nextPageToken")) { | 962 if (_json.containsKey("nextPageToken")) { |
| 968 nextPageToken = _json["nextPageToken"]; | 963 nextPageToken = _json["nextPageToken"]; |
| 969 } | 964 } |
| 970 if (_json.containsKey("totalSize")) { | 965 if (_json.containsKey("totalSize")) { |
| 971 totalSize = _json["totalSize"]; | 966 totalSize = _json["totalSize"]; |
| 972 } | 967 } |
| 973 } | 968 } |
| 974 | 969 |
| 975 core.Map<core.String, core.Object> toJson() { | 970 core.Map<core.String, core.Object> toJson() { |
| 976 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 971 final core.Map<core.String, core.Object> _json = |
| 972 new core.Map<core.String, core.Object>(); |
| 977 if (avails != null) { | 973 if (avails != null) { |
| 978 _json["avails"] = avails.map((value) => (value).toJson()).toList(); | 974 _json["avails"] = avails.map((value) => (value).toJson()).toList(); |
| 979 } | 975 } |
| 980 if (nextPageToken != null) { | 976 if (nextPageToken != null) { |
| 981 _json["nextPageToken"] = nextPageToken; | 977 _json["nextPageToken"] = nextPageToken; |
| 982 } | 978 } |
| 983 if (totalSize != null) { | 979 if (totalSize != null) { |
| 984 _json["totalSize"] = totalSize; | 980 _json["totalSize"] = totalSize; |
| 985 } | 981 } |
| 986 return _json; | 982 return _json; |
| 987 } | 983 } |
| 988 } | 984 } |
| 989 | 985 |
| 990 /** Response to the 'ListOrders' method. */ | 986 /// Response to the 'ListOrders' method. |
| 991 class ListOrdersResponse { | 987 class ListOrdersResponse { |
| 992 /** See _List methods rules_ for info about this field. */ | 988 /// See _List methods rules_ for info about this field. |
| 993 core.String nextPageToken; | 989 core.String nextPageToken; |
| 994 /** List of Orders that match the request criteria. */ | 990 |
| 991 /// List of Orders that match the request criteria. |
| 995 core.List<Order> orders; | 992 core.List<Order> orders; |
| 996 /** See _List methods rules_ for more information about this field. */ | 993 |
| 994 /// See _List methods rules_ for more information about this field. |
| 997 core.int totalSize; | 995 core.int totalSize; |
| 998 | 996 |
| 999 ListOrdersResponse(); | 997 ListOrdersResponse(); |
| 1000 | 998 |
| 1001 ListOrdersResponse.fromJson(core.Map _json) { | 999 ListOrdersResponse.fromJson(core.Map _json) { |
| 1002 if (_json.containsKey("nextPageToken")) { | 1000 if (_json.containsKey("nextPageToken")) { |
| 1003 nextPageToken = _json["nextPageToken"]; | 1001 nextPageToken = _json["nextPageToken"]; |
| 1004 } | 1002 } |
| 1005 if (_json.containsKey("orders")) { | 1003 if (_json.containsKey("orders")) { |
| 1006 orders = _json["orders"].map((value) => new Order.fromJson(value)).toList(
); | 1004 orders = |
| 1005 _json["orders"].map((value) => new Order.fromJson(value)).toList(); |
| 1007 } | 1006 } |
| 1008 if (_json.containsKey("totalSize")) { | 1007 if (_json.containsKey("totalSize")) { |
| 1009 totalSize = _json["totalSize"]; | 1008 totalSize = _json["totalSize"]; |
| 1010 } | 1009 } |
| 1011 } | 1010 } |
| 1012 | 1011 |
| 1013 core.Map<core.String, core.Object> toJson() { | 1012 core.Map<core.String, core.Object> toJson() { |
| 1014 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1013 final core.Map<core.String, core.Object> _json = |
| 1014 new core.Map<core.String, core.Object>(); |
| 1015 if (nextPageToken != null) { | 1015 if (nextPageToken != null) { |
| 1016 _json["nextPageToken"] = nextPageToken; | 1016 _json["nextPageToken"] = nextPageToken; |
| 1017 } | 1017 } |
| 1018 if (orders != null) { | 1018 if (orders != null) { |
| 1019 _json["orders"] = orders.map((value) => (value).toJson()).toList(); | 1019 _json["orders"] = orders.map((value) => (value).toJson()).toList(); |
| 1020 } | 1020 } |
| 1021 if (totalSize != null) { | 1021 if (totalSize != null) { |
| 1022 _json["totalSize"] = totalSize; | 1022 _json["totalSize"] = totalSize; |
| 1023 } | 1023 } |
| 1024 return _json; | 1024 return _json; |
| 1025 } | 1025 } |
| 1026 } | 1026 } |
| 1027 | 1027 |
| 1028 /** Response to the 'ListStoreInfos' method. */ | 1028 /// Response to the 'ListStoreInfos' method. |
| 1029 class ListStoreInfosResponse { | 1029 class ListStoreInfosResponse { |
| 1030 /** See 'List methods rules' for info about this field. */ | 1030 /// See 'List methods rules' for info about this field. |
| 1031 core.String nextPageToken; | 1031 core.String nextPageToken; |
| 1032 /** List of StoreInfos that match the request criteria. */ | 1032 |
| 1033 /// List of StoreInfos that match the request criteria. |
| 1033 core.List<StoreInfo> storeInfos; | 1034 core.List<StoreInfo> storeInfos; |
| 1034 /** See _List methods rules_ for more information about this field. */ | 1035 |
| 1036 /// See _List methods rules_ for more information about this field. |
| 1035 core.int totalSize; | 1037 core.int totalSize; |
| 1036 | 1038 |
| 1037 ListStoreInfosResponse(); | 1039 ListStoreInfosResponse(); |
| 1038 | 1040 |
| 1039 ListStoreInfosResponse.fromJson(core.Map _json) { | 1041 ListStoreInfosResponse.fromJson(core.Map _json) { |
| 1040 if (_json.containsKey("nextPageToken")) { | 1042 if (_json.containsKey("nextPageToken")) { |
| 1041 nextPageToken = _json["nextPageToken"]; | 1043 nextPageToken = _json["nextPageToken"]; |
| 1042 } | 1044 } |
| 1043 if (_json.containsKey("storeInfos")) { | 1045 if (_json.containsKey("storeInfos")) { |
| 1044 storeInfos = _json["storeInfos"].map((value) => new StoreInfo.fromJson(val
ue)).toList(); | 1046 storeInfos = _json["storeInfos"] |
| 1047 .map((value) => new StoreInfo.fromJson(value)) |
| 1048 .toList(); |
| 1045 } | 1049 } |
| 1046 if (_json.containsKey("totalSize")) { | 1050 if (_json.containsKey("totalSize")) { |
| 1047 totalSize = _json["totalSize"]; | 1051 totalSize = _json["totalSize"]; |
| 1048 } | 1052 } |
| 1049 } | 1053 } |
| 1050 | 1054 |
| 1051 core.Map<core.String, core.Object> toJson() { | 1055 core.Map<core.String, core.Object> toJson() { |
| 1052 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1056 final core.Map<core.String, core.Object> _json = |
| 1057 new core.Map<core.String, core.Object>(); |
| 1053 if (nextPageToken != null) { | 1058 if (nextPageToken != null) { |
| 1054 _json["nextPageToken"] = nextPageToken; | 1059 _json["nextPageToken"] = nextPageToken; |
| 1055 } | 1060 } |
| 1056 if (storeInfos != null) { | 1061 if (storeInfos != null) { |
| 1057 _json["storeInfos"] = storeInfos.map((value) => (value).toJson()).toList()
; | 1062 _json["storeInfos"] = |
| 1063 storeInfos.map((value) => (value).toJson()).toList(); |
| 1058 } | 1064 } |
| 1059 if (totalSize != null) { | 1065 if (totalSize != null) { |
| 1060 _json["totalSize"] = totalSize; | 1066 _json["totalSize"] = totalSize; |
| 1061 } | 1067 } |
| 1062 return _json; | 1068 return _json; |
| 1063 } | 1069 } |
| 1064 } | 1070 } |
| 1065 | 1071 |
| 1066 /** | 1072 /// An Order tracks the fulfillment of an Edit when delivered using the |
| 1067 * An Order tracks the fulfillment of an Edit when delivered using the | 1073 /// legacy, non-component-based delivery. |
| 1068 * legacy, non-component-based delivery. | 1074 /// |
| 1069 * | 1075 /// Each Order is uniquely identified by an `order_id`, which is generated |
| 1070 * Each Order is uniquely identified by an `order_id`, which is generated | 1076 /// by Google. |
| 1071 * by Google. | 1077 /// |
| 1072 * | 1078 /// Externally, Orders can also be identified by partners using its `custom_id` |
| 1073 * Externally, Orders can also be identified by partners using its `custom_id` | 1079 /// (when provided). |
| 1074 * (when provided). | |
| 1075 */ | |
| 1076 class Order { | 1080 class Order { |
| 1077 /** Timestamp when the Order was approved. */ | 1081 /// Timestamp when the Order was approved. |
| 1078 core.String approvedTime; | 1082 core.String approvedTime; |
| 1079 /** | 1083 |
| 1080 * YouTube Channel ID that should be used to fulfill the Order. | 1084 /// YouTube Channel ID that should be used to fulfill the Order. |
| 1081 * Example: "UCRG64darCZhb". | 1085 /// Example: "UCRG64darCZhb". |
| 1082 */ | |
| 1083 core.String channelId; | 1086 core.String channelId; |
| 1084 /** | 1087 |
| 1085 * YouTube Channel Name that should be used to fulfill the Order. | 1088 /// YouTube Channel Name that should be used to fulfill the Order. |
| 1086 * Example: "Google_channel". | 1089 /// Example: "Google_channel". |
| 1087 */ | |
| 1088 core.String channelName; | 1090 core.String channelName; |
| 1089 /** | 1091 |
| 1090 * Countries where the Order is available, | 1092 /// Countries where the Order is available, |
| 1091 * using the "ISO 3166-1 alpha-2" format (example: "US"). | 1093 /// using the "ISO 3166-1 alpha-2" format (example: "US"). |
| 1092 */ | |
| 1093 core.List<core.String> countries; | 1094 core.List<core.String> countries; |
| 1094 /** | 1095 |
| 1095 * ID that can be used to externally identify an Order. | 1096 /// ID that can be used to externally identify an Order. |
| 1096 * This ID is provided by partners when submitting the Avails. | 1097 /// This ID is provided by partners when submitting the Avails. |
| 1097 * Example: 'GOOGLER_2006' | 1098 /// Example: 'GOOGLER_2006' |
| 1098 */ | |
| 1099 core.String customId; | 1099 core.String customId; |
| 1100 /** | 1100 |
| 1101 * Timestamp of the earliest start date of the Avails | 1101 /// Timestamp of the earliest start date of the Avails |
| 1102 * linked to this Order. | 1102 /// linked to this Order. |
| 1103 */ | |
| 1104 core.String earliestAvailStartTime; | 1103 core.String earliestAvailStartTime; |
| 1105 /** | 1104 |
| 1106 * Default Episode name, | 1105 /// Default Episode name, |
| 1107 * usually in the language of the country of origin. | 1106 /// usually in the language of the country of origin. |
| 1108 * Only available for TV Edits | 1107 /// Only available for TV Edits |
| 1109 * Example: "Googlers, The - Pilot". | 1108 /// Example: "Googlers, The - Pilot". |
| 1110 */ | |
| 1111 core.String episodeName; | 1109 core.String episodeName; |
| 1112 /** | 1110 |
| 1113 * Legacy Order priority, as defined by Google. | 1111 /// Legacy Order priority, as defined by Google. |
| 1114 * Example: 'P0' | 1112 /// Example: 'P0' |
| 1115 */ | |
| 1116 core.String legacyPriority; | 1113 core.String legacyPriority; |
| 1117 /** | 1114 |
| 1118 * Default Edit name, | 1115 /// Default Edit name, |
| 1119 * usually in the language of the country of origin. | 1116 /// usually in the language of the country of origin. |
| 1120 * Example: "Googlers, The". | 1117 /// Example: "Googlers, The". |
| 1121 */ | |
| 1122 core.String name; | 1118 core.String name; |
| 1123 /** | 1119 |
| 1124 * A simpler representation of the priority. | 1120 /// A simpler representation of the priority. |
| 1125 * Possible string values are: | 1121 /// Possible string values are: |
| 1126 * - "NORMALIZED_PRIORITY_UNSPECIFIED" : Value could not be determined, please | 1122 /// - "NORMALIZED_PRIORITY_UNSPECIFIED" : Value could not be determined, |
| 1127 * contact technical support if | 1123 /// please contact technical support if |
| 1128 * it should. | 1124 /// it should. |
| 1129 * - "LOW_PRIORITY" : A low-priority asset, typically from a library movie. | 1125 /// - "LOW_PRIORITY" : A low-priority asset, typically from a library movie. |
| 1130 * - "HIGH_PRIORITY" : A high-priority asset, typically from a new release or | 1126 /// - "HIGH_PRIORITY" : A high-priority asset, typically from a new release |
| 1131 * box office hit. | 1127 /// or box office hit. |
| 1132 */ | |
| 1133 core.String normalizedPriority; | 1128 core.String normalizedPriority; |
| 1134 /** | 1129 |
| 1135 * ID internally generated by Google to uniquely identify an Order. | 1130 /// ID internally generated by Google to uniquely identify an Order. |
| 1136 * Example: 'abcde12_x' | 1131 /// Example: 'abcde12_x' |
| 1137 */ | |
| 1138 core.String orderId; | 1132 core.String orderId; |
| 1139 /** Timestamp when the Order was created. */ | 1133 |
| 1134 /// Timestamp when the Order was created. |
| 1140 core.String orderedTime; | 1135 core.String orderedTime; |
| 1141 /** Name of the post-production house that manages the Edit ordered. */ | 1136 |
| 1137 /// Name of the post-production house that manages the Edit ordered. |
| 1142 core.String pphName; | 1138 core.String pphName; |
| 1143 /** | 1139 |
| 1144 * Order priority, as defined by Google. | 1140 /// Order priority, as defined by Google. |
| 1145 * The higher the value, the higher the priority. | 1141 /// The higher the value, the higher the priority. |
| 1146 * Example: 90 | 1142 /// Example: 90 |
| 1147 */ | |
| 1148 core.double priority; | 1143 core.double priority; |
| 1149 /** Timestamp when the Order was fulfilled. */ | 1144 |
| 1145 /// Timestamp when the Order was fulfilled. |
| 1150 core.String receivedTime; | 1146 core.String receivedTime; |
| 1151 /** | 1147 |
| 1152 * Field explaining why an Order has been rejected. | 1148 /// Field explaining why an Order has been rejected. |
| 1153 * Example: "Trailer audio is 2ch mono, please re-deliver in stereo". | 1149 /// Example: "Trailer audio is 2ch mono, please re-deliver in stereo". |
| 1154 */ | |
| 1155 core.String rejectionNote; | 1150 core.String rejectionNote; |
| 1156 /** | 1151 |
| 1157 * Default Season name, | 1152 /// Default Season name, |
| 1158 * usually in the language of the country of origin. | 1153 /// usually in the language of the country of origin. |
| 1159 * Only available for TV Edits | 1154 /// Only available for TV Edits |
| 1160 * Example: "Googlers, The - A Brave New World". | 1155 /// Example: "Googlers, The - A Brave New World". |
| 1161 */ | |
| 1162 core.String seasonName; | 1156 core.String seasonName; |
| 1163 /** | 1157 |
| 1164 * Default Show name, | 1158 /// Default Show name, |
| 1165 * usually in the language of the country of origin. | 1159 /// usually in the language of the country of origin. |
| 1166 * Only available for TV Edits | 1160 /// Only available for TV Edits |
| 1167 * Example: "Googlers, The". | 1161 /// Example: "Googlers, The". |
| 1168 */ | |
| 1169 core.String showName; | 1162 core.String showName; |
| 1170 /** | 1163 |
| 1171 * High-level status of the order. | 1164 /// High-level status of the order. |
| 1172 * Possible string values are: | 1165 /// Possible string values are: |
| 1173 * - "STATUS_UNSPECIFIED" : Value could not be determined, please contact | 1166 /// - "STATUS_UNSPECIFIED" : Value could not be determined, please contact |
| 1174 * technical support if | 1167 /// technical support if |
| 1175 * it should. | 1168 /// it should. |
| 1176 * - "STATUS_APPROVED" : Approved by Google. | 1169 /// - "STATUS_APPROVED" : Approved by Google. |
| 1177 * - "STATUS_FAILED" : Waiting for partner to re-deliver the asset after a | 1170 /// - "STATUS_FAILED" : Waiting for partner to re-deliver the asset after a |
| 1178 * rejection by Google. | 1171 /// rejection by Google. |
| 1179 * - "STATUS_PROCESSING" : Waiting for Google to process the asset. | 1172 /// - "STATUS_PROCESSING" : Waiting for Google to process the asset. |
| 1180 * - "STATUS_UNFULFILLED" : Waiting for partner to deliver the asset. | 1173 /// - "STATUS_UNFULFILLED" : Waiting for partner to deliver the asset. |
| 1181 * - "STATUS_NOT_AVAILABLE" : Used when Status is not available (i.e: Orders | 1174 /// - "STATUS_NOT_AVAILABLE" : Used when Status is not available (i.e: Orders |
| 1182 * for TV Seasons). | 1175 /// for TV Seasons). |
| 1183 */ | |
| 1184 core.String status; | 1176 core.String status; |
| 1185 /** | 1177 |
| 1186 * Detailed status of the order | 1178 /// Detailed status of the order |
| 1187 * Possible string values are: | 1179 /// Possible string values are: |
| 1188 * - "ORDER_STATUS_UNSPECIFIED" : Value could not be determined, please | 1180 /// - "ORDER_STATUS_UNSPECIFIED" : Value could not be determined, please |
| 1189 * contact technical support if | 1181 /// contact technical support if |
| 1190 * it should. | 1182 /// it should. |
| 1191 * - "ORDER_STATUS_QC_APPROVED" : Approved by Google's Quality Control team. | 1183 /// - "ORDER_STATUS_QC_APPROVED" : Approved by Google's Quality Control team. |
| 1192 * - "ORDER_STATUS_QC_REJECTION" : Rejected by Google's Quality Control team, | 1184 /// - "ORDER_STATUS_QC_REJECTION" : Rejected by Google's Quality Control |
| 1193 * pending partner redelivery. | 1185 /// team, pending partner redelivery. |
| 1194 * - "ORDER_STATUS_INTERNAL_FIX" : Internal error while processing the Order. | 1186 /// - "ORDER_STATUS_INTERNAL_FIX" : Internal error while processing the |
| 1195 * - "ORDER_STATUS_OPEN_ORDER" : Waiting for initial delivery from partner. | 1187 /// Order. |
| 1196 * - "ORDER_STATUS_NOT_AVAILABLE" : Used on Orders that do not have Status, | 1188 /// - "ORDER_STATUS_OPEN_ORDER" : Waiting for initial delivery from partner. |
| 1197 * like TV Seasons. | 1189 /// - "ORDER_STATUS_NOT_AVAILABLE" : Used on Orders that do not have Status, |
| 1198 * - "ORDER_STATUS_AWAITING_REDELIVERY" : Waiting for re-delivery from | 1190 /// like TV Seasons. |
| 1199 * partner. | 1191 /// - "ORDER_STATUS_AWAITING_REDELIVERY" : Waiting for re-delivery from |
| 1200 * - "ORDER_STATUS_READY_FOR_QC" : Asset was delivered by partner, but is | 1192 /// partner. |
| 1201 * being reviewed by Google's | 1193 /// - "ORDER_STATUS_READY_FOR_QC" : Asset was delivered by partner, but is |
| 1202 * Quality Control team. | 1194 /// being reviewed by Google's |
| 1203 * - "ORDER_STATUS_FILE_PROCESSING" : Waiting for Google to process the asset. | 1195 /// Quality Control team. |
| 1204 */ | 1196 /// - "ORDER_STATUS_FILE_PROCESSING" : Waiting for Google to process the |
| 1197 /// asset. |
| 1205 core.String statusDetail; | 1198 core.String statusDetail; |
| 1206 /** Name of the studio that owns the Edit ordered. */ | 1199 |
| 1200 /// Name of the studio that owns the Edit ordered. |
| 1207 core.String studioName; | 1201 core.String studioName; |
| 1208 /** | 1202 |
| 1209 * Type of the Edit linked to the Order. | 1203 /// Type of the Edit linked to the Order. |
| 1210 * Possible string values are: | 1204 /// Possible string values are: |
| 1211 * - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please contact | 1205 /// - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please |
| 1212 * technical support if | 1206 /// contact technical support if |
| 1213 * it should. | 1207 /// it should. |
| 1214 * - "MOVIE" : A movie picture. | 1208 /// - "MOVIE" : A movie picture. |
| 1215 * - "SEASON" : A season of a TV show. | 1209 /// - "SEASON" : A season of a TV show. |
| 1216 * - "EPISODE" : An episode of a TV show. | 1210 /// - "EPISODE" : An episode of a TV show. |
| 1217 * - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the | 1211 /// - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the |
| 1218 * return" | 1212 /// return" |
| 1219 */ | |
| 1220 core.String type; | 1213 core.String type; |
| 1221 /** | 1214 |
| 1222 * Google-generated ID identifying the video linked to this Order, once | 1215 /// Google-generated ID identifying the video linked to this Order, once |
| 1223 * delivered. | 1216 /// delivered. |
| 1224 * Example: 'gtry456_xc'. | 1217 /// Example: 'gtry456_xc'. |
| 1225 */ | |
| 1226 core.String videoId; | 1218 core.String videoId; |
| 1227 | 1219 |
| 1228 Order(); | 1220 Order(); |
| 1229 | 1221 |
| 1230 Order.fromJson(core.Map _json) { | 1222 Order.fromJson(core.Map _json) { |
| 1231 if (_json.containsKey("approvedTime")) { | 1223 if (_json.containsKey("approvedTime")) { |
| 1232 approvedTime = _json["approvedTime"]; | 1224 approvedTime = _json["approvedTime"]; |
| 1233 } | 1225 } |
| 1234 if (_json.containsKey("channelId")) { | 1226 if (_json.containsKey("channelId")) { |
| 1235 channelId = _json["channelId"]; | 1227 channelId = _json["channelId"]; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1293 } | 1285 } |
| 1294 if (_json.containsKey("type")) { | 1286 if (_json.containsKey("type")) { |
| 1295 type = _json["type"]; | 1287 type = _json["type"]; |
| 1296 } | 1288 } |
| 1297 if (_json.containsKey("videoId")) { | 1289 if (_json.containsKey("videoId")) { |
| 1298 videoId = _json["videoId"]; | 1290 videoId = _json["videoId"]; |
| 1299 } | 1291 } |
| 1300 } | 1292 } |
| 1301 | 1293 |
| 1302 core.Map<core.String, core.Object> toJson() { | 1294 core.Map<core.String, core.Object> toJson() { |
| 1303 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1295 final core.Map<core.String, core.Object> _json = |
| 1296 new core.Map<core.String, core.Object>(); |
| 1304 if (approvedTime != null) { | 1297 if (approvedTime != null) { |
| 1305 _json["approvedTime"] = approvedTime; | 1298 _json["approvedTime"] = approvedTime; |
| 1306 } | 1299 } |
| 1307 if (channelId != null) { | 1300 if (channelId != null) { |
| 1308 _json["channelId"] = channelId; | 1301 _json["channelId"] = channelId; |
| 1309 } | 1302 } |
| 1310 if (channelName != null) { | 1303 if (channelName != null) { |
| 1311 _json["channelName"] = channelName; | 1304 _json["channelName"] = channelName; |
| 1312 } | 1305 } |
| 1313 if (countries != null) { | 1306 if (countries != null) { |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1367 if (type != null) { | 1360 if (type != null) { |
| 1368 _json["type"] = type; | 1361 _json["type"] = type; |
| 1369 } | 1362 } |
| 1370 if (videoId != null) { | 1363 if (videoId != null) { |
| 1371 _json["videoId"] = videoId; | 1364 _json["videoId"] = videoId; |
| 1372 } | 1365 } |
| 1373 return _json; | 1366 return _json; |
| 1374 } | 1367 } |
| 1375 } | 1368 } |
| 1376 | 1369 |
| 1377 /** | 1370 /// Information about a playable sequence (video) associated with an Edit |
| 1378 * Information about a playable sequence (video) associated with an Edit | 1371 /// and available at the Google Play Store. |
| 1379 * and available at the Google Play Store. | 1372 /// |
| 1380 * | 1373 /// Internally, each StoreInfo is uniquely identified by a `video_id` |
| 1381 * Internally, each StoreInfo is uniquely identified by a `video_id` | 1374 /// and `country`. |
| 1382 * and `country`. | 1375 /// |
| 1383 * | 1376 /// Externally, Title-level EIDR or Edit-level EIDR, if provided, |
| 1384 * Externally, Title-level EIDR or Edit-level EIDR, if provided, | 1377 /// can also be used to identify a specific title or edit in a country. |
| 1385 * can also be used to identify a specific title or edit in a country. | |
| 1386 */ | |
| 1387 class StoreInfo { | 1378 class StoreInfo { |
| 1388 /** Audio tracks available for this Edit. */ | 1379 /// Audio tracks available for this Edit. |
| 1389 core.List<core.String> audioTracks; | 1380 core.List<core.String> audioTracks; |
| 1390 /** | 1381 |
| 1391 * Country where Edit is available in ISO 3166-1 alpha-2 country | 1382 /// Country where Edit is available in ISO 3166-1 alpha-2 country |
| 1392 * code. | 1383 /// code. |
| 1393 * Example: "US". | 1384 /// Example: "US". |
| 1394 */ | |
| 1395 core.String country; | 1385 core.String country; |
| 1396 /** | 1386 |
| 1397 * Edit-level EIDR ID. | 1387 /// Edit-level EIDR ID. |
| 1398 * Example: "10.5240/1489-49A2-3956-4B2D-FE16-6". | 1388 /// Example: "10.5240/1489-49A2-3956-4B2D-FE16-6". |
| 1399 */ | |
| 1400 core.String editLevelEidr; | 1389 core.String editLevelEidr; |
| 1401 /** | 1390 |
| 1402 * The number assigned to the episode within a season. | 1391 /// The number assigned to the episode within a season. |
| 1403 * Only available on TV Edits. | 1392 /// Only available on TV Edits. |
| 1404 * Example: "1". | 1393 /// Example: "1". |
| 1405 */ | |
| 1406 core.String episodeNumber; | 1394 core.String episodeNumber; |
| 1407 /** Whether the Edit has a 5.1 channel audio track. */ | 1395 |
| 1396 /// Whether the Edit has a 5.1 channel audio track. |
| 1408 core.bool hasAudio51; | 1397 core.bool hasAudio51; |
| 1409 /** Whether the Edit has a EST offer. */ | 1398 |
| 1399 /// Whether the Edit has a EST offer. |
| 1410 core.bool hasEstOffer; | 1400 core.bool hasEstOffer; |
| 1411 /** Whether the Edit has a HD offer. */ | 1401 |
| 1402 /// Whether the Edit has a HD offer. |
| 1412 core.bool hasHdOffer; | 1403 core.bool hasHdOffer; |
| 1413 /** Whether the Edit has info cards. */ | 1404 |
| 1405 /// Whether the Edit has info cards. |
| 1414 core.bool hasInfoCards; | 1406 core.bool hasInfoCards; |
| 1415 /** Whether the Edit has a SD offer. */ | 1407 |
| 1408 /// Whether the Edit has a SD offer. |
| 1416 core.bool hasSdOffer; | 1409 core.bool hasSdOffer; |
| 1417 /** Whether the Edit has a VOD offer. */ | 1410 |
| 1411 /// Whether the Edit has a VOD offer. |
| 1418 core.bool hasVodOffer; | 1412 core.bool hasVodOffer; |
| 1419 /** Timestamp when the Edit went live on the Store. */ | 1413 |
| 1414 /// Timestamp when the Edit went live on the Store. |
| 1420 core.String liveTime; | 1415 core.String liveTime; |
| 1421 /** | 1416 |
| 1422 * Knowledge Graph ID associated to this Edit, if available. | 1417 /// Knowledge Graph ID associated to this Edit, if available. |
| 1423 * This ID links the Edit to its knowledge entity, externally accessible | 1418 /// This ID links the Edit to its knowledge entity, externally accessible |
| 1424 * at http://freebase.com. | 1419 /// at http://freebase.com. |
| 1425 * In the absense of Title EIDR or Edit EIDR, this ID helps link together | 1420 /// In the absense of Title EIDR or Edit EIDR, this ID helps link together |
| 1426 * multiple Edits across countries. | 1421 /// multiple Edits across countries. |
| 1427 * Example: '/m/0ffx29' | 1422 /// Example: '/m/0ffx29' |
| 1428 */ | |
| 1429 core.String mid; | 1423 core.String mid; |
| 1430 /** | 1424 |
| 1431 * Default Edit name, usually in the language of the country of | 1425 /// Default Edit name, usually in the language of the country of |
| 1432 * origin. | 1426 /// origin. |
| 1433 * Example: "Googlers, The". | 1427 /// Example: "Googlers, The". |
| 1434 */ | |
| 1435 core.String name; | 1428 core.String name; |
| 1436 /** Name of the post-production houses that manage the Edit. */ | 1429 |
| 1430 /// Name of the post-production houses that manage the Edit. |
| 1437 core.List<core.String> pphNames; | 1431 core.List<core.String> pphNames; |
| 1438 /** | 1432 |
| 1439 * Google-generated ID identifying the season linked to the Edit. | 1433 /// Google-generated ID identifying the season linked to the Edit. |
| 1440 * Only available for TV Edits. | 1434 /// Only available for TV Edits. |
| 1441 * Example: 'ster23ex' | 1435 /// Example: 'ster23ex' |
| 1442 */ | |
| 1443 core.String seasonId; | 1436 core.String seasonId; |
| 1444 /** | 1437 |
| 1445 * Default Season name, usually in the language of the country of | 1438 /// Default Season name, usually in the language of the country of |
| 1446 * origin. | 1439 /// origin. |
| 1447 * Only available for TV Edits | 1440 /// Only available for TV Edits |
| 1448 * Example: "Googlers, The - A Brave New World". | 1441 /// Example: "Googlers, The - A Brave New World". |
| 1449 */ | |
| 1450 core.String seasonName; | 1442 core.String seasonName; |
| 1451 /** | 1443 |
| 1452 * The number assigned to the season within a show. | 1444 /// The number assigned to the season within a show. |
| 1453 * Only available on TV Edits. | 1445 /// Only available on TV Edits. |
| 1454 * Example: "1". | 1446 /// Example: "1". |
| 1455 */ | |
| 1456 core.String seasonNumber; | 1447 core.String seasonNumber; |
| 1457 /** | 1448 |
| 1458 * Google-generated ID identifying the show linked to the Edit. | 1449 /// Google-generated ID identifying the show linked to the Edit. |
| 1459 * Only available for TV Edits. | 1450 /// Only available for TV Edits. |
| 1460 * Example: 'et2hsue_x' | 1451 /// Example: 'et2hsue_x' |
| 1461 */ | |
| 1462 core.String showId; | 1452 core.String showId; |
| 1463 /** | 1453 |
| 1464 * Default Show name, usually in the language of the country of | 1454 /// Default Show name, usually in the language of the country of |
| 1465 * origin. | 1455 /// origin. |
| 1466 * Only available for TV Edits | 1456 /// Only available for TV Edits |
| 1467 * Example: "Googlers, The". | 1457 /// Example: "Googlers, The". |
| 1468 */ | |
| 1469 core.String showName; | 1458 core.String showName; |
| 1470 /** Name of the studio that owns the Edit ordered. */ | 1459 |
| 1460 /// Name of the studio that owns the Edit ordered. |
| 1471 core.String studioName; | 1461 core.String studioName; |
| 1472 /** Subtitles available for this Edit. */ | 1462 |
| 1463 /// Subtitles available for this Edit. |
| 1473 core.List<core.String> subtitles; | 1464 core.List<core.String> subtitles; |
| 1474 /** | 1465 |
| 1475 * Title-level EIDR ID. | 1466 /// Title-level EIDR ID. |
| 1476 * Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". | 1467 /// Example: "10.5240/1489-49A2-3956-4B2D-FE16-5". |
| 1477 */ | |
| 1478 core.String titleLevelEidr; | 1468 core.String titleLevelEidr; |
| 1479 /** | 1469 |
| 1480 * Google-generated ID identifying the trailer linked to the Edit. | 1470 /// Google-generated ID identifying the trailer linked to the Edit. |
| 1481 * Example: 'bhd_4e_cx' | 1471 /// Example: 'bhd_4e_cx' |
| 1482 */ | |
| 1483 core.String trailerId; | 1472 core.String trailerId; |
| 1484 /** | 1473 |
| 1485 * Edit type, like Movie, Episode or Season. | 1474 /// Edit type, like Movie, Episode or Season. |
| 1486 * Possible string values are: | 1475 /// Possible string values are: |
| 1487 * - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please contact | 1476 /// - "TITLE_TYPE_UNSPECIFIED" : Value could not be determined, please |
| 1488 * technical support if | 1477 /// contact technical support if |
| 1489 * it should. | 1478 /// it should. |
| 1490 * - "MOVIE" : A movie picture. | 1479 /// - "MOVIE" : A movie picture. |
| 1491 * - "SEASON" : A season of a TV show. | 1480 /// - "SEASON" : A season of a TV show. |
| 1492 * - "EPISODE" : An episode of a TV show. | 1481 /// - "EPISODE" : An episode of a TV show. |
| 1493 * - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the | 1482 /// - "BUNDLE" : A collection of movies, i.e. "Googlers 1 and Googlers, the |
| 1494 * return" | 1483 /// return" |
| 1495 */ | |
| 1496 core.String type; | 1484 core.String type; |
| 1497 /** | 1485 |
| 1498 * Google-generated ID identifying the video linked to the Edit. | 1486 /// Google-generated ID identifying the video linked to the Edit. |
| 1499 * Example: 'gtry456_xc' | 1487 /// Example: 'gtry456_xc' |
| 1500 */ | |
| 1501 core.String videoId; | 1488 core.String videoId; |
| 1502 | 1489 |
| 1503 StoreInfo(); | 1490 StoreInfo(); |
| 1504 | 1491 |
| 1505 StoreInfo.fromJson(core.Map _json) { | 1492 StoreInfo.fromJson(core.Map _json) { |
| 1506 if (_json.containsKey("audioTracks")) { | 1493 if (_json.containsKey("audioTracks")) { |
| 1507 audioTracks = _json["audioTracks"]; | 1494 audioTracks = _json["audioTracks"]; |
| 1508 } | 1495 } |
| 1509 if (_json.containsKey("country")) { | 1496 if (_json.containsKey("country")) { |
| 1510 country = _json["country"]; | 1497 country = _json["country"]; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1574 } | 1561 } |
| 1575 if (_json.containsKey("type")) { | 1562 if (_json.containsKey("type")) { |
| 1576 type = _json["type"]; | 1563 type = _json["type"]; |
| 1577 } | 1564 } |
| 1578 if (_json.containsKey("videoId")) { | 1565 if (_json.containsKey("videoId")) { |
| 1579 videoId = _json["videoId"]; | 1566 videoId = _json["videoId"]; |
| 1580 } | 1567 } |
| 1581 } | 1568 } |
| 1582 | 1569 |
| 1583 core.Map<core.String, core.Object> toJson() { | 1570 core.Map<core.String, core.Object> toJson() { |
| 1584 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1571 final core.Map<core.String, core.Object> _json = |
| 1572 new core.Map<core.String, core.Object>(); |
| 1585 if (audioTracks != null) { | 1573 if (audioTracks != null) { |
| 1586 _json["audioTracks"] = audioTracks; | 1574 _json["audioTracks"] = audioTracks; |
| 1587 } | 1575 } |
| 1588 if (country != null) { | 1576 if (country != null) { |
| 1589 _json["country"] = country; | 1577 _json["country"] = country; |
| 1590 } | 1578 } |
| 1591 if (editLevelEidr != null) { | 1579 if (editLevelEidr != null) { |
| 1592 _json["editLevelEidr"] = editLevelEidr; | 1580 _json["editLevelEidr"] = editLevelEidr; |
| 1593 } | 1581 } |
| 1594 if (episodeNumber != null) { | 1582 if (episodeNumber != null) { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1653 } | 1641 } |
| 1654 if (type != null) { | 1642 if (type != null) { |
| 1655 _json["type"] = type; | 1643 _json["type"] = type; |
| 1656 } | 1644 } |
| 1657 if (videoId != null) { | 1645 if (videoId != null) { |
| 1658 _json["videoId"] = videoId; | 1646 _json["videoId"] = videoId; |
| 1659 } | 1647 } |
| 1660 return _json; | 1648 return _json; |
| 1661 } | 1649 } |
| 1662 } | 1650 } |
| OLD | NEW |