github.com/amimof/huego@v1.2.1/schedule.go (about) 1 package huego 2 3 // Schedule represents a bridge schedule https://developers.meethue.com/documentation/schedules-api-0 4 type Schedule struct { 5 Name string `json:"name"` 6 Description string `json:"description"` 7 Command *Command `json:"command"` 8 Time string `json:"time,omitempty"` 9 LocalTime string `json:"localtime"` 10 StartTime string `json:"starttime,omitempty"` 11 Status string `json:"status,omitempty"` 12 AutoDelete bool `json:"autodelete,omitempty"` 13 ID int `json:"-"` 14 } 15 16 // Command defines the request to be made when the schedule occurs 17 type Command struct { 18 Address string `json:"address"` 19 Method string `json:"method"` 20 Body interface{} `json:"body"` 21 }