Added reinitialize and stop commands in prep for building the config

file handling.
This commit is contained in:
Admin
2016-02-09 16:41:05 -06:00
parent cca9a6be78
commit 2ff73e5672
7 changed files with 197 additions and 102 deletions

View File

@@ -18,6 +18,9 @@ public class BridgeSettings {
private String nestuser;
private String nestpwd;
private boolean nestconfigured;
private String configfile;
private boolean restart;
private boolean stop;
public String getUpnpConfigAddress() {
return upnpconfigaddress;
@@ -109,6 +112,24 @@ public class BridgeSettings {
public void setButtonsleep(Integer buttonsleep) {
this.buttonsleep = buttonsleep;
}
public boolean isRestart() {
return restart;
}
public void setRestart(boolean restart) {
this.restart = restart;
}
public boolean isStop() {
return stop;
}
public void setStop(boolean stop) {
this.stop = stop;
}
public String getConfigfile() {
return configfile;
}
public void setConfigfile(String configfile) {
this.configfile = configfile;
}
public Boolean isValidVera() {
List<NamedIP> devicesList = this.veraaddress.getDevices();
if(devicesList.get(0).getIp().contains(Configuration.DEFAULT_ADDRESS))