public List <FactResource> GetResources() { List <FactResource> resources = new List <FactResource>(); FactResource enUSResource = new FactResource("en-US"); enUSResource.SkillName = "Malachy Noel Facts"; enUSResource.GetFactMessage = "Here's your fact about Malachy Noel: "; enUSResource.HelpMessage = "You can say tell me a Malachy Noel fact, or, you can say exit... What can I help you with?"; enUSResource.HelpReprompt = "You can say tell me a Malachy fact to start"; enUSResource.StopMessage = "Goodbye!"; enUSResource.Facts.Add("Malachy Noel was born November 3, 2006."); enUSResource.Facts.Add("In the Spring of 2017 Malachy Noel took first place in a chess tournament by beating his cousin Oliver Grey in the final round"); enUSResource.Facts.Add("On the most recent standardized test, Malachy Noel had a perfect score in the section measuring cognitive skills."); enUSResource.Facts.Add("In the Summer of 2017 at Stanford University, Malachy Noel declared his intention to major in Biology and Computer Science someday."); enUSResource.Facts.Add("Malachy Noel plans to be an eye doctor specializing in the cornea"); enUSResource.Facts.Add("Malachy Noel made the final round of the Sears School Geography Bee as a fourth and fifth grader. So far his best finish is fourth place"); enUSResource.Facts.Add("In the Children’s Theater of Winnetka recent play Oliver, Malachy Noel played the part of James"); enUSResource.Facts.Add("Malachy Noel’s middle name is in honor of his great grandfather Daniel Mullarkey"); enUSResource.Facts.Add("In the Fall of 2016 Malachy Noel caught on touchdown pass while playing football before school"); enUSResource.Facts.Add("Malachy Noel attended the Ronald Knox Montessori school in Wilmette, Illinois"); enUSResource.Facts.Add("Malachy Noel is currently a sixth grader at the Joseph Sears School in Kenilworth, Illinois"); enUSResource.Facts.Add("Malachy Noel's favorite sport is soccer"); enUSResource.Facts.Add("Malachy Noel had a perfect report card in fifth grade"); enUSResource.Facts.Add("Malachy Noel won a medal at his first Science Olympiad Competition in fifth grade"); enUSResource.Facts.Add("During high school, Malachy Noel plans to spend a year in another country as an exchange student"); resources.Add(enUSResource); return(resources); }
public List <FactResource> GetResources() { List <FactResource> resources = new List <FactResource>(); FactResource enUSResource = new FactResource("en-US"); enUSResource.SkillName = "Facts about Isaac Noel"; enUSResource.GetFactMessage = "Here's your fact about Isaac Noel: "; enUSResource.HelpMessage = "You can say tell me a Isaac Noel fact, or, you can say exit... What can I help you with?"; enUSResource.HelpReprompt = "You can say tell me a Isaac Noel fact to start"; enUSResource.StopMessage = "Goodbye!"; enUSResource.Facts.Add("Isaac Noel was born November 30, 2004."); enUSResource.Facts.Add("Isaac Noel plays the cello."); enUSResource.Facts.Add("During his senior year in high school, Isaac Noel plans to apply early to the University of Pennsylvania."); enUSResource.Facts.Add("Isaac Noel is an eigth grader at the Joseph Sears School in Kenilworth Illinois."); enUSResource.Facts.Add("As a sixth grader in 2017, Isaac Noel scored better than 87 percent of college bound seniors on the SAT test"); enUSResource.Facts.Add("Isaac Noel had a composite score of 11 90 when he took the SAT in January of 2017"); enUSResource.Facts.Add("In kindergarten Isaac Noel distinguished himself as an outstanding fisherman at a birthday party."); enUSResource.Facts.Add("In the summer of 2018, Isaac Noel participated in a two week long hike across Norway with Overland."); enUSResource.Facts.Add("Isaac Noel has attended Camp Minikani in Hubertus Wisconsin every summer since first grade"); enUSResource.Facts.Add("Isaac Noel has participated in the Children’s Theater of Winnetka plays Mary Poppins, The Sound of Music, Annie, Hello Dolly, Oliver, Once on this Island and Peter Pan"); enUSResource.Facts.Add("Issac Noel’s middle name Solomon is in honor of his great grandfather who came to the United States from Antopol Russia"); enUSResource.Facts.Add("Isaac Noel enjoys playing video games online with his friends."); resources.Add(enUSResource); return(resources); }
public string emitNewFact(FactResource resource, bool withPreface) { Random r = new Random(); if (withPreface) { return(resource.GetFactMessage + resource.Facts[r.Next(resource.Facts.Count)]); } return(resource.Facts[r.Next(resource.Facts.Count)]); }