public bool DeepEquals(EmailSettings?other) { return(other is not null && OptInDefinitions.DeepEqualsDictionary(other.OptInDefinitions) && SubscriptionDefinitions.DeepEqualsDictionary(other.SubscriptionDefinitions) && Views.DeepEqualsDictionary(other.Views)); }
public void Update(EmailSettings?other) { if (other is null) { return; } if (!OptInDefinitions.DeepEqualsDictionary(other.OptInDefinitions)) { OptInDefinitions = other.OptInDefinitions; OnPropertyChanged(nameof(OptInDefinitions)); } if (!SubscriptionDefinitions.DeepEqualsDictionary(other.SubscriptionDefinitions)) { SubscriptionDefinitions = other.SubscriptionDefinitions; OnPropertyChanged(nameof(SubscriptionDefinitions)); } if (!Views.DeepEqualsDictionary(other.Views)) { Views = other.Views; OnPropertyChanged(nameof(Views)); } }