コード例 #1
0
        /// <summary>
        /// Returns true if ResponseInstructions instances are equal
        /// </summary>
        /// <param name="input">Instance of ResponseInstructions to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseInstructions input)
        {
            if (input == null)
            {
                return(false);
            }

            return(base.Equals(input));
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="RouteResponsePath" /> class.
 /// </summary>
 /// <param name="distance">The total distance of the route, in meter.</param>
 /// <param name="time">The total time of the route, in ms.</param>
 /// <param name="ascend">Ascend.</param>
 /// <param name="descend">The total descend (downhill) of the route, in meter.</param>
 /// <param name="points">Points.</param>
 /// <param name="pointsEncoded">Is true if the points are encoded, if not paths[0].points contains the geo json of the path (then order is lon,lat,elevation), which is easier to handle but consumes more bandwidth compared to encoded version.</param>
 /// <param name="bbox">The bounding box of the route, format &lt;br&gt; minLon, minLat, maxLon, maxLat.</param>
 /// <param name="snappedWaypoints">SnappedWaypoints.</param>
 /// <param name="instructions">Instructions.</param>
 /// <param name="details"></param>
 public RouteResponsePath(double?distance = default(double?), long?time = default(long?), double?ascend = default(double?), double?descend = default(double?), ResponseCoordinates points = default(ResponseCoordinates), bool?pointsEncoded = default(bool?), List <double?> bbox = default(List <double?>), ResponseCoordinates snappedWaypoints = default(ResponseCoordinates), ResponseInstructions instructions = default(ResponseInstructions), ResponseDetails details = default(ResponseDetails))
 {
     this.Distance         = distance;
     this.Time             = time;
     this.Ascend           = ascend;
     this.Descend          = descend;
     this.Points           = points;
     this.PointsEncoded    = pointsEncoded;
     this.Bbox             = bbox;
     this.SnappedWaypoints = snappedWaypoints;
     this.Instructions     = instructions;
     this.Details          = details;
 }