public void Update(DestinyDestinationDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (PlaceHash != other.PlaceHash) { PlaceHash = other.PlaceHash; OnPropertyChanged(nameof(PlaceHash)); } if (DefaultFreeroamActivityHash != other.DefaultFreeroamActivityHash) { DefaultFreeroamActivityHash = other.DefaultFreeroamActivityHash; OnPropertyChanged(nameof(DefaultFreeroamActivityHash)); } if (!ActivityGraphEntries.DeepEqualsList(other.ActivityGraphEntries)) { ActivityGraphEntries = other.ActivityGraphEntries; OnPropertyChanged(nameof(ActivityGraphEntries)); } if (!BubbleSettings.DeepEqualsList(other.BubbleSettings)) { BubbleSettings = other.BubbleSettings; OnPropertyChanged(nameof(BubbleSettings)); } if (!Bubbles.DeepEqualsList(other.Bubbles)) { Bubbles = other.Bubbles; OnPropertyChanged(nameof(Bubbles)); } 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 DeepEquals(DestinyDestinationDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && PlaceHash == other.PlaceHash && DefaultFreeroamActivityHash == other.DefaultFreeroamActivityHash && ActivityGraphEntries.DeepEqualsList(other.ActivityGraphEntries) && BubbleSettings.DeepEqualsList(other.BubbleSettings) && Bubbles.DeepEqualsList(other.Bubbles) && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool DeepEquals(DestinyDestinationDefinition other) { return(other != null && ActivityGraphEntries.DeepEqualsReadOnlyCollections(other.ActivityGraphEntries) && DisplayProperties.DeepEquals(other.DisplayProperties) && DefaultFreeroamActivity.DeepEquals(other.DefaultFreeroamActivity) && Bubbles.DeepEqualsReadOnlyCollections(other.Bubbles) && //EqualityComparer<ReadOnlyCollection<DestinationBubbleSettingsEntry>>.Default.Equals(BubbleSettings, other.BubbleSettings) && Place.DeepEquals(other.Place) && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool Equals(DestinyDestinationDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( PlaceHash == input.PlaceHash || (PlaceHash.Equals(input.PlaceHash)) ) && ( DefaultFreeroamActivityHash == input.DefaultFreeroamActivityHash || (DefaultFreeroamActivityHash.Equals(input.DefaultFreeroamActivityHash)) ) && ( ActivityGraphEntries == input.ActivityGraphEntries || (ActivityGraphEntries != null && ActivityGraphEntries.SequenceEqual(input.ActivityGraphEntries)) ) && ( BubbleSettings == input.BubbleSettings || (BubbleSettings != null && BubbleSettings.SequenceEqual(input.BubbleSettings)) ) && ( Bubbles == input.Bubbles || (Bubbles != null && Bubbles.SequenceEqual(input.Bubbles)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }