private static void LoadStory() { bool haveValidInput = false; uint storyId = 0; while (!haveValidInput) { Console.Write("Enter story ID: "); string idStr = Console.ReadLine(); try { storyId = uint.Parse(idStr); haveValidInput = true; } catch { Console.WriteLine("Invalid input"); } } try { Task <Interactive> storyTask = Interactive.LoadWebSkeleton(storyId); VisualWaitForTask(storyTask, "Downloading story info"); loadedStory = storyTask.Result; } catch (Exception e) { Console.WriteLine("Unable to download story info: " + e.Message); WaitForEnter(); return; } Console.WriteLine("Info for " + loadedStory.Title + " downloaded."); }