From 699afeb32d1936d059bcbe8a092a142c523819cc Mon Sep 17 00:00:00 2001 From: Collin Guarino Date: Tue, 16 Feb 2016 00:26:05 -0500 Subject: Added base implementations for Bridge.ModifySceneState and Bridge.ModifyScene functions. --- scene.go | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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, ) +// } -- cgit v1.2.3