public bool DeepEquals(DestinyMilestoneDefinition?other)
 {
     return(other is not null &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            DisplayPreference == other.DisplayPreference &&
            Image == other.Image &&
            MilestoneType == other.MilestoneType &&
            Recruitable == other.Recruitable &&
            FriendlyName == other.FriendlyName &&
            ShowInExplorer == other.ShowInExplorer &&
            ShowInMilestones == other.ShowInMilestones &&
            ExplorePrioritizesActivityImage == other.ExplorePrioritizesActivityImage &&
            HasPredictableDates == other.HasPredictableDates &&
            Quests.DeepEqualsDictionary(other.Quests) &&
            Rewards.DeepEqualsDictionary(other.Rewards) &&
            VendorsDisplayTitle == other.VendorsDisplayTitle &&
            Vendors.DeepEqualsList(other.Vendors) &&
            Values.DeepEqualsDictionary(other.Values) &&
            IsInGameMilestone == other.IsInGameMilestone &&
            Activities.DeepEqualsList(other.Activities) &&
            DefaultOrder == other.DefaultOrder &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
 public void Update(DestinyMilestone?other)
 {
     if (other is null)
     {
         return;
     }
     if (MilestoneHash != other.MilestoneHash)
     {
         MilestoneHash = other.MilestoneHash;
         OnPropertyChanged(nameof(MilestoneHash));
     }
     if (!AvailableQuests.DeepEqualsList(other.AvailableQuests))
     {
         AvailableQuests = other.AvailableQuests;
         OnPropertyChanged(nameof(AvailableQuests));
     }
     if (!Activities.DeepEqualsList(other.Activities))
     {
         Activities = other.Activities;
         OnPropertyChanged(nameof(Activities));
     }
     if (!Values.DeepEqualsDictionaryNaive(other.Values))
     {
         Values = other.Values;
         OnPropertyChanged(nameof(Values));
     }
     if (!VendorHashes.DeepEqualsListNaive(other.VendorHashes))
     {
         VendorHashes = other.VendorHashes;
         OnPropertyChanged(nameof(VendorHashes));
     }
     if (!Vendors.DeepEqualsList(other.Vendors))
     {
         Vendors = other.Vendors;
         OnPropertyChanged(nameof(Vendors));
     }
     if (!Rewards.DeepEqualsList(other.Rewards))
     {
         Rewards = other.Rewards;
         OnPropertyChanged(nameof(Rewards));
     }
     if (StartDate != other.StartDate)
     {
         StartDate = other.StartDate;
         OnPropertyChanged(nameof(StartDate));
     }
     if (EndDate != other.EndDate)
     {
         EndDate = other.EndDate;
         OnPropertyChanged(nameof(EndDate));
     }
     if (Order != other.Order)
     {
         Order = other.Order;
         OnPropertyChanged(nameof(Order));
     }
 }
Esempio n. 3
0
 public bool DeepEquals(DestinyPublicMilestone?other)
 {
     return(other is not null &&
            MilestoneHash == other.MilestoneHash &&
            AvailableQuests.DeepEqualsList(other.AvailableQuests) &&
            Activities.DeepEqualsList(other.Activities) &&
            VendorHashes.DeepEqualsListNaive(other.VendorHashes) &&
            Vendors.DeepEqualsList(other.Vendors) &&
            StartDate == other.StartDate &&
            EndDate == other.EndDate &&
            Order == other.Order);
 }
Esempio n. 4
0
 public void Update(DestinyFactionDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (ProgressionHash != other.ProgressionHash)
     {
         ProgressionHash = other.ProgressionHash;
         OnPropertyChanged(nameof(ProgressionHash));
     }
     if (!TokenValues.DeepEqualsDictionaryNaive(other.TokenValues))
     {
         TokenValues = other.TokenValues;
         OnPropertyChanged(nameof(TokenValues));
     }
     if (RewardItemHash != other.RewardItemHash)
     {
         RewardItemHash = other.RewardItemHash;
         OnPropertyChanged(nameof(RewardItemHash));
     }
     if (RewardVendorHash != other.RewardVendorHash)
     {
         RewardVendorHash = other.RewardVendorHash;
         OnPropertyChanged(nameof(RewardVendorHash));
     }
     if (!Vendors.DeepEqualsList(other.Vendors))
     {
         Vendors = other.Vendors;
         OnPropertyChanged(nameof(Vendors));
     }
     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));
     }
 }
Esempio n. 5
0
 public bool DeepEquals(DestinyFactionDefinition?other)
 {
     return(other is not null &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            ProgressionHash == other.ProgressionHash &&
            TokenValues.DeepEqualsDictionaryNaive(other.TokenValues) &&
            RewardItemHash == other.RewardItemHash &&
            RewardVendorHash == other.RewardVendorHash &&
            Vendors.DeepEqualsList(other.Vendors) &&
            Hash == other.Hash &&
            Index == other.Index &&
            Redacted == other.Redacted);
 }
 public void Update(DestinyMilestoneDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (DisplayPreference != other.DisplayPreference)
     {
         DisplayPreference = other.DisplayPreference;
         OnPropertyChanged(nameof(DisplayPreference));
     }
     if (Image != other.Image)
     {
         Image = other.Image;
         OnPropertyChanged(nameof(Image));
     }
     if (MilestoneType != other.MilestoneType)
     {
         MilestoneType = other.MilestoneType;
         OnPropertyChanged(nameof(MilestoneType));
     }
     if (Recruitable != other.Recruitable)
     {
         Recruitable = other.Recruitable;
         OnPropertyChanged(nameof(Recruitable));
     }
     if (FriendlyName != other.FriendlyName)
     {
         FriendlyName = other.FriendlyName;
         OnPropertyChanged(nameof(FriendlyName));
     }
     if (ShowInExplorer != other.ShowInExplorer)
     {
         ShowInExplorer = other.ShowInExplorer;
         OnPropertyChanged(nameof(ShowInExplorer));
     }
     if (ShowInMilestones != other.ShowInMilestones)
     {
         ShowInMilestones = other.ShowInMilestones;
         OnPropertyChanged(nameof(ShowInMilestones));
     }
     if (ExplorePrioritizesActivityImage != other.ExplorePrioritizesActivityImage)
     {
         ExplorePrioritizesActivityImage = other.ExplorePrioritizesActivityImage;
         OnPropertyChanged(nameof(ExplorePrioritizesActivityImage));
     }
     if (HasPredictableDates != other.HasPredictableDates)
     {
         HasPredictableDates = other.HasPredictableDates;
         OnPropertyChanged(nameof(HasPredictableDates));
     }
     if (!Quests.DeepEqualsDictionary(other.Quests))
     {
         Quests = other.Quests;
         OnPropertyChanged(nameof(Quests));
     }
     if (!Rewards.DeepEqualsDictionary(other.Rewards))
     {
         Rewards = other.Rewards;
         OnPropertyChanged(nameof(Rewards));
     }
     if (VendorsDisplayTitle != other.VendorsDisplayTitle)
     {
         VendorsDisplayTitle = other.VendorsDisplayTitle;
         OnPropertyChanged(nameof(VendorsDisplayTitle));
     }
     if (!Vendors.DeepEqualsList(other.Vendors))
     {
         Vendors = other.Vendors;
         OnPropertyChanged(nameof(Vendors));
     }
     if (!Values.DeepEqualsDictionary(other.Values))
     {
         Values = other.Values;
         OnPropertyChanged(nameof(Values));
     }
     if (IsInGameMilestone != other.IsInGameMilestone)
     {
         IsInGameMilestone = other.IsInGameMilestone;
         OnPropertyChanged(nameof(IsInGameMilestone));
     }
     if (!Activities.DeepEqualsList(other.Activities))
     {
         Activities = other.Activities;
         OnPropertyChanged(nameof(Activities));
     }
     if (DefaultOrder != other.DefaultOrder)
     {
         DefaultOrder = other.DefaultOrder;
         OnPropertyChanged(nameof(DefaultOrder));
     }
     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));
     }
 }