提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* 逻辑通道号 |
|
5 |
* |
|
6 |
* @author : 47040 |
|
7 |
* @since : Created in 2020/9/18 9:44 |
|
8 |
*/ |
|
9 |
public enum NET_EM_LOGIC_CHANNEL { |
|
10 |
|
|
11 |
/** |
|
12 |
* 无效 |
|
13 |
*/ |
|
14 |
NET_EM_LOGIC_CHANNEL_INVALID(-1, "无效"), |
|
15 |
/** |
|
16 |
* 视频组合通道号 |
|
17 |
*/ |
|
18 |
NET_EM_LOGIC_CHANNEL_COMPOSITE(0, "视频组合通道号"), |
|
19 |
/** |
|
20 |
* PPT显示逻辑通道号 |
|
21 |
*/ |
|
22 |
NET_EM_LOGIC_CHANNEL_PPT(1, "PPT显示逻辑通道号"), |
|
23 |
/** |
|
24 |
* 板书特写逻辑通道号 |
|
25 |
*/ |
|
26 |
NET_EM_LOGIC_CHANNEL_BLACKBOARD(2, "板书特写逻辑通道号"), |
|
27 |
/** |
|
28 |
* 学生特写逻辑通道号 |
|
29 |
*/ |
|
30 |
NET_EM_LOGIC_CHANNEL_STUDENTFEATURE(3, "学生特写逻辑通道号"), |
|
31 |
/** |
|
32 |
* 学生全景逻辑通道号 |
|
33 |
*/ |
|
34 |
NET_EM_LOGIC_CHANNEL_STUDENTFULLVIEW(4, "学生全景逻辑通道号"), |
|
35 |
/** |
|
36 |
* 教师特写逻辑通道号 |
|
37 |
*/ |
|
38 |
NET_EM_LOGIC_CHANNEL_TEACHERFEATURE(5, "教师特写逻辑通道号"), |
|
39 |
/** |
|
40 |
* 教师全景逻辑通道号 |
|
41 |
*/ |
|
42 |
NET_EM_LOGIC_CHANNEL_TEACHERFULLVIEW(6, "教师全景逻辑通道号"), |
|
43 |
/** |
|
44 |
* 教师检测逻辑通道号 |
|
45 |
*/ |
|
46 |
NET_EM_LOGIC_CHANNEL_TEACHERDETECT(7, "教师检测逻辑通道号"), |
|
47 |
/** |
|
48 |
* 板书检测逻辑通道号 |
|
49 |
*/ |
|
50 |
NET_EM_LOGIC_CHANNEL_BLACKBOARDDETECT(8, "板书检测逻辑通道号"), |
|
51 |
/** |
|
52 |
* 板书特写1逻辑通道号 |
|
53 |
*/ |
|
54 |
NET_EM_LOGIC_CHANNEL_BLACKBOARD1(9, "板书特写1逻辑通道号"), |
|
55 |
/** |
|
56 |
* 板书检测1逻辑通道号 |
|
57 |
*/ |
|
58 |
NET_EM_LOGIC_CHANNEL_BLACKBOARDDETECT1(10, "板书检测1逻辑通道号"), |
|
59 |
/** |
|
60 |
* 展台显示逻辑通道号 |
|
61 |
*/ |
|
62 |
NET_EM_LOGIC_CHANNEL_VISUALPRESENTER(11, "展台显示逻辑通道号"), |
|
63 |
/** |
|
64 |
* 视频监控逻辑通道号 |
|
65 |
*/ |
|
66 |
NET_EM_LOGIC_CHANNEL_VIDEOSURVEILLANCE(12, "视频监控逻辑通道号"), |
|
67 |
/** |
|
68 |
* 互动会议逻辑通道号 |
|
69 |
*/ |
|
70 |
NET_EM_LOGIC_CHANNEL_VIDEOCONFERENCE(13, "互动会议逻辑通道号"), |
|
71 |
/** |
|
72 |
* 互动演示逻辑通道 |
|
73 |
*/ |
|
74 |
NET_EM_LOGIC_CHANNEL_VIDEO_PRESENTATION(14, "互动演示逻辑通道"); |
|
75 |
|
|
76 |
private int value; |
|
77 |
private String note; |
|
78 |
|
|
79 |
NET_EM_LOGIC_CHANNEL(int givenValue, String note) { |
|
80 |
this.value = givenValue; |
|
81 |
this.note = note; |
|
82 |
} |
|
83 |
|
|
84 |
public String getNote() { |
|
85 |
return note; |
|
86 |
} |
|
87 |
|
|
88 |
public int getValue() { |
|
89 |
return value; |
|
90 |
} |
|
91 |
|
|
92 |
public static String getNoteByValue(int givenValue) { |
|
93 |
for (NET_EM_LOGIC_CHANNEL enumType : NET_EM_LOGIC_CHANNEL.values()) { |
|
94 |
if (givenValue == enumType.getValue()) { |
|
95 |
return enumType.getNote(); |
|
96 |
} |
|
97 |
} |
|
98 |
return null; |
|
99 |
} |
|
100 |
|
|
101 |
public static int getValueByNote(String givenNote) { |
|
102 |
for (NET_EM_LOGIC_CHANNEL enumType : NET_EM_LOGIC_CHANNEL.values()) { |
|
103 |
if (givenNote.equals(enumType.getNote())) { |
|
104 |
return enumType.getValue(); |
|
105 |
} |
|
106 |
} |
|
107 |
return -1; |
|
108 |
} |
|
109 |
} |