| OLD | NEW |
| 1 library googleapis.youtube.v3; | 1 library googleapis.youtube.v3; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| (...skipping 6396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6407 | 6407 |
| 6408 /** JSON template for the status part of a channel. */ | 6408 /** JSON template for the status part of a channel. */ |
| 6409 class ChannelStatus { | 6409 class ChannelStatus { |
| 6410 /** | 6410 /** |
| 6411 * If true, then the user is linked to either a YouTube username or G+ | 6411 * If true, then the user is linked to either a YouTube username or G+ |
| 6412 * account. Otherwise, the user doesn't have a public YouTube identity. | 6412 * account. Otherwise, the user doesn't have a public YouTube identity. |
| 6413 */ | 6413 */ |
| 6414 core.bool isLinked; | 6414 core.bool isLinked; |
| 6415 | 6415 |
| 6416 /** | 6416 /** |
| 6417 * The long uploads status of this channel. See |
| 6418 * Possible string values are: |
| 6419 * - "allowed" |
| 6420 * - "disallowed" |
| 6421 * - "eligible" |
| 6422 * - "longUploadsUnspecified" |
| 6423 */ |
| 6424 core.String longUploadsStatus; |
| 6425 |
| 6426 /** |
| 6417 * Privacy status of the channel. | 6427 * Privacy status of the channel. |
| 6418 * Possible string values are: | 6428 * Possible string values are: |
| 6419 * - "private" | 6429 * - "private" |
| 6420 * - "public" | 6430 * - "public" |
| 6421 * - "unlisted" | 6431 * - "unlisted" |
| 6422 */ | 6432 */ |
| 6423 core.String privacyStatus; | 6433 core.String privacyStatus; |
| 6424 | 6434 |
| 6425 | 6435 |
| 6426 ChannelStatus(); | 6436 ChannelStatus(); |
| 6427 | 6437 |
| 6428 ChannelStatus.fromJson(core.Map _json) { | 6438 ChannelStatus.fromJson(core.Map _json) { |
| 6429 if (_json.containsKey("isLinked")) { | 6439 if (_json.containsKey("isLinked")) { |
| 6430 isLinked = _json["isLinked"]; | 6440 isLinked = _json["isLinked"]; |
| 6431 } | 6441 } |
| 6442 if (_json.containsKey("longUploadsStatus")) { |
| 6443 longUploadsStatus = _json["longUploadsStatus"]; |
| 6444 } |
| 6432 if (_json.containsKey("privacyStatus")) { | 6445 if (_json.containsKey("privacyStatus")) { |
| 6433 privacyStatus = _json["privacyStatus"]; | 6446 privacyStatus = _json["privacyStatus"]; |
| 6434 } | 6447 } |
| 6435 } | 6448 } |
| 6436 | 6449 |
| 6437 core.Map toJson() { | 6450 core.Map toJson() { |
| 6438 var _json = new core.Map(); | 6451 var _json = new core.Map(); |
| 6439 if (isLinked != null) { | 6452 if (isLinked != null) { |
| 6440 _json["isLinked"] = isLinked; | 6453 _json["isLinked"] = isLinked; |
| 6441 } | 6454 } |
| 6455 if (longUploadsStatus != null) { |
| 6456 _json["longUploadsStatus"] = longUploadsStatus; |
| 6457 } |
| 6442 if (privacyStatus != null) { | 6458 if (privacyStatus != null) { |
| 6443 _json["privacyStatus"] = privacyStatus; | 6459 _json["privacyStatus"] = privacyStatus; |
| 6444 } | 6460 } |
| 6445 return _json; | 6461 return _json; |
| 6446 } | 6462 } |
| 6447 } | 6463 } |
| 6448 | 6464 |
| 6449 | 6465 |
| 6450 /** Freebase topic information related to the channel. */ | 6466 /** Freebase topic information related to the channel. */ |
| 6451 class ChannelTopicDetails { | 6467 class ChannelTopicDetails { |
| (...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8641 | 8657 |
| 8642 /** List of promoted items in decreasing priority. */ | 8658 /** List of promoted items in decreasing priority. */ |
| 8643 core.List<PromotedItem> items; | 8659 core.List<PromotedItem> items; |
| 8644 | 8660 |
| 8645 /** | 8661 /** |
| 8646 * The spatial position within the video where the promoted item will be | 8662 * The spatial position within the video where the promoted item will be |
| 8647 * displayed. | 8663 * displayed. |
| 8648 */ | 8664 */ |
| 8649 InvideoPosition position; | 8665 InvideoPosition position; |
| 8650 | 8666 |
| 8667 /** |
| 8668 * Indicates whether the channel's promotional campaign uses "smart timing." |
| 8669 * This feature attempts to show promotions at a point in the video when they |
| 8670 * are more likely to be clicked and less likely to disrupt the viewing |
| 8671 * experience. This feature also picks up a single promotion to show on each |
| 8672 * video. |
| 8673 */ |
| 8674 core.bool useSmartTiming; |
| 8675 |
| 8651 | 8676 |
| 8652 InvideoPromotion(); | 8677 InvideoPromotion(); |
| 8653 | 8678 |
| 8654 InvideoPromotion.fromJson(core.Map _json) { | 8679 InvideoPromotion.fromJson(core.Map _json) { |
| 8655 if (_json.containsKey("defaultTiming")) { | 8680 if (_json.containsKey("defaultTiming")) { |
| 8656 defaultTiming = new InvideoTiming.fromJson(_json["defaultTiming"]); | 8681 defaultTiming = new InvideoTiming.fromJson(_json["defaultTiming"]); |
| 8657 } | 8682 } |
| 8658 if (_json.containsKey("items")) { | 8683 if (_json.containsKey("items")) { |
| 8659 items = _json["items"].map((value) => new PromotedItem.fromJson(value)).to
List(); | 8684 items = _json["items"].map((value) => new PromotedItem.fromJson(value)).to
List(); |
| 8660 } | 8685 } |
| 8661 if (_json.containsKey("position")) { | 8686 if (_json.containsKey("position")) { |
| 8662 position = new InvideoPosition.fromJson(_json["position"]); | 8687 position = new InvideoPosition.fromJson(_json["position"]); |
| 8663 } | 8688 } |
| 8689 if (_json.containsKey("useSmartTiming")) { |
| 8690 useSmartTiming = _json["useSmartTiming"]; |
| 8691 } |
| 8664 } | 8692 } |
| 8665 | 8693 |
| 8666 core.Map toJson() { | 8694 core.Map toJson() { |
| 8667 var _json = new core.Map(); | 8695 var _json = new core.Map(); |
| 8668 if (defaultTiming != null) { | 8696 if (defaultTiming != null) { |
| 8669 _json["defaultTiming"] = (defaultTiming).toJson(); | 8697 _json["defaultTiming"] = (defaultTiming).toJson(); |
| 8670 } | 8698 } |
| 8671 if (items != null) { | 8699 if (items != null) { |
| 8672 _json["items"] = items.map((value) => (value).toJson()).toList(); | 8700 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 8673 } | 8701 } |
| 8674 if (position != null) { | 8702 if (position != null) { |
| 8675 _json["position"] = (position).toJson(); | 8703 _json["position"] = (position).toJson(); |
| 8676 } | 8704 } |
| 8705 if (useSmartTiming != null) { |
| 8706 _json["useSmartTiming"] = useSmartTiming; |
| 8707 } |
| 8677 return _json; | 8708 return _json; |
| 8678 } | 8709 } |
| 8679 } | 8710 } |
| 8680 | 8711 |
| 8681 | 8712 |
| 8682 /** Describes a temporal position of a visual widget inside a video. */ | 8713 /** Describes a temporal position of a visual widget inside a video. */ |
| 8683 class InvideoTiming { | 8714 class InvideoTiming { |
| 8684 /** | 8715 /** |
| 8685 * Defines the duration in milliseconds for which the promotion should be | 8716 * Defines the duration in milliseconds for which the promotion should be |
| 8686 * displayed. If missing, the client should use the default. | 8717 * displayed. If missing, the client should use the default. |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9361 return _json; | 9392 return _json; |
| 9362 } | 9393 } |
| 9363 } | 9394 } |
| 9364 | 9395 |
| 9365 | 9396 |
| 9366 /** Detailed settings of a stream. */ | 9397 /** Detailed settings of a stream. */ |
| 9367 class LiveStreamContentDetails { | 9398 class LiveStreamContentDetails { |
| 9368 /** The ingestion URL where the closed captions of this stream are sent. */ | 9399 /** The ingestion URL where the closed captions of this stream are sent. */ |
| 9369 core.String closedCaptionsIngestionUrl; | 9400 core.String closedCaptionsIngestionUrl; |
| 9370 | 9401 |
| 9402 /** |
| 9403 * Indicates whether the stream is reusable, which means that it can be bound |
| 9404 * to multiple broadcasts. It is common for broadcasters to reuse the same |
| 9405 * stream for many different broadcasts if those broadcasts occur at different |
| 9406 * times. |
| 9407 * |
| 9408 * If you set this value to false, then the stream will not be reusable, which |
| 9409 * means that it can only be bound to one broadcast. Non-reusable streams |
| 9410 * differ from reusable streams in the following ways: |
| 9411 * - A non-reusable stream can only be bound to one broadcast. |
| 9412 * - A non-reusable stream might be deleted by an automated process after the |
| 9413 * broadcast ends. |
| 9414 * - The liveStreams.list method does not list non-reusable streams if you |
| 9415 * call the method and set the mine parameter to true. The only way to use |
| 9416 * that method to retrieve the resource for a non-reusable stream is to use |
| 9417 * the id parameter to identify the stream. |
| 9418 */ |
| 9419 core.bool isReusable; |
| 9420 |
| 9371 | 9421 |
| 9372 LiveStreamContentDetails(); | 9422 LiveStreamContentDetails(); |
| 9373 | 9423 |
| 9374 LiveStreamContentDetails.fromJson(core.Map _json) { | 9424 LiveStreamContentDetails.fromJson(core.Map _json) { |
| 9375 if (_json.containsKey("closedCaptionsIngestionUrl")) { | 9425 if (_json.containsKey("closedCaptionsIngestionUrl")) { |
| 9376 closedCaptionsIngestionUrl = _json["closedCaptionsIngestionUrl"]; | 9426 closedCaptionsIngestionUrl = _json["closedCaptionsIngestionUrl"]; |
| 9377 } | 9427 } |
| 9428 if (_json.containsKey("isReusable")) { |
| 9429 isReusable = _json["isReusable"]; |
| 9430 } |
| 9378 } | 9431 } |
| 9379 | 9432 |
| 9380 core.Map toJson() { | 9433 core.Map toJson() { |
| 9381 var _json = new core.Map(); | 9434 var _json = new core.Map(); |
| 9382 if (closedCaptionsIngestionUrl != null) { | 9435 if (closedCaptionsIngestionUrl != null) { |
| 9383 _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; | 9436 _json["closedCaptionsIngestionUrl"] = closedCaptionsIngestionUrl; |
| 9384 } | 9437 } |
| 9438 if (isReusable != null) { |
| 9439 _json["isReusable"] = isReusable; |
| 9440 } |
| 9385 return _json; | 9441 return _json; |
| 9386 } | 9442 } |
| 9387 } | 9443 } |
| 9388 | 9444 |
| 9389 | 9445 |
| 9390 /** Not documented yet. */ | 9446 /** Not documented yet. */ |
| 9391 class LiveStreamListResponse { | 9447 class LiveStreamListResponse { |
| 9392 /** Etag of this resource. */ | 9448 /** Etag of this resource. */ |
| 9393 core.String etag; | 9449 core.String etag; |
| 9394 | 9450 |
| (...skipping 4386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13781 _json["featuredPlaylistId"] = featuredPlaylistId; | 13837 _json["featuredPlaylistId"] = featuredPlaylistId; |
| 13782 } | 13838 } |
| 13783 if (textColor != null) { | 13839 if (textColor != null) { |
| 13784 _json["textColor"] = textColor; | 13840 _json["textColor"] = textColor; |
| 13785 } | 13841 } |
| 13786 return _json; | 13842 return _json; |
| 13787 } | 13843 } |
| 13788 } | 13844 } |
| 13789 | 13845 |
| 13790 | 13846 |
| OLD | NEW |