mirror of
https://github.com/sstent/go-garth.git
synced 2026-04-04 03:22:47 +00:00
porting - part2 wk2 done
This commit is contained in:
21
garth/stats/intensity_minutes.go
Normal file
21
garth/stats/intensity_minutes.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package stats
|
||||
|
||||
import "time"
|
||||
|
||||
const BASE_INTENSITY_PATH = "/usersummary-service/stats/intensity_minutes"
|
||||
|
||||
type DailyIntensityMinutes struct {
|
||||
CalendarDate time.Time `json:"calendar_date"`
|
||||
ModerateIntensity *int `json:"moderate_intensity"`
|
||||
VigorousIntensity *int `json:"vigorous_intensity"`
|
||||
BaseStats
|
||||
}
|
||||
|
||||
func NewDailyIntensityMinutes() *DailyIntensityMinutes {
|
||||
return &DailyIntensityMinutes{
|
||||
BaseStats: BaseStats{
|
||||
Path: BASE_INTENSITY_PATH + "/daily/{start}/{end}",
|
||||
PageSize: 28,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user