package com.yuchen.saas.park.service.pull.constant;

/**
 * @author 吕海泉
 * @create 2020/12/21 9:59
 */
@Deprecated
public interface PRODUCT {
    public enum HOST {

        IOT("FS4Ftn1DBFy39zS6", "J4kS1kR1971LnQ7c");

        private String productKey;

        private String productSecret;

        public String getProductKey() {
            return productKey;
        }

        public String getProductSecret() {
            return productSecret;
        }

        HOST(final String productKey, final String productSecret) {
            this.productKey = productKey;
            this.productSecret = productSecret;
        }
    }

    public enum TYPE {




        DIANTI("电梯", false, "KL27Ctr7Rf0WUne4", "ni583ut360n0cLI7"),

        // 门磁
        MIEHUOQI("灭火器", false, "8UGY93ippnQn8eUo", "S3yYuCnwHe0bb23Q"),

        // 门磁
        MENCI("门磁", false, "7YWMqu1z81742vd4", "h94tslbveCE1lr03"),

        // 烟雾
        YANWU("烟雾传感器", false, "r074hYG0DLVvLyr7", "6KZN7o1Rf8m4wX7e"),

        // SOS
        SOS("SOS一键报警", false, "bwcfRgH86409cr8W", "OYaL98uKyDJ74UC7"),

        // 人体红外
        RENTI("人体红外", false, "e9APmX18a6HzHUe4", "EEa4j8uhY0prTQLz"),

        // 液位
        YEWEI("液位传感器", false, "94tn1Yxww3MXkzJw", "By9Q4J5ipEbt2sZQ"),

        // 室内安防
        SHINEIXIAOFANG("室内消防栓", false, "fNb7l622Z5WDl4Kx", "bXRLz7N6h3xy4x5D"),

        // 室外安防
        SHIWAIXIAOFANG("室外消防栓", false, "0n6wezY31Kc6b1Vf", "clF5E59qL5uoZ61P"),

        // 恒星消防栓


        // 井盖
        JINGGAI("井盖", false, "ClCVharGco7rDyDj", "5EaFrmLOCU8mnNAL"),

        // 继电器
        JIDIANQI("继电器(水泵+喷淋)", false, "x1em020i7k00OeNt", "yBl3V0Rkb8v23Y6h"),

        // 土壤温湿度
        TURANG("土壤温湿度", false, "2gaOA2r2l7buD4JM", "V66y7ETY859Tb01y"),

        // 水表
        SHUIBIAO("水表", false, "2A5KTYajh8h0N6Qp", "1QFh3ItnqVM613k1"),

        // 电表
        DIANBIAO("电表", false, "fNN8ACEi5qMeRfR0", "uk6Wh5Q8xAfcBlB7"),


        IOT("iot", false, "FS4Ftn1DBFy39zS6", "J4kS1kR1971LnQ7c"),

        ADAS("adas", false, "I42s26TNP6Uq6889", "CMBo5Gw1HVEM1m67"),

        AUTH_DEV("auth_dev", false, "NLr2PeGMV7nnmJ32", "yO5D0UvuiS2ufvCO"),

        G_SENSOR("g_sensor", false, "33ItF9144yb4VY4V", "OtU9Z9gYSqzLUB4g"),

        GPS("gps", false, "DKU8rDp4G8D4f1xP", "0xTFoX346th3u2Nu"),

        INFRARED("infrared", true, "x8YoDGAHt5kmWUQS", "j6U26Sp98UC7rZtD"),

        LED_DISPLAY("led_display", false, "S8eQ26rgRgdLuYt7", "rbdx98jQ23Z3h055"),

        MAGNETIC("magnetic", true, "1J2gBgKEgDz3VMQj", "EuJzMHPH5Ec11cyw"),

        OBD("obd", false, "Bc5kYx4cCxQoYo0k", "b10g235gf8lF1NE0"),


        POWER("power", false, "5KlRkaUc1b907wQS", "9PXNKoV9bQhD35Sa"),

        RF433("rf433", false, "jmX9rfisOr2x2PXQ", "5ErrS4F329my09I7"),

        RFID("rfid", false, "6Jw52p03cD130ES0", "hPYub3ALOz8qNrx1"),

        SI_ALARM("si_alarm", true, "9f4cb645W2f21Ljs", "b3nn5f3yD1L6hKIt"),

        SIMDEV("simdev", false, "6xH1BKeLSQl21JUI", "vRIr54ELrqi625Dm"),

        SMOKE("smoke", true, "XPStT9J9xHXWI2ZB", "YEax6ysOXQj1v82F"),

        SOS_ALARM("sos_alarm", false, "BC90a67q0xgdV5c7", "d6kij4I2Rf0b98rY"),

        TEMPERATURE("temperature", true, "4GSjxzRBY01a8EMe", "Q5LA5jma9vRA4AYv"),

        TPMS("tpms", true, "PKg7nRl7hrOKEK3r", "YGYxk3B5BAs69Bb2"),

        VEHICLE_CONTROL("vehicle_control", false, "C6Opz9sAdJvbIR8o", "M0ZcxaVQL3XnvUyu"),

        Fire("face",false,"98cBL5l2ycQSmhps","98cBL5l2ycQSmhps"),
        lique("lique",false,"jYDmnJ4RhZ390K3q","YGYxk3B5BAs69Bb2");




        private String name;

        private Boolean sensor;

        private String productKey;

        private String productSecret;

        public String getProductKey() {
            return productKey;
        }

        public String getProductSecret() {
            return productSecret;
        }

        public String getName() {
            return name;
        }

        public Boolean getSensor() {
            return sensor;
        }

        public static TYPE keyOf(String productKey) {
            for (TYPE list : values()) {
                if (list.productKey.equals(productKey)) {
                    return list;
                }
            }
            return null;
        }

        public static TYPE nameOf(String product) {
            for (TYPE list : values()) {
                if (list.name.equals(product)) {
                    return list;
                }
            }
            return null;
        }

        private TYPE(final String name, final Boolean sensor, final String productKey,
                     final String productSecret) {
            this.name = name;
            this.sensor = sensor;
            this.productKey = productKey;
            this.productSecret = productSecret;
        }
    }
}
