Пример #1
0
 /// <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&#39;s distance, in meters.</param>
 /// <param name="elevationGain">The route&#39;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&#39;s type (1 for ride, 2 for runs).</param>
 /// <param name="subType">This route&#39;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;
 }
Пример #2
0
 /// <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&#39;s distance, in meters.</param>
 /// <param name="elevationGain">The route&#39;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&#39;s type (1 for ride, 2 for runs).</param>
 /// <param name="subType">This route&#39;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;
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Comment" /> class.
 /// </summary>
 /// <param name="id">The unique identifier of this comment.</param>
 /// <param name="activityId">The identifier of the activity this comment is related to.</param>
 /// <param name="text">The content of the comment.</param>
 /// <param name="athlete">athlete.</param>
 /// <param name="createdAt">The time at which this comment was created..</param>
 public Comment(long?id = default(long?), long?activityId = default(long?), string text = default(string), SummaryAthlete athlete = default(SummaryAthlete), DateTime?createdAt = default(DateTime?))
 {
     this.Id         = id;
     this.ActivityId = activityId;
     this.Text       = text;
     this.Athlete    = athlete;
     this.CreatedAt  = createdAt;
 }