mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 00:20:26 +00:00
26 lines
523 B
Java
26 lines
523 B
Java
package com.bwssystems.harmony;
|
|
|
|
public class ButtonPress {
|
|
private String device;
|
|
private String button;
|
|
public String getDevice() {
|
|
return device;
|
|
}
|
|
public void setDevice(String device) {
|
|
this.device = device;
|
|
}
|
|
public String getButton() {
|
|
return button;
|
|
}
|
|
public void setButton(String button) {
|
|
this.button = button;
|
|
}
|
|
public Boolean isValid() {
|
|
if (device != null && !device.isEmpty()){
|
|
if (button != null && !button.isEmpty())
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|