/// <summary> /// Returns true if Withdrawal instances are equal /// </summary> /// <param name="other">Instance of Withdrawal to be compared</param> /// <returns>Boolean</returns> public bool Equals(Withdrawal other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( UpdatedTimestamp == other.UpdatedTimestamp || UpdatedTimestamp != null && UpdatedTimestamp.Equals(other.UpdatedTimestamp) ) && ( Fee == other.Fee || Fee != null && Fee.Equals(other.Fee) ) && ( ConfirmedTimestamp == other.ConfirmedTimestamp || ConfirmedTimestamp != null && ConfirmedTimestamp.Equals(other.ConfirmedTimestamp) ) && ( Amount == other.Amount || Amount != null && Amount.Equals(other.Amount) ) && ( Priority == other.Priority || Priority != null && Priority.Equals(other.Priority) ) && ( Currency == other.Currency || Currency.Equals(other.Currency) ) && ( State == other.State || State.Equals(other.State) ) && ( Address == other.Address || Address != null && Address.Equals(other.Address) ) && ( CreatedTimestamp == other.CreatedTimestamp || CreatedTimestamp != null && CreatedTimestamp.Equals(other.CreatedTimestamp) ) && ( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( TransactionId == other.TransactionId || TransactionId != null && TransactionId.Equals(other.TransactionId) )); }
/// <summary> /// Returns true if UserTrade instances are equal /// </summary> /// <param name="other">Instance of UserTrade to be compared</param> /// <returns>Boolean</returns> public bool Equals(UserTrade other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Direction == other.Direction || Direction.Equals(other.Direction) ) && ( FeeCurrency == other.FeeCurrency || FeeCurrency.Equals(other.FeeCurrency) ) && ( OrderId == other.OrderId || OrderId != null && OrderId.Equals(other.OrderId) ) && ( Timestamp == other.Timestamp || Timestamp != null && Timestamp.Equals(other.Timestamp) ) && ( Price == other.Price || Price != null && Price.Equals(other.Price) ) && ( Iv == other.Iv || Iv != null && Iv.Equals(other.Iv) ) && ( TradeId == other.TradeId || TradeId != null && TradeId.Equals(other.TradeId) ) && ( Fee == other.Fee || Fee != null && Fee.Equals(other.Fee) ) && ( OrderType == other.OrderType || OrderType.Equals(other.OrderType) ) && ( TradeSeq == other.TradeSeq || TradeSeq != null && TradeSeq.Equals(other.TradeSeq) ) && ( SelfTrade == other.SelfTrade || SelfTrade != null && SelfTrade.Equals(other.SelfTrade) ) && ( State == other.State || State.Equals(other.State) ) && ( Label == other.Label || Label != null && Label.Equals(other.Label) ) && ( IndexPrice == other.IndexPrice || IndexPrice != null && IndexPrice.Equals(other.IndexPrice) ) && ( Amount == other.Amount || Amount != null && Amount.Equals(other.Amount) ) && ( InstrumentName == other.InstrumentName || InstrumentName != null && InstrumentName.Equals(other.InstrumentName) ) && ( TickDirection == other.TickDirection || TickDirection.Equals(other.TickDirection) ) && ( MatchingId == other.MatchingId || MatchingId != null && MatchingId.Equals(other.MatchingId) ) && ( Liquidity == other.Liquidity || Liquidity.Equals(other.Liquidity) )); }
/// <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) )); }