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); }
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(); }