package http.vo.response;

/**
 * info
 *
 * @author ReiChin_
 */
public class LabBulletinBoardVo {
    // ("传感器设备编号")
    public String deviceNo;
    // ("传感器设备名")
    public String deviceName;
    // ("传感器值")
    public String deviceValue;
    // ("最后在线时间")
    public String lastOnlineTime;
    // ("实验室id")
    public long subjectId;
    // ("实验室名称")
    public String subjectName;
    // ("属性id")
    public long attributeId;
    // ("运行状态:0-未运行,1-运行")
    public boolean operatingState;
    // ("在线:0-离线,1-在线")
    public boolean online;
    // ("状态")
    public boolean state;
    // ("单位")
    public String unit;
    // ("图标")
    public String icon;
    // ("异常图标")
    public String exceptionIcon;
    // 属性名称
    public String attributeName;
    public String funNum; // 功能编码
    public String code; // 设备Code

    public String formatWaring() {
        String describe_ = null == deviceName ? "" : deviceName;
        String val_ = null == deviceValue ? "" : deviceValue;
        String unit_ = null == unit ? "" : unit;
        return String.format("%s：%s%s", describe_, val_, unit_);
    }


}
