Esempio n. 1
0
        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)]);
        }
Esempio n. 2
0
        public List <FactResource> GetResources()
        {
            List <FactResource> resources    = new List <FactResource>();
            FactResource        enINResource = new FactResource("en-IN");

            enINResource.SkillName      = "Chirec School Lunch Menu";
            enINResource.GetFactMessage = "Here's your requested menu: ";
            enINResource.HelpMessage    = "You can say what's in lunch for Monday, or, you can say exit... What can I help you with?";
            enINResource.HelpReprompt   = "To get started, you can say, Alexa, ask school menu, what's for lunch on Monday";
            //enINResource.StopMessage = "Enjoy your lunch...";
            enINResource.StopMessage = String.Empty;
            //enINResource.Facts.Add("Uff. Kyaa keh rahe ho yaar...");
            resources.Add(enINResource);
            return(resources);
        }