Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
GregTrevellick committed Sep 30, 2018
1 parent 7b2fed0 commit a9ba9fa
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Src/FootieData.Vsix/Providers/ThreadedDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ public void FetchDataFromGateway(ExternalLeagueCode externalLeagueCode, GridType
{
case GridType.Standing:
var iEnumerableStandings = GetStandings(externalLeagueCode);
if (iEnumerableStandings == null)
{
iEnumerableStandings = new List<Standing>()
{
new Standing { Team = "abc gregt" }
};
}
leagueParent.Standings.Clear();
var standingsList = iEnumerableStandings.ToList();
if (standingsList.Any(x => x.Team != null && x.Team.StartsWith(RequestLimitReached)))
Expand All @@ -94,6 +101,13 @@ public void FetchDataFromGateway(ExternalLeagueCode externalLeagueCode, GridType
break;
case GridType.Result:
var iEnumerableFixturePasts = GetFixturePasts(externalLeagueCode);
if (iEnumerableFixturePasts == null)
{
iEnumerableFixturePasts = new List<FixturePast>()
{
new FixturePast { HomeName = "def gregt" }
};
}
leagueParent.FixturePasts.Clear();
var resultsList = iEnumerableFixturePasts.ToList();
if (resultsList.Any())
Expand Down Expand Up @@ -125,6 +139,13 @@ public void FetchDataFromGateway(ExternalLeagueCode externalLeagueCode, GridType
break;
case GridType.Fixture:
var iEnumerableFixtureFutures = GetFixtureFutures(externalLeagueCode);
if (iEnumerableFixtureFutures == null)
{
iEnumerableFixtureFutures = new List<FixtureFuture>()
{
new FixtureFuture { HomeName = "ghi gregt" }
};
}
leagueParent.FixtureFutures.Clear();
var fixturesList = iEnumerableFixtureFutures.ToList();
if (fixturesList.Any())
Expand Down

0 comments on commit a9ba9fa

Please sign in to comment.