/// <summary> /// Initializes a new instance of the <see cref="SummaryActivity" /> class. /// </summary> /// <param name="id">The unique identifier of the activity.</param> /// <param name="externalId">The identifier provided at upload time.</param> /// <param name="uploadId">The identifier of the upload that resulted in this activity.</param> /// <param name="athlete">athlete.</param> /// <param name="name">The name of the activity.</param> /// <param name="distance">The activity's distance, in meters.</param> /// <param name="movingTime">The activity's moving time, in seconds.</param> /// <param name="elapsedTime">The activity's elapsed time, in seconds.</param> /// <param name="totalElevationGain">The activity's total elevation gain..</param> /// <param name="elevHigh">The activity's highest elevation, in meters.</param> /// <param name="elevLow">The activity's lowest elevation, in meters.</param> /// <param name="type">type.</param> /// <param name="startDate">The time at which the activity was started..</param> /// <param name="startDateLocal">The time at which the activity was started in the local timezone..</param> /// <param name="timezone">The timezone of the activity.</param> /// <param name="startLatlng">startLatlng.</param> /// <param name="endLatlng">endLatlng.</param> /// <param name="achievementCount">The number of achievements gained during this activity.</param> /// <param name="kudosCount">The number of kudos given for this activity.</param> /// <param name="commentCount">The number of comments for this activity.</param> /// <param name="athleteCount">The number of athletes for taking part in a group activity.</param> /// <param name="photoCount">The number of Instagram photos for this activity.</param> /// <param name="totalPhotoCount">The number of Instagram and Strava photos for this activity.</param> /// <param name="map">map.</param> /// <param name="trainer">Whether this activity was recorded on a training machine.</param> /// <param name="commute">Whether this activity is a commute.</param> /// <param name="manual">Whether this activity was created manually.</param> /// <param name="_private">Whether this activity is private.</param> /// <param name="flagged">Whether this activity is flagged.</param> /// <param name="workoutType">The activity's workout type.</param> /// <param name="averageSpeed">The activity's average speed, in meters per second.</param> /// <param name="maxSpeed">The activity's max speed, in meters per second.</param> /// <param name="hasKudoed">Whether the logged-in athlete has kudoed this activity.</param> /// <param name="gearId">The id of the gear for the activity.</param> /// <param name="kilojoules">The total work done in kilojoules during this activity. Rides only.</param> /// <param name="averageWatts">Average power output in watts during this activity. Rides only.</param> /// <param name="deviceWatts">Whether the watts are from a power meter, false if estimated.</param> /// <param name="maxWatts">Rides with power meter data only.</param> /// <param name="weightedAverageWatts">Similar to Normalized Power. Rides with power meter data only.</param> public SummaryActivity(long?id = default(long?), string externalId = default(string), long?uploadId = default(long?), MetaAthlete athlete = default(MetaAthlete), string name = default(string), float?distance = default(float?), int?movingTime = default(int?), int?elapsedTime = default(int?), float?totalElevationGain = default(float?), float?elevHigh = default(float?), float?elevLow = default(float?), ActivityType type = default(ActivityType), DateTime?startDate = default(DateTime?), DateTime?startDateLocal = default(DateTime?), string timezone = default(string), LatLng startLatlng = default(LatLng), LatLng endLatlng = default(LatLng), int?achievementCount = default(int?), int?kudosCount = default(int?), int?commentCount = default(int?), int?athleteCount = default(int?), int?photoCount = default(int?), int?totalPhotoCount = default(int?), PolylineMap map = default(PolylineMap), bool?trainer = default(bool?), bool?commute = default(bool?), bool?manual = default(bool?), bool?_private = default(bool?), bool?flagged = default(bool?), int?workoutType = default(int?), float?averageSpeed = default(float?), float?maxSpeed = default(float?), bool?hasKudoed = default(bool?), string gearId = default(string), float?kilojoules = default(float?), float?averageWatts = default(float?), bool?deviceWatts = default(bool?), int?maxWatts = default(int?), int?weightedAverageWatts = default(int?)) { this.Id = id; this.ExternalId = externalId; this.UploadId = uploadId; this.Athlete = athlete; this.Name = name; this.Distance = distance; this.MovingTime = movingTime; this.ElapsedTime = elapsedTime; this.TotalElevationGain = totalElevationGain; this.ElevHigh = elevHigh; this.ElevLow = elevLow; this.Type = type; this.StartDate = startDate; this.StartDateLocal = startDateLocal; this.Timezone = timezone; this.StartLatlng = startLatlng; this.EndLatlng = endLatlng; this.AchievementCount = achievementCount; this.KudosCount = kudosCount; this.CommentCount = commentCount; this.AthleteCount = athleteCount; this.PhotoCount = photoCount; this.TotalPhotoCount = totalPhotoCount; this.Map = map; this.Trainer = trainer; this.Commute = commute; this.Manual = manual; this.Private = _private; this.Flagged = flagged; this.WorkoutType = workoutType; this.AverageSpeed = averageSpeed; this.MaxSpeed = maxSpeed; this.HasKudoed = hasKudoed; this.GearId = gearId; this.Kilojoules = kilojoules; this.AverageWatts = averageWatts; this.DeviceWatts = deviceWatts; this.MaxWatts = maxWatts; this.WeightedAverageWatts = weightedAverageWatts; }
/// <summary> /// Initializes a new instance of the <see cref="Route" /> class. /// </summary> /// <param name="athlete">athlete.</param> /// <param name="description">The description of the route.</param> /// <param name="distance">The route's distance, in meters.</param> /// <param name="elevationGain">The route's elevation gain..</param> /// <param name="id">The unique identifier of this route.</param> /// <param name="map">map.</param> /// <param name="name">The name of this route.</param> /// <param name="_private">Whether this route is private.</param> /// <param name="starred">Whether this route is starred by the logged-in athlete.</param> /// <param name="timestamp">timestamp.</param> /// <param name="type">This route's type (1 for ride, 2 for runs).</param> /// <param name="subType">This route's sub-type (1 for road, 2 for mountain bike, 3 for cross, 4 for trail, 5 for mixed).</param> /// <param name="segments">The segments traversed by this route.</param> /// <param name="directions">The directions of this route.</param> public Route(SummaryAthlete athlete = default(SummaryAthlete), string description = default(string), float?distance = default(float?), float?elevationGain = default(float?), int?id = default(int?), PolylineMap map = default(PolylineMap), string name = default(string), bool?_private = default(bool?), bool?starred = default(bool?), int?timestamp = default(int?), int?type = default(int?), int?subType = default(int?), List <SummarySegment> segments = default(List <SummarySegment>), List <RouteDirection> directions = default(List <RouteDirection>)) { this.Athlete = athlete; this.Description = description; this.Distance = distance; this.ElevationGain = elevationGain; this.Id = id; this.Map = map; this.Name = name; this.Private = _private; this.Starred = starred; this.Timestamp = timestamp; this.Type = type; this.SubType = subType; this.Segments = segments; this.Directions = directions; }
/// <summary> /// Initializes a new instance of the <see cref="DetailedSegment" /> class. /// </summary> /// <param name="id">The unique identifier of this segment.</param> /// <param name="name">The name of this segment.</param> /// <param name="activityType">activityType.</param> /// <param name="distance">The segment's distance, in meters.</param> /// <param name="averageGrade">The segment's average grade, in percents.</param> /// <param name="maximumGrade">The segments's maximum grade, in percents.</param> /// <param name="elevationHigh">The segments's highest elevation, in meters.</param> /// <param name="elevationLow">The segments's lowest elevation, in meters.</param> /// <param name="startLatlng">startLatlng.</param> /// <param name="endLatlng">endLatlng.</param> /// <param name="climbCategory">The category of the climb [0, 5]. Higher is harder ie. 5 is Hors catégorie, 0 is uncategorized in climb_category..</param> /// <param name="city">The segments's city..</param> /// <param name="state">The segments's state or geographical region..</param> /// <param name="country">The segment's country..</param> /// <param name="_private">Whether this segment is private..</param> /// <param name="athletePrEffort">athletePrEffort.</param> /// <param name="createdAt">The time at which the segment was created..</param> /// <param name="updatedAt">The time at which the segment was last updated..</param> /// <param name="totalElevationGain">The segment's total elevation gain..</param> /// <param name="map">map.</param> /// <param name="effortCount">The total number of efforts for this segment.</param> /// <param name="athleteCount">The number of unique athletes who have an effort for this segment.</param> /// <param name="hazardous">Whether this segment is considered hazardous.</param> /// <param name="starCount">The number of stars for this segment.</param> public DetailedSegment(long?id = default(long?), string name = default(string), ActivityTypeEnum?activityType = default(ActivityTypeEnum?), float?distance = default(float?), float?averageGrade = default(float?), float?maximumGrade = default(float?), float?elevationHigh = default(float?), float?elevationLow = default(float?), LatLng startLatlng = default(LatLng), LatLng endLatlng = default(LatLng), int?climbCategory = default(int?), string city = default(string), string state = default(string), string country = default(string), bool?_private = default(bool?), SummarySegmentEffort athletePrEffort = default(SummarySegmentEffort), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), float?totalElevationGain = default(float?), PolylineMap map = default(PolylineMap), int?effortCount = default(int?), int?athleteCount = default(int?), bool?hazardous = default(bool?), int?starCount = default(int?)) { this.Id = id; this.Name = name; this.ActivityType = activityType; this.Distance = distance; this.AverageGrade = averageGrade; this.MaximumGrade = maximumGrade; this.ElevationHigh = elevationHigh; this.ElevationLow = elevationLow; this.StartLatlng = startLatlng; this.EndLatlng = endLatlng; this.ClimbCategory = climbCategory; this.City = city; this.State = state; this.Country = country; this.Private = _private; this.AthletePrEffort = athletePrEffort; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; this.TotalElevationGain = totalElevationGain; this.Map = map; this.EffortCount = effortCount; this.AthleteCount = athleteCount; this.Hazardous = hazardous; this.StarCount = starCount; }
/// <summary> /// Initializes a new instance of the <see cref="Route" /> class. /// </summary> /// <param name="athlete">athlete.</param> /// <param name="description">The description of the route.</param> /// <param name="distance">The route's distance, in meters.</param> /// <param name="elevationGain">The route's elevation gain..</param> /// <param name="id">The unique identifier of this route.</param> /// <param name="idStr">The unique identifier of the route in string format.</param> /// <param name="map">map.</param> /// <param name="name">The name of this route.</param> /// <param name="_private">Whether this route is private.</param> /// <param name="starred">Whether this route is starred by the logged-in athlete.</param> /// <param name="timestamp">An epoch timestamp of when the route was created.</param> /// <param name="type">This route's type (1 for ride, 2 for runs).</param> /// <param name="subType">This route's sub-type (1 for road, 2 for mountain bike, 3 for cross, 4 for trail, 5 for mixed).</param> /// <param name="createdAt">The time at which the route was created.</param> /// <param name="updatedAt">The time at which the route was last updated.</param> /// <param name="estimatedMovingTime">Estimated time in seconds for the authenticated athlete to complete route.</param> /// <param name="segments">The segments traversed by this route.</param> public Route(SummaryAthlete athlete = default(SummaryAthlete), string description = default(string), float?distance = default(float?), float?elevationGain = default(float?), long?id = default(long?), string idStr = default(string), PolylineMap map = default(PolylineMap), string name = default(string), bool?_private = default(bool?), bool?starred = default(bool?), int?timestamp = default(int?), int?type = default(int?), int?subType = default(int?), DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), int?estimatedMovingTime = default(int?), List <SummarySegment> segments = default(List <SummarySegment>)) { this.Athlete = athlete; this.Description = description; this.Distance = distance; this.ElevationGain = elevationGain; this.Id = id; this.IdStr = idStr; this.Map = map; this.Name = name; this.Private = _private; this.Starred = starred; this.Timestamp = timestamp; this.Type = type; this.SubType = subType; this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; this.EstimatedMovingTime = estimatedMovingTime; this.Segments = segments; }
/// <summary> /// Initializes a new instance of the <see cref="DetailedActivity" /> class. /// </summary> /// <param name="id">The unique identifier of the activity.</param> /// <param name="externalId">The identifier provided at upload time.</param> /// <param name="uploadId">The identifier of the upload that resulted in this activity.</param> /// <param name="athlete">athlete.</param> /// <param name="name">The name of the activity.</param> /// <param name="distance">The activity's distance, in meters.</param> /// <param name="movingTime">The activity's moving time, in seconds.</param> /// <param name="elapsedTime">The activity's elapsed time, in seconds.</param> /// <param name="totalElevationGain">The activity's total elevation gain..</param> /// <param name="elevHigh">The activity's highest elevation, in meters.</param> /// <param name="elevLow">The activity's lowest elevation, in meters.</param> /// <param name="type">type.</param> /// <param name="startDate">The time at which the activity was started..</param> /// <param name="startDateLocal">The time at which the activity was started in the local timezone..</param> /// <param name="timezone">The timezone of the activity.</param> /// <param name="startLatlng">startLatlng.</param> /// <param name="endLatlng">endLatlng.</param> /// <param name="achievementCount">The number of achievements gained during this activity.</param> /// <param name="kudosCount">The number of kudos given for this activity.</param> /// <param name="commentCount">The number of comments for this activity.</param> /// <param name="athleteCount">The number of athletes for taking part in a group activity.</param> /// <param name="photoCount">The number of Instagram photos for this activity.</param> /// <param name="totalPhotoCount">The number of Instagram and Strava photos for this activity.</param> /// <param name="map">map.</param> /// <param name="trainer">Whether this activity was recorded on a training machine.</param> /// <param name="commute">Whether this activity is a commute.</param> /// <param name="manual">Whether this activity was created manually.</param> /// <param name="_private">Whether this activity is private.</param> /// <param name="flagged">Whether this activity is flagged.</param> /// <param name="workoutType">The activity's workout type.</param> /// <param name="uploadIdStr">The unique identifier of the upload in string format.</param> /// <param name="averageSpeed">The activity's average speed, in meters per second.</param> /// <param name="maxSpeed">The activity's max speed, in meters per second.</param> /// <param name="hasKudoed">Whether the logged-in athlete has kudoed this activity.</param> /// <param name="gearId">The id of the gear for the activity.</param> /// <param name="kilojoules">The total work done in kilojoules during this activity. Rides only.</param> /// <param name="averageWatts">Average power output in watts during this activity. Rides only.</param> /// <param name="deviceWatts">Whether the watts are from a power meter, false if estimated.</param> /// <param name="maxWatts">Rides with power meter data only.</param> /// <param name="weightedAverageWatts">Similar to Normalized Power. Rides with power meter data only.</param> /// <param name="description">The description of the activity.</param> /// <param name="photos">photos.</param> /// <param name="gear">gear.</param> /// <param name="calories">The number of kilocalories consumed during this activity.</param> /// <param name="segmentEfforts">segmentEfforts.</param> /// <param name="deviceName">The name of the device used to record the activity.</param> /// <param name="embedToken">The token used to embed a Strava activity.</param> /// <param name="splitsMetric">The splits of this activity in metric units (for runs).</param> /// <param name="splitsStandard">The splits of this activity in imperial units (for runs).</param> /// <param name="laps">laps.</param> /// <param name="bestEfforts">bestEfforts.</param> public DetailedActivity(long?id = default(long?), string externalId = default(string), long?uploadId = default(long?), MetaAthlete athlete = default(MetaAthlete), string name = default(string), float?distance = default(float?), int?movingTime = default(int?), int?elapsedTime = default(int?), float?totalElevationGain = default(float?), float?elevHigh = default(float?), float?elevLow = default(float?), ActivityType type = default(ActivityType), DateTime?startDate = default(DateTime?), DateTime?startDateLocal = default(DateTime?), string timezone = default(string), LatLng startLatlng = default(LatLng), LatLng endLatlng = default(LatLng), int?achievementCount = default(int?), int?kudosCount = default(int?), int?commentCount = default(int?), int?athleteCount = default(int?), int?photoCount = default(int?), int?totalPhotoCount = default(int?), PolylineMap map = default(PolylineMap), bool?trainer = default(bool?), bool?commute = default(bool?), bool?manual = default(bool?), bool?_private = default(bool?), bool?flagged = default(bool?), int?workoutType = default(int?), string uploadIdStr = default(string), float?averageSpeed = default(float?), float?maxSpeed = default(float?), bool?hasKudoed = default(bool?), string gearId = default(string), float?kilojoules = default(float?), float?averageWatts = default(float?), bool?deviceWatts = default(bool?), int?maxWatts = default(int?), int?weightedAverageWatts = default(int?), string description = default(string), PhotosSummary photos = default(PhotosSummary), SummaryGear gear = default(SummaryGear), float?calories = default(float?), List <DetailedSegmentEffort> segmentEfforts = default(List <DetailedSegmentEffort>), string deviceName = default(string), string embedToken = default(string), List <Split> splitsMetric = default(List <Split>), List <Split> splitsStandard = default(List <Split>), List <Lap> laps = default(List <Lap>), List <DetailedSegmentEffort> bestEfforts = default(List <DetailedSegmentEffort>)) { this.Id = id; this.ExternalId = externalId; this.UploadId = uploadId; this.Athlete = athlete; this.Name = name; this.Distance = distance; this.MovingTime = movingTime; this.ElapsedTime = elapsedTime; this.TotalElevationGain = totalElevationGain; this.ElevHigh = elevHigh; this.ElevLow = elevLow; this.Type = type; this.StartDate = startDate; this.StartDateLocal = startDateLocal; this.Timezone = timezone; this.StartLatlng = startLatlng; this.EndLatlng = endLatlng; this.AchievementCount = achievementCount; this.KudosCount = kudosCount; this.CommentCount = commentCount; this.AthleteCount = athleteCount; this.PhotoCount = photoCount; this.TotalPhotoCount = totalPhotoCount; this.Map = map; this.Trainer = trainer; this.Commute = commute; this.Manual = manual; this.Private = _private; this.Flagged = flagged; this.WorkoutType = workoutType; this.UploadIdStr = uploadIdStr; this.AverageSpeed = averageSpeed; this.MaxSpeed = maxSpeed; this.HasKudoed = hasKudoed; this.GearId = gearId; this.Kilojoules = kilojoules; this.AverageWatts = averageWatts; this.DeviceWatts = deviceWatts; this.MaxWatts = maxWatts; this.WeightedAverageWatts = weightedAverageWatts; this.Description = description; this.Photos = photos; this.Gear = gear; this.Calories = calories; this.SegmentEfforts = segmentEfforts; this.DeviceName = deviceName; this.EmbedToken = embedToken; this.SplitsMetric = splitsMetric; this.SplitsStandard = splitsStandard; this.Laps = laps; this.BestEfforts = bestEfforts; }
/// <summary> /// Initializes a new instance of the <see cref="DetailedActivity" /> class. /// </summary> /// <param name="description">The description of the activity.</param> /// <param name="photos">photos.</param> /// <param name="gear">gear.</param> /// <param name="calories">The number of kilocalories consumed during this activity.</param> /// <param name="segmentEfforts">segmentEfforts.</param> /// <param name="deviceName">The name of the device used to record the activity.</param> /// <param name="embedToken">The token used to embed a Strava activity.</param> /// <param name="splitsMetric">The splits of this activity in metric units (for runs).</param> /// <param name="splitsStandard">The splits of this activity in imperial units (for runs).</param> /// <param name="laps">laps.</param> /// <param name="bestEfforts">bestEfforts.</param> public DetailedActivity(string description = default(string), PhotosSummary photos = default(PhotosSummary), SummaryGear gear = default(SummaryGear), float?calories = default(float?), List <DetailedSegmentEffort> segmentEfforts = default(List <DetailedSegmentEffort>), string deviceName = default(string), string embedToken = default(string), List <Split> splitsMetric = default(List <Split>), List <Split> splitsStandard = default(List <Split>), List <Lap> laps = default(List <Lap>), List <DetailedSegmentEffort> bestEfforts = default(List <DetailedSegmentEffort>), string externalId = default(string), long?uploadId = default(long?), MetaAthlete athlete = default(MetaAthlete), string name = default(string), float?distance = default(float?), int?movingTime = default(int?), int?elapsedTime = default(int?), float?totalElevationGain = default(float?), float?elevHigh = default(float?), float?elevLow = default(float?), ActivityType type = default(ActivityType), DateTime?startDate = default(DateTime?), DateTime?startDateLocal = default(DateTime?), string timezone = default(string), LatLng startLatlng = default(LatLng), LatLng endLatlng = default(LatLng), int?achievementCount = default(int?), int?kudosCount = default(int?), int?commentCount = default(int?), int?athleteCount = default(int?), int?photoCount = default(int?), int?totalPhotoCount = default(int?), PolylineMap map = default(PolylineMap), bool?trainer = default(bool?), bool?commute = default(bool?), bool?manual = default(bool?), bool?_private = default(bool?), bool?flagged = default(bool?), int?workoutType = default(int?), string uploadIdStr = default(string), float?averageSpeed = default(float?), float?maxSpeed = default(float?), bool?hasKudoed = default(bool?), bool?hideFromHome = default(bool?), string gearId = default(string), float?kilojoules = default(float?), float?averageWatts = default(float?), bool?deviceWatts = default(bool?), int?maxWatts = default(int?), int?weightedAverageWatts = default(int?)) : base(externalId, uploadId, athlete, name, distance, movingTime, elapsedTime, totalElevationGain, elevHigh, elevLow, type, startDate, startDateLocal, timezone, startLatlng, endLatlng, achievementCount, kudosCount, commentCount, athleteCount, photoCount, totalPhotoCount, map, trainer, commute, manual, _private, flagged, workoutType, uploadIdStr, averageSpeed, maxSpeed, hasKudoed, hideFromHome, gearId, kilojoules, averageWatts, deviceWatts, maxWatts, weightedAverageWatts) { this.Description = description; this.Photos = photos; this.Gear = gear; this.Calories = calories; this.SegmentEfforts = segmentEfforts; this.DeviceName = deviceName; this.EmbedToken = embedToken; this.SplitsMetric = splitsMetric; this.SplitsStandard = splitsStandard; this.Laps = laps; this.BestEfforts = bestEfforts; }
/// <summary> /// Initializes a new instance of the <see cref="DetailedSegment" /> class. /// </summary> /// <param name="createdAt">The time at which the segment was created..</param> /// <param name="updatedAt">The time at which the segment was last updated..</param> /// <param name="totalElevationGain">The segment's total elevation gain..</param> /// <param name="map">map.</param> /// <param name="effortCount">The total number of efforts for this segment.</param> /// <param name="athleteCount">The number of unique athletes who have an effort for this segment.</param> /// <param name="hazardous">Whether this segment is considered hazardous.</param> /// <param name="starCount">The number of stars for this segment.</param> public DetailedSegment(DateTime?createdAt = default(DateTime?), DateTime?updatedAt = default(DateTime?), float?totalElevationGain = default(float?), PolylineMap map = default(PolylineMap), int?effortCount = default(int?), int?athleteCount = default(int?), bool?hazardous = default(bool?), int?starCount = default(int?), long?id = default(long?), string name = default(string), ActivityTypeEnum?activityType = default(ActivityTypeEnum?), float?distance = default(float?), float?averageGrade = default(float?), float?maximumGrade = default(float?), float?elevationHigh = default(float?), float?elevationLow = default(float?), LatLng startLatlng = default(LatLng), LatLng endLatlng = default(LatLng), int?climbCategory = default(int?), string city = default(string), string state = default(string), string country = default(string), bool?_private = default(bool?), SummarySegmentEffort athletePrEffort = default(SummarySegmentEffort), SummaryPRSegmentEffort athleteSegmentStats = default(SummaryPRSegmentEffort)) : base(id, name, activityType, distance, averageGrade, maximumGrade, elevationHigh, elevationLow, startLatlng, endLatlng, climbCategory, city, state, country, _private, athletePrEffort, athleteSegmentStats) { this.CreatedAt = createdAt; this.UpdatedAt = updatedAt; this.TotalElevationGain = totalElevationGain; this.Map = map; this.EffortCount = effortCount; this.AthleteCount = athleteCount; this.Hazardous = hazardous; this.StarCount = starCount; }