Пример #1
0
 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;
 }
Пример #2
0
 public int GetNumberOfEnds()
 {
     return(Linescore.GetNumberOfEnds());
 }
Пример #3
0
 public int GetScoreForEnd(int teamNumber, int endNumber)
 {
     return(Linescore.GetTeamXScoreInEnd(teamNumber, endNumber));
 }