private async Task Load(Play p) { if (p.Game == null) { p.Game = await CardboardKnight.RetrieveGame(p.GameId); Play = p; } }
public async Task Load(int id) { Fetched = true; var existing = await CardboardKnight.RetrieveGame(id); if (existing != null && !string.IsNullOrEmpty(existing.Description)) //assumption is if the description is added, the game has been completely downloaded via the games page. { Game = existing; } else { var g = await CardboardKnight.FetchGame(id); Game = await CardboardKnight.StoreGame((Game)g); } await SetupVideos(); }