public bool DeepEquals(DestinyEquipmentSlotDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && EquipmentCategoryHash == other.EquipmentCategoryHash && BucketTypeHash == other.BucketTypeHash && ApplyCustomArtDyes == other.ApplyCustomArtDyes && ArtDyeChannels.DeepEqualsList(other.ArtDyeChannels) && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public void Update(DestinyEquipmentSlotDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (EquipmentCategoryHash != other.EquipmentCategoryHash) { EquipmentCategoryHash = other.EquipmentCategoryHash; OnPropertyChanged(nameof(EquipmentCategoryHash)); } if (BucketTypeHash != other.BucketTypeHash) { BucketTypeHash = other.BucketTypeHash; OnPropertyChanged(nameof(BucketTypeHash)); } if (ApplyCustomArtDyes != other.ApplyCustomArtDyes) { ApplyCustomArtDyes = other.ApplyCustomArtDyes; OnPropertyChanged(nameof(ApplyCustomArtDyes)); } if (!ArtDyeChannels.DeepEqualsList(other.ArtDyeChannels)) { ArtDyeChannels = other.ArtDyeChannels; OnPropertyChanged(nameof(ArtDyeChannels)); } 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)); } }