/// <summary>
        /// Detect language via machine translation
        /// </summary>
        /// <param name="sourceContent">Text for translation</param>
        /// <returns></returns>
        public DetectLanguageViaMachineTranslationResult DetectLanguageViaMachineTranslation(string sourceContent)
        {
            var r = new DetectLanguageViaMachineTranslationResult();

            try
            {
                if (DetectLanguageViaMachineTranslationProvider == null)
                {
                    DetectLanguageViaMachineTranslationProvider = new DetectLanguageViaMachineTranslationProvider();
                }
                var json = DetectLanguageViaMachineTranslationProvider.Get(Url, _proxy, KeyPublic, KeySecret, sourceContent);
                r = JsonConvert.DeserializeObject <DetectLanguageViaMachineTranslationResult>(json.Replace("\"results\":[", "\"resultsArray\":["));
            }
            catch (Exception err)
            {
                r.Status.Code = -1;
                r.Status.Msg  = err.Message;
            }
            return(r);
        }
 /// <summary>
 /// Detect language via machine translation
 /// </summary>
 /// <param name="sourceContent">Text for translation</param>
 /// <returns></returns>
 public DetectLanguageViaMachineTranslationResult DetectLanguageViaMachineTranslation(string sourceContent)
 {
     var r = new DetectLanguageViaMachineTranslationResult();
     try
     {
         if (DetectLanguageViaMachineTranslationProvider == null)
             DetectLanguageViaMachineTranslationProvider = new DetectLanguageViaMachineTranslationProvider();
         var json = DetectLanguageViaMachineTranslationProvider.Get(Url, _proxy, KeyPublic, KeySecret, sourceContent);
         r = JsonConvert.DeserializeObject<DetectLanguageViaMachineTranslationResult>(json.Replace("\"results\":[", "\"resultsArray\":["));
     }
     catch (Exception err)
     {
         r.Status.Code = -1;
         r.Status.Msg = err.Message;
     }
     return r;
 }