Skip to content

Commit

Permalink
Add HR info to sleep data
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Feb 24, 2021
1 parent 7c84729 commit ba2cf30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sleep.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ type Sleep struct {
LightSleepDuration int `json:"light_sleep_duration,omitempty"`
DeepSleepDuration int `json:"deep_sleep_duration,omitempty"`
AwakeDuration int `json:"awake_duration,omitempty"`
HrAverage int `json:"hr_average,omitempty"`
HrLowest int `json:"hr_lowest,omitempty"`
Quality int `json:"quality,omitempty"`
}

Expand Down
2 changes: 2 additions & 0 deletions sleep_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ var sleepTestCases = []struct {
LightSleepDuration: 70,
DeepSleepDuration: 70,
AwakeDuration: 70,
HrAverage: 89,
HrLowest: 60,
Quality: 8,
},
status: http.StatusCreated,
Expand Down

0 comments on commit ba2cf30

Please sign in to comment.