SACenter/SA.Domain.XFYun/XFYunEntity/CallDetail.cs

160 lines
4.3 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

namespace SA.Domain.XFYun.XFYunEntity
{
public class CallDetail
{
/// <summary>
/// 云呼平台创建的批次任务ID
/// </summary>
public string? PlatTaskId { get; set; }
/// <summary>
/// 调用方任务ID
/// </summary>
public string? ExtTaskId { get; set; }
/// <summary>
///
/// </summary>
public string? PlatSingleTaskId { get; set; }
/// <summary>
/// 外呼号码
/// </summary>
public string? Phone { get; set; }
/// <summary>
/// 号码归属省份
/// </summary>
public string? Province { get; set; }
/// <summary>
/// 号码归属城市
/// </summary>
public string? City { get; set; }
/// <summary>
/// 运营商1-移动2-联通3-电信
/// </summary>
public string? CarrierCode { get; set; }
/// <summary>
/// 外呼机器人编号
/// </summary>
public string? Robot { get; set; }
/// <summary>
/// 0成功 1失败 2过期
/// </summary>
public string? CallRet { get; set; }
/// <summary>
/// 若外呼失败,该字段为失败原因
/// 失败原因有很多,其中通话未建立的具体失败原因是通过转写识别回铃音分析获取的,是个异步的处理过程,正在考虑在外呼结果相关接口中直接推送具体的外呼失败原因。
/// 具体失败原因包括:关机、停机、空号、正在通话、无人接听、无法接通等
/// </summary>
public string? RetDesc { get; set; }
/// <summary>
/// 外呼开始时间
/// </summary>
public string? StartTime { get; set; }
/// <summary>
/// 外呼结束时间
/// </summary>
public string? EndTime { get; set; }
/// <summary>
/// 服务时长单位s
/// </summary>
public int? SvcTime { get; set; }
/// <summary>
/// 会话标签json
/// </summary>
public string? Labels { get; set; }
/// <summary>
/// 交互记录
/// </summary>
public List<CallDetailInteract>? Interact { get; set; }
/// <summary>
/// 全程通话音频http地址
/// </summary>
public string? Audio { get; set; }
/// <summary>
/// 由对应开发者的适配层来解析并规整后按照开发者协议回调。
/// </summary>
public string? Ext { get; set; }
/// <summary>
/// 当前外呼状态
/// 0:任务待提交
/// 1:任务已提交,等待营销
/// 2:营销中
/// 3:营销结束
/// 4:营销失败
/// 5:营销过期
/// 6:已被业务规则过滤
/// 7:暂停
/// 8:取消
/// </summary>
public int? Status { get; set; }
/// <summary>
/// 会话id当外呼成功、会话接通后才有值
/// </summary>
public string? Sid { get; set; }
/// <summary>
/// 开发者应用ID
/// </summary>
public string? AppId { get; set; }
/// <summary>
/// 业务参数格式json取决于外呼话术配置
/// </summary>
public string? Content { get; set; }
/// <summary>
/// 槽位格式json取决于话术及交互
/// </summary>
public string? Slots { get; set; }
}
public class CallDetailInteract
{
/// <summary>
/// 交互时间精确到秒
/// </summary>
public string? Time { get; set; }
/// <summary>
/// 0机器人 1 用户
/// </summary>
public string? Type { get; set; }
/// <summary>
/// 内容
/// </summary>
public string? Content { get; set; }
/// <summary>
/// 节点id
/// </summary>
public string? Nodeid { get; set; }
/// <summary>
/// 节点名称
/// </summary>
public string? Nodename { get; set; }
/// <summary>
/// 交互过程中用户说话的音频文件
/// </summary>
public string? Ugc { get; set; }
}
}