OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.youtube.v3; | 3 library googleapis.youtube.v3; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:crypto/crypto.dart' as crypto; | |
11 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
12 | 11 |
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
14 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, | 13 ApiRequestError, DetailedApiRequestError, Media, UploadOptions, |
15 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, | 14 ResumableUploadOptions, DownloadOptions, PartialDownloadOptions, |
16 ByteRange; | 15 ByteRange; |
17 | 16 |
18 const core.String USER_AGENT = 'dart-api-client youtube/v3'; | 17 const core.String USER_AGENT = 'dart-api-client youtube/v3'; |
19 | 18 |
20 /** | 19 /** |
(...skipping 4900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4921 * subscription resource, the id property specifies the YouTube subscription | 4920 * subscription resource, the id property specifies the YouTube subscription |
4922 * ID. | 4921 * ID. |
4923 * | 4922 * |
4924 * [maxResults] - The maxResults parameter specifies the maximum number of | 4923 * [maxResults] - The maxResults parameter specifies the maximum number of |
4925 * items that should be returned in the result set. | 4924 * items that should be returned in the result set. |
4926 * Value must be between "0" and "50". | 4925 * Value must be between "0" and "50". |
4927 * | 4926 * |
4928 * [mine] - Set this parameter's value to true to retrieve a feed of the | 4927 * [mine] - Set this parameter's value to true to retrieve a feed of the |
4929 * authenticated user's subscriptions. | 4928 * authenticated user's subscriptions. |
4930 * | 4929 * |
| 4930 * [myRecentSubscribers] - Set this parameter's value to true to retrieve a |
| 4931 * feed of the subscribers of the authenticated user in reverse chronological |
| 4932 * order (newest first). |
| 4933 * |
4931 * [mySubscribers] - Set this parameter's value to true to retrieve a feed of | 4934 * [mySubscribers] - Set this parameter's value to true to retrieve a feed of |
4932 * the subscribers of the authenticated user. | 4935 * the subscribers of the authenticated user in no particular order. |
4933 * | 4936 * |
4934 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for | 4937 * [onBehalfOfContentOwner] - Note: This parameter is intended exclusively for |
4935 * YouTube content partners. | 4938 * YouTube content partners. |
4936 * | 4939 * |
4937 * The onBehalfOfContentOwner parameter indicates that the request's | 4940 * The onBehalfOfContentOwner parameter indicates that the request's |
4938 * authorization credentials identify a YouTube CMS user who is acting on | 4941 * authorization credentials identify a YouTube CMS user who is acting on |
4939 * behalf of the content owner specified in the parameter value. This | 4942 * behalf of the content owner specified in the parameter value. This |
4940 * parameter is intended for YouTube content partners that own and manage many | 4943 * parameter is intended for YouTube content partners that own and manage many |
4941 * different YouTube channels. It allows content owners to authenticate once | 4944 * different YouTube channels. It allows content owners to authenticate once |
4942 * and get access to all their video and channel data, without having to | 4945 * and get access to all their video and channel data, without having to |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4976 * and prevPageToken properties identify other pages that could be retrieved. | 4979 * and prevPageToken properties identify other pages that could be retrieved. |
4977 * | 4980 * |
4978 * Completes with a [SubscriptionListResponse]. | 4981 * Completes with a [SubscriptionListResponse]. |
4979 * | 4982 * |
4980 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 4983 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
4981 * error. | 4984 * error. |
4982 * | 4985 * |
4983 * If the used [http.Client] completes with an error when making a REST call, | 4986 * If the used [http.Client] completes with an error when making a REST call, |
4984 * this method will complete with the same error. | 4987 * this method will complete with the same error. |
4985 */ | 4988 */ |
4986 async.Future<SubscriptionListResponse> list(core.String part, {core.String cha
nnelId, core.String forChannelId, core.String id, core.int maxResults, core.bool
mine, core.bool mySubscribers, core.String onBehalfOfContentOwner, core.String
onBehalfOfContentOwnerChannel, core.String order, core.String pageToken}) { | 4989 async.Future<SubscriptionListResponse> list(core.String part, {core.String cha
nnelId, core.String forChannelId, core.String id, core.int maxResults, core.bool
mine, core.bool myRecentSubscribers, core.bool mySubscribers, core.String onBeh
alfOfContentOwner, core.String onBehalfOfContentOwnerChannel, core.String order,
core.String pageToken}) { |
4987 var _url = null; | 4990 var _url = null; |
4988 var _queryParams = new core.Map(); | 4991 var _queryParams = new core.Map(); |
4989 var _uploadMedia = null; | 4992 var _uploadMedia = null; |
4990 var _uploadOptions = null; | 4993 var _uploadOptions = null; |
4991 var _downloadOptions = commons.DownloadOptions.Metadata; | 4994 var _downloadOptions = commons.DownloadOptions.Metadata; |
4992 var _body = null; | 4995 var _body = null; |
4993 | 4996 |
4994 if (part == null) { | 4997 if (part == null) { |
4995 throw new core.ArgumentError("Parameter part is required."); | 4998 throw new core.ArgumentError("Parameter part is required."); |
4996 } | 4999 } |
4997 _queryParams["part"] = [part]; | 5000 _queryParams["part"] = [part]; |
4998 if (channelId != null) { | 5001 if (channelId != null) { |
4999 _queryParams["channelId"] = [channelId]; | 5002 _queryParams["channelId"] = [channelId]; |
5000 } | 5003 } |
5001 if (forChannelId != null) { | 5004 if (forChannelId != null) { |
5002 _queryParams["forChannelId"] = [forChannelId]; | 5005 _queryParams["forChannelId"] = [forChannelId]; |
5003 } | 5006 } |
5004 if (id != null) { | 5007 if (id != null) { |
5005 _queryParams["id"] = [id]; | 5008 _queryParams["id"] = [id]; |
5006 } | 5009 } |
5007 if (maxResults != null) { | 5010 if (maxResults != null) { |
5008 _queryParams["maxResults"] = ["${maxResults}"]; | 5011 _queryParams["maxResults"] = ["${maxResults}"]; |
5009 } | 5012 } |
5010 if (mine != null) { | 5013 if (mine != null) { |
5011 _queryParams["mine"] = ["${mine}"]; | 5014 _queryParams["mine"] = ["${mine}"]; |
5012 } | 5015 } |
| 5016 if (myRecentSubscribers != null) { |
| 5017 _queryParams["myRecentSubscribers"] = ["${myRecentSubscribers}"]; |
| 5018 } |
5013 if (mySubscribers != null) { | 5019 if (mySubscribers != null) { |
5014 _queryParams["mySubscribers"] = ["${mySubscribers}"]; | 5020 _queryParams["mySubscribers"] = ["${mySubscribers}"]; |
5015 } | 5021 } |
5016 if (onBehalfOfContentOwner != null) { | 5022 if (onBehalfOfContentOwner != null) { |
5017 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; | 5023 _queryParams["onBehalfOfContentOwner"] = [onBehalfOfContentOwner]; |
5018 } | 5024 } |
5019 if (onBehalfOfContentOwnerChannel != null) { | 5025 if (onBehalfOfContentOwnerChannel != null) { |
5020 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; | 5026 _queryParams["onBehalfOfContentOwnerChannel"] = [onBehalfOfContentOwnerCha
nnel]; |
5021 } | 5027 } |
5022 if (order != null) { | 5028 if (order != null) { |
(...skipping 6353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11376 if (streamName != null) { | 11382 if (streamName != null) { |
11377 _json["streamName"] = streamName; | 11383 _json["streamName"] = streamName; |
11378 } | 11384 } |
11379 return _json; | 11385 return _json; |
11380 } | 11386 } |
11381 } | 11387 } |
11382 | 11388 |
11383 class InvideoBranding { | 11389 class InvideoBranding { |
11384 core.String imageBytes; | 11390 core.String imageBytes; |
11385 core.List<core.int> get imageBytesAsBytes { | 11391 core.List<core.int> get imageBytesAsBytes { |
11386 return crypto.CryptoUtils.base64StringToBytes(imageBytes); | 11392 return convert.BASE64.decode(imageBytes); |
11387 } | 11393 } |
11388 | 11394 |
11389 void set imageBytesAsBytes(core.List<core.int> _bytes) { | 11395 void set imageBytesAsBytes(core.List<core.int> _bytes) { |
11390 imageBytes = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true); | 11396 imageBytes = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("
+", "-"); |
11391 } | 11397 } |
11392 core.String imageUrl; | 11398 core.String imageUrl; |
11393 InvideoPosition position; | 11399 InvideoPosition position; |
11394 core.String targetChannelId; | 11400 core.String targetChannelId; |
11395 InvideoTiming timing; | 11401 InvideoTiming timing; |
11396 | 11402 |
11397 InvideoBranding(); | 11403 InvideoBranding(); |
11398 | 11404 |
11399 InvideoBranding.fromJson(core.Map _json) { | 11405 InvideoBranding.fromJson(core.Map _json) { |
11400 if (_json.containsKey("imageBytes")) { | 11406 if (_json.containsKey("imageBytes")) { |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
12771 * 'fanFundingEvent'. | 12777 * 'fanFundingEvent'. |
12772 */ | 12778 */ |
12773 LiveChatFanFundingEventDetails fanFundingEventDetails; | 12779 LiveChatFanFundingEventDetails fanFundingEventDetails; |
12774 /** | 12780 /** |
12775 * Whether the message has display content that should be displayed to users. | 12781 * Whether the message has display content that should be displayed to users. |
12776 */ | 12782 */ |
12777 core.bool hasDisplayContent; | 12783 core.bool hasDisplayContent; |
12778 core.String liveChatId; | 12784 core.String liveChatId; |
12779 LiveChatMessageDeletedDetails messageDeletedDetails; | 12785 LiveChatMessageDeletedDetails messageDeletedDetails; |
12780 LiveChatMessageRetractedDetails messageRetractedDetails; | 12786 LiveChatMessageRetractedDetails messageRetractedDetails; |
| 12787 LiveChatPollClosedDetails pollClosedDetails; |
| 12788 LiveChatPollEditedDetails pollEditedDetails; |
| 12789 LiveChatPollOpenedDetails pollOpenedDetails; |
| 12790 LiveChatPollVotedDetails pollVotedDetails; |
12781 /** | 12791 /** |
12782 * The date and time when the message was orignally published. The value is | 12792 * The date and time when the message was orignally published. The value is |
12783 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. | 12793 * specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format. |
12784 */ | 12794 */ |
12785 core.DateTime publishedAt; | 12795 core.DateTime publishedAt; |
12786 /** | 12796 /** |
12787 * Details about the text message, this is only set if the type is | 12797 * Details about the text message, this is only set if the type is |
12788 * 'textMessageEvent'. | 12798 * 'textMessageEvent'. |
12789 */ | 12799 */ |
12790 LiveChatTextMessageDetails textMessageDetails; | 12800 LiveChatTextMessageDetails textMessageDetails; |
12791 /** | 12801 /** |
12792 * The type of message, this will always be present, it determines the | 12802 * The type of message, this will always be present, it determines the |
12793 * contents of the message as well as which fields will be present. | 12803 * contents of the message as well as which fields will be present. |
12794 * Possible string values are: | 12804 * Possible string values are: |
12795 * - "chatEndedEvent" | 12805 * - "chatEndedEvent" |
12796 * - "fanFundingEvent" | 12806 * - "fanFundingEvent" |
12797 * - "messageDeletedEvent" | 12807 * - "messageDeletedEvent" |
12798 * - "messageRetractedEvent" | 12808 * - "messageRetractedEvent" |
12799 * - "newSponsorEvent" | 12809 * - "newSponsorEvent" |
| 12810 * - "pollClosedEvent" |
| 12811 * - "pollEditedEvent" |
| 12812 * - "pollOpenedEvent" |
| 12813 * - "pollVotedEvent" |
12800 * - "sponsorOnlyModeEndedEvent" | 12814 * - "sponsorOnlyModeEndedEvent" |
12801 * - "sponsorOnlyModeStartedEvent" | 12815 * - "sponsorOnlyModeStartedEvent" |
12802 * - "textMessageEvent" | 12816 * - "textMessageEvent" |
12803 * - "tombstone" | 12817 * - "tombstone" |
12804 * - "userBannedEvent" | 12818 * - "userBannedEvent" |
12805 */ | 12819 */ |
12806 core.String type; | 12820 core.String type; |
12807 LiveChatUserBannedMessageDetails userBannedDetails; | 12821 LiveChatUserBannedMessageDetails userBannedDetails; |
12808 | 12822 |
12809 LiveChatMessageSnippet(); | 12823 LiveChatMessageSnippet(); |
(...skipping 13 matching lines...) Expand all Loading... |
12823 } | 12837 } |
12824 if (_json.containsKey("liveChatId")) { | 12838 if (_json.containsKey("liveChatId")) { |
12825 liveChatId = _json["liveChatId"]; | 12839 liveChatId = _json["liveChatId"]; |
12826 } | 12840 } |
12827 if (_json.containsKey("messageDeletedDetails")) { | 12841 if (_json.containsKey("messageDeletedDetails")) { |
12828 messageDeletedDetails = new LiveChatMessageDeletedDetails.fromJson(_json["
messageDeletedDetails"]); | 12842 messageDeletedDetails = new LiveChatMessageDeletedDetails.fromJson(_json["
messageDeletedDetails"]); |
12829 } | 12843 } |
12830 if (_json.containsKey("messageRetractedDetails")) { | 12844 if (_json.containsKey("messageRetractedDetails")) { |
12831 messageRetractedDetails = new LiveChatMessageRetractedDetails.fromJson(_js
on["messageRetractedDetails"]); | 12845 messageRetractedDetails = new LiveChatMessageRetractedDetails.fromJson(_js
on["messageRetractedDetails"]); |
12832 } | 12846 } |
| 12847 if (_json.containsKey("pollClosedDetails")) { |
| 12848 pollClosedDetails = new LiveChatPollClosedDetails.fromJson(_json["pollClos
edDetails"]); |
| 12849 } |
| 12850 if (_json.containsKey("pollEditedDetails")) { |
| 12851 pollEditedDetails = new LiveChatPollEditedDetails.fromJson(_json["pollEdit
edDetails"]); |
| 12852 } |
| 12853 if (_json.containsKey("pollOpenedDetails")) { |
| 12854 pollOpenedDetails = new LiveChatPollOpenedDetails.fromJson(_json["pollOpen
edDetails"]); |
| 12855 } |
| 12856 if (_json.containsKey("pollVotedDetails")) { |
| 12857 pollVotedDetails = new LiveChatPollVotedDetails.fromJson(_json["pollVotedD
etails"]); |
| 12858 } |
12833 if (_json.containsKey("publishedAt")) { | 12859 if (_json.containsKey("publishedAt")) { |
12834 publishedAt = core.DateTime.parse(_json["publishedAt"]); | 12860 publishedAt = core.DateTime.parse(_json["publishedAt"]); |
12835 } | 12861 } |
12836 if (_json.containsKey("textMessageDetails")) { | 12862 if (_json.containsKey("textMessageDetails")) { |
12837 textMessageDetails = new LiveChatTextMessageDetails.fromJson(_json["textMe
ssageDetails"]); | 12863 textMessageDetails = new LiveChatTextMessageDetails.fromJson(_json["textMe
ssageDetails"]); |
12838 } | 12864 } |
12839 if (_json.containsKey("type")) { | 12865 if (_json.containsKey("type")) { |
12840 type = _json["type"]; | 12866 type = _json["type"]; |
12841 } | 12867 } |
12842 if (_json.containsKey("userBannedDetails")) { | 12868 if (_json.containsKey("userBannedDetails")) { |
(...skipping 17 matching lines...) Expand all Loading... |
12860 } | 12886 } |
12861 if (liveChatId != null) { | 12887 if (liveChatId != null) { |
12862 _json["liveChatId"] = liveChatId; | 12888 _json["liveChatId"] = liveChatId; |
12863 } | 12889 } |
12864 if (messageDeletedDetails != null) { | 12890 if (messageDeletedDetails != null) { |
12865 _json["messageDeletedDetails"] = (messageDeletedDetails).toJson(); | 12891 _json["messageDeletedDetails"] = (messageDeletedDetails).toJson(); |
12866 } | 12892 } |
12867 if (messageRetractedDetails != null) { | 12893 if (messageRetractedDetails != null) { |
12868 _json["messageRetractedDetails"] = (messageRetractedDetails).toJson(); | 12894 _json["messageRetractedDetails"] = (messageRetractedDetails).toJson(); |
12869 } | 12895 } |
| 12896 if (pollClosedDetails != null) { |
| 12897 _json["pollClosedDetails"] = (pollClosedDetails).toJson(); |
| 12898 } |
| 12899 if (pollEditedDetails != null) { |
| 12900 _json["pollEditedDetails"] = (pollEditedDetails).toJson(); |
| 12901 } |
| 12902 if (pollOpenedDetails != null) { |
| 12903 _json["pollOpenedDetails"] = (pollOpenedDetails).toJson(); |
| 12904 } |
| 12905 if (pollVotedDetails != null) { |
| 12906 _json["pollVotedDetails"] = (pollVotedDetails).toJson(); |
| 12907 } |
12870 if (publishedAt != null) { | 12908 if (publishedAt != null) { |
12871 _json["publishedAt"] = (publishedAt).toIso8601String(); | 12909 _json["publishedAt"] = (publishedAt).toIso8601String(); |
12872 } | 12910 } |
12873 if (textMessageDetails != null) { | 12911 if (textMessageDetails != null) { |
12874 _json["textMessageDetails"] = (textMessageDetails).toJson(); | 12912 _json["textMessageDetails"] = (textMessageDetails).toJson(); |
12875 } | 12913 } |
12876 if (type != null) { | 12914 if (type != null) { |
12877 _json["type"] = type; | 12915 _json["type"] = type; |
12878 } | 12916 } |
12879 if (userBannedDetails != null) { | 12917 if (userBannedDetails != null) { |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
13050 if (liveChatId != null) { | 13088 if (liveChatId != null) { |
13051 _json["liveChatId"] = liveChatId; | 13089 _json["liveChatId"] = liveChatId; |
13052 } | 13090 } |
13053 if (moderatorDetails != null) { | 13091 if (moderatorDetails != null) { |
13054 _json["moderatorDetails"] = (moderatorDetails).toJson(); | 13092 _json["moderatorDetails"] = (moderatorDetails).toJson(); |
13055 } | 13093 } |
13056 return _json; | 13094 return _json; |
13057 } | 13095 } |
13058 } | 13096 } |
13059 | 13097 |
| 13098 class LiveChatPollClosedDetails { |
| 13099 /** The id of the poll that was closed. */ |
| 13100 core.String pollId; |
| 13101 |
| 13102 LiveChatPollClosedDetails(); |
| 13103 |
| 13104 LiveChatPollClosedDetails.fromJson(core.Map _json) { |
| 13105 if (_json.containsKey("pollId")) { |
| 13106 pollId = _json["pollId"]; |
| 13107 } |
| 13108 } |
| 13109 |
| 13110 core.Map toJson() { |
| 13111 var _json = new core.Map(); |
| 13112 if (pollId != null) { |
| 13113 _json["pollId"] = pollId; |
| 13114 } |
| 13115 return _json; |
| 13116 } |
| 13117 } |
| 13118 |
| 13119 class LiveChatPollEditedDetails { |
| 13120 core.String id; |
| 13121 core.List<LiveChatPollItem> items; |
| 13122 core.String prompt; |
| 13123 |
| 13124 LiveChatPollEditedDetails(); |
| 13125 |
| 13126 LiveChatPollEditedDetails.fromJson(core.Map _json) { |
| 13127 if (_json.containsKey("id")) { |
| 13128 id = _json["id"]; |
| 13129 } |
| 13130 if (_json.containsKey("items")) { |
| 13131 items = _json["items"].map((value) => new LiveChatPollItem.fromJson(value)
).toList(); |
| 13132 } |
| 13133 if (_json.containsKey("prompt")) { |
| 13134 prompt = _json["prompt"]; |
| 13135 } |
| 13136 } |
| 13137 |
| 13138 core.Map toJson() { |
| 13139 var _json = new core.Map(); |
| 13140 if (id != null) { |
| 13141 _json["id"] = id; |
| 13142 } |
| 13143 if (items != null) { |
| 13144 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 13145 } |
| 13146 if (prompt != null) { |
| 13147 _json["prompt"] = prompt; |
| 13148 } |
| 13149 return _json; |
| 13150 } |
| 13151 } |
| 13152 |
| 13153 class LiveChatPollItem { |
| 13154 /** Plain text description of the item. */ |
| 13155 core.String description; |
| 13156 core.String itemId; |
| 13157 |
| 13158 LiveChatPollItem(); |
| 13159 |
| 13160 LiveChatPollItem.fromJson(core.Map _json) { |
| 13161 if (_json.containsKey("description")) { |
| 13162 description = _json["description"]; |
| 13163 } |
| 13164 if (_json.containsKey("itemId")) { |
| 13165 itemId = _json["itemId"]; |
| 13166 } |
| 13167 } |
| 13168 |
| 13169 core.Map toJson() { |
| 13170 var _json = new core.Map(); |
| 13171 if (description != null) { |
| 13172 _json["description"] = description; |
| 13173 } |
| 13174 if (itemId != null) { |
| 13175 _json["itemId"] = itemId; |
| 13176 } |
| 13177 return _json; |
| 13178 } |
| 13179 } |
| 13180 |
| 13181 class LiveChatPollOpenedDetails { |
| 13182 core.String id; |
| 13183 core.List<LiveChatPollItem> items; |
| 13184 core.String prompt; |
| 13185 |
| 13186 LiveChatPollOpenedDetails(); |
| 13187 |
| 13188 LiveChatPollOpenedDetails.fromJson(core.Map _json) { |
| 13189 if (_json.containsKey("id")) { |
| 13190 id = _json["id"]; |
| 13191 } |
| 13192 if (_json.containsKey("items")) { |
| 13193 items = _json["items"].map((value) => new LiveChatPollItem.fromJson(value)
).toList(); |
| 13194 } |
| 13195 if (_json.containsKey("prompt")) { |
| 13196 prompt = _json["prompt"]; |
| 13197 } |
| 13198 } |
| 13199 |
| 13200 core.Map toJson() { |
| 13201 var _json = new core.Map(); |
| 13202 if (id != null) { |
| 13203 _json["id"] = id; |
| 13204 } |
| 13205 if (items != null) { |
| 13206 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 13207 } |
| 13208 if (prompt != null) { |
| 13209 _json["prompt"] = prompt; |
| 13210 } |
| 13211 return _json; |
| 13212 } |
| 13213 } |
| 13214 |
| 13215 class LiveChatPollVotedDetails { |
| 13216 /** The poll item the user chose. */ |
| 13217 core.String itemId; |
| 13218 /** The poll the user voted on. */ |
| 13219 core.String pollId; |
| 13220 |
| 13221 LiveChatPollVotedDetails(); |
| 13222 |
| 13223 LiveChatPollVotedDetails.fromJson(core.Map _json) { |
| 13224 if (_json.containsKey("itemId")) { |
| 13225 itemId = _json["itemId"]; |
| 13226 } |
| 13227 if (_json.containsKey("pollId")) { |
| 13228 pollId = _json["pollId"]; |
| 13229 } |
| 13230 } |
| 13231 |
| 13232 core.Map toJson() { |
| 13233 var _json = new core.Map(); |
| 13234 if (itemId != null) { |
| 13235 _json["itemId"] = itemId; |
| 13236 } |
| 13237 if (pollId != null) { |
| 13238 _json["pollId"] = pollId; |
| 13239 } |
| 13240 return _json; |
| 13241 } |
| 13242 } |
| 13243 |
13060 class LiveChatTextMessageDetails { | 13244 class LiveChatTextMessageDetails { |
13061 /** The user's message. */ | 13245 /** The user's message. */ |
13062 core.String messageText; | 13246 core.String messageText; |
13063 | 13247 |
13064 LiveChatTextMessageDetails(); | 13248 LiveChatTextMessageDetails(); |
13065 | 13249 |
13066 LiveChatTextMessageDetails.fromJson(core.Map _json) { | 13250 LiveChatTextMessageDetails.fromJson(core.Map _json) { |
13067 if (_json.containsKey("messageText")) { | 13251 if (_json.containsKey("messageText")) { |
13068 messageText = _json["messageText"]; | 13252 messageText = _json["messageText"]; |
13069 } | 13253 } |
(...skipping 4834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
17904 } | 18088 } |
17905 if (featuredPlaylistId != null) { | 18089 if (featuredPlaylistId != null) { |
17906 _json["featuredPlaylistId"] = featuredPlaylistId; | 18090 _json["featuredPlaylistId"] = featuredPlaylistId; |
17907 } | 18091 } |
17908 if (textColor != null) { | 18092 if (textColor != null) { |
17909 _json["textColor"] = textColor; | 18093 _json["textColor"] = textColor; |
17910 } | 18094 } |
17911 return _json; | 18095 return _json; |
17912 } | 18096 } |
17913 } | 18097 } |
OLD | NEW |