Exemple #1
0
 /// <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&#39;s average cadence.</param>
 /// <param name="averageSpeed">The lap&#39;s average speed.</param>
 /// <param name="distance">The lap&#39;s distance, in meters.</param>
 /// <param name="elapsedTime">The lap&#39;s elapsed time, in seconds.</param>
 /// <param name="startIndex">The start index of this effort in its activity&#39;s stream.</param>
 /// <param name="endIndex">The end index of this effort in its activity&#39;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&#39;s moving time, in seconds.</param>
 /// <param name="name">The name of the lap.</param>
 /// <param name="paceZone">The athlete&#39;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>
 /// <param name="deviceWatts">True if device measured power</param>
 /// <param name="averageWatts">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?),
            bool?deviceWatts = default(bool?), float?averageWatts    = 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;
     this.DeviceWatts        = deviceWatts;
     this.AverageWatts       = averageWatts;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DetailedSegmentEffort" /> class.
 /// </summary>
 /// <param name="id">The unique identifier of this effort.</param>
 /// <param name="elapsedTime">The effort&#39;s elapsed time.</param>
 /// <param name="startDate">The time at which the effort was started..</param>
 /// <param name="startDateLocal">The time at which the effort was started in the local timezone..</param>
 /// <param name="distance">The effort&#39;s distance in meters.</param>
 /// <param name="isKom">Whether this effort is the current best on the leaderboard.</param>
 /// <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&#39;s moving time.</param>
 /// <param name="startIndex">The start index of this effort in its activity&#39;s stream.</param>
 /// <param name="endIndex">The end index of this effort in its activity&#39;s stream.</param>
 /// <param name="averageCadence">The effort&#39;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&#39;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(long?id = default(long?), int?elapsedTime = default(int?), DateTime?startDate = default(DateTime?), DateTime?startDateLocal = default(DateTime?), float?distance = default(float?), bool?isKom = default(bool?), 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?))
 {
     this.Id               = id;
     this.ElapsedTime      = elapsedTime;
     this.StartDate        = startDate;
     this.StartDateLocal   = startDateLocal;
     this.Distance         = distance;
     this.IsKom            = 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;
 }
Exemple #3
0
 /// <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&#39;s distance, in meters.</param>
 /// <param name="movingTime">The activity&#39;s moving time, in seconds.</param>
 /// <param name="elapsedTime">The activity&#39;s elapsed time, in seconds.</param>
 /// <param name="totalElevationGain">The activity&#39;s total elevation gain..</param>
 /// <param name="elevHigh">The activity&#39;s highest elevation, in meters.</param>
 /// <param name="elevLow">The activity&#39;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&#39;s workout type.</param>
 /// <param name="uploadIdStr">The unique identifier of the upload in string format.</param>
 /// <param name="averageSpeed">The activity&#39;s average speed, in meters per second.</param>
 /// <param name="maxSpeed">The activity&#39;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;
 }
Exemple #4
0
 /// <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&#39;s distance, in meters.</param>
 /// <param name="movingTime">The activity&#39;s moving time, in seconds.</param>
 /// <param name="elapsedTime">The activity&#39;s elapsed time, in seconds.</param>
 /// <param name="totalElevationGain">The activity&#39;s total elevation gain..</param>
 /// <param name="elevHigh">The activity&#39;s highest elevation, in meters.</param>
 /// <param name="elevLow">The activity&#39;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&#39;s workout type.</param>
 /// <param name="averageSpeed">The activity&#39;s average speed, in meters per second.</param>
 /// <param name="maxSpeed">The activity&#39;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;
 }
Exemple #5
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;
 }