com.dahuatech.icc.cirs.enums.DeviceStatusEnums Maven / Gradle / Ivy
package com.dahuatech.icc.cirs.enums;
public enum DeviceStatusEnums {
OFFLINE("0","离线"),
OPENONLINE("1","在线开屏"),
CLOSEONLIE("2","在线关屏"),
UPGRADE("3","升级中"),
;
public String code;
public String msg;
DeviceStatusEnums(String code,String msg){
this.code = code;
this.msg = msg;
}
public static boolean isRight(String type){
if(type == null){
return false;
}
for(DirTypeEnums item : DirTypeEnums.values()){
if(type.equals(item.code)){
return true;
}
}
return false;
}
}