You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace STranslate.Model
|
|
|
|
|
{
|
|
|
|
|
public class BaiduModel
|
|
|
|
|
{
|
|
|
|
|
public string Text { get; set; }
|
|
|
|
|
public string From { get; set; }
|
|
|
|
|
public string TO { get; set; }
|
|
|
|
|
public string AppId { get; set; }
|
|
|
|
|
public string Salt { get; set; }
|
|
|
|
|
public string Sign { get; set; }
|
|
|
|
|
}
|
|
|
|
|
public class BaiduResp
|
|
|
|
|
{
|
|
|
|
|
[JsonProperty("from")]
|
|
|
|
|
public string From { get; set; }
|
|
|
|
|
[JsonProperty("to")]
|
|
|
|
|
public string To { get; set; }
|
|
|
|
|
[JsonProperty("trans_result")]
|
|
|
|
|
public TransResult[] TransResult { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class TransResult
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
[JsonProperty("src")]
|
|
|
|
|
public string Src { get; set; }
|
|
|
|
|
[JsonProperty("dst")]
|
|
|
|
|
public string Dst { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|