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

            return
                ((
                     TravelTime == other.TravelTime ||

                     TravelTime.Equals(other.TravelTime)
                     ) &&
                 (
                     Distance == other.Distance ||

                     Distance.Equals(other.Distance)
                 ) &&
                 (
                     Fares == other.Fares ||
                     Fares != null &&
                     Fares.Equals(other.Fares)
                 ) &&
                 (
                     Route == other.Route ||
                     Route != null &&
                     Route.Equals(other.Route)
                 ));
        }
        /// <summary>
        /// Returns true if RequestTimeFilterDepartureSearch instances are equal
        /// </summary>
        /// <param name="other">Instance of RequestTimeFilterDepartureSearch to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(RequestTimeFilterDepartureSearch other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     DepartureLocationId == other.DepartureLocationId ||
                     DepartureLocationId != null &&
                     DepartureLocationId.Equals(other.DepartureLocationId)
                 ) &&
                 (
                     ArrivalLocationIds == other.ArrivalLocationIds ||
                     ArrivalLocationIds != null &&
                     other.ArrivalLocationIds != null &&
                     ArrivalLocationIds.SequenceEqual(other.ArrivalLocationIds)
                 ) &&
                 (
                     Transportation == other.Transportation ||
                     Transportation != null &&
                     Transportation.Equals(other.Transportation)
                 ) &&
                 (
                     TravelTime == other.TravelTime ||

                     TravelTime.Equals(other.TravelTime)
                 ) &&
                 (
                     DepartureTime == other.DepartureTime ||
                     DepartureTime != null &&
                     DepartureTime.Equals(other.DepartureTime)
                 ) &&
                 (
                     Properties == other.Properties ||
                     Properties != null &&
                     other.Properties != null &&
                     Properties.SequenceEqual(other.Properties)
                 ) &&
                 (
                     Range == other.Range ||
                     Range != null &&
                     Range.Equals(other.Range)
                 ));
        }
コード例 #3
0
        /// <summary>
        /// Returns true if RequestTimeFilterPostcodeDistrictsArrivalSearch instances are equal
        /// </summary>
        /// <param name="other">Instance of RequestTimeFilterPostcodeDistrictsArrivalSearch to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(RequestTimeFilterPostcodeDistrictsArrivalSearch other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Transportation == other.Transportation ||
                     Transportation != null &&
                     Transportation.Equals(other.Transportation)
                 ) &&
                 (
                     TravelTime == other.TravelTime ||

                     TravelTime.Equals(other.TravelTime)
                 ) &&
                 (
                     ArrivalTime == other.ArrivalTime ||
                     ArrivalTime != null &&
                     ArrivalTime.Equals(other.ArrivalTime)
                 ) &&
                 (
                     ReachablePostcodesThreshold == other.ReachablePostcodesThreshold ||

                     ReachablePostcodesThreshold.Equals(other.ReachablePostcodesThreshold)
                 ) &&
                 (
                     Properties == other.Properties ||
                     Properties != null &&
                     other.Properties != null &&
                     Properties.SequenceEqual(other.Properties)
                 ) &&
                 (
                     Range == other.Range ||
                     Range != null &&
                     Range.Equals(other.Range)
                 ));
        }
コード例 #4
0
        /// <summary>
        /// Returns true if ResponseTimeFilterPostcodesProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ResponseTimeFilterPostcodesProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseTimeFilterPostcodesProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     TravelTime == other.TravelTime ||

                     TravelTime.Equals(other.TravelTime)
                     ) &&
                 (
                     Distance == other.Distance ||

                     Distance.Equals(other.Distance)
                 ));
        }
        /// <summary>
        /// Returns true if ResponseTimeFilterFastProperties instances are equal
        /// </summary>
        /// <param name="other">Instance of ResponseTimeFilterFastProperties to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseTimeFilterFastProperties other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     TravelTime == other.TravelTime ||

                     TravelTime.Equals(other.TravelTime)
                     ) &&
                 (
                     Fares == other.Fares ||
                     Fares != null &&
                     Fares.Equals(other.Fares)
                 ));
        }
コード例 #6
0
        /// <summary>
        /// Returns true if ResponseRoutePart instances are equal
        /// </summary>
        /// <param name="other">Instance of ResponseRoutePart to be compared</param>
        /// <returns>Boolean</returns>
        public bool Equals(ResponseRoutePart other)
        {
            if (other is null)
            {
                return(false);
            }
            if (ReferenceEquals(this, other))
            {
                return(true);
            }

            return
                ((
                     Id == other.Id ||
                     Id != null &&
                     Id.Equals(other.Id)
                     ) &&
                 (
                     Type == other.Type ||

                     Type.Equals(other.Type)
                 ) &&
                 (
                     Mode == other.Mode ||

                     Mode.Equals(other.Mode)
                 ) &&
                 (
                     Directions == other.Directions ||
                     Directions != null &&
                     Directions.Equals(other.Directions)
                 ) &&
                 (
                     Distance == other.Distance ||

                     Distance.Equals(other.Distance)
                 ) &&
                 (
                     TravelTime == other.TravelTime ||

                     TravelTime.Equals(other.TravelTime)
                 ) &&
                 (
                     Coords == other.Coords ||
                     Coords != null &&
                     other.Coords != null &&
                     Coords.SequenceEqual(other.Coords)
                 ) &&
                 (
                     Direction == other.Direction ||
                     Direction != null &&
                     Direction.Equals(other.Direction)
                 ) &&
                 (
                     Road == other.Road ||
                     Road != null &&
                     Road.Equals(other.Road)
                 ) &&
                 (
                     Turn == other.Turn ||
                     Turn != null &&
                     Turn.Equals(other.Turn)
                 ) &&
                 (
                     Line == other.Line ||
                     Line != null &&
                     Line.Equals(other.Line)
                 ) &&
                 (
                     DepartureStation == other.DepartureStation ||
                     DepartureStation != null &&
                     DepartureStation.Equals(other.DepartureStation)
                 ) &&
                 (
                     ArrivalStation == other.ArrivalStation ||
                     ArrivalStation != null &&
                     ArrivalStation.Equals(other.ArrivalStation)
                 ) &&
                 (
                     DepartsAt == other.DepartsAt ||
                     DepartsAt != null &&
                     DepartsAt.Equals(other.DepartsAt)
                 ) &&
                 (
                     ArrivesAt == other.ArrivesAt ||
                     ArrivesAt != null &&
                     ArrivesAt.Equals(other.ArrivesAt)
                 ) &&
                 (
                     NumStops == other.NumStops ||

                     NumStops.Equals(other.NumStops)
                 ));
        }