package com.jiuqi.mobile.nigo.comeclose.bean.base; public enum FeedInfoType { FeedBack(1),FadReport(2); private int code; private FeedInfoType(int code){ this.code = code; } public int getCode() { return code; } public static FeedInfoType getType(int code){ for(FeedInfoType type : FeedInfoType.values()){ if(type.getCode() == code){ return type; } } return null; } }