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_Transfer_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>
        /// 被呼入的坐席ID
        /// </summary>
        public int callee_agent_id { get; set; }

        /// <summary>
        /// 转移开始时间 时间戳
        /// </summary>
        public Int64 time_transfer_begin { get; set; }

        /// <summary>
        /// 转移是否成功
        /// </summary>
        public int is_transfer_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_transfer_ok { get; set; } 

        /// <summary>
        /// 转移结束时间
        /// </summary>
        public Int64 time_transfer_end { get; set; } 

    }
}
