Пример #1
0
        protected override string ProcessChange()
        {
            if (this.templateNode.Name.ToLower() == "sr")
            {
                XmlNode starNode      = Utils.AIMLTagHandler.getNode("<star/>");
                star    recursiveStar = new star(this.bot, this.user, this.query, this.request, this.result, starNode);
                string  starContent   = recursiveStar.Transform();

                XmlNode sraiNode    = ABPS.Aiml.Utils.AIMLTagHandler.getNode("<srai>" + starContent + "</srai>");
                srai    sraiHandler = new srai(this.bot, this.user, this.query, this.request, this.result, sraiNode);
                return(sraiHandler.Transform());
            }
            return(string.Empty);
        }