OapiSmartdeviceFacegroupEnableRequest.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.smartdevice.facegroup.enable request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.01
  7. */
  8. class OapiSmartdeviceFacegroupEnableRequest
  9. {
  10. /**
  11. * 业务id
  12. **/
  13. private $bizId;
  14. /**
  15. * 设备id列表
  16. **/
  17. private $deviceIds;
  18. /**
  19. * true-启用识别;false-禁用识别
  20. **/
  21. private $enable;
  22. private $apiParas = array();
  23. public function setBizId($bizId)
  24. {
  25. $this->bizId = $bizId;
  26. $this->apiParas["biz_id"] = $bizId;
  27. }
  28. public function getBizId()
  29. {
  30. return $this->bizId;
  31. }
  32. public function setDeviceIds($deviceIds)
  33. {
  34. $this->deviceIds = $deviceIds;
  35. $this->apiParas["device_ids"] = $deviceIds;
  36. }
  37. public function getDeviceIds()
  38. {
  39. return $this->deviceIds;
  40. }
  41. public function setEnable($enable)
  42. {
  43. $this->enable = $enable;
  44. $this->apiParas["enable"] = $enable;
  45. }
  46. public function getEnable()
  47. {
  48. return $this->enable;
  49. }
  50. public function getApiMethodName()
  51. {
  52. return "dingtalk.oapi.smartdevice.facegroup.enable";
  53. }
  54. public function getApiParas()
  55. {
  56. return $this->apiParas;
  57. }
  58. public function check()
  59. {
  60. RequestCheckUtil::checkNotNull($this->bizId,"bizId");
  61. RequestCheckUtil::checkMaxLength($this->bizId,23,"bizId");
  62. RequestCheckUtil::checkMaxListSize($this->deviceIds,20,"deviceIds");
  63. RequestCheckUtil::checkNotNull($this->enable,"enable");
  64. }
  65. public function putOtherTextParam($key, $value) {
  66. $this->apiParas[$key] = $value;
  67. $this->$key = $value;
  68. }
  69. }