go-hue-interface/state.go
2019-02-10 20:43:22 +01:00

20 lines
417 B
Go

package hue
// -------------------------------------------------------------
// ~ Interfaces & Types
// -------------------------------------------------------------
// BridgeState provides all data for a bridge
type BridgeState struct {
Lights map[string]*Light `json:"lights"`
}
func (bs *BridgeState) String() string {
str := ""
for k, l := range bs.Lights {
str += k + ": " + l.String()
}
return str
}