/// <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&#39;s distance, in meters.</param>
 /// <param name="averageGrade">The segment&#39;s average grade, in percents.</param>
 /// <param name="maximumGrade">The segments&#39;s maximum grade, in percents.</param>
 /// <param name="elevationHigh">The segments&#39;s highest elevation, in meters.</param>
 /// <param name="elevationLow">The segments&#39;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&#39;s city..</param>
 /// <param name="state">The segments&#39;s state or geographical region..</param>
 /// <param name="country">The segment&#39;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&#39;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;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SummarySegment" /> 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&#39;s distance, in meters.</param>
 /// <param name="averageGrade">The segment&#39;s average grade, in percents.</param>
 /// <param name="maximumGrade">The segments&#39;s maximum grade, in percents.</param>
 /// <param name="elevationHigh">The segments&#39;s highest elevation, in meters.</param>
 /// <param name="elevationLow">The segments&#39;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&#39;s city..</param>
 /// <param name="state">The segments&#39;s state or geographical region..</param>
 /// <param name="country">The segment&#39;s country..</param>
 /// <param name="_private">Whether this segment is private..</param>
 /// <param name="athletePrEffort">athletePrEffort.</param>
 /// <param name="athleteSegmentStats">athleteSegmentStats.</param>
 public SummarySegment(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))
 {
     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.AthleteSegmentStats = athleteSegmentStats;
 }
 /// <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&#x27;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;
 }