public string GetScheduleUrl(YPW ypw) { if(ypw.Phase == "POST") { ypw.Week += 17; if (ypw.Week == 21) { ypw.Week += 1; } } return $"http://www.nfl.com/ajax/scorestrip?season={ypw.Year}&seasonType={ypw.Phase}&week={ypw.Week}"; }
public string GetScheduleUrl(YPW ypw) { if (ypw.Phase == "POST") { ypw.Week += 17; if (ypw.Week == 21) { ypw.Week += 1; } } return($"http://www.nfl.com/ajax/scorestrip?season={ypw.Year}&seasonType={ypw.Phase}&week={ypw.Week}"); }
private static Schedule GetScheduleFromXml(YPW ypw, ScheduleXML.ssGmsG g) { Schedule s = new Schedule(); s.Away = g.v; s.year = ypw.Year; s.WDay = g.d; s.GameId = g.eid; s.Month = int.Parse(g.eid.ToString().Substring(4, 2)); s.Day = int.Parse(g.eid.ToString().Substring(6, 2)); s.Time = g.t; s.Season_Type = ypw.Phase; s.week = ypw.Week; s.Home = g.h; s.GameKey = g.gsis; return(s); }
private static Schedule GetScheduleFromXml(YPW ypw, ScheduleXML.ssGmsG g) { Schedule s = new Schedule(); s.Away = g.v; s.year = ypw.Year; s.WDay = g.d; s.GameId = g.eid; s.Month = int.Parse(g.eid.ToString().Substring(4, 2)); s.Day = int.Parse(g.eid.ToString().Substring(6, 2)); s.Time = g.t; s.Season_Type = ypw.Phase; s.week = ypw.Week; s.Home = g.h; s.GameKey = g.gsis; return s; }