mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-18 00:10:20 +00:00
54 lines
1.1 KiB
Java
54 lines
1.1 KiB
Java
package com.bwssystems.HABridge.plugins.harmony;
|
|
|
|
public class ButtonPress {
|
|
private String device;
|
|
private String button;
|
|
private Integer delay;
|
|
private Integer count;
|
|
private String hub;
|
|
private Integer pressTime;
|
|
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 Integer getDelay() {
|
|
return delay;
|
|
}
|
|
public void setDelay(Integer delay) {
|
|
this.delay = delay;
|
|
}
|
|
public Integer getCount() {
|
|
return count;
|
|
}
|
|
public void setCount(Integer count) {
|
|
this.count = count;
|
|
}
|
|
public Boolean isValid() {
|
|
if (device != null && !device.isEmpty()){
|
|
if (button != null && !button.isEmpty())
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
public String getHub() {
|
|
return hub;
|
|
}
|
|
public void setHub(String hub) {
|
|
this.hub = hub;
|
|
}
|
|
public Integer getPressTime() {
|
|
return pressTime;
|
|
}
|
|
public void setPressTime(Integer pressTime) {
|
|
this.pressTime = pressTime;
|
|
}
|
|
}
|