Skip to content

Commit

Permalink
feat: introduce proper types and constants for models
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzolino committed Nov 18, 2021
1 parent b3ac171 commit 234d625
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 149 deletions.
10 changes: 5 additions & 5 deletions examples/schedule/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ func main() {
Start: "00:00",
End: "12:00",
GeolocationOverride: false,
Setting: gotado.ScheduleBlockSetting{
Setting: &gotado.ZoneSetting{
Type: "HEATING",
Power: "ON",
Temperature: &gotado.ScheduleBlockSettingTemperature{
Temperature: &gotado.ZoneSettingTemperature{
Celsius: 18,
},
},
Expand All @@ -138,7 +138,7 @@ func main() {
Start: "12:00",
End: "14:00",
GeolocationOverride: false,
Setting: gotado.ScheduleBlockSetting{
Setting: &gotado.ZoneSetting{
Type: "HEATING",
Power: "OFF",
},
Expand All @@ -148,10 +148,10 @@ func main() {
Start: "14:00",
End: "00:00",
GeolocationOverride: false,
Setting: gotado.ScheduleBlockSetting{
Setting: &gotado.ZoneSetting{
Type: "HEATING",
Power: "ON",
Temperature: &gotado.ScheduleBlockSettingTemperature{
Temperature: &gotado.ZoneSettingTemperature{
Celsius: 20,
},
},
Expand Down
Loading

0 comments on commit 234d625

Please sign in to comment.