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/UmengUappChannelInfo.class.php');
- class UmengUappGetChannelDataResult {
-
- private $channelInfos;
-
- /**
- * @return
- */
- public function getChannelInfos() {
- return $this->channelInfos;
- }
-
- /**
- * 设置
- * @param array include @see UmengUappChannelInfo[] $channelInfos
-
- * 此参数必填 */
- public function setChannelInfos(UmengUappChannelInfo $channelInfos) {
- $this->channelInfos = $channelInfos;
- }
-
-
- private $page;
-
- /**
- * @return 页数
- */
- public function getPage() {
- return $this->page;
- }
-
- /**
- * 设置页数
- * @param Integer $page
-
- * 此参数必填 */
- public function setPage( $page) {
- $this->page = $page;
- }
-
-
- private $totalPage;
-
- /**
- * @return 总页数
- */
- public function getTotalPage() {
- return $this->totalPage;
- }
-
- /**
- * 设置总页数
- * @param Integer $totalPage
-
- * 此参数必填 */
- public function setTotalPage( $totalPage) {
- $this->totalPage = $totalPage;
- }
-
-
- private $stdResult;
-
- public function setStdResult($stdResult) {
- $this->stdResult = $stdResult;
- if (array_key_exists ( "channelInfos", $this->stdResult )) {
- $channelInfosResult=$this->stdResult->{"channelInfos"};
- $object = json_decode ( json_encode ( $channelInfosResult ), true );
- $this->channelInfos = array ();
- for($i = 0; $i < count ( $object ); $i ++) {
- $arrayobject = new ArrayObject ( $object [$i] );
- $UmengUappChannelInfoResult=new UmengUappChannelInfo();
- $UmengUappChannelInfoResult->setArrayResult($arrayobject );
- $this->channelInfos [$i] = $UmengUappChannelInfoResult;
- }
- }
- if (array_key_exists ( "page", $this->stdResult )) {
- $this->page = $this->stdResult->{"page"};
- }
- if (array_key_exists ( "totalPage", $this->stdResult )) {
- $this->totalPage = $this->stdResult->{"totalPage"};
- }
- }
-
- private $arrayResult;
- public function setArrayResult($arrayResult) {
- $this->arrayResult = $arrayResult;
- if (array_key_exists ( "channelInfos", $this->arrayResult )) {
- $channelInfosResult=$arrayResult['channelInfos'];
- $this->channelInfos = new UmengUappChannelInfo();
- $this->channelInfos->setStdResult ( $channelInfosResult);
- }
- if (array_key_exists ( "page", $this->arrayResult )) {
- $this->page = $arrayResult['page'];
- }
- if (array_key_exists ( "totalPage", $this->arrayResult )) {
- $this->totalPage = $arrayResult['totalPage'];
- }
- }
- }
- ?>
|