|
|
|
@ -816,4 +816,102 @@ public class PtlEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 完成器音乐枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum FINISH_TAG_LIGHT_MUSIC_CMD {
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_00H("00", 1, "Jingle bells"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_01H("01", 2, "Carmen"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_02H("02", 3, "Happy Chinese new year"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_03H("03", 4, "Edelweiss"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_04H("04", 5, "Going home"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_05H("05", 6, "PAPALA"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_06H("06", 7, "Classical"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_07H("07", 8, "Listen to the rhythm of the falling rain"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_08H("08", 9, "Rock and roll"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_09H("09", 10, "Happy birthday"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0AH("0A", 11, "Do Re Me"),
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_0BH("0B", 12, "Strauss");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private Integer value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
FINISH_TAG_LIGHT_MUSIC_CMD(String code, Integer value, String description) {
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOf(int value) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == value) {
|
|
|
|
|
tmp = values()[i].code;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 标签显示器亮灯颜色枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum TAG_LIGHT_COLOR_CMD {
|
|
|
|
|
TAG_LIGHT_COLOR_RED("00", 1, "红"),
|
|
|
|
|
TAG_LIGHT_COLOR_GREEN("01", 2, "绿"),
|
|
|
|
|
TAG_LIGHT_COLOR_ORANGE("02", 3, "橙"),
|
|
|
|
|
TAG_LIGHT_COLOR_BLUE("03", 4, "蓝"),
|
|
|
|
|
TAG_LIGHT_COLOR_PINK_RED("04", 5, "粉红"),
|
|
|
|
|
TAG_LIGHT_COLOR_BLUE_GREEN("05", 6, "蓝绿");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private Integer value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
TAG_LIGHT_COLOR_CMD(String code, Integer value, String description) {
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOf(int value) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].value == value) {
|
|
|
|
|
tmp = values()[i].code;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|