public bool DeepEquals(DestinyItemCategoryDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && Visible == other.Visible && Deprecated == other.Deprecated && ShortTitle == other.ShortTitle && ItemTypeRegex == other.ItemTypeRegex && GrantDestinyBreakerType == other.GrantDestinyBreakerType && PlugCategoryIdentifier == other.PlugCategoryIdentifier && ItemTypeRegexNot == other.ItemTypeRegexNot && OriginBucketIdentifier == other.OriginBucketIdentifier && GrantDestinyItemType == other.GrantDestinyItemType && GrantDestinySubType == other.GrantDestinySubType && GrantDestinyClass == other.GrantDestinyClass && TraitId == other.TraitId && GroupedCategoryHashes.DeepEqualsListNaive(other.GroupedCategoryHashes) && ParentCategoryHashes.DeepEqualsListNaive(other.ParentCategoryHashes) && GroupCategoryOnly == other.GroupCategoryOnly && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public void Update(DestinyItemCategoryDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (Visible != other.Visible) { Visible = other.Visible; OnPropertyChanged(nameof(Visible)); } if (Deprecated != other.Deprecated) { Deprecated = other.Deprecated; OnPropertyChanged(nameof(Deprecated)); } if (ShortTitle != other.ShortTitle) { ShortTitle = other.ShortTitle; OnPropertyChanged(nameof(ShortTitle)); } if (ItemTypeRegex != other.ItemTypeRegex) { ItemTypeRegex = other.ItemTypeRegex; OnPropertyChanged(nameof(ItemTypeRegex)); } if (GrantDestinyBreakerType != other.GrantDestinyBreakerType) { GrantDestinyBreakerType = other.GrantDestinyBreakerType; OnPropertyChanged(nameof(GrantDestinyBreakerType)); } if (PlugCategoryIdentifier != other.PlugCategoryIdentifier) { PlugCategoryIdentifier = other.PlugCategoryIdentifier; OnPropertyChanged(nameof(PlugCategoryIdentifier)); } if (ItemTypeRegexNot != other.ItemTypeRegexNot) { ItemTypeRegexNot = other.ItemTypeRegexNot; OnPropertyChanged(nameof(ItemTypeRegexNot)); } if (OriginBucketIdentifier != other.OriginBucketIdentifier) { OriginBucketIdentifier = other.OriginBucketIdentifier; OnPropertyChanged(nameof(OriginBucketIdentifier)); } if (GrantDestinyItemType != other.GrantDestinyItemType) { GrantDestinyItemType = other.GrantDestinyItemType; OnPropertyChanged(nameof(GrantDestinyItemType)); } if (GrantDestinySubType != other.GrantDestinySubType) { GrantDestinySubType = other.GrantDestinySubType; OnPropertyChanged(nameof(GrantDestinySubType)); } if (GrantDestinyClass != other.GrantDestinyClass) { GrantDestinyClass = other.GrantDestinyClass; OnPropertyChanged(nameof(GrantDestinyClass)); } if (TraitId != other.TraitId) { TraitId = other.TraitId; OnPropertyChanged(nameof(TraitId)); } if (!GroupedCategoryHashes.DeepEqualsListNaive(other.GroupedCategoryHashes)) { GroupedCategoryHashes = other.GroupedCategoryHashes; OnPropertyChanged(nameof(GroupedCategoryHashes)); } if (!ParentCategoryHashes.DeepEqualsListNaive(other.ParentCategoryHashes)) { ParentCategoryHashes = other.ParentCategoryHashes; OnPropertyChanged(nameof(ParentCategoryHashes)); } if (GroupCategoryOnly != other.GroupCategoryOnly) { GroupCategoryOnly = other.GroupCategoryOnly; OnPropertyChanged(nameof(GroupCategoryOnly)); } if (Hash != other.Hash) { Hash = other.Hash; OnPropertyChanged(nameof(Hash)); } if (Index != other.Index) { Index = other.Index; OnPropertyChanged(nameof(Index)); } if (Redacted != other.Redacted) { Redacted = other.Redacted; OnPropertyChanged(nameof(Redacted)); } }
public bool Equals(DestinyItemCategoryDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( Visible == input.Visible || (Visible != null && Visible.Equals(input.Visible)) ) && ( Deprecated == input.Deprecated || (Deprecated != null && Deprecated.Equals(input.Deprecated)) ) && ( ShortTitle == input.ShortTitle || (ShortTitle != null && ShortTitle.Equals(input.ShortTitle)) ) && ( ItemTypeRegex == input.ItemTypeRegex || (ItemTypeRegex != null && ItemTypeRegex.Equals(input.ItemTypeRegex)) ) && ( GrantDestinyBreakerType == input.GrantDestinyBreakerType || (GrantDestinyBreakerType != null && GrantDestinyBreakerType.Equals(input.GrantDestinyBreakerType)) ) && ( PlugCategoryIdentifier == input.PlugCategoryIdentifier || (PlugCategoryIdentifier != null && PlugCategoryIdentifier.Equals(input.PlugCategoryIdentifier)) ) && ( ItemTypeRegexNot == input.ItemTypeRegexNot || (ItemTypeRegexNot != null && ItemTypeRegexNot.Equals(input.ItemTypeRegexNot)) ) && ( OriginBucketIdentifier == input.OriginBucketIdentifier || (OriginBucketIdentifier != null && OriginBucketIdentifier.Equals(input.OriginBucketIdentifier)) ) && ( GrantDestinyItemType == input.GrantDestinyItemType || (GrantDestinyItemType != null && GrantDestinyItemType.Equals(input.GrantDestinyItemType)) ) && ( GrantDestinySubType == input.GrantDestinySubType || (GrantDestinySubType != null && GrantDestinySubType.Equals(input.GrantDestinySubType)) ) && ( GrantDestinyClass == input.GrantDestinyClass || (GrantDestinyClass != null && GrantDestinyClass.Equals(input.GrantDestinyClass)) ) && ( TraitId == input.TraitId || (TraitId != null && TraitId.Equals(input.TraitId)) ) && ( GroupedCategoryHashes == input.GroupedCategoryHashes || (GroupedCategoryHashes != null && GroupedCategoryHashes.SequenceEqual(input.GroupedCategoryHashes)) ) && ( ParentCategoryHashes == input.ParentCategoryHashes || (ParentCategoryHashes != null && ParentCategoryHashes.SequenceEqual(input.ParentCategoryHashes)) ) && ( GroupCategoryOnly == input.GroupCategoryOnly || (GroupCategoryOnly != null && GroupCategoryOnly.Equals(input.GroupCategoryOnly)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }