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    = "Family Doctor";
            enINResource.HelpMessage  = "You can say, ask Family Doctor, suggest medicine for Headache for an adult, or suggest medicine for fever for a kid";
            enINResource.HelpReprompt = String.Empty;
            enINResource.StopMessage  = String.Empty;
            enINResource.Facts.Add("Please speak your desired operation clearly...");
            resources.Add(enINResource);
            return(resources);
        }