提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 251823 |
|
5 |
* @description 逻辑屏显示内容 |
|
6 |
* @date 2022/05/10 10:39:28 |
|
7 |
*/ |
|
8 |
public enum NET_EM_SCREEN_SHOW_CONTENTS { |
|
9 |
/** |
|
10 |
* 未知 |
|
11 |
*/ |
|
12 |
EM_TRAFFIC_LATTICE_SCREEN_UNKNOWN(0, "未知"), |
|
13 |
/** |
|
14 |
* 车牌 |
|
15 |
*/ |
|
16 |
EM_TRAFFIC_LATTICE_SCREEN_PLATENUMBE(1, "车牌"), |
|
17 |
/** |
|
18 |
* 系统时间 |
|
19 |
*/ |
|
20 |
EM_TRAFFIC_LATTICE_SCREEN_SYSTIME(2, "系统时间"), |
|
21 |
/** |
|
22 |
* 停车时长 |
|
23 |
*/ |
|
24 |
EM_TRAFFIC_LATTICE_SCREEN_PARKTIME(3, "停车时长"), |
|
25 |
/** |
|
26 |
* 车主姓名 |
|
27 |
*/ |
|
28 |
EM_TRAFFIC_LATTICE_SCREEN_MASTEROFCAR(4, "车主姓名"), |
|
29 |
/** |
|
30 |
* 用户类型 |
|
31 |
*/ |
|
32 |
EM_TRAFFIC_LATTICE_SCREEN_USERTYPE(5, "用户类型"), |
|
33 |
/** |
|
34 |
* 到期天数 |
|
35 |
*/ |
|
36 |
EM_TRAFFIC_LATTICE_SCREEN_REMAINDAY(6, "到期天数"), |
|
37 |
/** |
|
38 |
* 停车费 |
|
39 |
*/ |
|
40 |
EM_TRAFFIC_LATTICE_SCREEN_PARKCHARGE(7, "停车费"), |
|
41 |
/** |
|
42 |
* 余位数 |
|
43 |
*/ |
|
44 |
EM_TRAFFIC_LATTICE_SCREEN_REMAINSPACE(8, "余位数"), |
|
45 |
/** |
|
46 |
* 系统日期 |
|
47 |
*/ |
|
48 |
EM_TRAFFIC_LATTICE_SCREEN_SYSDATE(9, "系统日期"), |
|
49 |
/** |
|
50 |
* 车辆通过指示灯(红圆绿圆组合指示灯) |
|
51 |
*/ |
|
52 |
EM_TRAFFIC_LATTICE_SCREEN_PASSICONCIRCLE(10, "车辆通过指示灯(红圆绿圆组合指示灯)"), |
|
53 |
/** |
|
54 |
* 车辆通过指示灯(红叉绿箭组合指示灯) |
|
55 |
*/ |
|
56 |
EM_TRAFFIC_LATTICE_SCREEN_PASSICONARROW(11, "车辆通过指示灯(红叉绿箭组合指示灯)"), |
|
57 |
/** |
|
58 |
* 入场时间 |
|
59 |
*/ |
|
60 |
EM_TRAFFIC_LATTICE_SCREEN_INTIME(12, "入场时间"), |
|
61 |
/** |
|
62 |
* 出场时间 |
|
63 |
*/ |
|
64 |
EM_TRAFFIC_LATTICE_SCREEN_OUTTIME(13, "出场时间"), |
|
65 |
/** |
|
66 |
* 备注信息 |
|
67 |
*/ |
|
68 |
EM_TRAFFIC_LATTICE_SCREEN_REMARKS(14, "备注信息"), |
|
69 |
/** |
|
70 |
* 资源文件(视频或图片) |
|
71 |
*/ |
|
72 |
EM_TRAFFIC_LATTICE_SCREEN_RESOURCE(15, "资源文件(视频或图片)"), |
|
73 |
/** |
|
74 |
* 自定义信息 |
|
75 |
*/ |
|
76 |
EM_TRAFFIC_LATTICE_SCREEN_CUSTOM(16, "自定义信息"); |
|
77 |
|
|
78 |
private int value; |
|
79 |
|
|
80 |
private String note; |
|
81 |
|
|
82 |
public String getNote() { |
|
83 |
return note; |
|
84 |
} |
|
85 |
|
|
86 |
public int getValue() { |
|
87 |
return value; |
|
88 |
} |
|
89 |
|
|
90 |
NET_EM_SCREEN_SHOW_CONTENTS(int givenValue, String note) { |
|
91 |
this.value = givenValue; |
|
92 |
this.note = note; |
|
93 |
} |
|
94 |
|
|
95 |
public static String getNoteByValue(int givenValue) { |
|
96 |
for (NET_EM_SCREEN_SHOW_CONTENTS enumType : NET_EM_SCREEN_SHOW_CONTENTS.values()) { |
|
97 |
if (givenValue == enumType.getValue()) { |
|
98 |
return enumType.getNote(); |
|
99 |
} |
|
100 |
} |
|
101 |
return null; |
|
102 |
} |
|
103 |
|
|
104 |
public static int getValueByNote(String givenNote) { |
|
105 |
for (NET_EM_SCREEN_SHOW_CONTENTS enumType : NET_EM_SCREEN_SHOW_CONTENTS.values()) { |
|
106 |
if (givenNote.equals(enumType.getNote())) { |
|
107 |
return enumType.getValue(); |
|
108 |
} |
|
109 |
} |
|
110 |
return -1; |
|
111 |
} |
|
112 |
} |