No Description

UmengApptrackGetPlanListResult.class.php 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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/apptrack/param/UmengApptrackAppRecPlan.class.php');
  5. class UmengApptrackGetPlanListResult {
  6. private $data;
  7. /**
  8. * @return
  9. */
  10. public function getData() {
  11. return $this->data;
  12. }
  13. /**
  14. * 设置
  15. * @param array include @see UmengApptrackAppRecPlan[] $data
  16. * 此参数必填 */
  17. public function setData(UmengApptrackAppRecPlan $data) {
  18. $this->data = $data;
  19. }
  20. private $total;
  21. /**
  22. * @return 总记录数
  23. */
  24. public function getTotal() {
  25. return $this->total;
  26. }
  27. /**
  28. * 设置总记录数
  29. * @param Integer $total
  30. * 此参数必填 */
  31. public function setTotal( $total) {
  32. $this->total = $total;
  33. }
  34. private $stdResult;
  35. public function setStdResult($stdResult) {
  36. $this->stdResult = $stdResult;
  37. if (array_key_exists ( "data", $this->stdResult )) {
  38. $dataResult=$this->stdResult->{"data"};
  39. $object = json_decode ( json_encode ( $dataResult ), true );
  40. $this->data = array ();
  41. for($i = 0; $i < count ( $object ); $i ++) {
  42. $arrayobject = new ArrayObject ( $object [$i] );
  43. $UmengApptrackAppRecPlanResult=new UmengApptrackAppRecPlan();
  44. $UmengApptrackAppRecPlanResult->setArrayResult($arrayobject );
  45. $this->data [$i] = $UmengApptrackAppRecPlanResult;
  46. }
  47. }
  48. if (array_key_exists ( "total", $this->stdResult )) {
  49. $this->total = $this->stdResult->{"total"};
  50. }
  51. }
  52. private $arrayResult;
  53. public function setArrayResult($arrayResult) {
  54. $this->arrayResult = $arrayResult;
  55. if (array_key_exists ( "data", $this->arrayResult )) {
  56. $dataResult=$arrayResult['data'];
  57. $this->data = new UmengApptrackAppRecPlan();
  58. $this->data->setStdResult ( $dataResult);
  59. }
  60. if (array_key_exists ( "total", $this->arrayResult )) {
  61. $this->total = $arrayResult['total'];
  62. }
  63. }
  64. }
  65. ?>