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_Agent_Callout_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 string callee { get; set; }

        /// <summary>
        /// 呼叫号码
        /// </summary>
        public string caller { get; set; }

        /// <summary>
        /// 呼叫电话的坐席ID
        /// </summary>
        public int caller_agent_id { get; set; }

        /// <summary>
        /// 振铃开始时间 时间戳
        /// </summary>
        public Int64 time_ring_back { get; set; } 

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

        /// <summary>
        /// 通话建立时间 时间戳
        /// </summary>
        public Int64 time_connected { get; set; } 

        /// <summary>
        /// 录音文件名
        /// </summary>
        public string rec_file_name { get; set; }

        /// <summary>
        /// 挂断时间
        /// </summary>
        public Int64 time_hang_up { get; set; } 

        /// <summary>
        /// 通话时长
        /// </summary>
        public int period_talking { get; set; } = 0;
    }
}
