public bool Matches(ScoreboardSummaryEntry teamSummary) { if (Division.HasValue && teamSummary.Division != Division.Value) { return(false); } if (Tier.HasValue && teamSummary.Tier != Tier.Value) { return(false); } if (Category.HasValue && teamSummary.Category != Category.Value) { return(false); } if (Location != null && teamSummary.Location != Location) { return(false); } return(true); }
protected bool Equals(ScoreboardSummaryEntry other) { return(TeamId == other.TeamId && string.Equals(Location, other.Location) && string.Equals(Category, other.Category) && Division == other.Division && Tier == other.Tier && ImageCount == other.ImageCount && PlayTime.Equals(other.PlayTime) && TotalScore == other.TotalScore && Warnings == other.Warnings && Advancement == other.Advancement); }