package com.jiuqi.mobile.nigo.comeclose.bean.cross;
public enum LBSType {
web(1),//网站定位
plan(2),//计划定为
client(3),//客户端定位
report(4);//连续上报
private int code;
private LBSType(int code){
this.code = code;
}
public int getCode() {
return code;
}
public static LBSType getLbsType(int code){
for(LBSType lbs : LBSType.values()){
if(lbs.getCode() == code){
return lbs;
}
}
return null;
}
public static String getName(LBSType l){
if(l==LBSType.web){
return "网站定位";
}else if(l==LBSType.plan){
return "计划定位";
}else if(l==LBSType.client){
return "客户端定位";
}else{
return "客户端连续上报";
}
}
}