-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #141 from bwssytems/hal-integration
Hal integration and other enhancement and fixes
- Loading branch information
Showing
41 changed files
with
3,795 additions
and
1,546 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/main/java/com/bwssystems/HABridge/api/hue/DeviceTypes.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package com.bwssystems.HABridge.api.hue; | ||
|
||
public class DeviceTypes { | ||
private Boolean bridge; | ||
private String[] lights; | ||
public Boolean getBridge() { | ||
return bridge; | ||
} | ||
public void setBridge(Boolean bridge) { | ||
this.bridge = bridge; | ||
} | ||
public String[] getLights() { | ||
return lights; | ||
} | ||
public void setLights(String[] lights) { | ||
this.lights = lights; | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
src/main/java/com/bwssystems/HABridge/api/hue/GroupResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; | ||
} | ||
} |
Oops, something went wrong.