Exemple #1
0
        static void DoGetXWSpeechParts()
        {
            List <string> verbs   = xwDictionary.getXWVerbs();
            List <string> nouns   = xwDictionary.getXWNouns();
            List <string> adVerbs = xwDictionary.getXWAdVerbs();

            XWSpeechPart speechPart = new XWSpeechPart(verbs, nouns, adVerbs);
        }
Exemple #2
0
        private void processLoadContent(HttpContext ctx)
        {
            ctx.Response.ContentType = "application/json";

            List <string> verbs   = xwDictionary.getXWVerbs();
            List <string> nouns   = xwDictionary.getXWNouns();
            List <string> adVerbs = xwDictionary.getXWAdVerbs();

            XWSpeechPart speechPart = new XWSpeechPart(verbs, nouns, adVerbs);

            string resultJSON = xwJSONSerializer.Serialize <XWSpeechPart>(speechPart);

            ctx.Response.Write(resultJSON);

            ctx.Response.End();
        }