aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCollin Guarino <collin.guarino@gmail.com>2016-02-16 00:26:05 -0500
committerCollin Guarino <collin.guarino@gmail.com>2016-02-16 00:26:05 -0500
commit699afeb32d1936d059bcbe8a092a142c523819cc (patch)
tree4af1b3dfc409a1a26b82185b264a378cc0939a5e
parent6c98dbd41689b016268c088d9314c9250bd36b7e (diff)
Added base implementations for Bridge.ModifySceneState and Bridge.ModifyScene functions.
-rw-r--r--scene.go17
1 files changed, 16 insertions, 1 deletions
diff --git a/scene.go b/scene.go
index 48ad74e..5cd7da8 100644
--- a/scene.go
+++ b/scene.go
@@ -71,7 +71,7 @@ func (bridge *Bridge) GetScene(id string) (Scene, error) {
return scene, nil
}
-// Bridge.CreateScene will post a new scene configuration to the bridge.
+// Bridge.CreateScene posts a new scene configuration to the bridge.
func (bridge *Bridge) CreateScene(scene Scene) error {
uri := fmt.Sprintf("/api/%s/scenes/", bridge.Username)
_, _, err := bridge.Post(uri, scene)
@@ -80,3 +80,18 @@ func (bridge *Bridge) CreateScene(scene Scene) error {
}
return nil
}
+
+// Bridge.ModifySceneState amends light states for lights
+// included in a scene list. See `Bridge.ModifyScene` for
+// changing the lights included in the scene list.
+// func (bridge *Bridge) ModifySceneState() error {
+//
+// }
+
+// Bridge.ModifyScene amends the lights included for a given scene or
+// it can be used to change the scene name. To amend light states for
+// lights included in a scene list see `Bridge.ModifySceneState`.
+// func (bridge *Bridge) ModifyScene() error {
+// uri := fmt.Sprintf("/api/%s/scenes/%s/lightstates/%s",
+// bridge.Username, oldScene.ID, )
+// }