mirror of
https://github.com/bwssytems/ha-bridge.git
synced 2025-12-19 00:20:26 +00:00
105 lines
2.1 KiB
Java
105 lines
2.1 KiB
Java
|
|
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 isDeviceType("Switch");
|
|
}
|
|
|
|
public boolean isDimmer() {
|
|
return isDeviceType("Dimmer");
|
|
}
|
|
|
|
private boolean isDeviceType(String theType) {
|
|
if(deviceType.equals(theType)) {
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
}
|