public Game(Team team1, Team team2, Linescore linescore, bool isFinal, Guid eventId, bool isOverAndFullyParsed, Guid drawId, DateTime date) { this.Team1 = team1; this.Team2 = team2; this.Linescore = linescore; this.IsFinal = isFinal; this.PercentagesAvailable = false; this.EventId = eventId; this.DrawId = drawId; this.IsOverAndFullyParsed = isOverAndFullyParsed; this.GameId = Guid.NewGuid(); this.Url = GenerateUrl(); this.Date = date; }
public int GetNumberOfEnds() { return(Linescore.GetNumberOfEnds()); }
public int GetScoreForEnd(int teamNumber, int endNumber) { return(Linescore.GetTeamXScoreInEnd(teamNumber, endNumber)); }