|
|
|
@ -6,6 +6,7 @@ using System.Threading.Tasks;
|
|
|
|
|
using WpfApp1.WinOcr;
|
|
|
|
|
using WpfApp1.ScnToJson;
|
|
|
|
|
using WpfApp1.translationKey;
|
|
|
|
|
using WpfApp1.transToNet;
|
|
|
|
|
|
|
|
|
|
namespace testRjgc
|
|
|
|
|
{
|
|
|
|
@ -13,13 +14,19 @@ namespace testRjgc
|
|
|
|
|
{
|
|
|
|
|
AllClassAndInterfaceWellBeManipulatedInThisFileAndCallThroughFunction() { }
|
|
|
|
|
|
|
|
|
|
public void InputPrivate(string name, string id, string key)
|
|
|
|
|
public void InputPrivateBaidu(string name, string id, string key)
|
|
|
|
|
{
|
|
|
|
|
TranslationPrivateIn tr = new TranslationPrivateIn();
|
|
|
|
|
tr.InputTranslationPrivate(name, id, key);
|
|
|
|
|
tr.InputBaiduPrivate(name, id, key);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<string> OutputNameList(string id)
|
|
|
|
|
public void InPutPrivateA(string name, List<string> list)
|
|
|
|
|
{
|
|
|
|
|
TranslationPrivateIn tr = new TranslationPrivateIn();
|
|
|
|
|
tr.InPutPrivate(name, list);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<string> OutputNameList()
|
|
|
|
|
{
|
|
|
|
|
TranslationApiStr tr = new translationPrivateOut();
|
|
|
|
|
List<string> list = tr.OutputTranslationNameList();
|
|
|
|
@ -33,7 +40,7 @@ namespace testRjgc
|
|
|
|
|
return li;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<string> OutputPub(int id)
|
|
|
|
|
public List<string> OutputChoicPublic(int id)
|
|
|
|
|
{
|
|
|
|
|
TranslationApiInt sin = new translationPublic();
|
|
|
|
|
List<string> li = sin.OutputTranslationI(id);
|
|
|
|
@ -59,5 +66,42 @@ namespace testRjgc
|
|
|
|
|
return temp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string NetBaiDu(string input)
|
|
|
|
|
{
|
|
|
|
|
Messiah me = new jsonNet();
|
|
|
|
|
return me.RequestJsonBaiDu(input);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string NetAllBaiDu(string input, string srcl, string dstl, string aid, string kkey)
|
|
|
|
|
{
|
|
|
|
|
Messiah me = new jsonNet();
|
|
|
|
|
return me.RequestJsonPrivateBaiDu(input, srcl, dstl, aid, kkey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string NetLanBaiDu(string input, string srcl, string dstl)
|
|
|
|
|
{
|
|
|
|
|
Messiah me = new jsonNet();
|
|
|
|
|
return me.RequestJsonLanguageChangeBaiDu(input, srcl, dstl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string NetXunFei(string input)
|
|
|
|
|
{
|
|
|
|
|
Messiah me = new jsonNet();
|
|
|
|
|
return me.RequestJsonXunFei(input);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string NetLanXunFei(string input, string srcl, string dstl)
|
|
|
|
|
{
|
|
|
|
|
Messiah me = new jsonNet();
|
|
|
|
|
return me.RequestJsonLanguageChangeXunFei(input, srcl, dstl);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string NetAllXunFei(string input, string srcl, string dstl, string xid, string xsecret, string xkey)
|
|
|
|
|
{
|
|
|
|
|
Messiah me = new jsonNet();
|
|
|
|
|
return me.RequestJsonPrivateXunFei(input, srcl, dstl, xid, xsecret, xkey);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|