/// <summary> /// Returns true if ConfigDescriptionParameterGroupDTO instances are equal /// </summary> /// <param name="input">Instance of ConfigDescriptionParameterGroupDTO to be compared</param> /// <returns>Boolean</returns> public bool Equals(ConfigDescriptionParameterGroupDTO input) { if (input == null) { return(false); } return (( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( Context == input.Context || (Context != null && Context.Equals(input.Context)) ) && ( Advanced == input.Advanced || (Advanced != null && Advanced.Equals(input.Advanced)) ) && ( Label == input.Label || (Label != null && Label.Equals(input.Label)) ) && ( Description == input.Description || (Description != null && Description.Equals(input.Description)) )); }
/// <summary> /// Returns true if ChannelDefinitionDTO instances are equal /// </summary> /// <param name="input">Instance of ChannelDefinitionDTO to be compared</param> /// <returns>Boolean</returns> public bool Equals(ChannelDefinitionDTO input) { if (input == null) { return(false); } return (( Description == input.Description || (Description != null && Description.Equals(input.Description)) ) && ( Id == input.Id || (Id != null && Id.Equals(input.Id)) ) && ( Label == input.Label || (Label != null && Label.Equals(input.Label)) ) && ( Tags == input.Tags || Tags != null && Tags.SequenceEqual(input.Tags) ) && ( Properties == input.Properties || Properties != null && Properties.SequenceEqual(input.Properties) ) && ( Category == input.Category || (Category != null && Category.Equals(input.Category)) ) && ( StateDescription == input.StateDescription || (StateDescription != null && StateDescription.Equals(input.StateDescription)) ) && ( Advanced == input.Advanced || (Advanced != null && Advanced.Equals(input.Advanced)) ) && ( TypeUID == input.TypeUID || (TypeUID != null && TypeUID.Equals(input.TypeUID)) )); }
/// <summary> /// Returns true if ConfigDescriptionParameterDTO instances are equal /// </summary> /// <param name="input">Instance of ConfigDescriptionParameterDTO to be compared</param> /// <returns>Boolean</returns> public bool Equals(ConfigDescriptionParameterDTO input) { if (input == null) { return(false); } return (( Context == input.Context || (Context != null && Context.Equals(input.Context)) ) && ( DefaultValue == input.DefaultValue || (DefaultValue != null && DefaultValue.Equals(input.DefaultValue)) ) && ( Description == input.Description || (Description != null && Description.Equals(input.Description)) ) && ( Label == input.Label || (Label != null && Label.Equals(input.Label)) ) && ( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( Required == input.Required || (Required != null && Required.Equals(input.Required)) ) && ( Type == input.Type || (Type != null && Type.Equals(input.Type)) ) && ( Min == input.Min || (Min != null && Min.Equals(input.Min)) ) && ( Max == input.Max || (Max != null && Max.Equals(input.Max)) ) && ( Stepsize == input.Stepsize || (Stepsize != null && Stepsize.Equals(input.Stepsize)) ) && ( Pattern == input.Pattern || (Pattern != null && Pattern.Equals(input.Pattern)) ) && ( ReadOnly == input.ReadOnly || (ReadOnly != null && ReadOnly.Equals(input.ReadOnly)) ) && ( Multiple == input.Multiple || (Multiple != null && Multiple.Equals(input.Multiple)) ) && ( MultipleLimit == input.MultipleLimit || (MultipleLimit != null && MultipleLimit.Equals(input.MultipleLimit)) ) && ( GroupName == input.GroupName || (GroupName != null && GroupName.Equals(input.GroupName)) ) && ( Advanced == input.Advanced || (Advanced != null && Advanced.Equals(input.Advanced)) ) && ( Verify == input.Verify || (Verify != null && Verify.Equals(input.Verify)) ) && ( LimitToOptions == input.LimitToOptions || (LimitToOptions != null && LimitToOptions.Equals(input.LimitToOptions)) ) && ( Unit == input.Unit || (Unit != null && Unit.Equals(input.Unit)) ) && ( UnitLabel == input.UnitLabel || (UnitLabel != null && UnitLabel.Equals(input.UnitLabel)) ) && ( Options == input.Options || Options != null && Options.SequenceEqual(input.Options) ) && ( FilterCriteria == input.FilterCriteria || FilterCriteria != null && FilterCriteria.SequenceEqual(input.FilterCriteria) )); }
/// <summary> /// Returns true if ChannelTypeDTO instances are equal /// </summary> /// <param name="input">Instance of ChannelTypeDTO to be compared</param> /// <returns>Boolean</returns> public bool Equals(ChannelTypeDTO input) { if (input == null) { return(false); } return (( Parameters == input.Parameters || Parameters != null && Parameters.SequenceEqual(input.Parameters) ) && ( ParameterGroups == input.ParameterGroups || ParameterGroups != null && ParameterGroups.SequenceEqual(input.ParameterGroups) ) && ( Description == input.Description || (Description != null && Description.Equals(input.Description)) ) && ( Label == input.Label || (Label != null && Label.Equals(input.Label)) ) && ( Category == input.Category || (Category != null && Category.Equals(input.Category)) ) && ( ItemType == input.ItemType || (ItemType != null && ItemType.Equals(input.ItemType)) ) && ( Kind == input.Kind || (Kind != null && Kind.Equals(input.Kind)) ) && ( StateDescription == input.StateDescription || (StateDescription != null && StateDescription.Equals(input.StateDescription)) ) && ( Tags == input.Tags || Tags != null && Tags.SequenceEqual(input.Tags) ) && ( UID == input.UID || (UID != null && UID.Equals(input.UID)) ) && ( Advanced == input.Advanced || (Advanced != null && Advanced.Equals(input.Advanced)) ) && ( CommandDescription == input.CommandDescription || (CommandDescription != null && CommandDescription.Equals(input.CommandDescription)) )); }
/// <summary> /// Returns true if Order instances are equal /// </summary> /// <param name="other">Instance of Order to be compared</param> /// <returns>Boolean</returns> public bool Equals(Order other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Direction == other.Direction || Direction.Equals(other.Direction) ) && ( ReduceOnly == other.ReduceOnly || ReduceOnly != null && ReduceOnly.Equals(other.ReduceOnly) ) && ( Triggered == other.Triggered || Triggered != null && Triggered.Equals(other.Triggered) ) && ( OrderId == other.OrderId || OrderId != null && OrderId.Equals(other.OrderId) ) && ( Price == other.Price || Price != null && Price.Equals(other.Price) ) && ( TimeInForce == other.TimeInForce || TimeInForce.Equals(other.TimeInForce) ) && ( Api == other.Api || Api != null && Api.Equals(other.Api) ) && ( OrderState == other.OrderState || OrderState.Equals(other.OrderState) ) && ( Implv == other.Implv || Implv != null && Implv.Equals(other.Implv) ) && ( Advanced == other.Advanced || Advanced.Equals(other.Advanced) ) && ( PostOnly == other.PostOnly || PostOnly != null && PostOnly.Equals(other.PostOnly) ) && ( Usd == other.Usd || Usd != null && Usd.Equals(other.Usd) ) && ( StopPrice == other.StopPrice || StopPrice != null && StopPrice.Equals(other.StopPrice) ) && ( OrderType == other.OrderType || OrderType.Equals(other.OrderType) ) && ( LastUpdateTimestamp == other.LastUpdateTimestamp || LastUpdateTimestamp != null && LastUpdateTimestamp.Equals(other.LastUpdateTimestamp) ) && ( OriginalOrderType == other.OriginalOrderType || OriginalOrderType.Equals(other.OriginalOrderType) ) && ( MaxShow == other.MaxShow || MaxShow != null && MaxShow.Equals(other.MaxShow) ) && ( ProfitLoss == other.ProfitLoss || ProfitLoss != null && ProfitLoss.Equals(other.ProfitLoss) ) && ( IsLiquidation == other.IsLiquidation || IsLiquidation != null && IsLiquidation.Equals(other.IsLiquidation) ) && ( FilledAmount == other.FilledAmount || FilledAmount != null && FilledAmount.Equals(other.FilledAmount) ) && ( Label == other.Label || Label != null && Label.Equals(other.Label) ) && ( Commission == other.Commission || Commission != null && Commission.Equals(other.Commission) ) && ( Amount == other.Amount || Amount != null && Amount.Equals(other.Amount) ) && ( Trigger == other.Trigger || Trigger.Equals(other.Trigger) ) && ( InstrumentName == other.InstrumentName || InstrumentName != null && InstrumentName.Equals(other.InstrumentName) ) && ( CreationTimestamp == other.CreationTimestamp || CreationTimestamp != null && CreationTimestamp.Equals(other.CreationTimestamp) ) && ( AveragePrice == other.AveragePrice || AveragePrice != null && AveragePrice.Equals(other.AveragePrice) )); }