Beispiel #1
0
        public CompetitionStatsDto(CompetitionStats stats)
        {
            if (stats == null)
            {
                throw new ArgumentNullException(nameof(stats));
            }

            Score = stats.Score;
        }
        public override async Task <CompetitionStats> GetLiveAsync(string content)
        {
            var node = await GetNodesAsync(content);

            var score = node.SelectSingleNode("//div[contains(@class,'sco')]").InnerText.Trim();
            var stats = new CompetitionStats(score);

            return(stats);
        }