Meeting SDK for Android API Reference
Loading...
Searching...
No Matches
RoomSystemDevice.java
Go to the documentation of this file.
1package us.zoom.sdk;
2
3import us.zoom.libtools.utils.ZmStringUtils;
4
5
9
10public class RoomSystemDevice {
11
13 public final static int ROOMDEVICE_H323 = 1;
14
16 public final static int ROOMDEVICE_SIP = 2;
17
19 public final static int ROOMDEVICE_BOTH = 3;
20
22 public final static int ROOMENCRYPT_NO = 0;
23
25 public final static int ROOMENCRYPT_YES = 1;
26
28 public final static int ROOMENCRYPT_AUTO = 2;
29
30 private String mName;
31 private String mIp;
32 private String mE164num;
35
37
38 }
39
48 public RoomSystemDevice(String mName, String mIp, String mE164num,
49 int mDeviceType, int mEncrypt) {
50 super();
51 this.mName = mName;
52 this.mIp = mIp;
53 this.mE164num = mE164num;
54 this.mDeviceType = mDeviceType;
55 this.mEncrypt = mEncrypt;
56 }
57
63 public String getName() {
64 return mName;
65 }
66
71 public void setName(String name) {
72 this.mName = name;
73 }
74
80 public String getIp() {
81 return mIp;
82 }
83
89 public void setIp(String ip) {
90 this.mIp = ip;
91 }
92
97 public String getE164num() {
98 return mE164num;
99 }
100
105 public void setE164num(String e164num) {
106 this.mE164num = e164num;
107 }
108
113 public int getDeviceType() {
114 return mDeviceType;
115 }
116
121 public void setDeviceType(int deviceType) {
122 this.mDeviceType = deviceType;
123 }
124
130 public int getEncrypt() {
131 return mEncrypt;
132 }
133
139 public void setEncrypt(int encrypt) {
140 this.mEncrypt = encrypt;
141 }
142
148 public String getAddress() {
149 if (!ZmStringUtils.isEmptyOrNull(mIp)) {
150 return mIp;
151 }
152
153 if (!ZmStringUtils.isEmptyOrNull(mE164num)) {
154 return mE164num;
155 }
156
157 return "";
158 }
159
165 public String getDisplayName() {
166 if (!ZmStringUtils.isEmptyOrNull(mName)) {
167 return mName;
168 }
169
170 return this.getAddress();
171 }
172
173}
int getDeviceType()
Get device type.
int getEncrypt()
Get encryption type.
void setDeviceType(int deviceType)
Set device type.
void setEncrypt(int encrypt)
Set encryption type.
RoomSystemDevice(String mName, String mIp, String mE164num, int mDeviceType, int mEncrypt)