/// <summary> /// Returns true if DutyAssignmentRedeploymentEvent instances are equal /// </summary> /// <param name="other">Instance of DutyAssignmentRedeploymentEvent to be compared</param> /// <returns>Boolean</returns> public bool Equals(DutyAssignmentRedeploymentEvent other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( AssignmentNumber == other.AssignmentNumber || AssignmentNumber != null && AssignmentNumber.Equals(other.AssignmentNumber) ) && ( OriginalDuty == other.OriginalDuty || OriginalDuty != null && OriginalDuty.Equals(other.OriginalDuty) ) && ( NewDuty == other.NewDuty || NewDuty != null && NewDuty.Equals(other.NewDuty) )); }
/// <summary> /// Returns true if Posting instances are equal /// </summary> /// <param name="other">Instance of Posting to be compared</param> /// <returns>Boolean</returns> public bool Equals(Posting other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Unit == other.Unit || Unit != null && Unit.Equals(other.Unit) ) && ( Post == other.Post || Post != null && Post.Equals(other.Post) ) && ( PostingType == other.PostingType || PostingType != null && PostingType.Equals(other.PostingType) ) && ( AssignmentNumber == other.AssignmentNumber || AssignmentNumber != null && AssignmentNumber.Equals(other.AssignmentNumber) ) && ( Team == other.Team || Team != null && Team.Equals(other.Team) ) && ( IsPrimary == other.IsPrimary || IsPrimary.Equals(other.IsPrimary) )); }