OapiSmartdeviceFacegroupUpdateRequest.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.smartdevice.facegroup.update request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.01
  7. */
  8. class OapiSmartdeviceFacegroupUpdateRequest
  9. {
  10. /**
  11. * M2上的定制UI
  12. **/
  13. private $bgImgUrl;
  14. /**
  15. * 业务id
  16. **/
  17. private $bizId;
  18. /**
  19. * 结束时间
  20. **/
  21. private $endTime;
  22. /**
  23. * 识别成功后的问候语
  24. **/
  25. private $greetingMsg;
  26. /**
  27. * 开始时间
  28. **/
  29. private $startTime;
  30. /**
  31. * 识别组启用状态:1-已启用;2未启用;
  32. **/
  33. private $status;
  34. /**
  35. * 识别组的标题
  36. **/
  37. private $title;
  38. private $apiParas = array();
  39. public function setBgImgUrl($bgImgUrl)
  40. {
  41. $this->bgImgUrl = $bgImgUrl;
  42. $this->apiParas["bg_img_url"] = $bgImgUrl;
  43. }
  44. public function getBgImgUrl()
  45. {
  46. return $this->bgImgUrl;
  47. }
  48. public function setBizId($bizId)
  49. {
  50. $this->bizId = $bizId;
  51. $this->apiParas["biz_id"] = $bizId;
  52. }
  53. public function getBizId()
  54. {
  55. return $this->bizId;
  56. }
  57. public function setEndTime($endTime)
  58. {
  59. $this->endTime = $endTime;
  60. $this->apiParas["end_time"] = $endTime;
  61. }
  62. public function getEndTime()
  63. {
  64. return $this->endTime;
  65. }
  66. public function setGreetingMsg($greetingMsg)
  67. {
  68. $this->greetingMsg = $greetingMsg;
  69. $this->apiParas["greeting_msg"] = $greetingMsg;
  70. }
  71. public function getGreetingMsg()
  72. {
  73. return $this->greetingMsg;
  74. }
  75. public function setStartTime($startTime)
  76. {
  77. $this->startTime = $startTime;
  78. $this->apiParas["start_time"] = $startTime;
  79. }
  80. public function getStartTime()
  81. {
  82. return $this->startTime;
  83. }
  84. public function setStatus($status)
  85. {
  86. $this->status = $status;
  87. $this->apiParas["status"] = $status;
  88. }
  89. public function getStatus()
  90. {
  91. return $this->status;
  92. }
  93. public function setTitle($title)
  94. {
  95. $this->title = $title;
  96. $this->apiParas["title"] = $title;
  97. }
  98. public function getTitle()
  99. {
  100. return $this->title;
  101. }
  102. public function getApiMethodName()
  103. {
  104. return "dingtalk.oapi.smartdevice.facegroup.update";
  105. }
  106. public function getApiParas()
  107. {
  108. return $this->apiParas;
  109. }
  110. public function check()
  111. {
  112. RequestCheckUtil::checkMaxLength($this->bgImgUrl,512,"bgImgUrl");
  113. RequestCheckUtil::checkNotNull($this->bizId,"bizId");
  114. RequestCheckUtil::checkMaxLength($this->bizId,23,"bizId");
  115. RequestCheckUtil::checkNotNull($this->endTime,"endTime");
  116. RequestCheckUtil::checkMaxLength($this->greetingMsg,16,"greetingMsg");
  117. RequestCheckUtil::checkNotNull($this->startTime,"startTime");
  118. RequestCheckUtil::checkNotNull($this->status,"status");
  119. RequestCheckUtil::checkMaxValue($this->status,2,"status");
  120. RequestCheckUtil::checkMinValue($this->status,1,"status");
  121. RequestCheckUtil::checkNotNull($this->title,"title");
  122. RequestCheckUtil::checkMaxLength($this->title,32,"title");
  123. }
  124. public function putOtherTextParam($key, $value) {
  125. $this->apiParas[$key] = $value;
  126. $this->$key = $value;
  127. }
  128. }