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
18namespace Google\Service\YouTube;
19
20class 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  /**
53   * @var string
54   */
55  public $publishedAt;
56  protected $superChatDetailsType = LiveChatSuperChatDetails::class;
57  protected $superChatDetailsDataType = '';
58  protected $superStickerDetailsType = LiveChatSuperStickerDetails::class;
59  protected $superStickerDetailsDataType = '';
60  protected $textMessageDetailsType = LiveChatTextMessageDetails::class;
61  protected $textMessageDetailsDataType = '';
62  /**
63   * @var string
64   */
65  public $type;
66  protected $userBannedDetailsType = LiveChatUserBannedMessageDetails::class;
67  protected $userBannedDetailsDataType = '';
68
69  /**
70   * @param string
71   */
72  public function setAuthorChannelId($authorChannelId)
73  {
74    $this->authorChannelId = $authorChannelId;
75  }
76  /**
77   * @return string
78   */
79  public function getAuthorChannelId()
80  {
81    return $this->authorChannelId;
82  }
83  /**
84   * @param string
85   */
86  public function setDisplayMessage($displayMessage)
87  {
88    $this->displayMessage = $displayMessage;
89  }
90  /**
91   * @return string
92   */
93  public function getDisplayMessage()
94  {
95    return $this->displayMessage;
96  }
97  /**
98   * @param LiveChatFanFundingEventDetails
99   */
100  public function setFanFundingEventDetails(LiveChatFanFundingEventDetails $fanFundingEventDetails)
101  {
102    $this->fanFundingEventDetails = $fanFundingEventDetails;
103  }
104  /**
105   * @return LiveChatFanFundingEventDetails
106   */
107  public function getFanFundingEventDetails()
108  {
109    return $this->fanFundingEventDetails;
110  }
111  /**
112   * @param LiveChatGiftMembershipReceivedDetails
113   */
114  public function setGiftMembershipReceivedDetails(LiveChatGiftMembershipReceivedDetails $giftMembershipReceivedDetails)
115  {
116    $this->giftMembershipReceivedDetails = $giftMembershipReceivedDetails;
117  }
118  /**
119   * @return LiveChatGiftMembershipReceivedDetails
120   */
121  public function getGiftMembershipReceivedDetails()
122  {
123    return $this->giftMembershipReceivedDetails;
124  }
125  /**
126   * @param bool
127   */
128  public function setHasDisplayContent($hasDisplayContent)
129  {
130    $this->hasDisplayContent = $hasDisplayContent;
131  }
132  /**
133   * @return bool
134   */
135  public function getHasDisplayContent()
136  {
137    return $this->hasDisplayContent;
138  }
139  /**
140   * @param string
141   */
142  public function setLiveChatId($liveChatId)
143  {
144    $this->liveChatId = $liveChatId;
145  }
146  /**
147   * @return string
148   */
149  public function getLiveChatId()
150  {
151    return $this->liveChatId;
152  }
153  /**
154   * @param LiveChatMemberMilestoneChatDetails
155   */
156  public function setMemberMilestoneChatDetails(LiveChatMemberMilestoneChatDetails $memberMilestoneChatDetails)
157  {
158    $this->memberMilestoneChatDetails = $memberMilestoneChatDetails;
159  }
160  /**
161   * @return LiveChatMemberMilestoneChatDetails
162   */
163  public function getMemberMilestoneChatDetails()
164  {
165    return $this->memberMilestoneChatDetails;
166  }
167  /**
168   * @param LiveChatMembershipGiftingDetails
169   */
170  public function setMembershipGiftingDetails(LiveChatMembershipGiftingDetails $membershipGiftingDetails)
171  {
172    $this->membershipGiftingDetails = $membershipGiftingDetails;
173  }
174  /**
175   * @return LiveChatMembershipGiftingDetails
176   */
177  public function getMembershipGiftingDetails()
178  {
179    return $this->membershipGiftingDetails;
180  }
181  /**
182   * @param LiveChatMessageDeletedDetails
183   */
184  public function setMessageDeletedDetails(LiveChatMessageDeletedDetails $messageDeletedDetails)
185  {
186    $this->messageDeletedDetails = $messageDeletedDetails;
187  }
188  /**
189   * @return LiveChatMessageDeletedDetails
190   */
191  public function getMessageDeletedDetails()
192  {
193    return $this->messageDeletedDetails;
194  }
195  /**
196   * @param LiveChatMessageRetractedDetails
197   */
198  public function setMessageRetractedDetails(LiveChatMessageRetractedDetails $messageRetractedDetails)
199  {
200    $this->messageRetractedDetails = $messageRetractedDetails;
201  }
202  /**
203   * @return LiveChatMessageRetractedDetails
204   */
205  public function getMessageRetractedDetails()
206  {
207    return $this->messageRetractedDetails;
208  }
209  /**
210   * @param LiveChatNewSponsorDetails
211   */
212  public function setNewSponsorDetails(LiveChatNewSponsorDetails $newSponsorDetails)
213  {
214    $this->newSponsorDetails = $newSponsorDetails;
215  }
216  /**
217   * @return LiveChatNewSponsorDetails
218   */
219  public function getNewSponsorDetails()
220  {
221    return $this->newSponsorDetails;
222  }
223  /**
224   * @param string
225   */
226  public function setPublishedAt($publishedAt)
227  {
228    $this->publishedAt = $publishedAt;
229  }
230  /**
231   * @return string
232   */
233  public function getPublishedAt()
234  {
235    return $this->publishedAt;
236  }
237  /**
238   * @param LiveChatSuperChatDetails
239   */
240  public function setSuperChatDetails(LiveChatSuperChatDetails $superChatDetails)
241  {
242    $this->superChatDetails = $superChatDetails;
243  }
244  /**
245   * @return LiveChatSuperChatDetails
246   */
247  public function getSuperChatDetails()
248  {
249    return $this->superChatDetails;
250  }
251  /**
252   * @param LiveChatSuperStickerDetails
253   */
254  public function setSuperStickerDetails(LiveChatSuperStickerDetails $superStickerDetails)
255  {
256    $this->superStickerDetails = $superStickerDetails;
257  }
258  /**
259   * @return LiveChatSuperStickerDetails
260   */
261  public function getSuperStickerDetails()
262  {
263    return $this->superStickerDetails;
264  }
265  /**
266   * @param LiveChatTextMessageDetails
267   */
268  public function setTextMessageDetails(LiveChatTextMessageDetails $textMessageDetails)
269  {
270    $this->textMessageDetails = $textMessageDetails;
271  }
272  /**
273   * @return LiveChatTextMessageDetails
274   */
275  public function getTextMessageDetails()
276  {
277    return $this->textMessageDetails;
278  }
279  /**
280   * @param string
281   */
282  public function setType($type)
283  {
284    $this->type = $type;
285  }
286  /**
287   * @return string
288   */
289  public function getType()
290  {
291    return $this->type;
292  }
293  /**
294   * @param LiveChatUserBannedMessageDetails
295   */
296  public function setUserBannedDetails(LiveChatUserBannedMessageDetails $userBannedDetails)
297  {
298    $this->userBannedDetails = $userBannedDetails;
299  }
300  /**
301   * @return LiveChatUserBannedMessageDetails
302   */
303  public function getUserBannedDetails()
304  {
305    return $this->userBannedDetails;
306  }
307}
308
309// Adding a class alias for backwards compatibility with the previous class name.
310class_alias(LiveChatMessageSnippet::class, 'Google_Service_YouTube_LiveChatMessageSnippet');
311