12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- <?php
- /**
- * dingtalk API: dingtalk.corp.device.nick.update request
- *
- * @author auto create
- * @since 1.0, 2019.07.03
- */
- class CorpDeviceNickUpdateRequest
- {
- /**
- * 设备ID
- **/
- private $deviceId;
-
- /**
- * 设备服务商ID
- **/
- private $deviceServiceId;
-
- /**
- * 设备新昵称
- **/
- private $newNick;
-
- private $apiParas = array();
-
- public function setDeviceId($deviceId)
- {
- $this->deviceId = $deviceId;
- $this->apiParas["device_id"] = $deviceId;
- }
- public function getDeviceId()
- {
- return $this->deviceId;
- }
- public function setDeviceServiceId($deviceServiceId)
- {
- $this->deviceServiceId = $deviceServiceId;
- $this->apiParas["device_service_id"] = $deviceServiceId;
- }
- public function getDeviceServiceId()
- {
- return $this->deviceServiceId;
- }
- public function setNewNick($newNick)
- {
- $this->newNick = $newNick;
- $this->apiParas["new_nick"] = $newNick;
- }
- public function getNewNick()
- {
- return $this->newNick;
- }
- public function getApiMethodName()
- {
- return "dingtalk.corp.device.nick.update";
- }
-
- public function getApiParas()
- {
- return $this->apiParas;
- }
-
- public function check()
- {
-
- RequestCheckUtil::checkNotNull($this->deviceId,"deviceId");
- RequestCheckUtil::checkNotNull($this->deviceServiceId,"deviceServiceId");
- RequestCheckUtil::checkNotNull($this->newNick,"newNick");
- }
-
- public function putOtherTextParam($key, $value) {
- $this->apiParas[$key] = $value;
- $this->$key = $value;
- }
- }
|