Adding Harmony Hub Control directly into the Bridge. First iteration

updates the ui harness. Also, updated settings in the configuration
page.
This commit is contained in:
Admin
2015-10-26 16:35:51 -05:00
parent c872f3543d
commit 295b1e1a30
15 changed files with 387 additions and 73 deletions

View File

@@ -6,6 +6,9 @@ public class BridgeSettings {
private String upnpresponseport;
private String upnpdevicedb;
private String veraaddress;
private String harmonyaddress;
private String harmonyuser;
private String harmonypwd;
private boolean upnpstrict;
private boolean traceupnp;
private boolean vtwocompatibility;
@@ -41,6 +44,24 @@ public class BridgeSettings {
this.veraaddress = veraAddress;
}
public String getHarmonyAddress() {
return harmonyaddress;
}
public void setHarmonyAddress(String harmonyaddress) {
this.harmonyaddress = harmonyaddress;
}
public String getHarmonyUser() {
return harmonyuser;
}
public void setHarmonyUser(String harmonyuser) {
this.harmonyuser = harmonyuser;
}
public String getHarmonyPwd() {
return harmonypwd;
}
public void setHarmonyPwd(String harmonypwd) {
this.harmonypwd = harmonypwd;
}
public boolean isUpnpStrict() {
return upnpstrict;
}
@@ -66,4 +87,9 @@ public class BridgeSettings {
return false;
return true;
}
public Boolean isValidHarmony() {
if(this.harmonyaddress.contains(Configuration.DEFAULT_HARMONY_ADDRESS))
return false;
return true;
}
}