forked from dwj300/strava
-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_detailed_segment_effort.go
56 lines (53 loc) · 2.27 KB
/
model_detailed_segment_effort.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
* Strava API v3
*
* Strava API
*
* API version: 3.0.0
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package strava
import (
"time"
)
type DetailedSegmentEffort struct {
// The unique identifier of this effort
Id int64 `json:"id,omitempty"`
// The effort's elapsed time
ElapsedTime int32 `json:"elapsed_time,omitempty"`
// The time at which the effort was started.
StartDate time.Time `json:"start_date,omitempty"`
// The time at which the effort was started in the local timezone.
StartDateLocal time.Time `json:"start_date_local,omitempty"`
// The effort's distance in meters
Distance float32 `json:"distance,omitempty"`
// Whether this effort is the current best on the leaderboard
IsKom bool `json:"is_kom,omitempty"`
// The name of the segment on which this effort was performed
Name string `json:"name,omitempty"`
Activity *MetaActivity `json:"activity,omitempty"`
Athlete *MetaAthlete `json:"athlete,omitempty"`
// The effort's moving time
MovingTime int32 `json:"moving_time,omitempty"`
// The start index of this effort in its activity's stream
StartIndex int32 `json:"start_index,omitempty"`
// The end index of this effort in its activity's stream
EndIndex int32 `json:"end_index,omitempty"`
// The effort's average cadence
AverageCadence float32 `json:"average_cadence,omitempty"`
// The average wattage of this effort
AverageWatts float32 `json:"average_watts,omitempty"`
// For riding efforts, whether the wattage was reported by a dedicated recording device
DeviceWatts bool `json:"device_watts,omitempty"`
// The heart heart rate of the athlete during this effort
AverageHeartrate float32 `json:"average_heartrate,omitempty"`
// The maximum heart rate of the athlete during this effort
MaxHeartrate float32 `json:"max_heartrate,omitempty"`
Segment *SummarySegment `json:"segment,omitempty"`
// The rank of the effort on the global leaderboard if it belongs in the top 10 at the time of upload
KomRank int32 `json:"kom_rank,omitempty"`
// The rank of the effort on the athlete's leaderboard if it belongs in the top 3 at the time of upload
PrRank int32 `json:"pr_rank,omitempty"`
// Whether this effort should be hidden when viewed within an activity
Hidden bool `json:"hidden,omitempty"`
}