using MadRunFabric.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace CallCenterApi.Dto
{
    public class CallOutTaskDto
    {
        /// <summary>
        /// id
        /// </summary>
        public string id { get; set; }

        /// <summary>
        /// 任务ID
        /// </summary>
        public string taskid { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string taskname { get; set; }

        /// <summary>
        /// 任务备注
        /// </summary>
        public string taskremark { get; set; }

        /// <summary>
        /// 问卷ID
        /// </summary>
        public string pagerid { get; set; }
        /// <summary>
        /// 问卷名称
        /// </summary>
        public string pager_name { get; set; }

        /// <summary>
        /// 是否启动：0未启动，1已启动，2暂停，3处理完成，4撤销，5完结
        /// </summary>
        public int? isstart { get; set; }

        /// <summary>
        /// 启动时间
        /// </summary>
        public string starttime { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public string endtime { get; set; }

        /// <summary>
        /// 是否分配：0未分配，1已分配
        /// </summary>
        public int? isallot { get; set; }

        /// <summary>
        /// 分配人工号
        /// </summary>
        public string allotusercode { get; set; }

        /// <summary>
        /// 分配时间
        /// </summary>
        public DateTime? allottime { get; set; } = DateTime.Now;

        /// <summary>
        /// 添加人工号
        /// </summary>
        public string createusercode { get; set; }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime? createtime { get; set; } = DateTime.Now;

        /// <summary>
        /// 删除标志：0正常，1删除
        /// </summary>
        public int? deleteflag { get; set; }

        /// <summary>
        /// 任务是否上线：0未上线，1已上线
        /// </summary>
        public int? isonline { get; set; }

        /// <summary>
        /// 工作开始时间1
        /// </summary>
        public string workstarttimes1 { get; set; }
        /// <summary>
        /// 工作结束时间1
        /// </summary>
        public string workendtimes1 { get; set; }

        /// <summary>
        /// 工作开始时间2
        /// </summary>
        public string workstarttimes2 { get; set; }
        /// <summary>
        /// 工作结束时间2
        /// </summary>
        public string workendtimes2 { get; set; }

        /// <summary>
        /// 任务外呼方式：0不播放语音呼通直接转坐席，1播放语音呼通直接转坐席，2播放语音提示按键，按键后转坐席,3不转坐席
        /// </summary>
        public int calltype { get; set; } = 0;

        /// <summary>
        /// 语音文件路径
        /// </summary>
        public List<FileBaseModel> voicepath { get; set; }//public string voicepath { get; set; }

        /// <summary>
        /// 语音文字
        /// </summary>
        public string voicestring { get; set; }

        /// <summary>
        /// 按键值
        /// </summary>
        public string pressnum { get; set; }

        /// <summary>
        /// 并发类型
        /// </summary>
        public string bftype { get; set; }

        /// <summary>
        /// 并发数量
        /// </summary>
        public int bfnum { get; set; } = 0;

        /// <summary>
        /// 参与标志
        /// </summary>
        public int joinflag { get; set; } = 0;

        /// <summary>
        /// 任务量
        /// </summary>
        public long totalnum { get; set; } = 0;

        /// <summary>
        /// 剩余量
        /// </summary>
        public long surplusnum { get; set; } = 0;

        /// <summary>
        /// 接通量
        /// </summary>
        public long successnum { get; set; } = 0;

        /// <summary>
        /// 呼叫量
        /// </summary>
        public long callnum { get; set; } = 0;

        /// <summary>
        /// 坐席数量
        /// </summary>
        public long agentnum { get; set; } = 0;

        /// <summary>
        /// 接通率
        /// </summary>
        public string successpercent { get; set; } = "0";

        /// <summary>
        /// 坐席接通量
        /// </summary>
        public long agentsuccessnum { get; set; } = 0;

        /// <summary>
        /// 坐席接通率
        /// </summary>
        public string agentsuccesspercent { get; set; } = "0";

        /// <summary>
        /// 是否已二次执行过
        /// </summary>
        public int secondflag { get; set; } = 0;

        /// <summary>
        /// 是否手动操作
        /// </summary>
        public int ishand { get; set; } = 0;
    }
}
