/* * 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.Npp.V20190823.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class CallBackCdr : AbstractModel { /// /// 呼叫通话 ID /// [JsonProperty("CallId")] public string CallId{ get; set; } /// /// 主叫号码 /// [JsonProperty("Src")] public string Src{ get; set; } /// /// 被叫号码 /// [JsonProperty("Dst")] public string Dst{ get; set; } /// /// 主叫呼叫开始时间 /// [JsonProperty("StartSrcCallTime")] public string StartSrcCallTime{ get; set; } /// /// 主叫响铃开始时间 /// [JsonProperty("StartSrcRingTime")] public string StartSrcRingTime{ get; set; } /// /// 主叫接听时间 /// [JsonProperty("SrcAcceptTime")] public string SrcAcceptTime{ get; set; } /// /// 被叫呼叫开始时间 /// [JsonProperty("StartDstCallTime")] public string StartDstCallTime{ get; set; } /// /// 被叫响铃开始时间 /// [JsonProperty("StartDstRingTime")] public string StartDstRingTime{ get; set; } /// /// 被叫接听时间 /// [JsonProperty("DstAcceptTime")] public string DstAcceptTime{ get; set; } /// /// 用户挂机通话结束时间 /// [JsonProperty("EndCallTime")] public string EndCallTime{ get; set; } /// /// 通话最后状态:0:未知状态 1:正常通话 2:主叫未接 3:主叫接听,被叫未接 4:主叫未接通 5:被叫未接通 /// [JsonProperty("CallEndStatus")] public string CallEndStatus{ get; set; } /// /// 通话计费时间 /// [JsonProperty("Duration")] public string Duration{ get; set; } /// /// 录音 URL,如果不录音或录音失败,该值为空 /// [JsonProperty("RecordUrl")] public string RecordUrl{ get; set; } /// /// 通话类型(1: VOIP 2:IP TO PSTN 3: PSTN TO PSTN),如果话单中没有该字段,默认值为回拨 3 (PSTN TO PSTN) /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("CallType")] public string CallType{ get; set; } /// /// 同回拨请求中的 bizId,如果回拨请求中带 bizId 会有该字段返回 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("BizId")] public string BizId{ get; set; } /// /// 订单 ID,最大长度不超过 64 个字节,对于一些有订单状态 App 相关应用(如达人帮接入 App 应用),该字段只在帐单中带上,其它回调不附带该字段 /// 注意:此字段可能返回 null,表示取不到有效值。 /// [JsonProperty("OrderId")] public string OrderId{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "CallId", this.CallId); this.SetParamSimple(map, prefix + "Src", this.Src); this.SetParamSimple(map, prefix + "Dst", this.Dst); this.SetParamSimple(map, prefix + "StartSrcCallTime", this.StartSrcCallTime); this.SetParamSimple(map, prefix + "StartSrcRingTime", this.StartSrcRingTime); this.SetParamSimple(map, prefix + "SrcAcceptTime", this.SrcAcceptTime); this.SetParamSimple(map, prefix + "StartDstCallTime", this.StartDstCallTime); this.SetParamSimple(map, prefix + "StartDstRingTime", this.StartDstRingTime); this.SetParamSimple(map, prefix + "DstAcceptTime", this.DstAcceptTime); this.SetParamSimple(map, prefix + "EndCallTime", this.EndCallTime); this.SetParamSimple(map, prefix + "CallEndStatus", this.CallEndStatus); this.SetParamSimple(map, prefix + "Duration", this.Duration); this.SetParamSimple(map, prefix + "RecordUrl", this.RecordUrl); this.SetParamSimple(map, prefix + "CallType", this.CallType); this.SetParamSimple(map, prefix + "BizId", this.BizId); this.SetParamSimple(map, prefix + "OrderId", this.OrderId); } } }