go.charczuk.com@v0.0.0-20240327042549-bc490516bd1a/experiments/huectl/pkg/hue/schedule.go (about) 1 /* 2 3 Copyright (c) 2023 - Present. Will Charczuk. All rights reserved. 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file at the root of the repository. 5 6 */ 7 8 package hue 9 10 // Schedule represents a bridge schedule https://developers.meethue.com/documentation/schedules-api-0 11 type Schedule struct { 12 Name string `json:"name"` 13 Description string `json:"description"` 14 Command *ScheduleCommand `json:"command"` 15 Time string `json:"time,omitempty"` 16 LocalTime string `json:"localtime"` 17 StartTime string `json:"starttime,omitempty"` 18 Status string `json:"status,omitempty"` 19 AutoDelete bool `json:"autodelete,omitempty"` 20 ID int `json:"-"` 21 } 22 23 // ScheduleCommand defines the request to be made when the schedule occurs 24 type ScheduleCommand struct { 25 Address string `json:"address"` 26 Method string `json:"method"` 27 Body interface{} `json:"body"` 28 }