提交 | 用户 | 时间
|
ce910c
|
1 |
package com.netsdk.lib.enumeration; |
H |
2 |
|
|
3 |
/** |
|
4 |
* @author 47081 |
|
5 |
* @version 1.0 |
|
6 |
* @description 二维码类型 |
|
7 |
* @date 2020/9/10 |
|
8 |
*/ |
|
9 |
public enum NET_EM_2DCODE_TYPE { |
|
10 |
/** |
|
11 |
* TYCO客户的P2P功能 |
|
12 |
*/ |
|
13 |
NET_EM_2DCODE_TYPE_OZVISION(0, "TYCO"), |
|
14 |
/** |
|
15 |
* 乐橙手机客户端 |
|
16 |
*/ |
|
17 |
NET_EM_2DCODE_TYPE_LCWEBSITE(1, "乐橙"), |
|
18 |
/** |
|
19 |
* easy4ip手机客户端 |
|
20 |
*/ |
|
21 |
NET_EM_2DCODE_TYPE_EASY4IP(2, "easy4ip"), |
|
22 |
/** |
|
23 |
* i/gDMSS手机客户端 |
|
24 |
*/ |
|
25 |
NET_EM_2DCODE_TYPE_DMSS(3, "i/gDMSS"), |
|
26 |
/** |
|
27 |
* 可视对讲客户端 |
|
28 |
*/ |
|
29 |
NET_EM_2DCODE_TYPE_VIDEOTALK(4, "可视对讲"), |
|
30 |
/** |
|
31 |
* app注册信息二维码 |
|
32 |
*/ |
|
33 |
NET_EM_2DCODE_TYPE_APPREGISTER(5, "app注册信息"), |
|
34 |
/** |
|
35 |
* H500平台向美的平台获取授权 |
|
36 |
*/ |
|
37 |
NET_EM_2DCODE_TYPE_DEVAUTH(6, "H500平台"); |
|
38 |
|
|
39 |
private NET_EM_2DCODE_TYPE(int type, String descrip) { |
|
40 |
this.type = type; |
|
41 |
this.descrip = descrip; |
|
42 |
} |
|
43 |
|
|
44 |
private int type; |
|
45 |
private String descrip; |
|
46 |
|
|
47 |
public int getType() { |
|
48 |
return type; |
|
49 |
} |
|
50 |
|
|
51 |
public void setType(int type) { |
|
52 |
this.type = type; |
|
53 |
} |
|
54 |
|
|
55 |
public String getDescription(int type) { |
|
56 |
for (NET_EM_2DCODE_TYPE code : NET_EM_2DCODE_TYPE.values()) { |
|
57 |
if (code.getType() == type) { |
|
58 |
return code.getDescrip(); |
|
59 |
} |
|
60 |
} |
|
61 |
return ""; |
|
62 |
} |
|
63 |
|
|
64 |
public static NET_EM_2DCODE_TYPE getCode(int type) { |
|
65 |
for (NET_EM_2DCODE_TYPE code : NET_EM_2DCODE_TYPE.values()) { |
|
66 |
if (code.getType() == type) { |
|
67 |
return code; |
|
68 |
} |
|
69 |
} |
|
70 |
return null; |
|
71 |
} |
|
72 |
|
|
73 |
public String getDescrip() { |
|
74 |
return descrip; |
|
75 |
} |
|
76 |
|
|
77 |
public void setDescrip(String descrip) { |
|
78 |
this.descrip = descrip; |
|
79 |
} |
|
80 |
} |