123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- <?php
- include_once (app_path('/libs/Umeng/').'com/alibaba/openapi/client/entity/SDKDomain.class.php');
- include_once (app_path('/libs/Umeng/').'com/alibaba/openapi/client/entity/ByteArray.class.php');
- include_once (app_path('/libs/Umeng/').'com/umeng/uapp/param/UmengUappAppInfoData.class.php');
- class UmengUappGetAppListResult {
-
- private $appInfos;
-
-
- public function getAppInfos() {
- return $this->appInfos;
- }
-
-
- public function setAppInfos(UmengUappAppInfoData $appInfos) {
- $this->appInfos = $appInfos;
- }
-
-
- private $totalPage;
-
-
- public function getTotalPage() {
- return $this->totalPage;
- }
-
-
- public function setTotalPage( $totalPage) {
- $this->totalPage = $totalPage;
- }
-
-
- private $page;
-
-
- public function getPage() {
- return $this->page;
- }
-
-
- public function setPage( $page) {
- $this->page = $page;
- }
-
-
- private $stdResult;
-
- public function setStdResult($stdResult) {
- $this->stdResult = $stdResult;
- if (array_key_exists ( "appInfos", $this->stdResult )) {
- $appInfosResult=$this->stdResult->{"appInfos"};
- $object = json_decode ( json_encode ( $appInfosResult ), true );
- $this->appInfos = array ();
- for($i = 0; $i < count ( $object ); $i ++) {
- $arrayobject = new ArrayObject ( $object [$i] );
- $UmengUappAppInfoDataResult=new UmengUappAppInfoData();
- $UmengUappAppInfoDataResult->setArrayResult($arrayobject );
- $this->appInfos [$i] = $UmengUappAppInfoDataResult;
- }
- }
- if (array_key_exists ( "totalPage", $this->stdResult )) {
- $this->totalPage = $this->stdResult->{"totalPage"};
- }
- if (array_key_exists ( "page", $this->stdResult )) {
- $this->page = $this->stdResult->{"page"};
- }
- }
-
- private $arrayResult;
- public function setArrayResult($arrayResult) {
- $this->arrayResult = $arrayResult;
- if (array_key_exists ( "appInfos", $this->arrayResult )) {
- $appInfosResult=$arrayResult['appInfos'];
- $this->appInfos = new UmengUappAppInfoData();
- $this->appInfos->setStdResult ( $appInfosResult);
- }
- if (array_key_exists ( "totalPage", $this->arrayResult )) {
- $this->totalPage = $arrayResult['totalPage'];
- }
- if (array_key_exists ( "page", $this->arrayResult )) {
- $this->page = $arrayResult['page'];
- }
- }
- }
- ?>
|