public bool DeepEquals(TrendingDetail?other) { return(other is not null && Identifier == other.Identifier && EntityType == other.EntityType && (News is not null ? News.DeepEquals(other.News) : other.News is null) && (Support is not null ? Support.DeepEquals(other.Support) : other.Support is null) && (DestinyItem is not null ? DestinyItem.DeepEquals(other.DestinyItem) : other.DestinyItem is null) && (DestinyActivity is not null ? DestinyActivity.DeepEquals(other.DestinyActivity) : other.DestinyActivity is null) && (DestinyRitual is not null ? DestinyRitual.DeepEquals(other.DestinyRitual) : other.DestinyRitual is null) && (Creation is not null ? Creation.DeepEquals(other.Creation) : other.Creation is null)); }
public void Update(TrendingDetail?other) { if (other is null) { return; } if (Identifier != other.Identifier) { Identifier = other.Identifier; OnPropertyChanged(nameof(Identifier)); } if (EntityType != other.EntityType) { EntityType = other.EntityType; OnPropertyChanged(nameof(EntityType)); } if (!News.DeepEquals(other.News)) { News.Update(other.News); OnPropertyChanged(nameof(News)); } if (!Support.DeepEquals(other.Support)) { Support.Update(other.Support); OnPropertyChanged(nameof(Support)); } if (!DestinyItem.DeepEquals(other.DestinyItem)) { DestinyItem.Update(other.DestinyItem); OnPropertyChanged(nameof(DestinyItem)); } if (!DestinyActivity.DeepEquals(other.DestinyActivity)) { DestinyActivity.Update(other.DestinyActivity); OnPropertyChanged(nameof(DestinyActivity)); } if (!DestinyRitual.DeepEquals(other.DestinyRitual)) { DestinyRitual.Update(other.DestinyRitual); OnPropertyChanged(nameof(DestinyRitual)); } if (!Creation.DeepEquals(other.Creation)) { Creation.Update(other.Creation); OnPropertyChanged(nameof(Creation)); } }
public bool Equals(TrendingDetail input) { if (input == null) { return(false); } return (( Identifier == input.Identifier || (Identifier != null && Identifier.Equals(input.Identifier)) ) && ( EntityType == input.EntityType || (EntityType != null && EntityType.Equals(input.EntityType)) ) && ( News == input.News || (News != null && News.Equals(input.News)) ) && ( Support == input.Support || (Support != null && Support.Equals(input.Support)) ) && ( DestinyItem == input.DestinyItem || (DestinyItem != null && DestinyItem.Equals(input.DestinyItem)) ) && ( DestinyActivity == input.DestinyActivity || (DestinyActivity != null && DestinyActivity.Equals(input.DestinyActivity)) ) && ( DestinyRitual == input.DestinyRitual || (DestinyRitual != null && DestinyRitual.Equals(input.DestinyRitual)) ) && ( Creation == input.Creation || (Creation != null && Creation.Equals(input.Creation)) )); }