|
| 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 LiveChatGiftDetails extends \Google\Model |
| 21 | +{ |
| 22 | + /** |
| 23 | + * The alternative text to be used for accessibility. |
| 24 | + * |
| 25 | + * @var string |
| 26 | + */ |
| 27 | + public $altText; |
| 28 | + /** |
| 29 | + * The number of times the gift has been sent in a row. |
| 30 | + * |
| 31 | + * @var int |
| 32 | + */ |
| 33 | + public $comboCount; |
| 34 | + /** |
| 35 | + * The duration of the gift. |
| 36 | + * |
| 37 | + * @var string |
| 38 | + */ |
| 39 | + public $giftDuration; |
| 40 | + /** |
| 41 | + * The name of the gift. |
| 42 | + * |
| 43 | + * @var string |
| 44 | + */ |
| 45 | + public $giftName; |
| 46 | + /** |
| 47 | + * The URL of the gift image. |
| 48 | + * |
| 49 | + * @var string |
| 50 | + */ |
| 51 | + public $giftUrl; |
| 52 | + /** |
| 53 | + * Whether the gift involves a visual effect. |
| 54 | + * |
| 55 | + * @var bool |
| 56 | + */ |
| 57 | + public $hasVisualEffect; |
| 58 | + /** |
| 59 | + * The cost of the gift in jewels. |
| 60 | + * |
| 61 | + * @var int |
| 62 | + */ |
| 63 | + public $jewelsCount; |
| 64 | + /** |
| 65 | + * The BCP-47 language code of the gift. |
| 66 | + * |
| 67 | + * @var string |
| 68 | + */ |
| 69 | + public $language; |
| 70 | + |
| 71 | + /** |
| 72 | + * The alternative text to be used for accessibility. |
| 73 | + * |
| 74 | + * @param string $altText |
| 75 | + */ |
| 76 | + public function setAltText($altText) |
| 77 | + { |
| 78 | + $this->altText = $altText; |
| 79 | + } |
| 80 | + /** |
| 81 | + * @return string |
| 82 | + */ |
| 83 | + public function getAltText() |
| 84 | + { |
| 85 | + return $this->altText; |
| 86 | + } |
| 87 | + /** |
| 88 | + * The number of times the gift has been sent in a row. |
| 89 | + * |
| 90 | + * @param int $comboCount |
| 91 | + */ |
| 92 | + public function setComboCount($comboCount) |
| 93 | + { |
| 94 | + $this->comboCount = $comboCount; |
| 95 | + } |
| 96 | + /** |
| 97 | + * @return int |
| 98 | + */ |
| 99 | + public function getComboCount() |
| 100 | + { |
| 101 | + return $this->comboCount; |
| 102 | + } |
| 103 | + /** |
| 104 | + * The duration of the gift. |
| 105 | + * |
| 106 | + * @param string $giftDuration |
| 107 | + */ |
| 108 | + public function setGiftDuration($giftDuration) |
| 109 | + { |
| 110 | + $this->giftDuration = $giftDuration; |
| 111 | + } |
| 112 | + /** |
| 113 | + * @return string |
| 114 | + */ |
| 115 | + public function getGiftDuration() |
| 116 | + { |
| 117 | + return $this->giftDuration; |
| 118 | + } |
| 119 | + /** |
| 120 | + * The name of the gift. |
| 121 | + * |
| 122 | + * @param string $giftName |
| 123 | + */ |
| 124 | + public function setGiftName($giftName) |
| 125 | + { |
| 126 | + $this->giftName = $giftName; |
| 127 | + } |
| 128 | + /** |
| 129 | + * @return string |
| 130 | + */ |
| 131 | + public function getGiftName() |
| 132 | + { |
| 133 | + return $this->giftName; |
| 134 | + } |
| 135 | + /** |
| 136 | + * The URL of the gift image. |
| 137 | + * |
| 138 | + * @param string $giftUrl |
| 139 | + */ |
| 140 | + public function setGiftUrl($giftUrl) |
| 141 | + { |
| 142 | + $this->giftUrl = $giftUrl; |
| 143 | + } |
| 144 | + /** |
| 145 | + * @return string |
| 146 | + */ |
| 147 | + public function getGiftUrl() |
| 148 | + { |
| 149 | + return $this->giftUrl; |
| 150 | + } |
| 151 | + /** |
| 152 | + * Whether the gift involves a visual effect. |
| 153 | + * |
| 154 | + * @param bool $hasVisualEffect |
| 155 | + */ |
| 156 | + public function setHasVisualEffect($hasVisualEffect) |
| 157 | + { |
| 158 | + $this->hasVisualEffect = $hasVisualEffect; |
| 159 | + } |
| 160 | + /** |
| 161 | + * @return bool |
| 162 | + */ |
| 163 | + public function getHasVisualEffect() |
| 164 | + { |
| 165 | + return $this->hasVisualEffect; |
| 166 | + } |
| 167 | + /** |
| 168 | + * The cost of the gift in jewels. |
| 169 | + * |
| 170 | + * @param int $jewelsCount |
| 171 | + */ |
| 172 | + public function setJewelsCount($jewelsCount) |
| 173 | + { |
| 174 | + $this->jewelsCount = $jewelsCount; |
| 175 | + } |
| 176 | + /** |
| 177 | + * @return int |
| 178 | + */ |
| 179 | + public function getJewelsCount() |
| 180 | + { |
| 181 | + return $this->jewelsCount; |
| 182 | + } |
| 183 | + /** |
| 184 | + * The BCP-47 language code of the gift. |
| 185 | + * |
| 186 | + * @param string $language |
| 187 | + */ |
| 188 | + public function setLanguage($language) |
| 189 | + { |
| 190 | + $this->language = $language; |
| 191 | + } |
| 192 | + /** |
| 193 | + * @return string |
| 194 | + */ |
| 195 | + public function getLanguage() |
| 196 | + { |
| 197 | + return $this->language; |
| 198 | + } |
| 199 | +} |
| 200 | + |
| 201 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 202 | +class_alias(LiveChatGiftDetails::class, 'Google_Service_YouTube_LiveChatGiftDetails'); |
0 commit comments