Constants.java 1.23 KB
package cn.com.glsx.app.common.constants;

/**
 * @Desc:公共的常量类
 * @Author huangxc
 * @Date 2021/5/22
 */
public final class Constants {

    /**
     * 删除标识 0:正常
     */
    public static final Integer NORMAL_FLAG = 0;

    /**
     * 删除标识 -1:删除
     */
    public static final Integer DELETE_FLAG = -1;

    /**
     * 其他公司 设备离线时间:三天 单位 s/秒
     */
    public static final long OFFLINE_TIME_OTHER = 3 * 24 * 3600L;

    /**
     * 厂商ID-博实结
     */
    public static final String BSJ_FACTORY_ID = "BSJ";

    /**
     * 设备调频模式 0 追车模式;1 闹钟模式;2 星期模式;3 初始化模式
     */
    public static final int ADJ_FREQ_CATCHING = 0;
    public static final int ADJ_FREQ_TIMER = 1;
    public static final int ADJ_FREQ_WEEK = 2;
    public static final int ADJ_FREQ_INITIAL = 3;

    /**
     * 1断电报警
     */
    public final static Integer ALARM_TYPE_POWER_OFF = 1;

    /**
     * 99:光感报警
     */
    public final static Integer ALARM_TYPE_LIGHT = 99;

    /**
     * 低电量
     */
    public static final int LOW_POWER_THRESHOLD = 10;

    /**
     * 默认时段全天
     */
    public static final int TIMES_DEFAULT = 0;
}