/// <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)
                 ));
        }
Пример #2
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)
                 ));
        }