cursor = $cursor; $this->apiParas["cursor"] = $cursor; } public function getCursor() { return $this->cursor; } public function setDeviceId($deviceId) { $this->deviceId = $deviceId; $this->apiParas["device_id"] = $deviceId; } public function getDeviceId() { return $this->deviceId; } public function setSize($size) { $this->size = $size; $this->apiParas["size"] = $size; } public function getSize() { return $this->size; } public function getApiMethodName() { return "dingtalk.oapi.smartdevice.devicemember.list"; } public function getApiParas() { return $this->apiParas; } public function check() { RequestCheckUtil::checkNotNull($this->cursor,"cursor"); RequestCheckUtil::checkNotNull($this->deviceId,"deviceId"); RequestCheckUtil::checkNotNull($this->size,"size"); RequestCheckUtil::checkMaxValue($this->size,500,"size"); RequestCheckUtil::checkMinValue($this->size,1,"size"); } public function putOtherTextParam($key, $value) { $this->apiParas[$key] = $value; $this->$key = $value; } }