Exemple #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));
 }
Exemple #2
0
 public bool DeepEquals(DestinyProfileUserInfoCard?other)
 {
     return(other is not null &&
            DateLastPlayed == other.DateLastPlayed &&
            IsOverridden == other.IsOverridden &&
            IsCrossSavePrimary == other.IsCrossSavePrimary &&
            (PlatformSilver is not null ? PlatformSilver.DeepEquals(other.PlatformSilver) : other.PlatformSilver is null) &&
            UnpairedGameVersions == other.UnpairedGameVersions &&
            SupplementalDisplayName == other.SupplementalDisplayName &&
            IconPath == other.IconPath &&
            CrossSaveOverride == other.CrossSaveOverride &&
            ApplicableMembershipTypes.DeepEqualsListNaive(other.ApplicableMembershipTypes) &&
            IsPublic == other.IsPublic &&
            MembershipType == other.MembershipType &&
            MembershipId == other.MembershipId &&
            DisplayName == other.DisplayName &&
            BungieGlobalDisplayName == other.BungieGlobalDisplayName &&
            BungieGlobalDisplayNameCode == other.BungieGlobalDisplayNameCode);
 }
Exemple #3
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));
     }
 }
Exemple #4
0
 public void Update(DestinyProfileUserInfoCard?other)
 {
     if (other is null)
     {
         return;
     }
     if (DateLastPlayed != other.DateLastPlayed)
     {
         DateLastPlayed = other.DateLastPlayed;
         OnPropertyChanged(nameof(DateLastPlayed));
     }
     if (IsOverridden != other.IsOverridden)
     {
         IsOverridden = other.IsOverridden;
         OnPropertyChanged(nameof(IsOverridden));
     }
     if (IsCrossSavePrimary != other.IsCrossSavePrimary)
     {
         IsCrossSavePrimary = other.IsCrossSavePrimary;
         OnPropertyChanged(nameof(IsCrossSavePrimary));
     }
     if (!PlatformSilver.DeepEquals(other.PlatformSilver))
     {
         PlatformSilver.Update(other.PlatformSilver);
         OnPropertyChanged(nameof(PlatformSilver));
     }
     if (UnpairedGameVersions != other.UnpairedGameVersions)
     {
         UnpairedGameVersions = other.UnpairedGameVersions;
         OnPropertyChanged(nameof(UnpairedGameVersions));
     }
     if (SupplementalDisplayName != other.SupplementalDisplayName)
     {
         SupplementalDisplayName = other.SupplementalDisplayName;
         OnPropertyChanged(nameof(SupplementalDisplayName));
     }
     if (IconPath != other.IconPath)
     {
         IconPath = other.IconPath;
         OnPropertyChanged(nameof(IconPath));
     }
     if (CrossSaveOverride != other.CrossSaveOverride)
     {
         CrossSaveOverride = other.CrossSaveOverride;
         OnPropertyChanged(nameof(CrossSaveOverride));
     }
     if (!ApplicableMembershipTypes.DeepEqualsListNaive(other.ApplicableMembershipTypes))
     {
         ApplicableMembershipTypes = other.ApplicableMembershipTypes;
         OnPropertyChanged(nameof(ApplicableMembershipTypes));
     }
     if (IsPublic != other.IsPublic)
     {
         IsPublic = other.IsPublic;
         OnPropertyChanged(nameof(IsPublic));
     }
     if (MembershipType != other.MembershipType)
     {
         MembershipType = other.MembershipType;
         OnPropertyChanged(nameof(MembershipType));
     }
     if (MembershipId != other.MembershipId)
     {
         MembershipId = other.MembershipId;
         OnPropertyChanged(nameof(MembershipId));
     }
     if (DisplayName != other.DisplayName)
     {
         DisplayName = other.DisplayName;
         OnPropertyChanged(nameof(DisplayName));
     }
     if (BungieGlobalDisplayName != other.BungieGlobalDisplayName)
     {
         BungieGlobalDisplayName = other.BungieGlobalDisplayName;
         OnPropertyChanged(nameof(BungieGlobalDisplayName));
     }
     if (BungieGlobalDisplayNameCode != other.BungieGlobalDisplayNameCode)
     {
         BungieGlobalDisplayNameCode = other.BungieGlobalDisplayNameCode;
         OnPropertyChanged(nameof(BungieGlobalDisplayNameCode));
     }
 }
Exemple #5
0
        public bool Equals(DestinyProfileUserInfoCard input)
        {
            if (input == null)
            {
                return(false);
            }

            return
                ((
                     DateLastPlayed == input.DateLastPlayed ||
                     (DateLastPlayed != null && DateLastPlayed.Equals(input.DateLastPlayed))
                     ) &&
                 (
                     IsOverridden == input.IsOverridden ||
                     (IsOverridden != null && IsOverridden.Equals(input.IsOverridden))
                 ) &&
                 (
                     IsCrossSavePrimary == input.IsCrossSavePrimary ||
                     (IsCrossSavePrimary != null && IsCrossSavePrimary.Equals(input.IsCrossSavePrimary))
                 ) &&
                 (
                     PlatformSilver == input.PlatformSilver ||
                     (PlatformSilver != null && PlatformSilver.Equals(input.PlatformSilver))
                 ) &&
                 (
                     UnpairedGameVersions == input.UnpairedGameVersions ||
                     (UnpairedGameVersions.Equals(input.UnpairedGameVersions))
                 ) &&
                 (
                     SupplementalDisplayName == input.SupplementalDisplayName ||
                     (SupplementalDisplayName != null && SupplementalDisplayName.Equals(input.SupplementalDisplayName))
                 ) &&
                 (
                     IconPath == input.IconPath ||
                     (IconPath != null && IconPath.Equals(input.IconPath))
                 ) &&
                 (
                     CrossSaveOverride == input.CrossSaveOverride ||
                     (CrossSaveOverride != null && CrossSaveOverride.Equals(input.CrossSaveOverride))
                 ) &&
                 (
                     ApplicableMembershipTypes == input.ApplicableMembershipTypes ||
                     (ApplicableMembershipTypes != null && ApplicableMembershipTypes.SequenceEqual(input.ApplicableMembershipTypes))
                 ) &&
                 (
                     IsPublic == input.IsPublic ||
                     (IsPublic != null && IsPublic.Equals(input.IsPublic))
                 ) &&
                 (
                     MembershipType == input.MembershipType ||
                     (MembershipType != null && MembershipType.Equals(input.MembershipType))
                 ) &&
                 (
                     MembershipId == input.MembershipId ||
                     (MembershipId.Equals(input.MembershipId))
                 ) &&
                 (
                     DisplayName == input.DisplayName ||
                     (DisplayName != null && DisplayName.Equals(input.DisplayName))
                 ) &&
                 (
                     BungieGlobalDisplayName == input.BungieGlobalDisplayName ||
                     (BungieGlobalDisplayName != null && BungieGlobalDisplayName.Equals(input.BungieGlobalDisplayName))
                 ) &&
                 (
                     BungieGlobalDisplayNameCode == input.BungieGlobalDisplayNameCode ||
                     (BungieGlobalDisplayNameCode.Equals(input.BungieGlobalDisplayNameCode))
                 ));
        }
Exemple #6
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))
                 ));
        }