CorpDeviceManageHasbinddeviceRequest.php 953 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.corp.device.manage.hasbinddevice request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.03
  7. */
  8. class CorpDeviceManageHasbinddeviceRequest
  9. {
  10. /**
  11. * 设备产品类型 产品编码:M1:9 C1:14 M2:15 D1:24
  12. **/
  13. private $deviceServiceId;
  14. private $apiParas = array();
  15. public function setDeviceServiceId($deviceServiceId)
  16. {
  17. $this->deviceServiceId = $deviceServiceId;
  18. $this->apiParas["device_service_id"] = $deviceServiceId;
  19. }
  20. public function getDeviceServiceId()
  21. {
  22. return $this->deviceServiceId;
  23. }
  24. public function getApiMethodName()
  25. {
  26. return "dingtalk.corp.device.manage.hasbinddevice";
  27. }
  28. public function getApiParas()
  29. {
  30. return $this->apiParas;
  31. }
  32. public function check()
  33. {
  34. RequestCheckUtil::checkNotNull($this->deviceServiceId,"deviceServiceId");
  35. }
  36. public function putOtherTextParam($key, $value) {
  37. $this->apiParas[$key] = $value;
  38. $this->$key = $value;
  39. }
  40. }