No Description

UmengUappGetLaunchesResult.class.php 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. include_once ('com/alibaba/openapi/client/entity/SDKDomain.class.php');
  3. include_once ('com/alibaba/openapi/client/entity/ByteArray.class.php');
  4. include_once ('com/umeng/uapp/param/UmengUappCountData.class.php');
  5. class UmengUappGetLaunchesResult {
  6. private $launchInfo;
  7. /**
  8. * @return umeng.uapp.count.Data[]
  9. */
  10. public function getLaunchInfo() {
  11. return $this->launchInfo;
  12. }
  13. /**
  14. * 设置umeng.uapp.count.Data[]
  15. * @param array include @see UmengUappCountData[] $launchInfo
  16. * 此参数必填 */
  17. public function setLaunchInfo(UmengUappCountData $launchInfo) {
  18. $this->launchInfo = $launchInfo;
  19. }
  20. private $stdResult;
  21. public function setStdResult($stdResult) {
  22. $this->stdResult = $stdResult;
  23. if (array_key_exists ( "launchInfo", $this->stdResult )) {
  24. $launchInfoResult=$this->stdResult->{"launchInfo"};
  25. $object = json_decode ( json_encode ( $launchInfoResult ), true );
  26. $this->launchInfo = array ();
  27. for($i = 0; $i < count ( $object ); $i ++) {
  28. $arrayobject = new ArrayObject ( $object [$i] );
  29. $UmengUappCountDataResult=new UmengUappCountData();
  30. $UmengUappCountDataResult->setArrayResult($arrayobject );
  31. $this->launchInfo [$i] = $UmengUappCountDataResult;
  32. }
  33. }
  34. }
  35. private $arrayResult;
  36. public function setArrayResult($arrayResult) {
  37. $this->arrayResult = $arrayResult;
  38. if (array_key_exists ( "launchInfo", $this->arrayResult )) {
  39. $launchInfoResult=$arrayResult['launchInfo'];
  40. $this->launchInfo = new UmengUappCountData();
  41. $this->launchInfo->setStdResult ( $launchInfoResult);
  42. }
  43. }
  44. }
  45. ?>