Exemple #1
0
        public string DoTranslate(string word)
        {
            if (null == word)
            {
                return("");
            }
            string   json     = Translate(word);
            RootBean rootBean = ParseJson(json);

            return(rootBean.ConvertToString());
        }
Exemple #2
0
        private RootBean ParseJson(string json)
        {
            RootBean bean = Newtonsoft.Json.JsonConvert.DeserializeObject <RootBean>(json);

            return(bean);
        }