[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\YouTube;
|
---|
| 19 |
|
---|
| 20 | class LiveChatMessageSnippet extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | /**
|
---|
| 23 | * @var string
|
---|
| 24 | */
|
---|
| 25 | public $authorChannelId;
|
---|
| 26 | /**
|
---|
| 27 | * @var string
|
---|
| 28 | */
|
---|
| 29 | public $displayMessage;
|
---|
| 30 | protected $fanFundingEventDetailsType = LiveChatFanFundingEventDetails::class;
|
---|
| 31 | protected $fanFundingEventDetailsDataType = '';
|
---|
| 32 | protected $giftMembershipReceivedDetailsType = LiveChatGiftMembershipReceivedDetails::class;
|
---|
| 33 | protected $giftMembershipReceivedDetailsDataType = '';
|
---|
| 34 | /**
|
---|
| 35 | * @var bool
|
---|
| 36 | */
|
---|
| 37 | public $hasDisplayContent;
|
---|
| 38 | /**
|
---|
| 39 | * @var string
|
---|
| 40 | */
|
---|
| 41 | public $liveChatId;
|
---|
| 42 | protected $memberMilestoneChatDetailsType = LiveChatMemberMilestoneChatDetails::class;
|
---|
| 43 | protected $memberMilestoneChatDetailsDataType = '';
|
---|
| 44 | protected $membershipGiftingDetailsType = LiveChatMembershipGiftingDetails::class;
|
---|
| 45 | protected $membershipGiftingDetailsDataType = '';
|
---|
| 46 | protected $messageDeletedDetailsType = LiveChatMessageDeletedDetails::class;
|
---|
| 47 | protected $messageDeletedDetailsDataType = '';
|
---|
| 48 | protected $messageRetractedDetailsType = LiveChatMessageRetractedDetails::class;
|
---|
| 49 | protected $messageRetractedDetailsDataType = '';
|
---|
| 50 | protected $newSponsorDetailsType = LiveChatNewSponsorDetails::class;
|
---|
| 51 | protected $newSponsorDetailsDataType = '';
|
---|
| 52 | protected $pollDetailsType = LiveChatPollDetails::class;
|
---|
| 53 | protected $pollDetailsDataType = '';
|
---|
| 54 | /**
|
---|
| 55 | * @var string
|
---|
| 56 | */
|
---|
| 57 | public $publishedAt;
|
---|
| 58 | protected $superChatDetailsType = LiveChatSuperChatDetails::class;
|
---|
| 59 | protected $superChatDetailsDataType = '';
|
---|
| 60 | protected $superStickerDetailsType = LiveChatSuperStickerDetails::class;
|
---|
| 61 | protected $superStickerDetailsDataType = '';
|
---|
| 62 | protected $textMessageDetailsType = LiveChatTextMessageDetails::class;
|
---|
| 63 | protected $textMessageDetailsDataType = '';
|
---|
| 64 | /**
|
---|
| 65 | * @var string
|
---|
| 66 | */
|
---|
| 67 | public $type;
|
---|
| 68 | protected $userBannedDetailsType = LiveChatUserBannedMessageDetails::class;
|
---|
| 69 | protected $userBannedDetailsDataType = '';
|
---|
| 70 |
|
---|
| 71 | /**
|
---|
| 72 | * @param string
|
---|
| 73 | */
|
---|
| 74 | public function setAuthorChannelId($authorChannelId)
|
---|
| 75 | {
|
---|
| 76 | $this->authorChannelId = $authorChannelId;
|
---|
| 77 | }
|
---|
| 78 | /**
|
---|
| 79 | * @return string
|
---|
| 80 | */
|
---|
| 81 | public function getAuthorChannelId()
|
---|
| 82 | {
|
---|
| 83 | return $this->authorChannelId;
|
---|
| 84 | }
|
---|
| 85 | /**
|
---|
| 86 | * @param string
|
---|
| 87 | */
|
---|
| 88 | public function setDisplayMessage($displayMessage)
|
---|
| 89 | {
|
---|
| 90 | $this->displayMessage = $displayMessage;
|
---|
| 91 | }
|
---|
| 92 | /**
|
---|
| 93 | * @return string
|
---|
| 94 | */
|
---|
| 95 | public function getDisplayMessage()
|
---|
| 96 | {
|
---|
| 97 | return $this->displayMessage;
|
---|
| 98 | }
|
---|
| 99 | /**
|
---|
| 100 | * @param LiveChatFanFundingEventDetails
|
---|
| 101 | */
|
---|
| 102 | public function setFanFundingEventDetails(LiveChatFanFundingEventDetails $fanFundingEventDetails)
|
---|
| 103 | {
|
---|
| 104 | $this->fanFundingEventDetails = $fanFundingEventDetails;
|
---|
| 105 | }
|
---|
| 106 | /**
|
---|
| 107 | * @return LiveChatFanFundingEventDetails
|
---|
| 108 | */
|
---|
| 109 | public function getFanFundingEventDetails()
|
---|
| 110 | {
|
---|
| 111 | return $this->fanFundingEventDetails;
|
---|
| 112 | }
|
---|
| 113 | /**
|
---|
| 114 | * @param LiveChatGiftMembershipReceivedDetails
|
---|
| 115 | */
|
---|
| 116 | public function setGiftMembershipReceivedDetails(LiveChatGiftMembershipReceivedDetails $giftMembershipReceivedDetails)
|
---|
| 117 | {
|
---|
| 118 | $this->giftMembershipReceivedDetails = $giftMembershipReceivedDetails;
|
---|
| 119 | }
|
---|
| 120 | /**
|
---|
| 121 | * @return LiveChatGiftMembershipReceivedDetails
|
---|
| 122 | */
|
---|
| 123 | public function getGiftMembershipReceivedDetails()
|
---|
| 124 | {
|
---|
| 125 | return $this->giftMembershipReceivedDetails;
|
---|
| 126 | }
|
---|
| 127 | /**
|
---|
| 128 | * @param bool
|
---|
| 129 | */
|
---|
| 130 | public function setHasDisplayContent($hasDisplayContent)
|
---|
| 131 | {
|
---|
| 132 | $this->hasDisplayContent = $hasDisplayContent;
|
---|
| 133 | }
|
---|
| 134 | /**
|
---|
| 135 | * @return bool
|
---|
| 136 | */
|
---|
| 137 | public function getHasDisplayContent()
|
---|
| 138 | {
|
---|
| 139 | return $this->hasDisplayContent;
|
---|
| 140 | }
|
---|
| 141 | /**
|
---|
| 142 | * @param string
|
---|
| 143 | */
|
---|
| 144 | public function setLiveChatId($liveChatId)
|
---|
| 145 | {
|
---|
| 146 | $this->liveChatId = $liveChatId;
|
---|
| 147 | }
|
---|
| 148 | /**
|
---|
| 149 | * @return string
|
---|
| 150 | */
|
---|
| 151 | public function getLiveChatId()
|
---|
| 152 | {
|
---|
| 153 | return $this->liveChatId;
|
---|
| 154 | }
|
---|
| 155 | /**
|
---|
| 156 | * @param LiveChatMemberMilestoneChatDetails
|
---|
| 157 | */
|
---|
| 158 | public function setMemberMilestoneChatDetails(LiveChatMemberMilestoneChatDetails $memberMilestoneChatDetails)
|
---|
| 159 | {
|
---|
| 160 | $this->memberMilestoneChatDetails = $memberMilestoneChatDetails;
|
---|
| 161 | }
|
---|
| 162 | /**
|
---|
| 163 | * @return LiveChatMemberMilestoneChatDetails
|
---|
| 164 | */
|
---|
| 165 | public function getMemberMilestoneChatDetails()
|
---|
| 166 | {
|
---|
| 167 | return $this->memberMilestoneChatDetails;
|
---|
| 168 | }
|
---|
| 169 | /**
|
---|
| 170 | * @param LiveChatMembershipGiftingDetails
|
---|
| 171 | */
|
---|
| 172 | public function setMembershipGiftingDetails(LiveChatMembershipGiftingDetails $membershipGiftingDetails)
|
---|
| 173 | {
|
---|
| 174 | $this->membershipGiftingDetails = $membershipGiftingDetails;
|
---|
| 175 | }
|
---|
| 176 | /**
|
---|
| 177 | * @return LiveChatMembershipGiftingDetails
|
---|
| 178 | */
|
---|
| 179 | public function getMembershipGiftingDetails()
|
---|
| 180 | {
|
---|
| 181 | return $this->membershipGiftingDetails;
|
---|
| 182 | }
|
---|
| 183 | /**
|
---|
| 184 | * @param LiveChatMessageDeletedDetails
|
---|
| 185 | */
|
---|
| 186 | public function setMessageDeletedDetails(LiveChatMessageDeletedDetails $messageDeletedDetails)
|
---|
| 187 | {
|
---|
| 188 | $this->messageDeletedDetails = $messageDeletedDetails;
|
---|
| 189 | }
|
---|
| 190 | /**
|
---|
| 191 | * @return LiveChatMessageDeletedDetails
|
---|
| 192 | */
|
---|
| 193 | public function getMessageDeletedDetails()
|
---|
| 194 | {
|
---|
| 195 | return $this->messageDeletedDetails;
|
---|
| 196 | }
|
---|
| 197 | /**
|
---|
| 198 | * @param LiveChatMessageRetractedDetails
|
---|
| 199 | */
|
---|
| 200 | public function setMessageRetractedDetails(LiveChatMessageRetractedDetails $messageRetractedDetails)
|
---|
| 201 | {
|
---|
| 202 | $this->messageRetractedDetails = $messageRetractedDetails;
|
---|
| 203 | }
|
---|
| 204 | /**
|
---|
| 205 | * @return LiveChatMessageRetractedDetails
|
---|
| 206 | */
|
---|
| 207 | public function getMessageRetractedDetails()
|
---|
| 208 | {
|
---|
| 209 | return $this->messageRetractedDetails;
|
---|
| 210 | }
|
---|
| 211 | /**
|
---|
| 212 | * @param LiveChatNewSponsorDetails
|
---|
| 213 | */
|
---|
| 214 | public function setNewSponsorDetails(LiveChatNewSponsorDetails $newSponsorDetails)
|
---|
| 215 | {
|
---|
| 216 | $this->newSponsorDetails = $newSponsorDetails;
|
---|
| 217 | }
|
---|
| 218 | /**
|
---|
| 219 | * @return LiveChatNewSponsorDetails
|
---|
| 220 | */
|
---|
| 221 | public function getNewSponsorDetails()
|
---|
| 222 | {
|
---|
| 223 | return $this->newSponsorDetails;
|
---|
| 224 | }
|
---|
| 225 | /**
|
---|
| 226 | * @param LiveChatPollDetails
|
---|
| 227 | */
|
---|
| 228 | public function setPollDetails(LiveChatPollDetails $pollDetails)
|
---|
| 229 | {
|
---|
| 230 | $this->pollDetails = $pollDetails;
|
---|
| 231 | }
|
---|
| 232 | /**
|
---|
| 233 | * @return LiveChatPollDetails
|
---|
| 234 | */
|
---|
| 235 | public function getPollDetails()
|
---|
| 236 | {
|
---|
| 237 | return $this->pollDetails;
|
---|
| 238 | }
|
---|
| 239 | /**
|
---|
| 240 | * @param string
|
---|
| 241 | */
|
---|
| 242 | public function setPublishedAt($publishedAt)
|
---|
| 243 | {
|
---|
| 244 | $this->publishedAt = $publishedAt;
|
---|
| 245 | }
|
---|
| 246 | /**
|
---|
| 247 | * @return string
|
---|
| 248 | */
|
---|
| 249 | public function getPublishedAt()
|
---|
| 250 | {
|
---|
| 251 | return $this->publishedAt;
|
---|
| 252 | }
|
---|
| 253 | /**
|
---|
| 254 | * @param LiveChatSuperChatDetails
|
---|
| 255 | */
|
---|
| 256 | public function setSuperChatDetails(LiveChatSuperChatDetails $superChatDetails)
|
---|
| 257 | {
|
---|
| 258 | $this->superChatDetails = $superChatDetails;
|
---|
| 259 | }
|
---|
| 260 | /**
|
---|
| 261 | * @return LiveChatSuperChatDetails
|
---|
| 262 | */
|
---|
| 263 | public function getSuperChatDetails()
|
---|
| 264 | {
|
---|
| 265 | return $this->superChatDetails;
|
---|
| 266 | }
|
---|
| 267 | /**
|
---|
| 268 | * @param LiveChatSuperStickerDetails
|
---|
| 269 | */
|
---|
| 270 | public function setSuperStickerDetails(LiveChatSuperStickerDetails $superStickerDetails)
|
---|
| 271 | {
|
---|
| 272 | $this->superStickerDetails = $superStickerDetails;
|
---|
| 273 | }
|
---|
| 274 | /**
|
---|
| 275 | * @return LiveChatSuperStickerDetails
|
---|
| 276 | */
|
---|
| 277 | public function getSuperStickerDetails()
|
---|
| 278 | {
|
---|
| 279 | return $this->superStickerDetails;
|
---|
| 280 | }
|
---|
| 281 | /**
|
---|
| 282 | * @param LiveChatTextMessageDetails
|
---|
| 283 | */
|
---|
| 284 | public function setTextMessageDetails(LiveChatTextMessageDetails $textMessageDetails)
|
---|
| 285 | {
|
---|
| 286 | $this->textMessageDetails = $textMessageDetails;
|
---|
| 287 | }
|
---|
| 288 | /**
|
---|
| 289 | * @return LiveChatTextMessageDetails
|
---|
| 290 | */
|
---|
| 291 | public function getTextMessageDetails()
|
---|
| 292 | {
|
---|
| 293 | return $this->textMessageDetails;
|
---|
| 294 | }
|
---|
| 295 | /**
|
---|
| 296 | * @param string
|
---|
| 297 | */
|
---|
| 298 | public function setType($type)
|
---|
| 299 | {
|
---|
| 300 | $this->type = $type;
|
---|
| 301 | }
|
---|
| 302 | /**
|
---|
| 303 | * @return string
|
---|
| 304 | */
|
---|
| 305 | public function getType()
|
---|
| 306 | {
|
---|
| 307 | return $this->type;
|
---|
| 308 | }
|
---|
| 309 | /**
|
---|
| 310 | * @param LiveChatUserBannedMessageDetails
|
---|
| 311 | */
|
---|
| 312 | public function setUserBannedDetails(LiveChatUserBannedMessageDetails $userBannedDetails)
|
---|
| 313 | {
|
---|
| 314 | $this->userBannedDetails = $userBannedDetails;
|
---|
| 315 | }
|
---|
| 316 | /**
|
---|
| 317 | * @return LiveChatUserBannedMessageDetails
|
---|
| 318 | */
|
---|
| 319 | public function getUserBannedDetails()
|
---|
| 320 | {
|
---|
| 321 | return $this->userBannedDetails;
|
---|
| 322 | }
|
---|
| 323 | }
|
---|
| 324 |
|
---|
| 325 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 326 | class_alias(LiveChatMessageSnippet::class, 'Google_Service_YouTube_LiveChatMessageSnippet');
|
---|