diff options
author | Collin Guarino <collin.guarino@gmail.com> | 2016-02-14 18:57:56 -0500 |
---|---|---|
committer | Collin Guarino <collin.guarino@gmail.com> | 2016-02-14 18:57:56 -0500 |
commit | ee75d43f6f19a295531323d22d035bc9fcabc289 (patch) | |
tree | a4d3010ca764c57f2756f4a625a7888c4cc37a67 | |
parent | 476acf944f7f859a5ad2e7003f82d3f96fbff1a5 (diff) |
Added documentation for Bridge.GetSchedules and Schedule struct.
-rw-r--r-- | schedule.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/schedule.go b/schedule.go index 43c7056..c7c2690 100644 --- a/schedule.go +++ b/schedule.go @@ -12,6 +12,7 @@ import ( "encoding/json" ) +// Schedule struct defines attributes of Alarms and Timers type Schedule struct { Name string `json:"name"` Description string `json:"description"` @@ -30,6 +31,7 @@ type Schedule struct { ID string } +// Bridge.GetSchedules will get Alarms and Timers in a Schedule struct. func (bridge *Bridge) GetSchedules() ([]Schedule, error) { uri := fmt.Sprintf("/api/%s/schedules", bridge.Username) body, _, err := bridge.Get(uri) |