/// <summary> /// Returns true if ServiceBundleServiceDetail instances are equal /// </summary> /// <param name="other">Instance of ServiceBundleServiceDetail to be compared</param> /// <returns>Boolean</returns> public bool Equals(ServiceBundleServiceDetail other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Code == other.Code || Code != null && Code.Equals(other.Code) ) && ( ChargingTriggerInfo == other.ChargingTriggerInfo || ChargingTriggerInfo != null && ChargingTriggerInfo.Equals(other.ChargingTriggerInfo) ) && ( EventLimitQuantity == other.EventLimitQuantity || EventLimitQuantity != null && EventLimitQuantity.Equals(other.EventLimitQuantity) ) && ( FreeEventQuantity == other.FreeEventQuantity || FreeEventQuantity != null && FreeEventQuantity.Equals(other.FreeEventQuantity) )); }
/// <summary> /// Returns true if AccountPriorityService instances are equal /// </summary> /// <param name="other">Instance of AccountPriorityService to be compared</param> /// <returns>Boolean</returns> public bool Equals(AccountPriorityService other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Code == other.Code || Code != null && Code.Equals(other.Code) ) && ( ChargingTriggerInfo == other.ChargingTriggerInfo || ChargingTriggerInfo != null && ChargingTriggerInfo.Equals(other.ChargingTriggerInfo) ) && ( Prices == other.Prices || Prices != null && Prices.SequenceEqual(other.Prices) ) && ( Minimum == other.Minimum || Minimum != null && Minimum.Equals(other.Minimum) ) && ( Maximum == other.Maximum || Maximum != null && Maximum.Equals(other.Maximum) )); }