package com.zy.asrs.enums;
|
|
public enum RcsRetMethodEnum {
|
|
TASK_START("start", "任务开始"),
|
TASK_END("end", "任务完成"),
|
TASK_OUT_BIN("outbin", "走出储位"),
|
|
APPLY_IN_STATION("applyInStation", "入站请求"),
|
APPLY_OFF_STATION("applyOutStation", "离站请求"),
|
ARRIVE_ON_STATION("arriveOnStation", "到站完成"),
|
ARRIVE_OFF_STATION("arriveOffStation", "离站完成");
|
|
private String code;
|
private String message;
|
|
RcsRetMethodEnum(String code, String message) {
|
this.code = code;
|
this.message = message;
|
}
|
|
public static RcsRetMethodEnum getEnum(String code) {
|
for (RcsRetMethodEnum method : RcsRetMethodEnum.values()) {
|
if (method.getCode().equals(code)) {
|
return method;
|
}
|
}
|
return null;
|
}
|
|
public String getCode() {
|
return code;
|
}
|
|
public String getMessage() {
|
return message;
|
}
|
}
|