public enum GearType {
@SerializedName("2")
MANUAL("手动"),
@SerializedName("1")
AUTOMATIC("自动");
public final String desc;
GearType(String desc) {
this.desc = desc;
}
}
public enum AuditFlag {
@SerializedName("0")
WAIT("未轮到审批") {
@Override
public String toString() {
return "0";
}
},
@SerializedName("1")
ING("轮到审批") {
@Override
public String toString() {
return "1";
}
};
public final String desc;
AuditFlag(String desc) {
this.desc = desc;
}
}
public enum LicenseType {
@SerializedName("1")
C1("C1", 1) {
@Override
public String toString() {
return "1";
}
};
private String typeName;
private int position;
LicenseType(String typeName, int position) {
this.typeName = typeName;
this.position = position;
}
}
public enum ExamState {
NONE("暂未约考", R.color.gray_99),
@SerializedName("NOCONFIRM")
NOCONFIRM("约考", R.color.blue),
@SerializedName(value="Passed",alternate = {"PASSED"})
PASSED("通过", R.color.green),
@SerializedName(value="Repassed",alternate = {"REPASSED"})
RE_PASSED("补考通过", R.color.green),
@SerializedName("FAIL")
FAIL("补考", R.color.red);
private String text;
private int colorRes;
ExamState(String text, int colorRes) {
this.text = text;
this.colorRes = colorRes;
}
public String getText() {
return text;
}
public int getColorRes() {
return colorRes;
}
}