public void Update(DestinyActivityPlaylistItemDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (ActivityHash != other.ActivityHash)
     {
         ActivityHash = other.ActivityHash;
         OnPropertyChanged(nameof(ActivityHash));
     }
     if (DirectActivityModeHash != other.DirectActivityModeHash)
     {
         DirectActivityModeHash = other.DirectActivityModeHash;
         OnPropertyChanged(nameof(DirectActivityModeHash));
     }
     if (DirectActivityModeType != other.DirectActivityModeType)
     {
         DirectActivityModeType = other.DirectActivityModeType;
         OnPropertyChanged(nameof(DirectActivityModeType));
     }
     if (!ActivityModeHashes.DeepEqualsListNaive(other.ActivityModeHashes))
     {
         ActivityModeHashes = other.ActivityModeHashes;
         OnPropertyChanged(nameof(ActivityModeHashes));
     }
     if (!ActivityModeTypes.DeepEqualsListNaive(other.ActivityModeTypes))
     {
         ActivityModeTypes = other.ActivityModeTypes;
         OnPropertyChanged(nameof(ActivityModeTypes));
     }
 }
示例#2
0
 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(DestinyActivityPlaylistItemDefinition?other)
 {
     return(other is not null &&
            ActivityHash == other.ActivityHash &&
            DirectActivityModeHash == other.DirectActivityModeHash &&
            DirectActivityModeType == other.DirectActivityModeType &&
            ActivityModeHashes.DeepEqualsListNaive(other.ActivityModeHashes) &&
            ActivityModeTypes.DeepEqualsListNaive(other.ActivityModeTypes));
 }
示例#4
0
 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));
     }
 }