using MadRunFabric.Common;
using MadRunFabric.Model.CallCenterApi;
using System;
using System.Collections.Generic;
using System.Text;

namespace WechatApi.IRepositories
{
    public interface ICall_RecordsRepository : IRepository<mw_call_records, string>
    {
        /// <summary>
        /// 获取坐席总数
        /// </summary>
        /// <returns></returns>
        int GetUserCount();
        /// <summary>
        /// 获取通话量
        /// </summary>
        /// <param name="agentcode">坐席工号</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="tag">呼叫类型</param>
        /// <param name="state">呼叫状态</param>
        /// <returns></returns>
        object GetHighChartData(string agentcode, string start, string end, string tag, string state);
        /// <summary>
        /// 获取通话时长
        /// </summary>
        /// <param name="agentcode">坐席工号</param>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="tag">呼叫类型</param>
        /// <param name="state">呼叫状态</param>
        object GetCallRecordTotalTime(string agentcode, string tag, string start, string end, string state);

        /// <summary>
        /// 获取24小时情况
        /// </summary>
        /// <param name="agentcode">坐席工号</param>
        /// <param name="stime">开始时间</param>
        /// <param name="etime">结束时间</param>
        object GetHW24CountReport(string agentcode, string stime, string etime);
        /// <summary>
        /// 坐席状态统计
        /// </summary>
        /// <param name="agentcode"></param>
        /// <param name="start"></param>
        /// <param name="end"></param>
        object GetAgentState(string agentcode, string start, string end);
    }
}
