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\Books;
19
20class Notification extends \Google\Collection
21{
22  protected $collection_key = 'crmExperimentIds';
23  protected $internal_gapi_mappings = [
24        "docId" => "doc_id",
25        "docType" => "doc_type",
26        "dontShowNotification" => "dont_show_notification",
27        "isDocumentMature" => "is_document_mature",
28        "notificationType" => "notification_type",
29        "pcampaignId" => "pcampaign_id",
30        "showNotificationSettingsAction" => "show_notification_settings_action",
31  ];
32  /**
33   * @var string
34   */
35  public $body;
36  /**
37   * @var string[]
38   */
39  public $crmExperimentIds;
40  /**
41   * @var string
42   */
43  public $docId;
44  /**
45   * @var string
46   */
47  public $docType;
48  /**
49   * @var bool
50   */
51  public $dontShowNotification;
52  /**
53   * @var string
54   */
55  public $iconUrl;
56  /**
57   * @var bool
58   */
59  public $isDocumentMature;
60  /**
61   * @var string
62   */
63  public $kind;
64  /**
65   * @var string
66   */
67  public $notificationGroup;
68  /**
69   * @var string
70   */
71  public $notificationType;
72  /**
73   * @var string
74   */
75  public $pcampaignId;
76  /**
77   * @var string
78   */
79  public $reason;
80  /**
81   * @var bool
82   */
83  public $showNotificationSettingsAction;
84  /**
85   * @var string
86   */
87  public $targetUrl;
88  /**
89   * @var string
90   */
91  public $timeToExpireMs;
92  /**
93   * @var string
94   */
95  public $title;
96
97  /**
98   * @param string
99   */
100  public function setBody($body)
101  {
102    $this->body = $body;
103  }
104  /**
105   * @return string
106   */
107  public function getBody()
108  {
109    return $this->body;
110  }
111  /**
112   * @param string[]
113   */
114  public function setCrmExperimentIds($crmExperimentIds)
115  {
116    $this->crmExperimentIds = $crmExperimentIds;
117  }
118  /**
119   * @return string[]
120   */
121  public function getCrmExperimentIds()
122  {
123    return $this->crmExperimentIds;
124  }
125  /**
126   * @param string
127   */
128  public function setDocId($docId)
129  {
130    $this->docId = $docId;
131  }
132  /**
133   * @return string
134   */
135  public function getDocId()
136  {
137    return $this->docId;
138  }
139  /**
140   * @param string
141   */
142  public function setDocType($docType)
143  {
144    $this->docType = $docType;
145  }
146  /**
147   * @return string
148   */
149  public function getDocType()
150  {
151    return $this->docType;
152  }
153  /**
154   * @param bool
155   */
156  public function setDontShowNotification($dontShowNotification)
157  {
158    $this->dontShowNotification = $dontShowNotification;
159  }
160  /**
161   * @return bool
162   */
163  public function getDontShowNotification()
164  {
165    return $this->dontShowNotification;
166  }
167  /**
168   * @param string
169   */
170  public function setIconUrl($iconUrl)
171  {
172    $this->iconUrl = $iconUrl;
173  }
174  /**
175   * @return string
176   */
177  public function getIconUrl()
178  {
179    return $this->iconUrl;
180  }
181  /**
182   * @param bool
183   */
184  public function setIsDocumentMature($isDocumentMature)
185  {
186    $this->isDocumentMature = $isDocumentMature;
187  }
188  /**
189   * @return bool
190   */
191  public function getIsDocumentMature()
192  {
193    return $this->isDocumentMature;
194  }
195  /**
196   * @param string
197   */
198  public function setKind($kind)
199  {
200    $this->kind = $kind;
201  }
202  /**
203   * @return string
204   */
205  public function getKind()
206  {
207    return $this->kind;
208  }
209  /**
210   * @param string
211   */
212  public function setNotificationGroup($notificationGroup)
213  {
214    $this->notificationGroup = $notificationGroup;
215  }
216  /**
217   * @return string
218   */
219  public function getNotificationGroup()
220  {
221    return $this->notificationGroup;
222  }
223  /**
224   * @param string
225   */
226  public function setNotificationType($notificationType)
227  {
228    $this->notificationType = $notificationType;
229  }
230  /**
231   * @return string
232   */
233  public function getNotificationType()
234  {
235    return $this->notificationType;
236  }
237  /**
238   * @param string
239   */
240  public function setPcampaignId($pcampaignId)
241  {
242    $this->pcampaignId = $pcampaignId;
243  }
244  /**
245   * @return string
246   */
247  public function getPcampaignId()
248  {
249    return $this->pcampaignId;
250  }
251  /**
252   * @param string
253   */
254  public function setReason($reason)
255  {
256    $this->reason = $reason;
257  }
258  /**
259   * @return string
260   */
261  public function getReason()
262  {
263    return $this->reason;
264  }
265  /**
266   * @param bool
267   */
268  public function setShowNotificationSettingsAction($showNotificationSettingsAction)
269  {
270    $this->showNotificationSettingsAction = $showNotificationSettingsAction;
271  }
272  /**
273   * @return bool
274   */
275  public function getShowNotificationSettingsAction()
276  {
277    return $this->showNotificationSettingsAction;
278  }
279  /**
280   * @param string
281   */
282  public function setTargetUrl($targetUrl)
283  {
284    $this->targetUrl = $targetUrl;
285  }
286  /**
287   * @return string
288   */
289  public function getTargetUrl()
290  {
291    return $this->targetUrl;
292  }
293  /**
294   * @param string
295   */
296  public function setTimeToExpireMs($timeToExpireMs)
297  {
298    $this->timeToExpireMs = $timeToExpireMs;
299  }
300  /**
301   * @return string
302   */
303  public function getTimeToExpireMs()
304  {
305    return $this->timeToExpireMs;
306  }
307  /**
308   * @param string
309   */
310  public function setTitle($title)
311  {
312    $this->title = $title;
313  }
314  /**
315   * @return string
316   */
317  public function getTitle()
318  {
319    return $this->title;
320  }
321}
322
323// Adding a class alias for backwards compatibility with the previous class name.
324class_alias(Notification::class, 'Google_Service_Books_Notification');
325