/// <summary> /// Create new proofreading project, same language /// </summary> /// <param name="sourceLanguage">See Language Codes</param> /// <param name="sources">Comma separated list of Resource UUIDs</param> /// <param name="wordcount">[Optional] If empty use automatic counting</param> /// <param name="notes">[Optional] Text note that will be shown to translator regarding the newly project</param> /// <param name="expertise">[Optional] See Expertise Codes</param> /// <param name="callbackUrl">[Optional] See Callbacks section</param> /// <param name="name">[Optional] Name your project. If empty, your project will be named automatically.</param> /// <param name="custom">[Optional]</param> /// <returns></returns> public CreateProofreadingProjectSourceResult CreateProofreadingProjectSource(string sourceLanguage , string sources, string wordcount, string notes, string expertise, string callbackUrl, string name, string[] custom = null) { var r = new CreateProofreadingProjectSourceResult(); try { if (CreateProofreadingProjectSourceProvider == null) { CreateProofreadingProjectSourceProvider = new CreateProofreadingProjectSourceProvider(); } var json = CreateProofreadingProjectSourceProvider.Get(Url, _proxy, KeyPublic, KeySecret, sourceLanguage, sources, wordcount, notes, expertise, callbackUrl, name); r = JsonConvert.DeserializeObject <CreateProofreadingProjectSourceResult>(json.Replace("\"results\":[", "\"resultsArray\":[")); } catch (Exception err) { r.Status.Code = -1; r.Status.Msg = err.Message; } return(r); }
/// <summary> /// Create new proofreading project, same language /// </summary> /// <param name="sourceLanguage">See Language Codes</param> /// <param name="sources">Comma separated list of Resource UUIDs</param> /// <param name="wordcount">[Optional] If empty use automatic counting</param> /// <param name="notes">[Optional] Text note that will be shown to translator regarding the newly project</param> /// <param name="expertise">[Optional] See Expertise Codes</param> /// <param name="callbackUrl">[Optional] See Callbacks section</param> /// <param name="name">[Optional] Name your project. If empty, your project will be named automatically.</param> /// <param name="custom">[Optional]</param> /// <returns></returns> public CreateProofreadingProjectSourceResult CreateProofreadingProjectSource(string sourceLanguage , string sources, string wordcount, string notes, string expertise, string callbackUrl, string name, string[] custom = null) { var r = new CreateProofreadingProjectSourceResult(); try { if (CreateProofreadingProjectSourceProvider == null) CreateProofreadingProjectSourceProvider = new CreateProofreadingProjectSourceProvider(); var json = CreateProofreadingProjectSourceProvider.Get(Url, _proxy, KeyPublic, KeySecret, sourceLanguage, sources, wordcount, notes, expertise, callbackUrl, name); r = JsonConvert.DeserializeObject<CreateProofreadingProjectSourceResult>(json.Replace("\"results\":[", "\"resultsArray\":[")); } catch (Exception err) { r.Status.Code = -1; r.Status.Msg = err.Message; } return r; }