public bool DeepEquals(DestinyActivityDefinition?other) { return(other is not null && (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) && (OriginalDisplayProperties is not null ? OriginalDisplayProperties.DeepEquals(other.OriginalDisplayProperties) : other.OriginalDisplayProperties is null) && (SelectionScreenDisplayProperties is not null ? SelectionScreenDisplayProperties.DeepEquals(other.SelectionScreenDisplayProperties) : other.SelectionScreenDisplayProperties is null) && ReleaseIcon == other.ReleaseIcon && ReleaseTime == other.ReleaseTime && ActivityLightLevel == other.ActivityLightLevel && DestinationHash == other.DestinationHash && PlaceHash == other.PlaceHash && ActivityTypeHash == other.ActivityTypeHash && Tier == other.Tier && PgcrImage == other.PgcrImage && Rewards.DeepEqualsList(other.Rewards) && Modifiers.DeepEqualsList(other.Modifiers) && IsPlaylist == other.IsPlaylist && Challenges.DeepEqualsList(other.Challenges) && OptionalUnlockStrings.DeepEqualsList(other.OptionalUnlockStrings) && PlaylistItems.DeepEqualsList(other.PlaylistItems) && ActivityGraphList.DeepEqualsList(other.ActivityGraphList) && (Matchmaking is not null ? Matchmaking.DeepEquals(other.Matchmaking) : other.Matchmaking is null) && (GuidedGame is not null ? GuidedGame.DeepEquals(other.GuidedGame) : other.GuidedGame is null) && DirectActivityModeHash == other.DirectActivityModeHash && DirectActivityModeType == other.DirectActivityModeType && Loadouts.DeepEqualsList(other.Loadouts) && ActivityModeHashes.DeepEqualsListNaive(other.ActivityModeHashes) && ActivityModeTypes.DeepEqualsListNaive(other.ActivityModeTypes) && IsPvP == other.IsPvP && InsertionPoints.DeepEqualsList(other.InsertionPoints) && ActivityLocationMappings.DeepEqualsList(other.ActivityLocationMappings) && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool DeepEquals(DestinyActivityDefinition other) { return(other != null && ActivityGraphList.DeepEqualsReadOnlyCollections(other.ActivityGraphList) && ActivityLevel == other.ActivityLevel && ActivityLightLevel == other.ActivityLightLevel && ActivityLocationMappings.DeepEqualsReadOnlyCollections(other.ActivityLocationMappings) && ActivityModes.DeepEqualsReadOnlyCollections(other.ActivityModes) && ActivityModeTypes.DeepEqualsReadOnlySimpleCollection(other.ActivityModeTypes) && ActivityType.DeepEquals(other.ActivityType) && Challenges.DeepEqualsReadOnlyCollections(other.Challenges) && CompletionUnlockHash == other.CompletionUnlockHash && Destination.DeepEquals(other.Destination) && DirectActivityMode.DeepEquals(other.DirectActivityMode) && DirectActivityModeType == other.DirectActivityModeType && DisplayProperties.DeepEquals(other.DisplayProperties) && (GuidedGame != null ? GuidedGame.DeepEquals(other.GuidedGame) : other.GuidedGame == null) && InheritFromFreeRoam == other.InheritFromFreeRoam && InsertionPoints.DeepEqualsReadOnlyCollections(other.InsertionPoints) && IsPlaylist == other.IsPlaylist && IsPvP == other.IsPvP && (Matchmaking != null ? Matchmaking.DeepEquals(other.Matchmaking) : other.Matchmaking == null) && Modifiers.DeepEqualsReadOnlyCollections(other.Modifiers) && OptionalUnlockStrings.DeepEqualsReadOnlyCollections(other.OptionalUnlockStrings) && OriginalDisplayProperties.DeepEquals(other.OriginalDisplayProperties) && PgcrImage == other.PgcrImage && Place.DeepEquals(other.Place) && PlaylistItems.DeepEqualsReadOnlyCollections(other.PlaylistItems) && ReleaseIcon == other.ReleaseIcon && ReleaseTime == other.ReleaseTime && Rewards.DeepEqualsReadOnlyCollections(other.Rewards) && (SelectionScreenDisplayProperties != null ? SelectionScreenDisplayProperties.DeepEquals(other.SelectionScreenDisplayProperties) : other.SelectionScreenDisplayProperties == null) && SuppressOtherRewards == other.SuppressOtherRewards && Tier == other.Tier && Loadouts.DeepEqualsReadOnlyCollections(other.Loadouts) && Blacklisted == other.Blacklisted && Hash == other.Hash && Index == other.Index && Redacted == other.Redacted); }
public bool Equals(DestinyActivityDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( OriginalDisplayProperties == input.OriginalDisplayProperties || (OriginalDisplayProperties != null && OriginalDisplayProperties.Equals(input.OriginalDisplayProperties)) ) && ( SelectionScreenDisplayProperties == input.SelectionScreenDisplayProperties || (SelectionScreenDisplayProperties != null && SelectionScreenDisplayProperties.Equals(input.SelectionScreenDisplayProperties)) ) && ( ReleaseIcon == input.ReleaseIcon || (ReleaseIcon != null && ReleaseIcon.Equals(input.ReleaseIcon)) ) && ( ReleaseTime == input.ReleaseTime || (ReleaseTime.Equals(input.ReleaseTime)) ) && ( ActivityLightLevel == input.ActivityLightLevel || (ActivityLightLevel.Equals(input.ActivityLightLevel)) ) && ( DestinationHash == input.DestinationHash || (DestinationHash.Equals(input.DestinationHash)) ) && ( PlaceHash == input.PlaceHash || (PlaceHash.Equals(input.PlaceHash)) ) && ( ActivityTypeHash == input.ActivityTypeHash || (ActivityTypeHash.Equals(input.ActivityTypeHash)) ) && ( Tier == input.Tier || (Tier.Equals(input.Tier)) ) && ( PgcrImage == input.PgcrImage || (PgcrImage != null && PgcrImage.Equals(input.PgcrImage)) ) && ( Rewards == input.Rewards || (Rewards != null && Rewards.SequenceEqual(input.Rewards)) ) && ( Modifiers == input.Modifiers || (Modifiers != null && Modifiers.SequenceEqual(input.Modifiers)) ) && ( IsPlaylist == input.IsPlaylist || (IsPlaylist != null && IsPlaylist.Equals(input.IsPlaylist)) ) && ( Challenges == input.Challenges || (Challenges != null && Challenges.SequenceEqual(input.Challenges)) ) && ( OptionalUnlockStrings == input.OptionalUnlockStrings || (OptionalUnlockStrings != null && OptionalUnlockStrings.SequenceEqual(input.OptionalUnlockStrings)) ) && ( PlaylistItems == input.PlaylistItems || (PlaylistItems != null && PlaylistItems.SequenceEqual(input.PlaylistItems)) ) && ( ActivityGraphList == input.ActivityGraphList || (ActivityGraphList != null && ActivityGraphList.SequenceEqual(input.ActivityGraphList)) ) && ( Matchmaking == input.Matchmaking || (Matchmaking != null && Matchmaking.Equals(input.Matchmaking)) ) && ( GuidedGame == input.GuidedGame || (GuidedGame != null && GuidedGame.Equals(input.GuidedGame)) ) && ( DirectActivityModeHash == input.DirectActivityModeHash || (DirectActivityModeHash.Equals(input.DirectActivityModeHash)) ) && ( DirectActivityModeType == input.DirectActivityModeType || (DirectActivityModeType.Equals(input.DirectActivityModeType)) ) && ( Loadouts == input.Loadouts || (Loadouts != null && Loadouts.SequenceEqual(input.Loadouts)) ) && ( ActivityModeHashes == input.ActivityModeHashes || (ActivityModeHashes != null && ActivityModeHashes.SequenceEqual(input.ActivityModeHashes)) ) && ( ActivityModeTypes == input.ActivityModeTypes || (ActivityModeTypes != null && ActivityModeTypes.SequenceEqual(input.ActivityModeTypes)) ) && ( IsPvP == input.IsPvP || (IsPvP != null && IsPvP.Equals(input.IsPvP)) ) && ( InsertionPoints == input.InsertionPoints || (InsertionPoints != null && InsertionPoints.SequenceEqual(input.InsertionPoints)) ) && ( ActivityLocationMappings == input.ActivityLocationMappings || (ActivityLocationMappings != null && ActivityLocationMappings.SequenceEqual(input.ActivityLocationMappings)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
public void Update(DestinyActivityDefinition?other) { if (other is null) { return; } if (!DisplayProperties.DeepEquals(other.DisplayProperties)) { DisplayProperties.Update(other.DisplayProperties); OnPropertyChanged(nameof(DisplayProperties)); } if (!OriginalDisplayProperties.DeepEquals(other.OriginalDisplayProperties)) { OriginalDisplayProperties.Update(other.OriginalDisplayProperties); OnPropertyChanged(nameof(OriginalDisplayProperties)); } if (!SelectionScreenDisplayProperties.DeepEquals(other.SelectionScreenDisplayProperties)) { SelectionScreenDisplayProperties.Update(other.SelectionScreenDisplayProperties); OnPropertyChanged(nameof(SelectionScreenDisplayProperties)); } if (ReleaseIcon != other.ReleaseIcon) { ReleaseIcon = other.ReleaseIcon; OnPropertyChanged(nameof(ReleaseIcon)); } if (ReleaseTime != other.ReleaseTime) { ReleaseTime = other.ReleaseTime; OnPropertyChanged(nameof(ReleaseTime)); } if (ActivityLightLevel != other.ActivityLightLevel) { ActivityLightLevel = other.ActivityLightLevel; OnPropertyChanged(nameof(ActivityLightLevel)); } if (DestinationHash != other.DestinationHash) { DestinationHash = other.DestinationHash; OnPropertyChanged(nameof(DestinationHash)); } if (PlaceHash != other.PlaceHash) { PlaceHash = other.PlaceHash; OnPropertyChanged(nameof(PlaceHash)); } if (ActivityTypeHash != other.ActivityTypeHash) { ActivityTypeHash = other.ActivityTypeHash; OnPropertyChanged(nameof(ActivityTypeHash)); } if (Tier != other.Tier) { Tier = other.Tier; OnPropertyChanged(nameof(Tier)); } if (PgcrImage != other.PgcrImage) { PgcrImage = other.PgcrImage; OnPropertyChanged(nameof(PgcrImage)); } if (!Rewards.DeepEqualsList(other.Rewards)) { Rewards = other.Rewards; OnPropertyChanged(nameof(Rewards)); } if (!Modifiers.DeepEqualsList(other.Modifiers)) { Modifiers = other.Modifiers; OnPropertyChanged(nameof(Modifiers)); } if (IsPlaylist != other.IsPlaylist) { IsPlaylist = other.IsPlaylist; OnPropertyChanged(nameof(IsPlaylist)); } if (!Challenges.DeepEqualsList(other.Challenges)) { Challenges = other.Challenges; OnPropertyChanged(nameof(Challenges)); } if (!OptionalUnlockStrings.DeepEqualsList(other.OptionalUnlockStrings)) { OptionalUnlockStrings = other.OptionalUnlockStrings; OnPropertyChanged(nameof(OptionalUnlockStrings)); } if (!PlaylistItems.DeepEqualsList(other.PlaylistItems)) { PlaylistItems = other.PlaylistItems; OnPropertyChanged(nameof(PlaylistItems)); } if (!ActivityGraphList.DeepEqualsList(other.ActivityGraphList)) { ActivityGraphList = other.ActivityGraphList; OnPropertyChanged(nameof(ActivityGraphList)); } if (!Matchmaking.DeepEquals(other.Matchmaking)) { Matchmaking.Update(other.Matchmaking); OnPropertyChanged(nameof(Matchmaking)); } if (!GuidedGame.DeepEquals(other.GuidedGame)) { GuidedGame.Update(other.GuidedGame); OnPropertyChanged(nameof(GuidedGame)); } if (DirectActivityModeHash != other.DirectActivityModeHash) { DirectActivityModeHash = other.DirectActivityModeHash; OnPropertyChanged(nameof(DirectActivityModeHash)); } if (DirectActivityModeType != other.DirectActivityModeType) { DirectActivityModeType = other.DirectActivityModeType; OnPropertyChanged(nameof(DirectActivityModeType)); } if (!Loadouts.DeepEqualsList(other.Loadouts)) { Loadouts = other.Loadouts; OnPropertyChanged(nameof(Loadouts)); } if (!ActivityModeHashes.DeepEqualsListNaive(other.ActivityModeHashes)) { ActivityModeHashes = other.ActivityModeHashes; OnPropertyChanged(nameof(ActivityModeHashes)); } if (!ActivityModeTypes.DeepEqualsListNaive(other.ActivityModeTypes)) { ActivityModeTypes = other.ActivityModeTypes; OnPropertyChanged(nameof(ActivityModeTypes)); } if (IsPvP != other.IsPvP) { IsPvP = other.IsPvP; OnPropertyChanged(nameof(IsPvP)); } if (!InsertionPoints.DeepEqualsList(other.InsertionPoints)) { InsertionPoints = other.InsertionPoints; OnPropertyChanged(nameof(InsertionPoints)); } if (!ActivityLocationMappings.DeepEqualsList(other.ActivityLocationMappings)) { ActivityLocationMappings = other.ActivityLocationMappings; OnPropertyChanged(nameof(ActivityLocationMappings)); } 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)); } }