79 lines
2.7 KiB
C#
79 lines
2.7 KiB
C#
|
|
/*
|
|||
|
|
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|||
|
|
*
|
|||
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|||
|
|
* you may not use this file except in compliance with the License.
|
|||
|
|
* You may obtain a copy of the License at
|
|||
|
|
*
|
|||
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|||
|
|
*
|
|||
|
|
* Unless required by applicable law or agreed to in writing,
|
|||
|
|
* software distributed under the License is distributed on an
|
|||
|
|
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|||
|
|
* KIND, either express or implied. See the License for the
|
|||
|
|
* specific language governing permissions and limitations
|
|||
|
|
* under the License.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
namespace TencentCloud.Tmt.V20180321.Models
|
|||
|
|
{
|
|||
|
|
using Newtonsoft.Json;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using TencentCloud.Common;
|
|||
|
|
|
|||
|
|
public class ImageTranslateRequest : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 唯一id,返回时原样返回
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("SessionUuid")]
|
|||
|
|
public string SessionUuid{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// doc:文档扫描
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Scene")]
|
|||
|
|
public string Scene{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 图片数据的Base64字符串,图片大小上限为4M,建议对源图片进行一定程度压缩
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Data")]
|
|||
|
|
public string Data{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 源语言,支持语言列表<li> zh : 中文 </li> <li> en : 英文 </li>
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Source")]
|
|||
|
|
public string Source{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 目标语言,支持语言列表<li> zh : 中文 </li> <li> en : 英文 </li>
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Target")]
|
|||
|
|
public string Target{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 项目ID,可以根据控制台-账号中心-项目管理中的配置填写,如无配置请填写默认项目ID:0
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ProjectId")]
|
|||
|
|
public long? ProjectId{ get; set; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// For internal usage only. DO NOT USE IT.
|
|||
|
|
/// </summary>
|
|||
|
|
internal override void ToMap(Dictionary<string, string> map, string prefix)
|
|||
|
|
{
|
|||
|
|
this.SetParamSimple(map, prefix + "SessionUuid", this.SessionUuid);
|
|||
|
|
this.SetParamSimple(map, prefix + "Scene", this.Scene);
|
|||
|
|
this.SetParamSimple(map, prefix + "Data", this.Data);
|
|||
|
|
this.SetParamSimple(map, prefix + "Source", this.Source);
|
|||
|
|
this.SetParamSimple(map, prefix + "Target", this.Target);
|
|||
|
|
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|