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

            return
                ((
                     PublicTransport == other.PublicTransport ||
                     PublicTransport != null &&
                     PublicTransport.Equals(other.PublicTransport)
                     ) &&
                 (
                     Fares == other.Fares ||

                     Fares.Equals(other.Fares)
                 ) &&
                 (
                     Postcodes == other.Postcodes ||

                     Postcodes.Equals(other.Postcodes)
                 ));
        }
예제 #2
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)
                 ));
        }