mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-20 08:51:16 +00:00
Add renumbering and HomeGenie Helper
This commit is contained in:
@@ -0,0 +1,99 @@
|
||||
|
||||
package com.bwssystems.HABridge.plugins.homegenie;
|
||||
|
||||
import java.util.List;
|
||||
import com.google.gson.annotations.Expose;
|
||||
import com.google.gson.annotations.SerializedName;
|
||||
|
||||
public class Module {
|
||||
|
||||
@SerializedName("Name")
|
||||
@Expose
|
||||
private String name;
|
||||
@SerializedName("Description")
|
||||
@Expose
|
||||
private String description;
|
||||
@SerializedName("DeviceType")
|
||||
@Expose
|
||||
private String deviceType;
|
||||
@SerializedName("Domain")
|
||||
@Expose
|
||||
private String domain;
|
||||
@SerializedName("Address")
|
||||
@Expose
|
||||
private String address;
|
||||
@SerializedName("Properties")
|
||||
@Expose
|
||||
private List<Property> properties = null;
|
||||
@SerializedName("RoutingNode")
|
||||
@Expose
|
||||
private String routingNode;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getDescription() {
|
||||
return description;
|
||||
}
|
||||
|
||||
public void setDescription(String description) {
|
||||
this.description = description;
|
||||
}
|
||||
|
||||
public String getDeviceType() {
|
||||
return deviceType;
|
||||
}
|
||||
|
||||
public void setDeviceType(String deviceType) {
|
||||
this.deviceType = deviceType;
|
||||
}
|
||||
|
||||
public String getDomain() {
|
||||
return domain;
|
||||
}
|
||||
|
||||
public void setDomain(String domain) {
|
||||
this.domain = domain;
|
||||
}
|
||||
|
||||
public String getAddress() {
|
||||
return address;
|
||||
}
|
||||
|
||||
public void setAddress(String address) {
|
||||
this.address = address;
|
||||
}
|
||||
|
||||
public List<Property> getProperties() {
|
||||
return properties;
|
||||
}
|
||||
|
||||
public void setProperties(List<Property> properties) {
|
||||
this.properties = properties;
|
||||
}
|
||||
|
||||
public String getRoutingNode() {
|
||||
return routingNode;
|
||||
}
|
||||
|
||||
public void setRoutingNode(String routingNode) {
|
||||
this.routingNode = routingNode;
|
||||
}
|
||||
|
||||
public boolean isSwitch() {
|
||||
return isPropertyType("Switch");
|
||||
}
|
||||
|
||||
public boolean isDimmer() {
|
||||
return isPropertyType("Dimmer");
|
||||
}
|
||||
|
||||
private boolean isPropertyType(String theType) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user