move remaining structs

This commit is contained in:
Ryan Cavicchioni 2020-02-29 16:01:46 -06:00
parent cc6645fb48
commit e9a4d586b4
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D
2 changed files with 10 additions and 11 deletions

View File

@ -7,6 +7,12 @@ import (
"fmt"
)
const (
OK Status = "ok"
TimedOut Status = "timed_out"
Offline Status = "offline"
)
type (
Status string
@ -34,6 +40,10 @@ type (
}
)
func (s Status) Success() bool {
return s == OK
}
func (c *Client) SetState(selector string, state State) ([]Result, error) {
j, err := json.Marshal(state)
if err != nil {

View File

@ -1,11 +0,0 @@
package lifx
const (
OK Status = "ok"
TimedOut Status = "timed_out"
Offline Status = "offline"
)
func (s Status) Success() bool {
return s == OK
}