GTPushChannel.php 933 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. require_once(dirname(__FILE__) . '/' . 'ios/GTIos.php');
  3. require_once(dirname(__FILE__) . '/' . 'android/GTAndroid.php');
  4. class GTPushChannel extends GTApiRequest
  5. {
  6. /**
  7. * ios通道推送消息内容
  8. */
  9. private $ios;
  10. /**
  11. * android通道推送消息内容
  12. */
  13. private $android;
  14. public function getIos()
  15. {
  16. return $this->ios;
  17. }
  18. public function setIos($ios)
  19. {
  20. $this->ios = $ios;
  21. }
  22. public function getAndroid()
  23. {
  24. return $this->android;
  25. }
  26. public function setAndroid($android)
  27. {
  28. $this->android = $android;
  29. }
  30. public function getApiParam()
  31. {
  32. if ($this->ios != null){
  33. $this->apiParam["ios"] = $this->ios->getApiParam();
  34. }
  35. if ($this->android != null){
  36. $this->apiParam["android"] = $this->android->getApiParam();
  37. }
  38. return $this->apiParam;
  39. }
  40. }