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)); } }
public bool Equals(DestinyMilestoneRewardCategoryDefinition input) { if (input == null) { return(false); } return (( CategoryHash == input.CategoryHash || (CategoryHash.Equals(input.CategoryHash)) ) && ( CategoryIdentifier == input.CategoryIdentifier || (CategoryIdentifier != null && CategoryIdentifier.Equals(input.CategoryIdentifier)) ) && ( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( RewardEntries == input.RewardEntries || (RewardEntries != null && RewardEntries.SequenceEqual(input.RewardEntries)) ) && ( Order == input.Order || (Order.Equals(input.Order)) )); }
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); }