提交 | 用户 | 时间
|
149dd0
|
1 |
package com.iailab.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
public enum EM_VSP_GAVI_PLATFORM_CODE { |
|
4 |
EM_VSP_GAVI_PLATFORM_CODE_UNKNOWN(-1,"未知"), |
|
5 |
EM_VSP_GAVI_PLATFORM_CODE_DEFAULT(0,"默认,标准视图库接入平台"), |
|
6 |
EM_VSP_GAVI_PLATFORM_CODE_DAHUA(1,"DH视图库"), |
|
7 |
EM_VSP_GAVI_PLATFORM_CODE_HKTDA_CLOUDSTORAGE(2,"TDA+云存储"), |
|
8 |
EM_VSP_GAVI_PLATFORM_CODE_UNIVIEW(3,"宇视"), |
|
9 |
EM_VSP_GAVI_PLATFORM_CODE_HKTEST(4,"接口测试"), |
|
10 |
EM_VSP_GAVI_PLATFORM_CODE_SHQPNETPOSE(5,"上海清浦东方网力"), |
|
11 |
EM_VSP_GAVI_PLATFORM_CODE_HKTDA(6,"TDA"), |
|
12 |
EM_VSP_GAVI_PLATFORM_CODE_HARZONE(7,"华尊"), |
|
13 |
EM_VSP_GAVI_PLATFORM_CODE_NETPOSE(8,"东方网力"), |
|
14 |
EM_VSP_GAVI_PLATFORM_CODE_TAOAN(9,"韬安"), |
|
15 |
EM_VSP_GAVI_PLATFORM_CODE_RESERVED(10,"预留"), |
|
16 |
EM_VSP_GAVI_PLATFORM_CODE_HKVIEWGATEWAY(11,"视图网关"), |
|
17 |
EM_VSP_GAVI_PLATFORM_CODE_KODAK(12,"柯达"); |
|
18 |
|
|
19 |
private int value; |
|
20 |
private String note; |
|
21 |
|
|
22 |
private EM_VSP_GAVI_PLATFORM_CODE(int givenValue, String note) { |
|
23 |
this.value = givenValue; |
|
24 |
this.note = note; |
|
25 |
} |
|
26 |
|
|
27 |
public String getNote() { |
|
28 |
return note; |
|
29 |
} |
|
30 |
|
|
31 |
public int getValue() { |
|
32 |
return value; |
|
33 |
} |
|
34 |
|
|
35 |
public static String getNoteByValue(int givenValue) { |
|
36 |
for (EM_SIGNLIGHT_TYPE enumType : EM_SIGNLIGHT_TYPE.values()) { |
|
37 |
if (givenValue == enumType.getValue()) { |
|
38 |
return enumType.getNote(); |
|
39 |
} |
|
40 |
} |
|
41 |
return null; |
|
42 |
} |
|
43 |
|
|
44 |
public static int getValueByNote(String givenNote) { |
|
45 |
for (EM_SIGNLIGHT_TYPE enumType : EM_SIGNLIGHT_TYPE.values()) { |
|
46 |
if (givenNote.equals(enumType.getNote())) { |
|
47 |
return enumType.getValue(); |
|
48 |
} |
|
49 |
} |
|
50 |
return -1; |
|
51 |
} |
|
52 |
} |