No Description

UmengUappParamValueInfo.class.php 2.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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 UmengUappParamValueInfo extends SDKDomain {
  5. private $name;
  6. /**
  7. * @return 参数值名称
  8. */
  9. public function getName() {
  10. return $this->name;
  11. }
  12. /**
  13. * 设置参数值名称
  14. * @param String $name
  15. * 参数示例:<pre>%e7%a4%ba%e4%be%8b(示例)</pre>
  16. * 此参数必填 */
  17. public function setName( $name) {
  18. $this->name = $name;
  19. }
  20. private $count;
  21. /**
  22. * @return 统计的消息数
  23. */
  24. public function getCount() {
  25. return $this->count;
  26. }
  27. /**
  28. * 设置统计的消息数
  29. * @param Integer $count
  30. * 参数示例:<pre></pre>
  31. * 此参数必填 */
  32. public function setCount( $count) {
  33. $this->count = $count;
  34. }
  35. private $percent;
  36. /**
  37. * @return 当前事件下此参数值消息数的占比
  38. */
  39. public function getPercent() {
  40. return $this->percent;
  41. }
  42. /**
  43. * 设置当前事件下此参数值消息数的占比
  44. * @param Double $percent
  45. * 参数示例:<pre></pre>
  46. * 此参数必填 */
  47. public function setPercent( $percent) {
  48. $this->percent = $percent;
  49. }
  50. private $stdResult;
  51. public function setStdResult($stdResult) {
  52. $this->stdResult = $stdResult;
  53. if (array_key_exists ( "name", $this->stdResult )) {
  54. $this->name = $this->stdResult->{"name"};
  55. }
  56. if (array_key_exists ( "count", $this->stdResult )) {
  57. $this->count = $this->stdResult->{"count"};
  58. }
  59. if (array_key_exists ( "percent", $this->stdResult )) {
  60. $this->percent = $this->stdResult->{"percent"};
  61. }
  62. }
  63. private $arrayResult;
  64. public function setArrayResult($arrayResult) {
  65. $this->arrayResult = $arrayResult;
  66. if (array_key_exists ( "name", $this->arrayResult )) {
  67. $this->name = $arrayResult['name'];
  68. }
  69. if (array_key_exists ( "count", $this->arrayResult )) {
  70. $this->count = $arrayResult['count'];
  71. }
  72. if (array_key_exists ( "percent", $this->arrayResult )) {
  73. $this->percent = $arrayResult['percent'];
  74. }
  75. }
  76. }
  77. ?>