com.dingtalk.api.response.OapiSmartdeviceDeviceQueryResponse Maven / Gradle / Ivy
The newest version!
package com.dingtalk.api.response;
import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import com.taobao.api.TaobaoResponse;
/**
* TOP DingTalk-API: dingtalk.oapi.smartdevice.device.query response.
*
* @author top auto create
* @since 1.0, null
*/
public class OapiSmartdeviceDeviceQueryResponse extends TaobaoResponse {
private static final long serialVersionUID = 8122185228284541283L;
/**
* 错误代码
*/
@ApiField("errcode")
private Long errcode;
/**
* 错误信息
*/
@ApiField("errmsg")
private String errmsg;
/**
* 返回结果
*/
@ApiField("result")
private DeviceDetailVO result;
/**
* 是否成功
*/
@ApiField("success")
private Boolean success;
public void setErrcode(Long errcode) {
this.errcode = errcode;
}
public Long getErrcode( ) {
return this.errcode;
}
public void setErrmsg(String errmsg) {
this.errmsg = errmsg;
}
public String getErrmsg( ) {
return this.errmsg;
}
public void setResult(DeviceDetailVO result) {
this.result = result;
}
public DeviceDetailVO getResult( ) {
return this.result;
}
public void setSuccess(Boolean success) {
this.success = success;
}
public Boolean getSuccess( ) {
return this.success;
}
public boolean isSuccess() {
return getErrcode() == null || getErrcode().equals(0L);
}
/**
* 返回结果
*
* @author top auto create
* @since 1.0, null
*/
public static class DeviceDetailVO extends TaobaoObject {
private static final long serialVersionUID = 2537959876683879946L;
/**
* 企业id
*/
@ApiField("corp_id")
private String corpId;
/**
* 设备id
*/
@ApiField("device_id")
private String deviceId;
/**
* 设备mac
*/
@ApiField("device_mac")
private String deviceMac;
/**
* 设备名称
*/
@ApiField("device_name")
private String deviceName;
/**
* 备注信息
*/
@ApiField("ext")
private String ext;
/**
* 设备nick
*/
@ApiField("nick")
private String nick;
/**
* 产品标识
*/
@ApiField("pk")
private String pk;
/**
* 设备序列号
*/
@ApiField("sn")
private String sn;
/**
* 员工id
*/
@ApiField("userid")
private String userid;
public String getCorpId() {
return this.corpId;
}
public void setCorpId(String corpId) {
this.corpId = corpId;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceMac() {
return this.deviceMac;
}
public void setDeviceMac(String deviceMac) {
this.deviceMac = deviceMac;
}
public String getDeviceName() {
return this.deviceName;
}
public void setDeviceName(String deviceName) {
this.deviceName = deviceName;
}
public String getExt() {
return this.ext;
}
public void setExt(String ext) {
this.ext = ext;
}
public String getNick() {
return this.nick;
}
public void setNick(String nick) {
this.nick = nick;
}
public String getPk() {
return this.pk;
}
public void setPk(String pk) {
this.pk = pk;
}
public String getSn() {
return this.sn;
}
public void setSn(String sn) {
this.sn = sn;
}
public String getUserid() {
return this.userid;
}
public void setUserid(String userid) {
this.userid = userid;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy