using MadRunFabric.Common;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace MadRunFabric.Model
{
    /// <summary>
    /// 自动外呼
    /// </summary>
    public class MW_Autocall_Call_Record : IBaseModel<string>
    {
        /// <summary>
        /// id
        /// </summary>
        [Key]
        [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)]
        public string id { get; set; }

        /// <summary>
        /// 通话唯一ID
        /// </summary>
        public string unique_id { get; set; }

        /// <summary>
        /// 任务批次
        /// </summary>
        public Int64 timestamp { get; set; }

        /// <summary>
        /// 被呼出的电话所在的组
        /// </summary>
        public string task_icon { get; set; }

        /// <summary>
        /// 被呼叫的号码
        /// </summary>
        public string callee { get; set; }

        /// <summary>
        /// 呼叫开始时间
        /// </summary>
        public Int64 start_time { get; set; }

        /// <summary>
        /// 通话结束时间
        /// </summary>
        public Int64 end_time { get; set; } 

        /// <summary>
        /// 坐席接听时间
        /// </summary>
        public Int64 connect_time { get; set; } 

        /// <summary>
        /// 分配的坐席ID
        /// </summary>
        public string  agent_id { get; set; }

        /// <summary>
        /// 录音路径 
        /// </summary>
        public string record_path { get; set; }

        /// <summary>
        /// 是否外呼成功0/1
        /// </summary>
        public int is_call_out_ok { get; set; } = 0;

        /// <summary>
        /// 是否请求坐席0/1
        /// </summary>
        public int is_want_agent { get; set; } = 0;

        /// <summary>
        /// 请求坐席是否成功0/1
        /// </summary>
        public int is_want_agent_ok { get; set; } = 0;

        /// <summary>
        /// 是否转坐席0/1
        /// </summary>
        public int is_turn_agent { get; set; } = 0;

        /// <summary>
        /// 转坐席是否成功0/1
        /// </summary>
        public int is_turn_agent_ok { get; set; } = 0;

        /// <summary>
        /// 通话时长
        /// </summary>
        public long talk_time_len { get; set; }
    }
}
