Updated group 0 handling to be per hue api requirements.

This commit is contained in:
Admin
2016-07-15 16:27:53 -05:00
parent 9d84e2a180
commit 8ccb768391
3 changed files with 51 additions and 4 deletions

View File

@@ -0,0 +1,33 @@
package com.bwssystems.HABridge.api.hue;
public class GroupResponse {
private DeviceState action;
private String[] lights;
private String name;
public DeviceState getAction() {
return action;
}
public void setAction(DeviceState action) {
this.action = action;
}
public String[] getLights() {
return lights;
}
public void setLights(String[] lights) {
this.lights = lights;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static GroupResponse createGroupResponse(String[] theLights) {
GroupResponse theResponse = new GroupResponse();
theResponse.setAction(DeviceState.createDeviceState());
theResponse.setName("Lightset 0");
theResponse.setLights(theLights);
return theResponse;
}
}