No Description

UmengUappChannelInfo.class.php 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <?php
  2. include_once (app_path('/libs/Umeng/').'com/alibaba/openapi/client/entity/SDKDomain.class.php');
  3. include_once (app_path('/libs/Umeng/').'com/alibaba/openapi/client/entity/ByteArray.class.php');
  4. class UmengUappChannelInfo extends SDKDomain {
  5. private $launch;
  6. /**
  7. * @return 启动数(昨日及以前可查询)
  8. */
  9. public function getLaunch() {
  10. return $this->launch;
  11. }
  12. /**
  13. * 设置启动数(昨日及以前可查询)
  14. * @param Integer $launch
  15. * 参数示例:<pre></pre>
  16. * 此参数必填 */
  17. public function setLaunch( $launch) {
  18. $this->launch = $launch;
  19. }
  20. private $duration;
  21. /**
  22. * @return 使用时长(昨日及以前可查询)
  23. */
  24. public function getDuration() {
  25. return $this->duration;
  26. }
  27. /**
  28. * 设置使用时长(昨日及以前可查询)
  29. * @param String $duration
  30. * 参数示例:<pre></pre>
  31. * 此参数必填 */
  32. public function setDuration( $duration) {
  33. $this->duration = $duration;
  34. }
  35. private $date;
  36. /**
  37. * @return 日期
  38. */
  39. public function getDate() {
  40. return $this->date;
  41. }
  42. /**
  43. * 设置日期
  44. * @param String $date
  45. * 参数示例:<pre></pre>
  46. * 此参数必填 */
  47. public function setDate( $date) {
  48. $this->date = $date;
  49. }
  50. private $totalUserRate;
  51. /**
  52. * @return 当前渠道总用户数在总用户数中的比例
  53. */
  54. public function getTotalUserRate() {
  55. return $this->totalUserRate;
  56. }
  57. /**
  58. * 设置当前渠道总用户数在总用户数中的比例
  59. * @param Double $totalUserRate
  60. * 参数示例:<pre></pre>
  61. * 此参数必填 */
  62. public function setTotalUserRate( $totalUserRate) {
  63. $this->totalUserRate = $totalUserRate;
  64. }
  65. private $activeUser;
  66. /**
  67. * @return 活跃用户
  68. */
  69. public function getActiveUser() {
  70. return $this->activeUser;
  71. }
  72. /**
  73. * 设置活跃用户
  74. * @param Integer $activeUser
  75. * 参数示例:<pre></pre>
  76. * 此参数必填 */
  77. public function setActiveUser( $activeUser) {
  78. $this->activeUser = $activeUser;
  79. }
  80. private $newUser;
  81. /**
  82. * @return 新增用户
  83. */
  84. public function getNewUser() {
  85. return $this->newUser;
  86. }
  87. /**
  88. * 设置新增用户
  89. * @param Integer $newUser
  90. * 参数示例:<pre></pre>
  91. * 此参数必填 */
  92. public function setNewUser( $newUser) {
  93. $this->newUser = $newUser;
  94. }
  95. private $totalUser;
  96. /**
  97. * @return 总用户数
  98. */
  99. public function getTotalUser() {
  100. return $this->totalUser;
  101. }
  102. /**
  103. * 设置总用户数
  104. * @param Integer $totalUser
  105. * 参数示例:<pre></pre>
  106. * 此参数必填 */
  107. public function setTotalUser( $totalUser) {
  108. $this->totalUser = $totalUser;
  109. }
  110. private $channel;
  111. /**
  112. * @return 渠道名称
  113. */
  114. public function getChannel() {
  115. return $this->channel;
  116. }
  117. /**
  118. * 设置渠道名称
  119. * @param String $channel
  120. * 参数示例:<pre></pre>
  121. * 此参数必填 */
  122. public function setChannel( $channel) {
  123. $this->channel = $channel;
  124. }
  125. private $id;
  126. /**
  127. * @return 渠道ID
  128. */
  129. public function getId() {
  130. return $this->id;
  131. }
  132. /**
  133. * 设置渠道ID
  134. * @param String $id
  135. * 参数示例:<pre></pre>
  136. * 此参数必填 */
  137. public function setId( $id) {
  138. $this->id = $id;
  139. }
  140. private $stdResult;
  141. public function setStdResult($stdResult) {
  142. $this->stdResult = $stdResult;
  143. if (array_key_exists ( "launch", $this->stdResult )) {
  144. $this->launch = $this->stdResult->{"launch"};
  145. }
  146. if (array_key_exists ( "duration", $this->stdResult )) {
  147. $this->duration = $this->stdResult->{"duration"};
  148. }
  149. if (array_key_exists ( "date", $this->stdResult )) {
  150. $this->date = $this->stdResult->{"date"};
  151. }
  152. if (array_key_exists ( "totalUserRate", $this->stdResult )) {
  153. $this->totalUserRate = $this->stdResult->{"totalUserRate"};
  154. }
  155. if (array_key_exists ( "activeUser", $this->stdResult )) {
  156. $this->activeUser = $this->stdResult->{"activeUser"};
  157. }
  158. if (array_key_exists ( "newUser", $this->stdResult )) {
  159. $this->newUser = $this->stdResult->{"newUser"};
  160. }
  161. if (array_key_exists ( "totalUser", $this->stdResult )) {
  162. $this->totalUser = $this->stdResult->{"totalUser"};
  163. }
  164. if (array_key_exists ( "channel", $this->stdResult )) {
  165. $this->channel = $this->stdResult->{"channel"};
  166. }
  167. if (array_key_exists ( "id", $this->stdResult )) {
  168. $this->id = $this->stdResult->{"id"};
  169. }
  170. }
  171. private $arrayResult;
  172. public function setArrayResult($arrayResult) {
  173. $this->arrayResult = $arrayResult;
  174. if (array_key_exists ( "launch", $this->arrayResult )) {
  175. $this->launch = $arrayResult['launch'];
  176. }
  177. if (array_key_exists ( "duration", $this->arrayResult )) {
  178. $this->duration = $arrayResult['duration'];
  179. }
  180. if (array_key_exists ( "date", $this->arrayResult )) {
  181. $this->date = $arrayResult['date'];
  182. }
  183. if (array_key_exists ( "totalUserRate", $this->arrayResult )) {
  184. $this->totalUserRate = $arrayResult['totalUserRate'];
  185. }
  186. if (array_key_exists ( "activeUser", $this->arrayResult )) {
  187. $this->activeUser = $arrayResult['activeUser'];
  188. }
  189. if (array_key_exists ( "newUser", $this->arrayResult )) {
  190. $this->newUser = $arrayResult['newUser'];
  191. }
  192. if (array_key_exists ( "totalUser", $this->arrayResult )) {
  193. $this->totalUser = $arrayResult['totalUser'];
  194. }
  195. if (array_key_exists ( "channel", $this->arrayResult )) {
  196. $this->channel = $arrayResult['channel'];
  197. }
  198. if (array_key_exists ( "id", $this->arrayResult )) {
  199. $this->id = $arrayResult['id'];
  200. }
  201. }
  202. }
  203. ?>