public bool DeepEquals(TrendingEntryDestinyRitual?other) { return(other is not null && Image == other.Image && Icon == other.Icon && Title == other.Title && Subtitle == other.Subtitle && DateStart == other.DateStart && DateEnd == other.DateEnd && (MilestoneDetails is not null ? MilestoneDetails.DeepEquals(other.MilestoneDetails) : other.MilestoneDetails is null) && (EventContent is not null ? EventContent.DeepEquals(other.EventContent) : other.EventContent is null)); }
public void Update(TrendingEntryDestinyRitual?other) { if (other is null) { return; } if (Image != other.Image) { Image = other.Image; OnPropertyChanged(nameof(Image)); } if (Icon != other.Icon) { Icon = other.Icon; OnPropertyChanged(nameof(Icon)); } if (Title != other.Title) { Title = other.Title; OnPropertyChanged(nameof(Title)); } if (Subtitle != other.Subtitle) { Subtitle = other.Subtitle; OnPropertyChanged(nameof(Subtitle)); } if (DateStart != other.DateStart) { DateStart = other.DateStart; OnPropertyChanged(nameof(DateStart)); } if (DateEnd != other.DateEnd) { DateEnd = other.DateEnd; OnPropertyChanged(nameof(DateEnd)); } if (!MilestoneDetails.DeepEquals(other.MilestoneDetails)) { MilestoneDetails.Update(other.MilestoneDetails); OnPropertyChanged(nameof(MilestoneDetails)); } if (!EventContent.DeepEquals(other.EventContent)) { EventContent.Update(other.EventContent); OnPropertyChanged(nameof(EventContent)); } }
public bool Equals(TrendingEntryDestinyRitual input) { if (input == null) { return(false); } return (( Image == input.Image || (Image != null && Image.Equals(input.Image)) ) && ( Icon == input.Icon || (Icon != null && Icon.Equals(input.Icon)) ) && ( Title == input.Title || (Title != null && Title.Equals(input.Title)) ) && ( Subtitle == input.Subtitle || (Subtitle != null && Subtitle.Equals(input.Subtitle)) ) && ( DateStart == input.DateStart || (DateStart != null && DateStart.Equals(input.DateStart)) ) && ( DateEnd == input.DateEnd || (DateEnd != null && DateEnd.Equals(input.DateEnd)) ) && ( MilestoneDetails == input.MilestoneDetails || (MilestoneDetails != null && MilestoneDetails.Equals(input.MilestoneDetails)) ) && ( EventContent == input.EventContent || (EventContent != null && EventContent.Equals(input.EventContent)) )); }