/// <summary> /// Returns true if LocalAreaRotationList instances are equal /// </summary> /// <param name="other">Instance of LocalAreaRotationList to be compared</param> /// <returns>Boolean</returns> public bool Equals(LocalAreaRotationList other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( DistrictEquipmentType == other.DistrictEquipmentType || DistrictEquipmentType != null && DistrictEquipmentType.Equals(other.DistrictEquipmentType) ) && ( LocalArea == other.LocalArea || LocalArea != null && LocalArea.Equals(other.LocalArea) ) && ( AskNextBlock1 == other.AskNextBlock1 || AskNextBlock1 != null && AskNextBlock1.Equals(other.AskNextBlock1) ) && ( AskNextBlock1Seniority == other.AskNextBlock1Seniority || AskNextBlock1Seniority != null && AskNextBlock1Seniority.Equals(other.AskNextBlock1Seniority) ) && ( AskNextBlock2 == other.AskNextBlock2 || AskNextBlock2 != null && AskNextBlock2.Equals(other.AskNextBlock2) ) && ( AskNextBlock2Seniority == other.AskNextBlock2Seniority || AskNextBlock2Seniority != null && AskNextBlock2Seniority.Equals(other.AskNextBlock2Seniority) ) && ( AskNextBlockOpen == other.AskNextBlockOpen || AskNextBlockOpen != null && AskNextBlockOpen.Equals(other.AskNextBlockOpen) )); }
/// <summary> /// Returns true if RentalRequest instances are equal /// </summary> /// <param name="other">Instance of RentalRequest to be compared</param> /// <returns>Boolean</returns> public bool Equals(RentalRequest other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id.Equals(other.Id) ) && ( Project == other.Project || Project != null && Project.Equals(other.Project) ) && ( LocalArea == other.LocalArea || LocalArea != null && LocalArea.Equals(other.LocalArea) ) && ( Status == other.Status || Status != null && Status.Equals(other.Status) ) && ( DistrictEquipmentType == other.DistrictEquipmentType || DistrictEquipmentType != null && DistrictEquipmentType.Equals(other.DistrictEquipmentType) ) && ( EquipmentCount == other.EquipmentCount || EquipmentCount.Equals(other.EquipmentCount) ) && ( ExpectedHours == other.ExpectedHours || ExpectedHours != null && ExpectedHours.Equals(other.ExpectedHours) ) && ( ExpectedStartDate == other.ExpectedStartDate || ExpectedStartDate != null && ExpectedStartDate.Equals(other.ExpectedStartDate) ) && ( ExpectedEndDate == other.ExpectedEndDate || ExpectedEndDate != null && ExpectedEndDate.Equals(other.ExpectedEndDate) ) && ( FirstOnRotationList == other.FirstOnRotationList || FirstOnRotationList != null && FirstOnRotationList.Equals(other.FirstOnRotationList) ) && ( Notes == other.Notes || Notes != null && Notes.SequenceEqual(other.Notes) ) && ( Attachments == other.Attachments || Attachments != null && Attachments.SequenceEqual(other.Attachments) ) && ( History == other.History || History != null && History.SequenceEqual(other.History) ) && ( RentalRequestAttachments == other.RentalRequestAttachments || RentalRequestAttachments != null && RentalRequestAttachments.SequenceEqual(other.RentalRequestAttachments) ) && ( RentalRequestRotationList == other.RentalRequestRotationList || RentalRequestRotationList != null && RentalRequestRotationList.SequenceEqual(other.RentalRequestRotationList) )); }