Example #1
0
 public bool DeepEquals(DestinyProfileResponse?other)
 {
     return(other is not null &&
            (VendorReceipts is not null ? VendorReceipts.DeepEquals(other.VendorReceipts) : other.VendorReceipts is null) &&
            (ProfileInventory is not null ? ProfileInventory.DeepEquals(other.ProfileInventory) : other.ProfileInventory is null) &&
            (ProfileCurrencies is not null ? ProfileCurrencies.DeepEquals(other.ProfileCurrencies) : other.ProfileCurrencies is null) &&
            (Profile is not null ? Profile.DeepEquals(other.Profile) : other.Profile is null) &&
            (PlatformSilver is not null ? PlatformSilver.DeepEquals(other.PlatformSilver) : other.PlatformSilver is null) &&
            (ProfileKiosks is not null ? ProfileKiosks.DeepEquals(other.ProfileKiosks) : other.ProfileKiosks is null) &&
            (ProfilePlugSets is not null ? ProfilePlugSets.DeepEquals(other.ProfilePlugSets) : other.ProfilePlugSets is null) &&
            (ProfileProgression is not null ? ProfileProgression.DeepEquals(other.ProfileProgression) : other.ProfileProgression is null) &&
            (ProfilePresentationNodes is not null ? ProfilePresentationNodes.DeepEquals(other.ProfilePresentationNodes) : other.ProfilePresentationNodes is null) &&
            (ProfileRecords is not null ? ProfileRecords.DeepEquals(other.ProfileRecords) : other.ProfileRecords is null) &&
            (ProfileCollectibles is not null ? ProfileCollectibles.DeepEquals(other.ProfileCollectibles) : other.ProfileCollectibles is null) &&
            (ProfileTransitoryData is not null ? ProfileTransitoryData.DeepEquals(other.ProfileTransitoryData) : other.ProfileTransitoryData is null) &&
            (Metrics is not null ? Metrics.DeepEquals(other.Metrics) : other.Metrics is null) &&
            (ProfileStringVariables is not null ? ProfileStringVariables.DeepEquals(other.ProfileStringVariables) : other.ProfileStringVariables is null) &&
            (Characters is not null ? Characters.DeepEquals(other.Characters) : other.Characters is null) &&
            (CharacterInventories is not null ? CharacterInventories.DeepEquals(other.CharacterInventories) : other.CharacterInventories is null) &&
            (CharacterProgressions is not null ? CharacterProgressions.DeepEquals(other.CharacterProgressions) : other.CharacterProgressions is null) &&
            (CharacterRenderData is not null ? CharacterRenderData.DeepEquals(other.CharacterRenderData) : other.CharacterRenderData is null) &&
            (CharacterActivities is not null ? CharacterActivities.DeepEquals(other.CharacterActivities) : other.CharacterActivities is null) &&
            (CharacterEquipment is not null ? CharacterEquipment.DeepEquals(other.CharacterEquipment) : other.CharacterEquipment is null) &&
            (CharacterKiosks is not null ? CharacterKiosks.DeepEquals(other.CharacterKiosks) : other.CharacterKiosks is null) &&
            (CharacterPlugSets is not null ? CharacterPlugSets.DeepEquals(other.CharacterPlugSets) : other.CharacterPlugSets is null) &&
            CharacterUninstancedItemComponents.DeepEqualsDictionary(other.CharacterUninstancedItemComponents) &&
            (CharacterPresentationNodes is not null ? CharacterPresentationNodes.DeepEquals(other.CharacterPresentationNodes) : other.CharacterPresentationNodes is null) &&
            (CharacterRecords is not null ? CharacterRecords.DeepEquals(other.CharacterRecords) : other.CharacterRecords is null) &&
            (CharacterCollectibles is not null ? CharacterCollectibles.DeepEquals(other.CharacterCollectibles) : other.CharacterCollectibles is null) &&
            (CharacterStringVariables is not null ? CharacterStringVariables.DeepEquals(other.CharacterStringVariables) : other.CharacterStringVariables is null) &&
            (ItemComponents is not null ? ItemComponents.DeepEquals(other.ItemComponents) : other.ItemComponents is null) &&
            (CharacterCurrencyLookups is not null ? CharacterCurrencyLookups.DeepEquals(other.CharacterCurrencyLookups) : other.CharacterCurrencyLookups is null));
 }
Example #2
0
 public void Update(DestinyProfileResponse?other)
 {
     if (other is null)
     {
         return;
     }
     if (!VendorReceipts.DeepEquals(other.VendorReceipts))
     {
         VendorReceipts.Update(other.VendorReceipts);
         OnPropertyChanged(nameof(VendorReceipts));
     }
     if (!ProfileInventory.DeepEquals(other.ProfileInventory))
     {
         ProfileInventory.Update(other.ProfileInventory);
         OnPropertyChanged(nameof(ProfileInventory));
     }
     if (!ProfileCurrencies.DeepEquals(other.ProfileCurrencies))
     {
         ProfileCurrencies.Update(other.ProfileCurrencies);
         OnPropertyChanged(nameof(ProfileCurrencies));
     }
     if (!Profile.DeepEquals(other.Profile))
     {
         Profile.Update(other.Profile);
         OnPropertyChanged(nameof(Profile));
     }
     if (!PlatformSilver.DeepEquals(other.PlatformSilver))
     {
         PlatformSilver.Update(other.PlatformSilver);
         OnPropertyChanged(nameof(PlatformSilver));
     }
     if (!ProfileKiosks.DeepEquals(other.ProfileKiosks))
     {
         ProfileKiosks.Update(other.ProfileKiosks);
         OnPropertyChanged(nameof(ProfileKiosks));
     }
     if (!ProfilePlugSets.DeepEquals(other.ProfilePlugSets))
     {
         ProfilePlugSets.Update(other.ProfilePlugSets);
         OnPropertyChanged(nameof(ProfilePlugSets));
     }
     if (!ProfileProgression.DeepEquals(other.ProfileProgression))
     {
         ProfileProgression.Update(other.ProfileProgression);
         OnPropertyChanged(nameof(ProfileProgression));
     }
     if (!ProfilePresentationNodes.DeepEquals(other.ProfilePresentationNodes))
     {
         ProfilePresentationNodes.Update(other.ProfilePresentationNodes);
         OnPropertyChanged(nameof(ProfilePresentationNodes));
     }
     if (!ProfileRecords.DeepEquals(other.ProfileRecords))
     {
         ProfileRecords.Update(other.ProfileRecords);
         OnPropertyChanged(nameof(ProfileRecords));
     }
     if (!ProfileCollectibles.DeepEquals(other.ProfileCollectibles))
     {
         ProfileCollectibles.Update(other.ProfileCollectibles);
         OnPropertyChanged(nameof(ProfileCollectibles));
     }
     if (!ProfileTransitoryData.DeepEquals(other.ProfileTransitoryData))
     {
         ProfileTransitoryData.Update(other.ProfileTransitoryData);
         OnPropertyChanged(nameof(ProfileTransitoryData));
     }
     if (!Metrics.DeepEquals(other.Metrics))
     {
         Metrics.Update(other.Metrics);
         OnPropertyChanged(nameof(Metrics));
     }
     if (!ProfileStringVariables.DeepEquals(other.ProfileStringVariables))
     {
         ProfileStringVariables.Update(other.ProfileStringVariables);
         OnPropertyChanged(nameof(ProfileStringVariables));
     }
     if (!Characters.DeepEquals(other.Characters))
     {
         Characters.Update(other.Characters);
         OnPropertyChanged(nameof(Characters));
     }
     if (!CharacterInventories.DeepEquals(other.CharacterInventories))
     {
         CharacterInventories.Update(other.CharacterInventories);
         OnPropertyChanged(nameof(CharacterInventories));
     }
     if (!CharacterProgressions.DeepEquals(other.CharacterProgressions))
     {
         CharacterProgressions.Update(other.CharacterProgressions);
         OnPropertyChanged(nameof(CharacterProgressions));
     }
     if (!CharacterRenderData.DeepEquals(other.CharacterRenderData))
     {
         CharacterRenderData.Update(other.CharacterRenderData);
         OnPropertyChanged(nameof(CharacterRenderData));
     }
     if (!CharacterActivities.DeepEquals(other.CharacterActivities))
     {
         CharacterActivities.Update(other.CharacterActivities);
         OnPropertyChanged(nameof(CharacterActivities));
     }
     if (!CharacterEquipment.DeepEquals(other.CharacterEquipment))
     {
         CharacterEquipment.Update(other.CharacterEquipment);
         OnPropertyChanged(nameof(CharacterEquipment));
     }
     if (!CharacterKiosks.DeepEquals(other.CharacterKiosks))
     {
         CharacterKiosks.Update(other.CharacterKiosks);
         OnPropertyChanged(nameof(CharacterKiosks));
     }
     if (!CharacterPlugSets.DeepEquals(other.CharacterPlugSets))
     {
         CharacterPlugSets.Update(other.CharacterPlugSets);
         OnPropertyChanged(nameof(CharacterPlugSets));
     }
     if (!CharacterUninstancedItemComponents.DeepEqualsDictionary(other.CharacterUninstancedItemComponents))
     {
         CharacterUninstancedItemComponents = other.CharacterUninstancedItemComponents;
         OnPropertyChanged(nameof(CharacterUninstancedItemComponents));
     }
     if (!CharacterPresentationNodes.DeepEquals(other.CharacterPresentationNodes))
     {
         CharacterPresentationNodes.Update(other.CharacterPresentationNodes);
         OnPropertyChanged(nameof(CharacterPresentationNodes));
     }
     if (!CharacterRecords.DeepEquals(other.CharacterRecords))
     {
         CharacterRecords.Update(other.CharacterRecords);
         OnPropertyChanged(nameof(CharacterRecords));
     }
     if (!CharacterCollectibles.DeepEquals(other.CharacterCollectibles))
     {
         CharacterCollectibles.Update(other.CharacterCollectibles);
         OnPropertyChanged(nameof(CharacterCollectibles));
     }
     if (!CharacterStringVariables.DeepEquals(other.CharacterStringVariables))
     {
         CharacterStringVariables.Update(other.CharacterStringVariables);
         OnPropertyChanged(nameof(CharacterStringVariables));
     }
     if (!ItemComponents.DeepEquals(other.ItemComponents))
     {
         ItemComponents.Update(other.ItemComponents);
         OnPropertyChanged(nameof(ItemComponents));
     }
     if (!CharacterCurrencyLookups.DeepEquals(other.CharacterCurrencyLookups))
     {
         CharacterCurrencyLookups.Update(other.CharacterCurrencyLookups);
         OnPropertyChanged(nameof(CharacterCurrencyLookups));
     }
 }
Example #3
0
        public bool Equals(DestinyProfileResponse input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     VendorReceipts == input.VendorReceipts ||
                     (VendorReceipts != null && VendorReceipts.Equals(input.VendorReceipts))
                     ) &&
                 (
                     ProfileInventory == input.ProfileInventory ||
                     (ProfileInventory != null && ProfileInventory.Equals(input.ProfileInventory))
                 ) &&
                 (
                     ProfileCurrencies == input.ProfileCurrencies ||
                     (ProfileCurrencies != null && ProfileCurrencies.Equals(input.ProfileCurrencies))
                 ) &&
                 (
                     Profile == input.Profile ||
                     (Profile != null && Profile.Equals(input.Profile))
                 ) &&
                 (
                     PlatformSilver == input.PlatformSilver ||
                     (PlatformSilver != null && PlatformSilver.Equals(input.PlatformSilver))
                 ) &&
                 (
                     ProfileKiosks == input.ProfileKiosks ||
                     (ProfileKiosks != null && ProfileKiosks.Equals(input.ProfileKiosks))
                 ) &&
                 (
                     ProfilePlugSets == input.ProfilePlugSets ||
                     (ProfilePlugSets != null && ProfilePlugSets.Equals(input.ProfilePlugSets))
                 ) &&
                 (
                     ProfileProgression == input.ProfileProgression ||
                     (ProfileProgression != null && ProfileProgression.Equals(input.ProfileProgression))
                 ) &&
                 (
                     ProfilePresentationNodes == input.ProfilePresentationNodes ||
                     (ProfilePresentationNodes != null && ProfilePresentationNodes.Equals(input.ProfilePresentationNodes))
                 ) &&
                 (
                     ProfileRecords == input.ProfileRecords ||
                     (ProfileRecords != null && ProfileRecords.Equals(input.ProfileRecords))
                 ) &&
                 (
                     ProfileCollectibles == input.ProfileCollectibles ||
                     (ProfileCollectibles != null && ProfileCollectibles.Equals(input.ProfileCollectibles))
                 ) &&
                 (
                     ProfileTransitoryData == input.ProfileTransitoryData ||
                     (ProfileTransitoryData != null && ProfileTransitoryData.Equals(input.ProfileTransitoryData))
                 ) &&
                 (
                     Metrics == input.Metrics ||
                     (Metrics != null && Metrics.Equals(input.Metrics))
                 ) &&
                 (
                     ProfileStringVariables == input.ProfileStringVariables ||
                     (ProfileStringVariables != null && ProfileStringVariables.Equals(input.ProfileStringVariables))
                 ) &&
                 (
                     Characters == input.Characters ||
                     (Characters != null && Characters.Equals(input.Characters))
                 ) &&
                 (
                     CharacterInventories == input.CharacterInventories ||
                     (CharacterInventories != null && CharacterInventories.Equals(input.CharacterInventories))
                 ) &&
                 (
                     CharacterProgressions == input.CharacterProgressions ||
                     (CharacterProgressions != null && CharacterProgressions.Equals(input.CharacterProgressions))
                 ) &&
                 (
                     CharacterRenderData == input.CharacterRenderData ||
                     (CharacterRenderData != null && CharacterRenderData.Equals(input.CharacterRenderData))
                 ) &&
                 (
                     CharacterActivities == input.CharacterActivities ||
                     (CharacterActivities != null && CharacterActivities.Equals(input.CharacterActivities))
                 ) &&
                 (
                     CharacterEquipment == input.CharacterEquipment ||
                     (CharacterEquipment != null && CharacterEquipment.Equals(input.CharacterEquipment))
                 ) &&
                 (
                     CharacterKiosks == input.CharacterKiosks ||
                     (CharacterKiosks != null && CharacterKiosks.Equals(input.CharacterKiosks))
                 ) &&
                 (
                     CharacterPlugSets == input.CharacterPlugSets ||
                     (CharacterPlugSets != null && CharacterPlugSets.Equals(input.CharacterPlugSets))
                 ) &&
                 (
                     CharacterUninstancedItemComponents == input.CharacterUninstancedItemComponents ||
                     (CharacterUninstancedItemComponents != null && CharacterUninstancedItemComponents.SequenceEqual(input.CharacterUninstancedItemComponents))
                 ) &&
                 (
                     CharacterPresentationNodes == input.CharacterPresentationNodes ||
                     (CharacterPresentationNodes != null && CharacterPresentationNodes.Equals(input.CharacterPresentationNodes))
                 ) &&
                 (
                     CharacterRecords == input.CharacterRecords ||
                     (CharacterRecords != null && CharacterRecords.Equals(input.CharacterRecords))
                 ) &&
                 (
                     CharacterCollectibles == input.CharacterCollectibles ||
                     (CharacterCollectibles != null && CharacterCollectibles.Equals(input.CharacterCollectibles))
                 ) &&
                 (
                     CharacterStringVariables == input.CharacterStringVariables ||
                     (CharacterStringVariables != null && CharacterStringVariables.Equals(input.CharacterStringVariables))
                 ) &&
                 (
                     ItemComponents == input.ItemComponents ||
                     (ItemComponents != null && ItemComponents.Equals(input.ItemComponents))
                 ) &&
                 (
                     CharacterCurrencyLookups == input.CharacterCurrencyLookups ||
                     (CharacterCurrencyLookups != null && CharacterCurrencyLookups.Equals(input.CharacterCurrencyLookups))
                 ));
        }