OapiSmartdeviceFacegroupDeviceListRequest.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?php
  2. /**
  3. * dingtalk API: dingtalk.oapi.smartdevice.facegroup.device.list request
  4. *
  5. * @author auto create
  6. * @since 1.0, 2019.07.01
  7. */
  8. class OapiSmartdeviceFacegroupDeviceListRequest
  9. {
  10. /**
  11. * 业务id
  12. **/
  13. private $bizId;
  14. /**
  15. * 游标,第一次传 <=0的值,后续传本调用的返回值
  16. **/
  17. private $cursor;
  18. /**
  19. * 查询模式:all-企业所有设备;bound-本组已关联设备
  20. **/
  21. private $mode;
  22. /**
  23. * 分页大小
  24. **/
  25. private $size;
  26. /**
  27. * 需查询的设备类型
  28. **/
  29. private $type;
  30. private $apiParas = array();
  31. public function setBizId($bizId)
  32. {
  33. $this->bizId = $bizId;
  34. $this->apiParas["biz_id"] = $bizId;
  35. }
  36. public function getBizId()
  37. {
  38. return $this->bizId;
  39. }
  40. public function setCursor($cursor)
  41. {
  42. $this->cursor = $cursor;
  43. $this->apiParas["cursor"] = $cursor;
  44. }
  45. public function getCursor()
  46. {
  47. return $this->cursor;
  48. }
  49. public function setMode($mode)
  50. {
  51. $this->mode = $mode;
  52. $this->apiParas["mode"] = $mode;
  53. }
  54. public function getMode()
  55. {
  56. return $this->mode;
  57. }
  58. public function setSize($size)
  59. {
  60. $this->size = $size;
  61. $this->apiParas["size"] = $size;
  62. }
  63. public function getSize()
  64. {
  65. return $this->size;
  66. }
  67. public function setType($type)
  68. {
  69. $this->type = $type;
  70. $this->apiParas["type"] = $type;
  71. }
  72. public function getType()
  73. {
  74. return $this->type;
  75. }
  76. public function getApiMethodName()
  77. {
  78. return "dingtalk.oapi.smartdevice.facegroup.device.list";
  79. }
  80. public function getApiParas()
  81. {
  82. return $this->apiParas;
  83. }
  84. public function check()
  85. {
  86. RequestCheckUtil::checkNotNull($this->bizId,"bizId");
  87. RequestCheckUtil::checkMaxLength($this->bizId,23,"bizId");
  88. RequestCheckUtil::checkNotNull($this->cursor,"cursor");
  89. RequestCheckUtil::checkNotNull($this->mode,"mode");
  90. RequestCheckUtil::checkNotNull($this->size,"size");
  91. RequestCheckUtil::checkMaxValue($this->size,20,"size");
  92. RequestCheckUtil::checkMinValue($this->size,1,"size");
  93. RequestCheckUtil::checkNotNull($this->type,"type");
  94. }
  95. public function putOtherTextParam($key, $value) {
  96. $this->apiParas[$key] = $value;
  97. $this->$key = $value;
  98. }
  99. }