CorpSmartdeviceReceptionistPushinfoRequest.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.corp.smartdevice.receptionist.pushinfo request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.03
  7. */
  8. class CorpSmartdeviceReceptionistPushinfoRequest
  9. {
  10. /**
  11. * 展示模板需要的变量数据
  12. **/
  13. private $descContent;
  14. /**
  15. * 智能前台信息展示模板ID,需要向智能硬件团队申请
  16. **/
  17. private $descTemplate;
  18. /**
  19. * 微应用agentID
  20. **/
  21. private $microappAgentId;
  22. private $apiParas = array();
  23. public function setDescContent($descContent)
  24. {
  25. $this->descContent = $descContent;
  26. $this->apiParas["desc_content"] = $descContent;
  27. }
  28. public function getDescContent()
  29. {
  30. return $this->descContent;
  31. }
  32. public function setDescTemplate($descTemplate)
  33. {
  34. $this->descTemplate = $descTemplate;
  35. $this->apiParas["desc_template"] = $descTemplate;
  36. }
  37. public function getDescTemplate()
  38. {
  39. return $this->descTemplate;
  40. }
  41. public function setMicroappAgentId($microappAgentId)
  42. {
  43. $this->microappAgentId = $microappAgentId;
  44. $this->apiParas["microapp_agent_id"] = $microappAgentId;
  45. }
  46. public function getMicroappAgentId()
  47. {
  48. return $this->microappAgentId;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.corp.smartdevice.receptionist.pushinfo";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->descContent,"descContent");
  61. RequestCheckUtil::checkNotNull($this->descTemplate,"descTemplate");
  62. RequestCheckUtil::checkNotNull($this->microappAgentId,"microappAgentId");
  63. }
  64. public function putOtherTextParam($key, $value) {
  65. $this->apiParas[$key] = $value;
  66. $this->$key = $value;
  67. }
  68. }