No Description

UmengApptrackAppEvent.class.php 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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. class UmengApptrackAppEvent extends SDKDomain {
  5. private $eventName;
  6. /**
  7. * @return 自定义事件名称
  8. */
  9. public function getEventName() {
  10. return $this->eventName;
  11. }
  12. /**
  13. * 设置自定义事件名称
  14. * @param String $eventName
  15. * 参数示例:<pre></pre>
  16. * 此参数必填 */
  17. public function setEventName( $eventName) {
  18. $this->eventName = $eventName;
  19. }
  20. private $eventNumber;
  21. /**
  22. * @return 自定义事件值
  23. */
  24. public function getEventNumber() {
  25. return $this->eventNumber;
  26. }
  27. /**
  28. * 设置自定义事件值
  29. * @param Long $eventNumber
  30. * 参数示例:<pre></pre>
  31. * 此参数必填 */
  32. public function setEventNumber( $eventNumber) {
  33. $this->eventNumber = $eventNumber;
  34. }
  35. private $stdResult;
  36. public function setStdResult($stdResult) {
  37. $this->stdResult = $stdResult;
  38. if (array_key_exists ( "eventName", $this->stdResult )) {
  39. $this->eventName = $this->stdResult->{"eventName"};
  40. }
  41. if (array_key_exists ( "eventNumber", $this->stdResult )) {
  42. $this->eventNumber = $this->stdResult->{"eventNumber"};
  43. }
  44. }
  45. private $arrayResult;
  46. public function setArrayResult($arrayResult) {
  47. $this->arrayResult = $arrayResult;
  48. if (array_key_exists ( "eventName", $this->arrayResult )) {
  49. $this->eventName = $arrayResult['eventName'];
  50. }
  51. if (array_key_exists ( "eventNumber", $this->arrayResult )) {
  52. $this->eventNumber = $arrayResult['eventNumber'];
  53. }
  54. }
  55. }
  56. ?>