package com.rc.httpcore.vo.response;

import java.util.List;

/**
 * 可控制设备
 *
 * @author ReiChin_
 */
public class LotDeviceVo {

    public static final String LOT_OFF = "4";
    public static final String LOT_ON = "3";

    // 设备不在线
    public static final String SWITCH_ENUM_NO_ONLINE = "NO_ONLINE";
    // 开关打开
    public static final String SWITCH_ENUM_ON = "ON";
    // 开关关闭
    public static final String SWITCH_ENUM_OFF = "OFF";

    public String id;
    public String hardwareNUM; // 设备唯一编码
    public State state; // 设备状态
    public String hardwareName; // 设备名称
    public String subId; // 所属实验室ID
    public HardwareTypeEnum hardwareTypeEnum; // 设备类型
    public String switchEnums;
    public FunctionStatus functionStatus; // 当前功能状态
    public List<FunctionStatus> functionStatusList; // 所有功能状态
    public String triggerModes; // 1:预案排风 2:人工排风 3:定时排风

    /*
     * "state":{
     *         "code":4,
     *         "name":"关闭",
     *         "dictKey":4
     *     }
     */
    public static class State {
        public String code;
        public String name;
        public String dictKey;
    }

    /*
     * "functionStatus":{
     *         "funNum":null,
     *         "describe":"开关状态：关闭",
     *         "code":"0",
     *         "cmd":"0"
     *     }
     */
    public static class FunctionStatus {
//        public String hardwareNum;
//        public String icon;
//        public String order;
//        public String commTypeEnums;
        public String cmd; // 命令
        public String code; // 功能状态值
        public String describe; // 功能描述
        public String funNum; // 功能编码
    }

    /*
     * "hardwareTypeEnum":{
     *         "code":1,
     *         "name":"电源开关",
     *         "img":"",
     *         "hardwareTypeCode":1,
     *         "dictKey":1,
     *         "hardwareTypeName":"电源开关",
     *         "enumName":"SWITCH"
     *     }
     */
    public static class HardwareTypeEnum {
        public String code;
        public String name;
        public String img;
        public String hardwareTypeCode;
        public String dictKey;
        public String hardwareTypeName;
        public String enumName;
    }

}
