/* * 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.Asr.V20190614.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class TaskStatus : AbstractModel { /// /// 任务标识。 /// [JsonProperty("TaskId")] public ulong? TaskId{ get; set; } /// /// 任务状态码,0:任务等待,1:任务执行中,2:任务成功,3:任务失败。 /// [JsonProperty("Status")] public long? Status{ get; set; } /// /// 任务状态,waiting:任务等待,doing:任务执行中,success:任务成功,failed:任务失败。 /// [JsonProperty("StatusStr")] public string StatusStr{ get; set; } /// /// 识别结果。 /// [JsonProperty("Result")] public string Result{ get; set; } /// /// 失败原因说明。 /// [JsonProperty("ErrorMsg")] public string ErrorMsg{ get; set; } /// /// 识别结果详情,包含每个句子中的词时间偏移,一般用于生成字幕的场景。(录音识别请求中ResTextFormat=1时该字段不为空) /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("ResultDetail")] public SentenceDetail[] ResultDetail{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "TaskId", this.TaskId); this.SetParamSimple(map, prefix + "Status", this.Status); this.SetParamSimple(map, prefix + "StatusStr", this.StatusStr); this.SetParamSimple(map, prefix + "Result", this.Result); this.SetParamSimple(map, prefix + "ErrorMsg", this.ErrorMsg); this.SetParamArrayObj(map, prefix + "ResultDetail.", this.ResultDetail); } } }