public void Update(DestinyArtifactProfileScoped?other) { if (other is null) { return; } if (ArtifactHash != other.ArtifactHash) { ArtifactHash = other.ArtifactHash; OnPropertyChanged(nameof(ArtifactHash)); } if (!PointProgression.DeepEquals(other.PointProgression)) { PointProgression.Update(other.PointProgression); OnPropertyChanged(nameof(PointProgression)); } if (PointsAcquired != other.PointsAcquired) { PointsAcquired = other.PointsAcquired; OnPropertyChanged(nameof(PointsAcquired)); } if (!PowerBonusProgression.DeepEquals(other.PowerBonusProgression)) { PowerBonusProgression.Update(other.PowerBonusProgression); OnPropertyChanged(nameof(PowerBonusProgression)); } if (PowerBonus != other.PowerBonus) { PowerBonus = other.PowerBonus; OnPropertyChanged(nameof(PowerBonus)); } }
public bool Equals(DestinyArtifactProfileScoped input) { if (input == null) { return(false); } return (( ArtifactHash == input.ArtifactHash || (ArtifactHash.Equals(input.ArtifactHash)) ) && ( PointProgression == input.PointProgression || (PointProgression != null && PointProgression.Equals(input.PointProgression)) ) && ( PointsAcquired == input.PointsAcquired || (PointsAcquired.Equals(input.PointsAcquired)) ) && ( PowerBonusProgression == input.PowerBonusProgression || (PowerBonusProgression != null && PowerBonusProgression.Equals(input.PowerBonusProgression)) ) && ( PowerBonus == input.PowerBonus || (PowerBonus.Equals(input.PowerBonus)) )); }
public bool DeepEquals(DestinyArtifactProfileScoped?other) { return(other is not null && ArtifactHash == other.ArtifactHash && (PointProgression is not null ? PointProgression.DeepEquals(other.PointProgression) : other.PointProgression is null) && PointsAcquired == other.PointsAcquired && (PowerBonusProgression is not null ? PowerBonusProgression.DeepEquals(other.PowerBonusProgression) : other.PowerBonusProgression is null) && PowerBonus == other.PowerBonus); }