Ejemplo n.º 1
0
 public void Update(DestinyMilestoneRewardCategoryDefinition?other)
 {
     if (other is null)
     {
         return;
     }
     if (CategoryHash != other.CategoryHash)
     {
         CategoryHash = other.CategoryHash;
         OnPropertyChanged(nameof(CategoryHash));
     }
     if (CategoryIdentifier != other.CategoryIdentifier)
     {
         CategoryIdentifier = other.CategoryIdentifier;
         OnPropertyChanged(nameof(CategoryIdentifier));
     }
     if (!DisplayProperties.DeepEquals(other.DisplayProperties))
     {
         DisplayProperties.Update(other.DisplayProperties);
         OnPropertyChanged(nameof(DisplayProperties));
     }
     if (!RewardEntries.DeepEqualsDictionary(other.RewardEntries))
     {
         RewardEntries = other.RewardEntries;
         OnPropertyChanged(nameof(RewardEntries));
     }
     if (Order != other.Order)
     {
         Order = other.Order;
         OnPropertyChanged(nameof(Order));
     }
 }
Ejemplo n.º 2
0
 public bool DeepEquals(DestinyMilestoneRewardCategoryDefinition?other)
 {
     return(other is not null &&
            CategoryHash == other.CategoryHash &&
            CategoryIdentifier == other.CategoryIdentifier &&
            (DisplayProperties is not null ? DisplayProperties.DeepEquals(other.DisplayProperties) : other.DisplayProperties is null) &&
            RewardEntries.DeepEqualsDictionary(other.RewardEntries) &&
            Order == other.Order);
 }