/// <summary> /// Returns true if ResponseRoute instances are equal /// </summary> /// <param name="other">Instance of ResponseRoute to be compared</param> /// <returns>Boolean</returns> public bool Equals(ResponseRoute other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( DepartureTime == other.DepartureTime || DepartureTime != null && DepartureTime.Equals(other.DepartureTime) ) && ( ArrivalTime == other.ArrivalTime || ArrivalTime != null && ArrivalTime.Equals(other.ArrivalTime) ) && ( Parts == other.Parts || Parts != null && other.Parts != null && Parts.SequenceEqual(other.Parts) )); }
/// <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) )); }
public bool Equals(Flight other) { if (other != null) { return(Origin.Equals(other.Origin) && Destination.Equals(other.Destination) && DepartureTime.Equals(other.DepartureTime) && DestinationTime.Equals(other.DestinationTime) && Price.Equals(other.Price)); } return(false); }
public override bool Equals(Object obj) { if (obj.GetType() != typeof(FlightDetails)) { return(false); } FlightDetails fd = (obj as FlightDetails); return(Origin.Equals(fd.Origin) && Destination.Equals(fd.Destination) && Price == fd.Price && DepartureTime.Equals(fd.DepartureTime) && DestinationTime.Equals(fd.DestinationTime)); }
/// <summary> /// Returns true if RequestTimeFilterPostcodeSectorsDepartureSearch instances are equal /// </summary> /// <param name="other">Instance of RequestTimeFilterPostcodeSectorsDepartureSearch to be compared</param> /// <returns>Boolean</returns> public bool Equals(RequestTimeFilterPostcodeSectorsDepartureSearch 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) ) && ( DepartureTime == other.DepartureTime || DepartureTime != null && DepartureTime.Equals(other.DepartureTime) ) && ( 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) )); }
public bool Equals(SearchFlightsQuery other) { return(other != null && OriginIATACode == other.OriginIATACode && DestinationIATACode == other.DestinationIATACode && DepartureTime.Equals(other.DepartureTime) && NumberOfAdults == other.NumberOfAdults && EqualityComparer <DateTimeOffset?> .Default.Equals(ReturnDate, other.ReturnDate) && NumberOfChildren == other.NumberOfChildren && NumberOfInfants == other.NumberOfInfants && TravelClass == other.TravelClass && IncludedAirlineCodes == other.IncludedAirlineCodes && ExcludedAirlineCodes == other.ExcludedAirlineCodes && NoStops == other.NoStops && CurrencyCode == other.CurrencyCode && MaxPrice == other.MaxPrice && Max == other.Max); }
public bool Equals(Flight other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(string.Equals(Company, other.Company) && string.Equals(From, other.From) && string.Equals(To, other.To) && RequestedDate.Equals(other.RequestedDate) && DepartureDate.Equals(other.DepartureDate) && ArrivalDate.Equals(other.ArrivalDate) && DepartureTime.Equals(other.DepartureTime) && ArrivalTime.Equals(other.ArrivalTime) && Price.Equals(other.Price)); }
/// <summary> /// Returns true if AirlineFlightLeg instances are equal /// </summary> /// <param name="other">Instance of AirlineFlightLeg to be compared</param> /// <returns>Boolean</returns> public bool Equals(AirlineFlightLeg other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AirlineClass == other.AirlineClass || AirlineClass != null && AirlineClass.Equals(other.AirlineClass) ) && ( ArrivalAirport == other.ArrivalAirport || ArrivalAirport != null && ArrivalAirport.Equals(other.ArrivalAirport) ) && ( ArrivalTime == other.ArrivalTime || ArrivalTime != null && ArrivalTime.Equals(other.ArrivalTime) ) && ( CarrierCode == other.CarrierCode || CarrierCode != null && CarrierCode.Equals(other.CarrierCode) ) && ( ConjunctionTicket == other.ConjunctionTicket || ConjunctionTicket != null && ConjunctionTicket.Equals(other.ConjunctionTicket) ) && ( CouponNumber == other.CouponNumber || CouponNumber != null && CouponNumber.Equals(other.CouponNumber) ) && ( Date == other.Date || Date != null && Date.Equals(other.Date) ) && ( DepartureTime == other.DepartureTime || DepartureTime != null && DepartureTime.Equals(other.DepartureTime) ) && ( EndorsementOrRestriction == other.EndorsementOrRestriction || EndorsementOrRestriction != null && EndorsementOrRestriction.Equals(other.EndorsementOrRestriction) ) && ( ExchangeTicket == other.ExchangeTicket || ExchangeTicket != null && ExchangeTicket.Equals(other.ExchangeTicket) ) && ( Fare == other.Fare || Fare != null && Fare.Equals(other.Fare) ) && ( FareBasis == other.FareBasis || FareBasis != null && FareBasis.Equals(other.FareBasis) ) && ( Fee == other.Fee || Fee != null && Fee.Equals(other.Fee) ) && ( FlightNumber == other.FlightNumber || FlightNumber != null && FlightNumber.Equals(other.FlightNumber) ) && ( Number == other.Number || Number != null && Number.Equals(other.Number) ) && ( OriginAirport == other.OriginAirport || OriginAirport != null && OriginAirport.Equals(other.OriginAirport) ) && ( PassengerClass == other.PassengerClass || PassengerClass != null && PassengerClass.Equals(other.PassengerClass) ) && ( ServiceClass == other.ServiceClass || ServiceClass != null && ServiceClass.Equals(other.ServiceClass) ) && ( StopoverCode == other.StopoverCode || StopoverCode != null && StopoverCode.Equals(other.StopoverCode) ) && ( Taxes == other.Taxes || Taxes != null && Taxes.Equals(other.Taxes) )); }