package com.ld.igds.phone.dto;
|
|
import com.ld.igds.constant.DeviceStatus;
|
import com.ld.igds.constant.DeviceType;
|
import lombok.Data;
|
|
/**
|
* 设备信息封装
|
* @author chen
|
*/
|
@Data
|
public class DtoDevice {
|
private String companyId;
|
private String id;
|
private String depotId;
|
private String name;
|
private String status;
|
private String statusName;
|
private int passCode;
|
private String serId;
|
private String type;
|
private String typeName;
|
private String location;
|
private String link;
|
|
public String getStatusName() {
|
if (null != this.type) {
|
return DeviceStatus.getDeviceStatus(this.status);
|
}
|
return null;
|
}
|
|
public String getTypeName() {
|
if (null != this.type) {
|
return DeviceType.getMsg(this.status);
|
}
|
return null;
|
}
|
|
}
|