From: Florian Forster Date: Wed, 24 Jan 2018 19:31:02 +0000 (+0100) Subject: Package fitbit: Add the ActivityParentName, LastModified, StartDate fields. X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=b218c26b9fe377f02f22915e86736e94d4d3b803;p=kraftakt.git Package fitbit: Add the ActivityParentName, LastModified, StartDate fields. --- diff --git a/fitbit/fitbit.go b/fitbit/fitbit.go index 4ba42e4..04c50cd 100644 --- a/fitbit/fitbit.go +++ b/fitbit/fitbit.go @@ -59,18 +59,21 @@ func CheckSignature(ctx context.Context, payload []byte, rawSig string) bool { } type Activity struct { - ActivityID int `json:"activityId"` - ActivityParentID int `json:"activityParentId"` - Calories int `json:"calories"` - Description string `json:"description"` - Distance float64 `json:"distance"` - Duration int `json:"duration"` - HasStartTime bool `json:"hasStartTime"` - IsFavorite bool `json:"isFavorite"` - LogID int `json:"logId"` - Name string `json:"name"` - StartTime string `json:"startTime"` - Steps int `json:"steps"` + ActivityID int `json:"activityId"` + ActivityParentID int `json:"activityParentId"` + ActivityParentName string `json:"activityParentName"` + Calories int `json:"calories"` + Description string `json:"description"` + Distance float64 `json:"distance"` + Duration int `json:"duration"` + HasStartTime bool `json:"hasStartTime"` + IsFavorite bool `json:"isFavorite"` + LastModified time.Time `json:"lastModified"` + LogID int `json:"logId"` + Name string `json:"name"` + StartTime string `json:"startTime"` + StartDate string `json:"startDate"` + Steps int `json:"steps"` } type Distance struct {