public bool Equals(DestinyPresentationNodeDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( OriginalIcon == input.OriginalIcon || (OriginalIcon != null && OriginalIcon.Equals(input.OriginalIcon)) ) && ( RootViewIcon == input.RootViewIcon || (RootViewIcon != null && RootViewIcon.Equals(input.RootViewIcon)) ) && ( NodeType == input.NodeType || (NodeType != null && NodeType.Equals(input.NodeType)) ) && ( Scope == input.Scope || (Scope != null && Scope.Equals(input.Scope)) ) && ( ObjectiveHash == input.ObjectiveHash || (ObjectiveHash.Equals(input.ObjectiveHash)) ) && ( CompletionRecordHash == input.CompletionRecordHash || (CompletionRecordHash.Equals(input.CompletionRecordHash)) ) && ( Children == input.Children || (Children != null && Children.Equals(input.Children)) ) && ( DisplayStyle == input.DisplayStyle || (DisplayStyle != null && DisplayStyle.Equals(input.DisplayStyle)) ) && ( ScreenStyle == input.ScreenStyle || (ScreenStyle != null && ScreenStyle.Equals(input.ScreenStyle)) ) && ( Requirements == input.Requirements || (Requirements != null && Requirements.Equals(input.Requirements)) ) && ( DisableChildSubscreenNavigation == input.DisableChildSubscreenNavigation || (DisableChildSubscreenNavigation != null && DisableChildSubscreenNavigation.Equals(input.DisableChildSubscreenNavigation)) ) && ( MaxCategoryRecordScore == input.MaxCategoryRecordScore || (MaxCategoryRecordScore.Equals(input.MaxCategoryRecordScore)) ) && ( PresentationNodeType == input.PresentationNodeType || (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType)) ) && ( TraitIds == input.TraitIds || (TraitIds != null && TraitIds.SequenceEqual(input.TraitIds)) ) && ( TraitHashes == input.TraitHashes || (TraitHashes != null && TraitHashes.SequenceEqual(input.TraitHashes)) ) && ( ParentNodeHashes == input.ParentNodeHashes || (ParentNodeHashes != null && ParentNodeHashes.SequenceEqual(input.ParentNodeHashes)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public bool Equals(DestinyRecordDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( Scope == input.Scope || (Scope != null && Scope.Equals(input.Scope)) ) && ( PresentationInfo == input.PresentationInfo || (PresentationInfo != null && PresentationInfo.Equals(input.PresentationInfo)) ) && ( LoreHash == input.LoreHash || (LoreHash.Equals(input.LoreHash)) ) && ( ObjectiveHashes == input.ObjectiveHashes || (ObjectiveHashes != null && ObjectiveHashes.SequenceEqual(input.ObjectiveHashes)) ) && ( RecordValueStyle == input.RecordValueStyle || (RecordValueStyle != null && RecordValueStyle.Equals(input.RecordValueStyle)) ) && ( ForTitleGilding == input.ForTitleGilding || (ForTitleGilding != null && ForTitleGilding.Equals(input.ForTitleGilding)) ) && ( TitleInfo == input.TitleInfo || (TitleInfo != null && TitleInfo.Equals(input.TitleInfo)) ) && ( CompletionInfo == input.CompletionInfo || (CompletionInfo != null && CompletionInfo.Equals(input.CompletionInfo)) ) && ( StateInfo == input.StateInfo || (StateInfo != null && StateInfo.Equals(input.StateInfo)) ) && ( Requirements == input.Requirements || (Requirements != null && Requirements.Equals(input.Requirements)) ) && ( ExpirationInfo == input.ExpirationInfo || (ExpirationInfo != null && ExpirationInfo.Equals(input.ExpirationInfo)) ) && ( IntervalInfo == input.IntervalInfo || (IntervalInfo != null && IntervalInfo.Equals(input.IntervalInfo)) ) && ( RewardItems == input.RewardItems || (RewardItems != null && RewardItems.SequenceEqual(input.RewardItems)) ) && ( PresentationNodeType == input.PresentationNodeType || (PresentationNodeType != null && PresentationNodeType.Equals(input.PresentationNodeType)) ) && ( TraitIds == input.TraitIds || (TraitIds != null && TraitIds.SequenceEqual(input.TraitIds)) ) && ( TraitHashes == input.TraitHashes || (TraitHashes != null && TraitHashes.SequenceEqual(input.TraitHashes)) ) && ( ParentNodeHashes == input.ParentNodeHashes || (ParentNodeHashes != null && ParentNodeHashes.SequenceEqual(input.ParentNodeHashes)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
/// <summary> /// Returns true if Duty instances are equal /// </summary> /// <param name="other">Instance of Duty to be compared</param> /// <returns>Boolean</returns> public bool Equals(Duty other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( When == other.When || When != null && When.Equals(other.When) ) && ( Where == other.Where || Where != null && Where.Equals(other.Where) ) && ( Requirements == other.Requirements || Requirements != null && Requirements.Equals(other.Requirements) ) && ( ClientDeptId == other.ClientDeptId || ClientDeptId != null && ClientDeptId.Equals(other.ClientDeptId) ) && ( SubDiscipline == other.SubDiscipline || SubDiscipline != null && SubDiscipline.Equals(other.SubDiscipline) ) && ( Grade == other.Grade || Grade != null && Grade.Equals(other.Grade) ) && ( FallbackGrade == other.FallbackGrade || FallbackGrade != null && FallbackGrade.Equals(other.FallbackGrade) ) && ( VacancyReason == other.VacancyReason || VacancyReason != null && VacancyReason.Equals(other.VacancyReason) ) && ( PoNumber == other.PoNumber || PoNumber.Equals(other.PoNumber) ) && ( UniqueNumber == other.UniqueNumber || UniqueNumber.Equals(other.UniqueNumber) ) && ( Agency == other.Agency || Agency != null && Agency.Equals(other.Agency) )); }