/// <summary> /// Returns true if DumpTruck instances are equal /// </summary> /// <param name="other">Instance of DumpTruck to be compared</param> /// <returns>Boolean</returns> public bool Equals(DumpTruck other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( IsSingleAxle == other.IsSingleAxle || IsSingleAxle != null && IsSingleAxle.Equals(other.IsSingleAxle) ) && ( IsTandemAxle == other.IsTandemAxle || IsTandemAxle != null && IsTandemAxle.Equals(other.IsTandemAxle) ) && ( IsTridem == other.IsTridem || IsTridem != null && IsTridem.Equals(other.IsTridem) ) && ( HasPUP == other.HasPUP || HasPUP != null && HasPUP.Equals(other.HasPUP) ) && ( HasBellyDump == other.HasBellyDump || HasBellyDump != null && HasBellyDump.Equals(other.HasBellyDump) ) && ( HasRockBox == other.HasRockBox || HasRockBox != null && HasRockBox.Equals(other.HasRockBox) ) && ( HasHiliftGate == other.HasHiliftGate || HasHiliftGate != null && HasHiliftGate.Equals(other.HasHiliftGate) ) && ( IsWaterTruck == other.IsWaterTruck || IsWaterTruck != null && IsWaterTruck.Equals(other.IsWaterTruck) ) && ( HasSealcoatHitch == other.HasSealcoatHitch || HasSealcoatHitch != null && HasSealcoatHitch.Equals(other.HasSealcoatHitch) ) && ( RearAxleSpacing == other.RearAxleSpacing || RearAxleSpacing != null && RearAxleSpacing.Equals(other.RearAxleSpacing) ) && ( FrontTireSize == other.FrontTireSize || FrontTireSize != null && FrontTireSize.Equals(other.FrontTireSize) ) && ( FrontTireUOM == other.FrontTireUOM || FrontTireUOM != null && FrontTireUOM.Equals(other.FrontTireUOM) ) && ( FrontAxleCapacity == other.FrontAxleCapacity || FrontAxleCapacity != null && FrontAxleCapacity.Equals(other.FrontAxleCapacity) ) && ( RearAxleCapacity == other.RearAxleCapacity || RearAxleCapacity != null && RearAxleCapacity.Equals(other.RearAxleCapacity) ) && ( LegalLoad == other.LegalLoad || LegalLoad != null && LegalLoad.Equals(other.LegalLoad) ) && ( LegalCapacity == other.LegalCapacity || LegalCapacity != null && LegalCapacity.Equals(other.LegalCapacity) ) && ( LegalPUPTareWeight == other.LegalPUPTareWeight || LegalPUPTareWeight != null && LegalPUPTareWeight.Equals(other.LegalPUPTareWeight) ) && ( LicencedGVW == other.LicencedGVW || LicencedGVW != null && LicencedGVW.Equals(other.LicencedGVW) ) && ( LicencedGVWUOM == other.LicencedGVWUOM || LicencedGVWUOM != null && LicencedGVWUOM.Equals(other.LicencedGVWUOM) ) && ( LicencedTareWeight == other.LicencedTareWeight || LicencedTareWeight != null && LicencedTareWeight.Equals(other.LicencedTareWeight) ) && ( LicencedPUPTareWeight == other.LicencedPUPTareWeight || LicencedPUPTareWeight != null && LicencedPUPTareWeight.Equals(other.LicencedPUPTareWeight) ) && ( LicencedLoad == other.LicencedLoad || LicencedLoad != null && LicencedLoad.Equals(other.LicencedLoad) ) && ( LicencedCapacity == other.LicencedCapacity || LicencedCapacity != null && LicencedCapacity.Equals(other.LicencedCapacity) ) && ( BoxLength == other.BoxLength || BoxLength != null && BoxLength.Equals(other.BoxLength) ) && ( BoxWidth == other.BoxWidth || BoxWidth != null && BoxWidth.Equals(other.BoxWidth) ) && ( BoxHeight == other.BoxHeight || BoxHeight != null && BoxHeight.Equals(other.BoxHeight) ) && ( BoxCapacity == other.BoxCapacity || BoxCapacity != null && BoxCapacity.Equals(other.BoxCapacity) ) && ( TrailerBoxLength == other.TrailerBoxLength || TrailerBoxLength != null && TrailerBoxLength.Equals(other.TrailerBoxLength) ) && ( TrailerBoxWidth == other.TrailerBoxWidth || TrailerBoxWidth != null && TrailerBoxWidth.Equals(other.TrailerBoxWidth) ) && ( TrailerBoxHeight == other.TrailerBoxHeight || TrailerBoxHeight != null && TrailerBoxHeight.Equals(other.TrailerBoxHeight) ) && ( TrailerBoxCapacity == other.TrailerBoxCapacity || TrailerBoxCapacity != null && TrailerBoxCapacity.Equals(other.TrailerBoxCapacity) )); }