OapiLiveGroupliveStatisticsRequest.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.live.grouplive.statistics request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2021.02.07
  7. */
  8. class OapiLiveGroupliveStatisticsRequest
  9. {
  10. /**
  11. * 群id
  12. **/
  13. private $cid;
  14. /**
  15. * 直播uuid
  16. **/
  17. private $liveUuid;
  18. /**
  19. * 用户id
  20. **/
  21. private $openId;
  22. private $apiParas = array();
  23. public function setCid($cid)
  24. {
  25. $this->cid = $cid;
  26. $this->apiParas["cid"] = $cid;
  27. }
  28. public function getCid()
  29. {
  30. return $this->cid;
  31. }
  32. public function setLiveUuid($liveUuid)
  33. {
  34. $this->liveUuid = $liveUuid;
  35. $this->apiParas["live_uuid"] = $liveUuid;
  36. }
  37. public function getLiveUuid()
  38. {
  39. return $this->liveUuid;
  40. }
  41. public function setOpenId($openId)
  42. {
  43. $this->openId = $openId;
  44. $this->apiParas["open_id"] = $openId;
  45. }
  46. public function getOpenId()
  47. {
  48. return $this->openId;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.live.grouplive.statistics";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->liveUuid,"liveUuid");
  61. }
  62. public function putOtherTextParam($key, $value) {
  63. $this->apiParas[$key] = $value;
  64. $this->$key = $value;
  65. }
  66. }