Application.php
1 year ago
ApplicationCollection.php
1 year ago
BaseObject.php
1 year ago
Campaign.php
1 year ago
CampaignCapping.php
1 year ago
CampaignCollection.php
1 year ago
CampaignSchedule.php
1 year ago
CampaignSchedulePressure.php
1 year ago
CampaignScheduleUrlCriterion.php
1 year ago
CampaignStats.php
1 year ago
CampaignSuccessResponse.php
1 year ago
CampaignUrlFilters.php
1 year ago
Collection.php
1 year ago
DeliveriesCreateResponse.php
1 year ago
Event.php
1 year ago
FrequentFieldValues.php
1 year ago
GeoLocation.php
1 year ago
Installation.php
1 year ago
InstallationApplication.php
1 year ago
InstallationApplicationApple.php
1 year ago
InstallationCollection.php
1 year ago
InstallationDevice.php
1 year ago
InstallationDeviceCapabilities.php
1 year ago
InstallationDeviceConfiguration.php
1 year ago
InstallationPreferences.php
1 year ago
InstallationPushToken.php
1 year ago
Notification.php
1 year ago
NotificationAlert.php
1 year ago
NotificationAlertAndroid.php
1 year ago
NotificationAlertAndroidButton.php
1 year ago
NotificationAlertIos.php
1 year ago
NotificationAlertIosAttachment.php
1 year ago
NotificationAlertIosForeground.php
1 year ago
NotificationAlertWeb.php
1 year ago
NotificationAlertWebButton.php
1 year ago
NotificationButton.php
1 year ago
NotificationButtonAction.php
1 year ago
NotificationButtonActionEvent.php
1 year ago
NotificationInApp.php
1 year ago
NotificationInAppButton.php
1 year ago
NotificationInAppMap.php
1 year ago
NotificationInAppMapPlace.php
1 year ago
NotificationPush.php
1 year ago
NotificationPushAndroid.php
1 year ago
NotificationPushIos.php
1 year ago
NotificationPushWeb.php
1 year ago
NullObject.php
1 year ago
Pagination.php
1 year ago
Segment.php
1 year ago
SegmentCollection.php
1 year ago
SuccessResponse.php
1 year ago
User.php
1 year ago
WebSdkInitOptions.php
1 year ago
InstallationDeviceCapabilities.php
556 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WonderPush\Obj; |
| 4 | |
| 5 | if (count(get_included_files()) === 1) { http_response_code(403); exit(); } // Prevent direct access |
| 6 | |
| 7 | /** |
| 8 | * DTO part for `installation.device.capabilities`. |
| 9 | * @see InstallationDevice |
| 10 | * @codeCoverageIgnore |
| 11 | */ |
| 12 | class InstallationDeviceCapabilities extends BaseObject { |
| 13 | |
| 14 | /** @var boolean */ |
| 15 | private $bluetooth; |
| 16 | /** @var boolean */ |
| 17 | private $bluetoothLe; |
| 18 | /** @var boolean */ |
| 19 | private $nfc; |
| 20 | /** @var boolean */ |
| 21 | private $ir; |
| 22 | /** @var boolean */ |
| 23 | private $telephony; |
| 24 | /** @var boolean */ |
| 25 | private $telephonyGsm; |
| 26 | /** @var boolean */ |
| 27 | private $telephonyCdma; |
| 28 | /** @var boolean */ |
| 29 | private $wifi; |
| 30 | /** @var boolean */ |
| 31 | private $wifiDirect; |
| 32 | /** @var boolean */ |
| 33 | private $gps; |
| 34 | /** @var boolean */ |
| 35 | private $networkLocation; |
| 36 | /** @var boolean */ |
| 37 | private $camera; |
| 38 | /** @var boolean */ |
| 39 | private $frontCamera; |
| 40 | /** @var boolean */ |
| 41 | private $microphone; |
| 42 | /** @var boolean */ |
| 43 | private $sensorAccelerometer; |
| 44 | /** @var boolean */ |
| 45 | private $sensorBarometer; |
| 46 | /** @var boolean */ |
| 47 | private $sensorCompass; |
| 48 | /** @var boolean */ |
| 49 | private $sensorGyroscope; |
| 50 | /** @var boolean */ |
| 51 | private $sensorLight; |
| 52 | /** @var boolean */ |
| 53 | private $sensorProximity; |
| 54 | /** @var boolean */ |
| 55 | private $sensorStepCounter; |
| 56 | /** @var boolean */ |
| 57 | private $sensorStepDetector; |
| 58 | /** @var boolean */ |
| 59 | private $sip; |
| 60 | /** @var boolean */ |
| 61 | private $sipVoip; |
| 62 | /** @var boolean */ |
| 63 | private $touchscreen; |
| 64 | /** @var boolean */ |
| 65 | private $touchscreenTwoFingers; |
| 66 | /** @var boolean */ |
| 67 | private $touchscreenDistinct; |
| 68 | /** @var boolean */ |
| 69 | private $touchscreenFullHand; |
| 70 | /** @var boolean */ |
| 71 | private $usbAccessory; |
| 72 | /** @var boolean */ |
| 73 | private $usbHost; |
| 74 | |
| 75 | /** |
| 76 | * @return boolean |
| 77 | */ |
| 78 | public function getBluetooth() { |
| 79 | return $this->bluetooth; |
| 80 | } |
| 81 | |
| 82 | /** |
| 83 | * @param boolean $bluetooth |
| 84 | * @return InstallationDeviceCapabilities |
| 85 | */ |
| 86 | public function setBluetooth($bluetooth) { |
| 87 | $this->bluetooth = $bluetooth; |
| 88 | return $this; |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * @return boolean |
| 93 | */ |
| 94 | public function getBluetoothLe() { |
| 95 | return $this->bluetoothLe; |
| 96 | } |
| 97 | |
| 98 | /** |
| 99 | * @param boolean $bluetoothLe |
| 100 | * @return InstallationDeviceCapabilities |
| 101 | */ |
| 102 | public function setBluetoothLe($bluetoothLe) { |
| 103 | $this->bluetoothLe = $bluetoothLe; |
| 104 | return $this; |
| 105 | } |
| 106 | |
| 107 | /** |
| 108 | * @return boolean |
| 109 | */ |
| 110 | public function getNfc() { |
| 111 | return $this->nfc; |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * @param boolean $nfc |
| 116 | * @return InstallationDeviceCapabilities |
| 117 | */ |
| 118 | public function setNfc($nfc) { |
| 119 | $this->nfc = $nfc; |
| 120 | return $this; |
| 121 | } |
| 122 | |
| 123 | /** |
| 124 | * @return boolean |
| 125 | */ |
| 126 | public function getIr() { |
| 127 | return $this->ir; |
| 128 | } |
| 129 | |
| 130 | /** |
| 131 | * @param boolean $ir |
| 132 | * @return InstallationDeviceCapabilities |
| 133 | */ |
| 134 | public function setIr($ir) { |
| 135 | $this->ir = $ir; |
| 136 | return $this; |
| 137 | } |
| 138 | |
| 139 | /** |
| 140 | * @return boolean |
| 141 | */ |
| 142 | public function getTelephony() { |
| 143 | return $this->telephony; |
| 144 | } |
| 145 | |
| 146 | /** |
| 147 | * @param boolean $telephony |
| 148 | * @return InstallationDeviceCapabilities |
| 149 | */ |
| 150 | public function setTelephony($telephony) { |
| 151 | $this->telephony = $telephony; |
| 152 | return $this; |
| 153 | } |
| 154 | |
| 155 | /** |
| 156 | * @return boolean |
| 157 | */ |
| 158 | public function getTelephonyGsm() { |
| 159 | return $this->telephonyGsm; |
| 160 | } |
| 161 | |
| 162 | /** |
| 163 | * @param boolean $telephonyGsm |
| 164 | * @return InstallationDeviceCapabilities |
| 165 | */ |
| 166 | public function setTelephonyGsm($telephonyGsm) { |
| 167 | $this->telephonyGsm = $telephonyGsm; |
| 168 | return $this; |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * @return boolean |
| 173 | */ |
| 174 | public function getTelephonyCdma() { |
| 175 | return $this->telephonyCdma; |
| 176 | } |
| 177 | |
| 178 | /** |
| 179 | * @param boolean $telephonyCdma |
| 180 | * @return InstallationDeviceCapabilities |
| 181 | */ |
| 182 | public function setTelephonyCdma($telephonyCdma) { |
| 183 | $this->telephonyCdma = $telephonyCdma; |
| 184 | return $this; |
| 185 | } |
| 186 | |
| 187 | /** |
| 188 | * @return boolean |
| 189 | */ |
| 190 | public function getWifi() { |
| 191 | return $this->wifi; |
| 192 | } |
| 193 | |
| 194 | /** |
| 195 | * @param boolean $wifi |
| 196 | * @return InstallationDeviceCapabilities |
| 197 | */ |
| 198 | public function setWifi($wifi) { |
| 199 | $this->wifi = $wifi; |
| 200 | return $this; |
| 201 | } |
| 202 | |
| 203 | /** |
| 204 | * @return boolean |
| 205 | */ |
| 206 | public function getWifiDirect() { |
| 207 | return $this->wifiDirect; |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * @param boolean $wifiDirect |
| 212 | * @return InstallationDeviceCapabilities |
| 213 | */ |
| 214 | public function setWifiDirect($wifiDirect) { |
| 215 | $this->wifiDirect = $wifiDirect; |
| 216 | return $this; |
| 217 | } |
| 218 | |
| 219 | /** |
| 220 | * @return boolean |
| 221 | */ |
| 222 | public function getGps() { |
| 223 | return $this->gps; |
| 224 | } |
| 225 | |
| 226 | /** |
| 227 | * @param boolean $gps |
| 228 | * @return InstallationDeviceCapabilities |
| 229 | */ |
| 230 | public function setGps($gps) { |
| 231 | $this->gps = $gps; |
| 232 | return $this; |
| 233 | } |
| 234 | |
| 235 | /** |
| 236 | * @return boolean |
| 237 | */ |
| 238 | public function getNetworkLocation() { |
| 239 | return $this->networkLocation; |
| 240 | } |
| 241 | |
| 242 | /** |
| 243 | * @param boolean $networkLocation |
| 244 | * @return InstallationDeviceCapabilities |
| 245 | */ |
| 246 | public function setNetworkLocation($networkLocation) { |
| 247 | $this->networkLocation = $networkLocation; |
| 248 | return $this; |
| 249 | } |
| 250 | |
| 251 | /** |
| 252 | * @return boolean |
| 253 | */ |
| 254 | public function getCamera() { |
| 255 | return $this->camera; |
| 256 | } |
| 257 | |
| 258 | /** |
| 259 | * @param boolean $camera |
| 260 | * @return InstallationDeviceCapabilities |
| 261 | */ |
| 262 | public function setCamera($camera) { |
| 263 | $this->camera = $camera; |
| 264 | return $this; |
| 265 | } |
| 266 | |
| 267 | /** |
| 268 | * @return boolean |
| 269 | */ |
| 270 | public function getFrontCamera() { |
| 271 | return $this->frontCamera; |
| 272 | } |
| 273 | |
| 274 | /** |
| 275 | * @param boolean $frontCamera |
| 276 | * @return InstallationDeviceCapabilities |
| 277 | */ |
| 278 | public function setFrontCamera($frontCamera) { |
| 279 | $this->frontCamera = $frontCamera; |
| 280 | return $this; |
| 281 | } |
| 282 | |
| 283 | /** |
| 284 | * @return boolean |
| 285 | */ |
| 286 | public function getMicrophone() { |
| 287 | return $this->microphone; |
| 288 | } |
| 289 | |
| 290 | /** |
| 291 | * @param boolean $microphone |
| 292 | * @return InstallationDeviceCapabilities |
| 293 | */ |
| 294 | public function setMicrophone($microphone) { |
| 295 | $this->microphone = $microphone; |
| 296 | return $this; |
| 297 | } |
| 298 | |
| 299 | /** |
| 300 | * @return boolean |
| 301 | */ |
| 302 | public function getSensorAccelerometer() { |
| 303 | return $this->sensorAccelerometer; |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * @param boolean $sensorAccelerometer |
| 308 | * @return InstallationDeviceCapabilities |
| 309 | */ |
| 310 | public function setSensorAccelerometer($sensorAccelerometer) { |
| 311 | $this->sensorAccelerometer = $sensorAccelerometer; |
| 312 | return $this; |
| 313 | } |
| 314 | |
| 315 | /** |
| 316 | * @return boolean |
| 317 | */ |
| 318 | public function getSensorBarometer() { |
| 319 | return $this->sensorBarometer; |
| 320 | } |
| 321 | |
| 322 | /** |
| 323 | * @param boolean $sensorBarometer |
| 324 | * @return InstallationDeviceCapabilities |
| 325 | */ |
| 326 | public function setSensorBarometer($sensorBarometer) { |
| 327 | $this->sensorBarometer = $sensorBarometer; |
| 328 | return $this; |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * @return boolean |
| 333 | */ |
| 334 | public function getSensorCompass() { |
| 335 | return $this->sensorCompass; |
| 336 | } |
| 337 | |
| 338 | /** |
| 339 | * @param boolean $sensorCompass |
| 340 | * @return InstallationDeviceCapabilities |
| 341 | */ |
| 342 | public function setSensorCompass($sensorCompass) { |
| 343 | $this->sensorCompass = $sensorCompass; |
| 344 | return $this; |
| 345 | } |
| 346 | |
| 347 | /** |
| 348 | * @return boolean |
| 349 | */ |
| 350 | public function getSensorGyroscope() { |
| 351 | return $this->sensorGyroscope; |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | * @param boolean $sensorGyroscope |
| 356 | * @return InstallationDeviceCapabilities |
| 357 | */ |
| 358 | public function setSensorGyroscope($sensorGyroscope) { |
| 359 | $this->sensorGyroscope = $sensorGyroscope; |
| 360 | return $this; |
| 361 | } |
| 362 | |
| 363 | /** |
| 364 | * @return boolean |
| 365 | */ |
| 366 | public function getSensorLight() { |
| 367 | return $this->sensorLight; |
| 368 | } |
| 369 | |
| 370 | /** |
| 371 | * @param boolean $sensorLight |
| 372 | * @return InstallationDeviceCapabilities |
| 373 | */ |
| 374 | public function setSensorLight($sensorLight) { |
| 375 | $this->sensorLight = $sensorLight; |
| 376 | return $this; |
| 377 | } |
| 378 | |
| 379 | /** |
| 380 | * @return boolean |
| 381 | */ |
| 382 | public function getSensorProximity() { |
| 383 | return $this->sensorProximity; |
| 384 | } |
| 385 | |
| 386 | /** |
| 387 | * @param boolean $sensorProximity |
| 388 | * @return InstallationDeviceCapabilities |
| 389 | */ |
| 390 | public function setSensorProximity($sensorProximity) { |
| 391 | $this->sensorProximity = $sensorProximity; |
| 392 | return $this; |
| 393 | } |
| 394 | |
| 395 | /** |
| 396 | * @return boolean |
| 397 | */ |
| 398 | public function getSensorStepCounter() { |
| 399 | return $this->sensorStepCounter; |
| 400 | } |
| 401 | |
| 402 | /** |
| 403 | * @param boolean $sensorStepCounter |
| 404 | * @return InstallationDeviceCapabilities |
| 405 | */ |
| 406 | public function setSensorStepCounter($sensorStepCounter) { |
| 407 | $this->sensorStepCounter = $sensorStepCounter; |
| 408 | return $this; |
| 409 | } |
| 410 | |
| 411 | /** |
| 412 | * @return boolean |
| 413 | */ |
| 414 | public function getSensorStepDetector() { |
| 415 | return $this->sensorStepDetector; |
| 416 | } |
| 417 | |
| 418 | /** |
| 419 | * @param boolean $sensorStepDetector |
| 420 | * @return InstallationDeviceCapabilities |
| 421 | */ |
| 422 | public function setSensorStepDetector($sensorStepDetector) { |
| 423 | $this->sensorStepDetector = $sensorStepDetector; |
| 424 | return $this; |
| 425 | } |
| 426 | |
| 427 | /** |
| 428 | * @return boolean |
| 429 | */ |
| 430 | public function getSip() { |
| 431 | return $this->sip; |
| 432 | } |
| 433 | |
| 434 | /** |
| 435 | * @param boolean $sip |
| 436 | * @return InstallationDeviceCapabilities |
| 437 | */ |
| 438 | public function setSip($sip) { |
| 439 | $this->sip = $sip; |
| 440 | return $this; |
| 441 | } |
| 442 | |
| 443 | /** |
| 444 | * @return boolean |
| 445 | */ |
| 446 | public function getSipVoip() { |
| 447 | return $this->sipVoip; |
| 448 | } |
| 449 | |
| 450 | /** |
| 451 | * @param boolean $sipVoip |
| 452 | * @return InstallationDeviceCapabilities |
| 453 | */ |
| 454 | public function setSipVoip($sipVoip) { |
| 455 | $this->sipVoip = $sipVoip; |
| 456 | return $this; |
| 457 | } |
| 458 | |
| 459 | /** |
| 460 | * @return boolean |
| 461 | */ |
| 462 | public function getTouchscreen() { |
| 463 | return $this->touchscreen; |
| 464 | } |
| 465 | |
| 466 | /** |
| 467 | * @param boolean $touchscreen |
| 468 | * @return InstallationDeviceCapabilities |
| 469 | */ |
| 470 | public function setTouchscreen($touchscreen) { |
| 471 | $this->touchscreen = $touchscreen; |
| 472 | return $this; |
| 473 | } |
| 474 | |
| 475 | /** |
| 476 | * @return boolean |
| 477 | */ |
| 478 | public function getTouchscreenTwoFingers() { |
| 479 | return $this->touchscreenTwoFingers; |
| 480 | } |
| 481 | |
| 482 | /** |
| 483 | * @param boolean $touchscreenTwoFingers |
| 484 | * @return InstallationDeviceCapabilities |
| 485 | */ |
| 486 | public function setTouchscreenTwoFingers($touchscreenTwoFingers) { |
| 487 | $this->touchscreenTwoFingers = $touchscreenTwoFingers; |
| 488 | return $this; |
| 489 | } |
| 490 | |
| 491 | /** |
| 492 | * @return boolean |
| 493 | */ |
| 494 | public function getTouchscreenDistinct() { |
| 495 | return $this->touchscreenDistinct; |
| 496 | } |
| 497 | |
| 498 | /** |
| 499 | * @param boolean $touchscreenDistinct |
| 500 | * @return InstallationDeviceCapabilities |
| 501 | */ |
| 502 | public function setTouchscreenDistinct($touchscreenDistinct) { |
| 503 | $this->touchscreenDistinct = $touchscreenDistinct; |
| 504 | return $this; |
| 505 | } |
| 506 | |
| 507 | /** |
| 508 | * @return boolean |
| 509 | */ |
| 510 | public function getTouchscreenFullHand() { |
| 511 | return $this->touchscreenFullHand; |
| 512 | } |
| 513 | |
| 514 | /** |
| 515 | * @param boolean $touchscreenFullHand |
| 516 | * @return InstallationDeviceCapabilities |
| 517 | */ |
| 518 | public function setTouchscreenFullHand($touchscreenFullHand) { |
| 519 | $this->touchscreenFullHand = $touchscreenFullHand; |
| 520 | return $this; |
| 521 | } |
| 522 | |
| 523 | /** |
| 524 | * @return boolean |
| 525 | */ |
| 526 | public function getUsbAccessory() { |
| 527 | return $this->usbAccessory; |
| 528 | } |
| 529 | |
| 530 | /** |
| 531 | * @param boolean $usbAccessory |
| 532 | * @return InstallationDeviceCapabilities |
| 533 | */ |
| 534 | public function setUsbAccessory($usbAccessory) { |
| 535 | $this->usbAccessory = $usbAccessory; |
| 536 | return $this; |
| 537 | } |
| 538 | |
| 539 | /** |
| 540 | * @return boolean |
| 541 | */ |
| 542 | public function getUsbHost() { |
| 543 | return $this->usbHost; |
| 544 | } |
| 545 | |
| 546 | /** |
| 547 | * @param boolean $usbHost |
| 548 | * @return InstallationDeviceCapabilities |
| 549 | */ |
| 550 | public function setUsbHost($usbHost) { |
| 551 | $this->usbHost = $usbHost; |
| 552 | return $this; |
| 553 | } |
| 554 | |
| 555 | } |
| 556 |