package com.njcn.energy.pojo.constant;


/**
 * @author 徐扬
 */
public interface ModelState {

    /**
     * 注册成功状态
     */
    Integer SUCCESS = 1;

    Integer FAIL = 0;

    /**
     * DID操作
     */
    Integer REGISTER = 1;

    Integer UNREGISTER = 0;

    Integer ACCESS = 2;

    /**
     * 报文处理优先级
     */
    Integer PRIORITY_FIRST = 1;

    Integer PRIORITY_SECOND = 2;

    Integer PRIORITY_THIRD = 3;

    Integer PRIORITY_FORTH = 4;

    Integer PRIORITY_FIFTH = 5;

    /**
     * 报文过期的相对时间 -1表示永不过期
     */
    Integer EXPIRE = -1;

    /**
     * 设备类型（0：联网设备；1：逻辑设备）
     */
    Integer NET_DEV = 0;
    Integer LOGIC_DEV = 1;

    /**
     * 操作类型
     */
    String WRITE = "write";
    String READ = "read";

    Integer online = 1;
    Integer offline = 0;

}
