-
Notifications
You must be signed in to change notification settings - Fork 2
/
model_detailed_activity.go
107 lines (104 loc) · 4.6 KB
/
model_detailed_activity.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
/*
* 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 DetailedActivity struct {
// The unique identifier of the activity
Id int64 `json:"id,omitempty"`
// The identifier provided at upload time
ExternalId string `json:"external_id,omitempty"`
// The identifier of the upload that resulted in this activity
UploadId int64 `json:"upload_id,omitempty"`
Athlete *MetaAthlete `json:"athlete,omitempty"`
// The name of the activity
Name string `json:"name,omitempty"`
// The activity's distance, in meters
Distance float32 `json:"distance,omitempty"`
// The activity's moving time, in seconds
MovingTime int32 `json:"moving_time,omitempty"`
// The activity's elapsed time, in seconds
ElapsedTime int32 `json:"elapsed_time,omitempty"`
// The activity's total elevation gain.
TotalElevationGain float32 `json:"total_elevation_gain,omitempty"`
// The activity's highest elevation, in meters
ElevHigh float32 `json:"elev_high,omitempty"`
// The activity's lowest elevation, in meters
ElevLow float32 `json:"elev_low,omitempty"`
Type_ *ActivityType `json:"type,omitempty"`
// The time at which the activity was started.
StartDate time.Time `json:"start_date,omitempty"`
// The time at which the activity was started in the local timezone.
StartDateLocal time.Time `json:"start_date_local,omitempty"`
// The timezone of the activity
Timezone string `json:"timezone,omitempty"`
StartLatlng *LatLng `json:"start_latlng,omitempty"`
EndLatlng *LatLng `json:"end_latlng,omitempty"`
// The number of achievements gained during this activity
AchievementCount int32 `json:"achievement_count,omitempty"`
// The number of kudos given for this activity
KudosCount int32 `json:"kudos_count,omitempty"`
// The number of comments for this activity
CommentCount int32 `json:"comment_count,omitempty"`
// The number of athletes for taking part in a group activity
AthleteCount int32 `json:"athlete_count,omitempty"`
// The number of Instagram photos for this activity
PhotoCount int32 `json:"photo_count,omitempty"`
// The number of Instagram and Strava photos for this activity
TotalPhotoCount int32 `json:"total_photo_count,omitempty"`
Map_ *PolylineMap `json:"map,omitempty"`
// Whether this activity was recorded on a training machine
Trainer bool `json:"trainer,omitempty"`
// Whether this activity is a commute
Commute bool `json:"commute,omitempty"`
// Whether this activity was created manually
Manual bool `json:"manual,omitempty"`
// Whether this activity is private
Private bool `json:"private,omitempty"`
// Whether this activity is flagged
Flagged bool `json:"flagged,omitempty"`
// The activity's workout type
WorkoutType int32 `json:"workout_type,omitempty"`
// The activity's average speed, in meters per second
AverageSpeed float32 `json:"average_speed,omitempty"`
// The activity's max speed, in meters per second
MaxSpeed float32 `json:"max_speed,omitempty"`
// Whether the logged-in athlete has kudoed this activity
HasKudoed bool `json:"has_kudoed,omitempty"`
// The id of the gear for the activity
GearId string `json:"gear_id,omitempty"`
// The total work done in kilojoules during this activity. Rides only
Kilojoules float32 `json:"kilojoules,omitempty"`
// Average power output in watts during this activity. Rides only
AverageWatts float32 `json:"average_watts,omitempty"`
// Whether the watts are from a power meter, false if estimated
DeviceWatts bool `json:"device_watts,omitempty"`
// Rides with power meter data only
MaxWatts int32 `json:"max_watts,omitempty"`
// Similar to Normalized Power. Rides with power meter data only
WeightedAverageWatts int32 `json:"weighted_average_watts,omitempty"`
// The description of the activity
Description string `json:"description,omitempty"`
Photos *PhotosSummary `json:"photos,omitempty"`
Gear *SummaryGear `json:"gear,omitempty"`
// The number of kilocalories consumed during this activity
Calories float32 `json:"calories,omitempty"`
SegmentEfforts []DetailedSegmentEffort `json:"segment_efforts,omitempty"`
// The name of the device used to record the activity
DeviceName string `json:"device_name,omitempty"`
// The token used to embed a Strava activity
EmbedToken string `json:"embed_token,omitempty"`
// The splits of this activity in metric units (for runs)
SplitsMetric []Split `json:"splits_metric,omitempty"`
// The splits of this activity in imperial units (for runs)
SplitsStandard []Split `json:"splits_standard,omitempty"`
Laps []Lap `json:"laps,omitempty"`
BestEfforts []DetailedSegmentEffort `json:"best_efforts,omitempty"`
}