提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* IPC类型 |
|
5 |
* |
|
6 |
* @author : 47040 |
|
7 |
* @since : Created in 2020/12/23 9:46 |
|
8 |
*/ |
|
9 |
public enum EM_IPC_TYPE { |
|
10 |
|
|
11 |
NET_IPC_PRIVATE(0, "私有"), |
|
12 |
NET_IPC_AEBELL(1, "AEBELL"), |
|
13 |
NET_IPC_PANASONIC(2, "PANASONIC"), |
|
14 |
NET_IPC_SONY(3, "SONY"), |
|
15 |
NET_IPC_DYNACOLOR(4, "Dynacolor"), |
|
16 |
NET_IPC_TCWS(5, "TCWS"), |
|
17 |
NET_IPC_SAMSUNG(6, "SAMSUNG"), |
|
18 |
NET_IPC_YOKO(7, "YOKO"), |
|
19 |
NET_IPC_AXIS(8, "AXIS"), |
|
20 |
NET_IPC_SANYO(9, "SANYO"), |
|
21 |
NET_IPC_BOSH(10, "Bosch"), |
|
22 |
NET_IPC_PECLO(11, "Peclo"), |
|
23 |
NET_IPC_PROVIDEO(12, "Provideo"), |
|
24 |
NET_IPC_ACTI(13, "ACTi"), |
|
25 |
NET_IPC_VIVOTEK(14, "Vivotek"), |
|
26 |
NET_IPC_ARECONT(15, "Arecont"), |
|
27 |
NET_IPC_PRIVATEEH(16, "PrivateEH"), |
|
28 |
NET_IPC_IMATEK(17, "IMatek"), |
|
29 |
NET_IPC_SHANY(18, "Shany"), |
|
30 |
NET_IPC_VIDEOTREC(19, "VIDEOTREC"), |
|
31 |
NET_IPC_URA(20, "Ura"), |
|
32 |
NET_IPC_BITICINO(21, "Bticino"), |
|
33 |
NET_IPC_ONVIF(22, "Onvif协议类型"), |
|
34 |
NET_IPC_SHEPHERD(23, "SHEPHERD"), |
|
35 |
NET_IPC_YAAN(24, "YAAN"), |
|
36 |
NET_IPC_AIRPOINT(25, "Airpop"), |
|
37 |
NET_IPC_TYCO(26, "TYCO"), |
|
38 |
NET_IPC_XUNMEI(27, "XUNMEI"), |
|
39 |
NET_IPC_HIKVISION(28, ""), |
|
40 |
NET_IPC_LG(29, "LG"), |
|
41 |
NET_IPC_AOQIMAN(30, "AOQIMAN"), |
|
42 |
NET_IPC_BAOKANG(31, "BAOKANG"), |
|
43 |
NET_IPC_WATCHNET(32, "Watchnet"), |
|
44 |
NET_IPC_XVISION(33, "Xvision"), |
|
45 |
NET_IPC_FUSITSU(34, "FUSITSU"), |
|
46 |
NET_IPC_CANON(35, "Canon"), |
|
47 |
NET_IPC_GE(36, "GE"), |
|
48 |
NET_IPC_Basler(37, "Basler"), |
|
49 |
NET_IPC_Patro(38, "Patro"), |
|
50 |
NET_IPC_CPKNC(39, "CPPLUS K系列"), |
|
51 |
NET_IPC_CPRNC(40, "CPPLUS R系列"), |
|
52 |
NET_IPC_CPUNC(41, "CPPLUS U系列"), |
|
53 |
NET_IPC_CPPLUS(42, "CPPLUS IPC"), |
|
54 |
NET_IPC_XunmeiS(43, "XunmeiS,实际协议为Onvif"), |
|
55 |
NET_IPC_GDDW(44, "GDDW"), |
|
56 |
NET_IPC_PSIA(45, "PSIA"), |
|
57 |
NET_IPC_GB2818(46, "GB2818"), |
|
58 |
NET_IPC_GDYX(47, "GDYX"), |
|
59 |
NET_IPC_OTHER(48, "由用户自定义"), |
|
60 |
NET_IPC_CPUNR(49, "CPPLUS NVR"), |
|
61 |
NET_IPC_CPUAR(50, "CPPLUS DVR"), |
|
62 |
NET_IPC_AIRLIVE(51, "Airlive"), |
|
63 |
NET_IPC_NPE(52, "NPE"), |
|
64 |
NET_IPC_AXVIEW(53, "AXVIEW"), |
|
65 |
NET_IPC_DFWL(54, "DFWL"), |
|
66 |
NET_IPC_HYUNDAI(56, "HYUNDAI DVR"), |
|
67 |
NET_IPC_APHD(57, "APHD"), |
|
68 |
NET_IPC_WELLTRANS(58, "WELLTRANS"), |
|
69 |
NET_IPC_CDJF(59, "CDJF"), |
|
70 |
NET_IPC_JVC(60, "JVC"), |
|
71 |
NET_IPC_INFINOVA(61, "INFINOVA"), |
|
72 |
NET_IPC_ADT(62, "ADT"), |
|
73 |
NET_IPC_SIVIDI(63, "SIVIDI"), |
|
74 |
NET_IPC_CPUNP(64, "CPPLUS 球机"), |
|
75 |
NET_IPC_HX(65, "HX"), |
|
76 |
NET_IPC_TJGS(66, "TJGS"), |
|
77 |
NET_IPC_MULTICAST(79, "组播"), |
|
78 |
NET_IPC_RVI(84, "RVi"), |
|
79 |
NET_IPC_HONEYWELL(95, "Honeywell"); |
|
80 |
|
|
81 |
private final int value; |
|
82 |
private final String note; |
|
83 |
|
|
84 |
private EM_IPC_TYPE(int givenValue, String note) { |
|
85 |
this.value = givenValue; |
|
86 |
this.note = note; |
|
87 |
} |
|
88 |
|
|
89 |
public String getNote() { |
|
90 |
return note; |
|
91 |
} |
|
92 |
|
|
93 |
public int getValue() { |
|
94 |
return value; |
|
95 |
} |
|
96 |
|
|
97 |
public static String getNoteByValue(int givenValue) { |
|
98 |
for (EM_IPC_TYPE enumType : EM_IPC_TYPE.values()) { |
|
99 |
if (givenValue == enumType.getValue()) { |
|
100 |
return enumType.getNote(); |
|
101 |
} |
|
102 |
} |
|
103 |
return null; |
|
104 |
} |
|
105 |
|
|
106 |
public static int getValueByNote(String givenNote) { |
|
107 |
for (EM_IPC_TYPE enumType : EM_IPC_TYPE.values()) { |
|
108 |
if (givenNote.equals(enumType.getNote())) { |
|
109 |
return enumType.getValue(); |
|
110 |
} |
|
111 |
} |
|
112 |
return -1; |
|
113 |
} |
|
114 |
|
|
115 |
public static EM_IPC_TYPE getEnum(int value) { |
|
116 |
for (EM_IPC_TYPE e : EM_IPC_TYPE.values()) { |
|
117 |
if (e.getValue() == value) |
|
118 |
return e; |
|
119 |
} |
|
120 |
return EM_IPC_TYPE.NET_IPC_PRIVATE; |
|
121 |
} |
|
122 |
} |