[f9c482b] | 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\FirebaseCloudMessaging;
|
---|
| 19 |
|
---|
| 20 | class AndroidNotification extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'vibrateTimings';
|
---|
| 23 | /**
|
---|
| 24 | * @var string
|
---|
| 25 | */
|
---|
| 26 | public $body;
|
---|
| 27 | /**
|
---|
| 28 | * @var string[]
|
---|
| 29 | */
|
---|
| 30 | public $bodyLocArgs;
|
---|
| 31 | /**
|
---|
| 32 | * @var string
|
---|
| 33 | */
|
---|
| 34 | public $bodyLocKey;
|
---|
| 35 | /**
|
---|
| 36 | * @var bool
|
---|
| 37 | */
|
---|
| 38 | public $bypassProxyNotification;
|
---|
| 39 | /**
|
---|
| 40 | * @var string
|
---|
| 41 | */
|
---|
| 42 | public $channelId;
|
---|
| 43 | /**
|
---|
| 44 | * @var string
|
---|
| 45 | */
|
---|
| 46 | public $clickAction;
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $color;
|
---|
| 51 | /**
|
---|
| 52 | * @var bool
|
---|
| 53 | */
|
---|
| 54 | public $defaultLightSettings;
|
---|
| 55 | /**
|
---|
| 56 | * @var bool
|
---|
| 57 | */
|
---|
| 58 | public $defaultSound;
|
---|
| 59 | /**
|
---|
| 60 | * @var bool
|
---|
| 61 | */
|
---|
| 62 | public $defaultVibrateTimings;
|
---|
| 63 | /**
|
---|
| 64 | * @var string
|
---|
| 65 | */
|
---|
| 66 | public $eventTime;
|
---|
| 67 | /**
|
---|
| 68 | * @var string
|
---|
| 69 | */
|
---|
| 70 | public $icon;
|
---|
| 71 | /**
|
---|
| 72 | * @var string
|
---|
| 73 | */
|
---|
| 74 | public $image;
|
---|
| 75 | protected $lightSettingsType = LightSettings::class;
|
---|
| 76 | protected $lightSettingsDataType = '';
|
---|
| 77 | /**
|
---|
| 78 | * @var bool
|
---|
| 79 | */
|
---|
| 80 | public $localOnly;
|
---|
| 81 | /**
|
---|
| 82 | * @var int
|
---|
| 83 | */
|
---|
| 84 | public $notificationCount;
|
---|
| 85 | /**
|
---|
| 86 | * @var string
|
---|
| 87 | */
|
---|
| 88 | public $notificationPriority;
|
---|
| 89 | /**
|
---|
| 90 | * @var string
|
---|
| 91 | */
|
---|
| 92 | public $proxy;
|
---|
| 93 | /**
|
---|
| 94 | * @var string
|
---|
| 95 | */
|
---|
| 96 | public $sound;
|
---|
| 97 | /**
|
---|
| 98 | * @var bool
|
---|
| 99 | */
|
---|
| 100 | public $sticky;
|
---|
| 101 | /**
|
---|
| 102 | * @var string
|
---|
| 103 | */
|
---|
| 104 | public $tag;
|
---|
| 105 | /**
|
---|
| 106 | * @var string
|
---|
| 107 | */
|
---|
| 108 | public $ticker;
|
---|
| 109 | /**
|
---|
| 110 | * @var string
|
---|
| 111 | */
|
---|
| 112 | public $title;
|
---|
| 113 | /**
|
---|
| 114 | * @var string[]
|
---|
| 115 | */
|
---|
| 116 | public $titleLocArgs;
|
---|
| 117 | /**
|
---|
| 118 | * @var string
|
---|
| 119 | */
|
---|
| 120 | public $titleLocKey;
|
---|
| 121 | /**
|
---|
| 122 | * @var string[]
|
---|
| 123 | */
|
---|
| 124 | public $vibrateTimings;
|
---|
| 125 | /**
|
---|
| 126 | * @var string
|
---|
| 127 | */
|
---|
| 128 | public $visibility;
|
---|
| 129 |
|
---|
| 130 | /**
|
---|
| 131 | * @param string
|
---|
| 132 | */
|
---|
| 133 | public function setBody($body)
|
---|
| 134 | {
|
---|
| 135 | $this->body = $body;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return string
|
---|
| 139 | */
|
---|
| 140 | public function getBody()
|
---|
| 141 | {
|
---|
| 142 | return $this->body;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param string[]
|
---|
| 146 | */
|
---|
| 147 | public function setBodyLocArgs($bodyLocArgs)
|
---|
| 148 | {
|
---|
| 149 | $this->bodyLocArgs = $bodyLocArgs;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return string[]
|
---|
| 153 | */
|
---|
| 154 | public function getBodyLocArgs()
|
---|
| 155 | {
|
---|
| 156 | return $this->bodyLocArgs;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param string
|
---|
| 160 | */
|
---|
| 161 | public function setBodyLocKey($bodyLocKey)
|
---|
| 162 | {
|
---|
| 163 | $this->bodyLocKey = $bodyLocKey;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return string
|
---|
| 167 | */
|
---|
| 168 | public function getBodyLocKey()
|
---|
| 169 | {
|
---|
| 170 | return $this->bodyLocKey;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param bool
|
---|
| 174 | */
|
---|
| 175 | public function setBypassProxyNotification($bypassProxyNotification)
|
---|
| 176 | {
|
---|
| 177 | $this->bypassProxyNotification = $bypassProxyNotification;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return bool
|
---|
| 181 | */
|
---|
| 182 | public function getBypassProxyNotification()
|
---|
| 183 | {
|
---|
| 184 | return $this->bypassProxyNotification;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param string
|
---|
| 188 | */
|
---|
| 189 | public function setChannelId($channelId)
|
---|
| 190 | {
|
---|
| 191 | $this->channelId = $channelId;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return string
|
---|
| 195 | */
|
---|
| 196 | public function getChannelId()
|
---|
| 197 | {
|
---|
| 198 | return $this->channelId;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param string
|
---|
| 202 | */
|
---|
| 203 | public function setClickAction($clickAction)
|
---|
| 204 | {
|
---|
| 205 | $this->clickAction = $clickAction;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return string
|
---|
| 209 | */
|
---|
| 210 | public function getClickAction()
|
---|
| 211 | {
|
---|
| 212 | return $this->clickAction;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param string
|
---|
| 216 | */
|
---|
| 217 | public function setColor($color)
|
---|
| 218 | {
|
---|
| 219 | $this->color = $color;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return string
|
---|
| 223 | */
|
---|
| 224 | public function getColor()
|
---|
| 225 | {
|
---|
| 226 | return $this->color;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param bool
|
---|
| 230 | */
|
---|
| 231 | public function setDefaultLightSettings($defaultLightSettings)
|
---|
| 232 | {
|
---|
| 233 | $this->defaultLightSettings = $defaultLightSettings;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return bool
|
---|
| 237 | */
|
---|
| 238 | public function getDefaultLightSettings()
|
---|
| 239 | {
|
---|
| 240 | return $this->defaultLightSettings;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param bool
|
---|
| 244 | */
|
---|
| 245 | public function setDefaultSound($defaultSound)
|
---|
| 246 | {
|
---|
| 247 | $this->defaultSound = $defaultSound;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return bool
|
---|
| 251 | */
|
---|
| 252 | public function getDefaultSound()
|
---|
| 253 | {
|
---|
| 254 | return $this->defaultSound;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param bool
|
---|
| 258 | */
|
---|
| 259 | public function setDefaultVibrateTimings($defaultVibrateTimings)
|
---|
| 260 | {
|
---|
| 261 | $this->defaultVibrateTimings = $defaultVibrateTimings;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return bool
|
---|
| 265 | */
|
---|
| 266 | public function getDefaultVibrateTimings()
|
---|
| 267 | {
|
---|
| 268 | return $this->defaultVibrateTimings;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param string
|
---|
| 272 | */
|
---|
| 273 | public function setEventTime($eventTime)
|
---|
| 274 | {
|
---|
| 275 | $this->eventTime = $eventTime;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return string
|
---|
| 279 | */
|
---|
| 280 | public function getEventTime()
|
---|
| 281 | {
|
---|
| 282 | return $this->eventTime;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @param string
|
---|
| 286 | */
|
---|
| 287 | public function setIcon($icon)
|
---|
| 288 | {
|
---|
| 289 | $this->icon = $icon;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @return string
|
---|
| 293 | */
|
---|
| 294 | public function getIcon()
|
---|
| 295 | {
|
---|
| 296 | return $this->icon;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @param string
|
---|
| 300 | */
|
---|
| 301 | public function setImage($image)
|
---|
| 302 | {
|
---|
| 303 | $this->image = $image;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @return string
|
---|
| 307 | */
|
---|
| 308 | public function getImage()
|
---|
| 309 | {
|
---|
| 310 | return $this->image;
|
---|
| 311 | }
|
---|
| 312 | /**
|
---|
| 313 | * @param LightSettings
|
---|
| 314 | */
|
---|
| 315 | public function setLightSettings(LightSettings $lightSettings)
|
---|
| 316 | {
|
---|
| 317 | $this->lightSettings = $lightSettings;
|
---|
| 318 | }
|
---|
| 319 | /**
|
---|
| 320 | * @return LightSettings
|
---|
| 321 | */
|
---|
| 322 | public function getLightSettings()
|
---|
| 323 | {
|
---|
| 324 | return $this->lightSettings;
|
---|
| 325 | }
|
---|
| 326 | /**
|
---|
| 327 | * @param bool
|
---|
| 328 | */
|
---|
| 329 | public function setLocalOnly($localOnly)
|
---|
| 330 | {
|
---|
| 331 | $this->localOnly = $localOnly;
|
---|
| 332 | }
|
---|
| 333 | /**
|
---|
| 334 | * @return bool
|
---|
| 335 | */
|
---|
| 336 | public function getLocalOnly()
|
---|
| 337 | {
|
---|
| 338 | return $this->localOnly;
|
---|
| 339 | }
|
---|
| 340 | /**
|
---|
| 341 | * @param int
|
---|
| 342 | */
|
---|
| 343 | public function setNotificationCount($notificationCount)
|
---|
| 344 | {
|
---|
| 345 | $this->notificationCount = $notificationCount;
|
---|
| 346 | }
|
---|
| 347 | /**
|
---|
| 348 | * @return int
|
---|
| 349 | */
|
---|
| 350 | public function getNotificationCount()
|
---|
| 351 | {
|
---|
| 352 | return $this->notificationCount;
|
---|
| 353 | }
|
---|
| 354 | /**
|
---|
| 355 | * @param string
|
---|
| 356 | */
|
---|
| 357 | public function setNotificationPriority($notificationPriority)
|
---|
| 358 | {
|
---|
| 359 | $this->notificationPriority = $notificationPriority;
|
---|
| 360 | }
|
---|
| 361 | /**
|
---|
| 362 | * @return string
|
---|
| 363 | */
|
---|
| 364 | public function getNotificationPriority()
|
---|
| 365 | {
|
---|
| 366 | return $this->notificationPriority;
|
---|
| 367 | }
|
---|
| 368 | /**
|
---|
| 369 | * @param string
|
---|
| 370 | */
|
---|
| 371 | public function setProxy($proxy)
|
---|
| 372 | {
|
---|
| 373 | $this->proxy = $proxy;
|
---|
| 374 | }
|
---|
| 375 | /**
|
---|
| 376 | * @return string
|
---|
| 377 | */
|
---|
| 378 | public function getProxy()
|
---|
| 379 | {
|
---|
| 380 | return $this->proxy;
|
---|
| 381 | }
|
---|
| 382 | /**
|
---|
| 383 | * @param string
|
---|
| 384 | */
|
---|
| 385 | public function setSound($sound)
|
---|
| 386 | {
|
---|
| 387 | $this->sound = $sound;
|
---|
| 388 | }
|
---|
| 389 | /**
|
---|
| 390 | * @return string
|
---|
| 391 | */
|
---|
| 392 | public function getSound()
|
---|
| 393 | {
|
---|
| 394 | return $this->sound;
|
---|
| 395 | }
|
---|
| 396 | /**
|
---|
| 397 | * @param bool
|
---|
| 398 | */
|
---|
| 399 | public function setSticky($sticky)
|
---|
| 400 | {
|
---|
| 401 | $this->sticky = $sticky;
|
---|
| 402 | }
|
---|
| 403 | /**
|
---|
| 404 | * @return bool
|
---|
| 405 | */
|
---|
| 406 | public function getSticky()
|
---|
| 407 | {
|
---|
| 408 | return $this->sticky;
|
---|
| 409 | }
|
---|
| 410 | /**
|
---|
| 411 | * @param string
|
---|
| 412 | */
|
---|
| 413 | public function setTag($tag)
|
---|
| 414 | {
|
---|
| 415 | $this->tag = $tag;
|
---|
| 416 | }
|
---|
| 417 | /**
|
---|
| 418 | * @return string
|
---|
| 419 | */
|
---|
| 420 | public function getTag()
|
---|
| 421 | {
|
---|
| 422 | return $this->tag;
|
---|
| 423 | }
|
---|
| 424 | /**
|
---|
| 425 | * @param string
|
---|
| 426 | */
|
---|
| 427 | public function setTicker($ticker)
|
---|
| 428 | {
|
---|
| 429 | $this->ticker = $ticker;
|
---|
| 430 | }
|
---|
| 431 | /**
|
---|
| 432 | * @return string
|
---|
| 433 | */
|
---|
| 434 | public function getTicker()
|
---|
| 435 | {
|
---|
| 436 | return $this->ticker;
|
---|
| 437 | }
|
---|
| 438 | /**
|
---|
| 439 | * @param string
|
---|
| 440 | */
|
---|
| 441 | public function setTitle($title)
|
---|
| 442 | {
|
---|
| 443 | $this->title = $title;
|
---|
| 444 | }
|
---|
| 445 | /**
|
---|
| 446 | * @return string
|
---|
| 447 | */
|
---|
| 448 | public function getTitle()
|
---|
| 449 | {
|
---|
| 450 | return $this->title;
|
---|
| 451 | }
|
---|
| 452 | /**
|
---|
| 453 | * @param string[]
|
---|
| 454 | */
|
---|
| 455 | public function setTitleLocArgs($titleLocArgs)
|
---|
| 456 | {
|
---|
| 457 | $this->titleLocArgs = $titleLocArgs;
|
---|
| 458 | }
|
---|
| 459 | /**
|
---|
| 460 | * @return string[]
|
---|
| 461 | */
|
---|
| 462 | public function getTitleLocArgs()
|
---|
| 463 | {
|
---|
| 464 | return $this->titleLocArgs;
|
---|
| 465 | }
|
---|
| 466 | /**
|
---|
| 467 | * @param string
|
---|
| 468 | */
|
---|
| 469 | public function setTitleLocKey($titleLocKey)
|
---|
| 470 | {
|
---|
| 471 | $this->titleLocKey = $titleLocKey;
|
---|
| 472 | }
|
---|
| 473 | /**
|
---|
| 474 | * @return string
|
---|
| 475 | */
|
---|
| 476 | public function getTitleLocKey()
|
---|
| 477 | {
|
---|
| 478 | return $this->titleLocKey;
|
---|
| 479 | }
|
---|
| 480 | /**
|
---|
| 481 | * @param string[]
|
---|
| 482 | */
|
---|
| 483 | public function setVibrateTimings($vibrateTimings)
|
---|
| 484 | {
|
---|
| 485 | $this->vibrateTimings = $vibrateTimings;
|
---|
| 486 | }
|
---|
| 487 | /**
|
---|
| 488 | * @return string[]
|
---|
| 489 | */
|
---|
| 490 | public function getVibrateTimings()
|
---|
| 491 | {
|
---|
| 492 | return $this->vibrateTimings;
|
---|
| 493 | }
|
---|
| 494 | /**
|
---|
| 495 | * @param string
|
---|
| 496 | */
|
---|
| 497 | public function setVisibility($visibility)
|
---|
| 498 | {
|
---|
| 499 | $this->visibility = $visibility;
|
---|
| 500 | }
|
---|
| 501 | /**
|
---|
| 502 | * @return string
|
---|
| 503 | */
|
---|
| 504 | public function getVisibility()
|
---|
| 505 | {
|
---|
| 506 | return $this->visibility;
|
---|
| 507 | }
|
---|
| 508 | }
|
---|
| 509 |
|
---|
| 510 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 511 | class_alias(AndroidNotification::class, 'Google_Service_FirebaseCloudMessaging_AndroidNotification');
|
---|