/// <summary>
 /// Initializes a new instance of the <see cref="ExplorerSegment" /> class.
 /// </summary>
 /// <param name="id">The unique identifier of this segment.</param>
 /// <param name="name">The name of this segment.</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. If climb_category &#x3D; 5, climb_category_desc &#x3D; HC. If climb_category &#x3D; 2, climb_category_desc &#x3D; 3..</param>
 /// <param name="climbCategoryDesc">The description for the category of the climb.</param>
 /// <param name="avgGrade">The segment&#39;s average grade, in percents.</param>
 /// <param name="startLatlng">startLatlng.</param>
 /// <param name="endLatlng">endLatlng.</param>
 /// <param name="elevDifference">The segments&#39;s evelation difference, in meters.</param>
 /// <param name="distance">The segment&#39;s distance, in meters.</param>
 /// <param name="points">The polyline of the segment.</param>
 public ExplorerSegment(long?id = default(long?), string name = default(string), int?climbCategory = default(int?), ClimbCategoryDescEnum?climbCategoryDesc = default(ClimbCategoryDescEnum?), float?avgGrade = default(float?), LatLng startLatlng = default(LatLng), LatLng endLatlng = default(LatLng), float?elevDifference = default(float?), float?distance = default(float?), string points = default(string))
 {
     this.Id                = id;
     this.Name              = name;
     this.ClimbCategory     = climbCategory;
     this.ClimbCategoryDesc = climbCategoryDesc;
     this.AvgGrade          = avgGrade;
     this.StartLatlng       = startLatlng;
     this.EndLatlng         = endLatlng;
     this.ElevDifference    = elevDifference;
     this.Distance          = distance;
     this.Points            = points;
 }
Exemplo n.º 2
0
 /// <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="athleteSegmentStats">athleteSegmentStats.</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), SummaryPRSegmentEffort athleteSegmentStats = default(SummaryPRSegmentEffort), 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.AthleteSegmentStats = 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;
 }
Exemplo n.º 3
0
 /// <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;
 }
Exemplo n.º 4
0
 /// <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;
 }