public void Update(DestinyPostGameCarnageReportTeamEntry?other) { if (other is null) { return; } if (TeamId != other.TeamId) { TeamId = other.TeamId; OnPropertyChanged(nameof(TeamId)); } if (!Standing.DeepEquals(other.Standing)) { Standing.Update(other.Standing); OnPropertyChanged(nameof(Standing)); } if (!Score.DeepEquals(other.Score)) { Score.Update(other.Score); OnPropertyChanged(nameof(Score)); } if (TeamName != other.TeamName) { TeamName = other.TeamName; OnPropertyChanged(nameof(TeamName)); } }
public bool DeepEquals(DestinyPostGameCarnageReportTeamEntry?other) { return(other is not null && TeamId == other.TeamId && (Standing is not null ? Standing.DeepEquals(other.Standing) : other.Standing is null) && (Score is not null ? Score.DeepEquals(other.Score) : other.Score is null) && TeamName == other.TeamName); }