This commit is contained in:
2020-09-14 16:43:36 +08:00
parent 56485ff0dd
commit ad03559dac
12 changed files with 203 additions and 62 deletions

View File

@@ -36,11 +36,15 @@ public class DBUser {
this.phone = d.getString("extn");
this.status = d.getString("sip_state");
String weight = d.getString("weight");
if(weight != null) {
if (weight != null) {
this.isManager = weight.equals("1");
} else {
this.isManager = false;
}
String ifMute = d.getString("ifMute");
this.isMute = ifMute != null ? ifMute.equals("true") : false;
String ifVMute = d.getString("ifVMute");
this.isVMute = ifVMute != null ? ifVMute.equals("true") : false;
}
public boolean isBusy() {