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_Conference_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 int peer_line_type { get; set; } = 0;


        /// <summary>
        /// 三方是否成功
        /// </summary>
        public int is_conference_ok { get; set; } = 0;


        public Int64 time_connected { get; set; }
        //2018-7-17
        //private string _time_connected="";
        ///// <summary>
        ///// 通话建立时间 时间戳 转三方时间
        ///// </summary>
        //public string time_connected
        //{
        //    get
        //    {
        //        return DateTimeConvert.GetTime(_time_connected).ToString();//LongDateTimeToDateTimeString(_time_connected);
        //    }
        //    set
        //    {
        //        _time_connected = value;
        //    }

        //}

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


        /// <summary>
        /// 三方结束时间
        /// </summary>
        public Int64 time_conference_end { get; set; } 
    }
}
