-
Notifications
You must be signed in to change notification settings - Fork 35
Expand file tree
/
Copy pathschedule.go
More file actions
21 lines (19 loc) · 733 Bytes
/
Copy pathschedule.go
File metadata and controls
21 lines (19 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package huego
// Schedule represents a bridge schedule https://developers.meethue.com/documentation/schedules-api-0
type Schedule struct {
Name string `json:"name"`
Description string `json:"description"`
Command *Command `json:"command"`
Time string `json:"time,omitempty"`
LocalTime string `json:"localtime"`
StartTime string `json:"starttime,omitempty"`
Status string `json:"status,omitempty"`
AutoDelete bool `json:"autodelete,omitempty"`
ID int `json:"-"`
}
// Command defines the request to be made when the schedule occurs
type Command struct {
Address string `json:"address"`
Method string `json:"method"`
Body interface{} `json:"body"`
}