/// <summary> /// Initializes a new instance of the <see cref="DetailedSegmentEffort" /> class. /// </summary> /// <param name="name">The name of the segment on which this effort was performed.</param> /// <param name="activity">activity.</param> /// <param name="athlete">athlete.</param> /// <param name="movingTime">The effort's moving time.</param> /// <param name="startIndex">The start index of this effort in its activity's stream.</param> /// <param name="endIndex">The end index of this effort in its activity's stream.</param> /// <param name="averageCadence">The effort's average cadence.</param> /// <param name="averageWatts">The average wattage of this effort.</param> /// <param name="deviceWatts">For riding efforts, whether the wattage was reported by a dedicated recording device.</param> /// <param name="averageHeartrate">The heart heart rate of the athlete during this effort.</param> /// <param name="maxHeartrate">The maximum heart rate of the athlete during this effort.</param> /// <param name="segment">segment.</param> /// <param name="komRank">The rank of the effort on the global leaderboard if it belongs in the top 10 at the time of upload.</param> /// <param name="prRank">The rank of the effort on the athlete's leaderboard if it belongs in the top 3 at the time of upload.</param> /// <param name="hidden">Whether this effort should be hidden when viewed within an activity.</param> public DetailedSegmentEffort(string name = default(string), MetaActivity activity = default(MetaActivity), MetaAthlete athlete = default(MetaAthlete), int?movingTime = default(int?), int?startIndex = default(int?), int?endIndex = default(int?), float?averageCadence = default(float?), float?averageWatts = default(float?), bool?deviceWatts = default(bool?), float?averageHeartrate = default(float?), float?maxHeartrate = default(float?), SummarySegment segment = default(SummarySegment), int?komRank = default(int?), int?prRank = default(int?), bool?hidden = default(bool?), long?id = default(long?), long?activityId = default(long?), int?elapsedTime = default(int?), DateTime?startDate = default(DateTime?), DateTime?startDateLocal = default(DateTime?), float?distance = default(float?), bool?isKom = default(bool?)) : base(id, activityId, elapsedTime, startDate, startDateLocal, distance, isKom) { this.Name = name; this.Activity = activity; this.Athlete = athlete; this.MovingTime = movingTime; this.StartIndex = startIndex; this.EndIndex = endIndex; this.AverageCadence = averageCadence; this.AverageWatts = averageWatts; this.DeviceWatts = deviceWatts; this.AverageHeartrate = averageHeartrate; this.MaxHeartrate = maxHeartrate; this.Segment = segment; this.KomRank = komRank; this.PrRank = prRank; this.Hidden = hidden; }
/// <summary> /// Initializes a new instance of the <see cref="Lap" /> class. /// </summary> /// <param name="id">The unique identifier of this lap.</param> /// <param name="activity">activity.</param> /// <param name="athlete">athlete.</param> /// <param name="averageCadence">The lap's average cadence.</param> /// <param name="averageSpeed">The lap's average speed.</param> /// <param name="distance">The lap's distance, in meters.</param> /// <param name="elapsedTime">The lap's elapsed time, in seconds.</param> /// <param name="startIndex">The start index of this effort in its activity's stream.</param> /// <param name="endIndex">The end index of this effort in its activity's stream.</param> /// <param name="lapIndex">The index of this lap in the activity it belongs to.</param> /// <param name="maxSpeed">The maximum speed of this lat, in meters per second.</param> /// <param name="movingTime">The lap's moving time, in seconds.</param> /// <param name="name">The name of the lap.</param> /// <param name="paceZone">The athlete's pace zone during this lap.</param> /// <param name="split">split.</param> /// <param name="startDate">The time at which the lap was started..</param> /// <param name="startDateLocal">The time at which the lap was started in the local timezone..</param> /// <param name="totalElevationGain">The elevation gain of this lap, in meters.</param> public Lap(long?id = default(long?), MetaActivity activity = default(MetaActivity), MetaAthlete athlete = default(MetaAthlete), float?averageCadence = default(float?), float?averageSpeed = default(float?), float?distance = default(float?), int?elapsedTime = default(int?), int?startIndex = default(int?), int?endIndex = default(int?), int?lapIndex = default(int?), float?maxSpeed = default(float?), int?movingTime = default(int?), string name = default(string), int?paceZone = default(int?), int?split = default(int?), DateTime?startDate = default(DateTime?), DateTime?startDateLocal = default(DateTime?), float?totalElevationGain = default(float?)) { this.Id = id; this.Activity = activity; this.Athlete = athlete; this.AverageCadence = averageCadence; this.AverageSpeed = averageSpeed; this.Distance = distance; this.ElapsedTime = elapsedTime; this.StartIndex = startIndex; this.EndIndex = endIndex; this.LapIndex = lapIndex; this.MaxSpeed = maxSpeed; this.MovingTime = movingTime; this.Name = name; this.PaceZone = paceZone; this.Split = split; this.StartDate = startDate; this.StartDateLocal = startDateLocal; this.TotalElevationGain = totalElevationGain; }