using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CallCenter.Users;
namespace CallCenter.Caches
{
public interface IUserCacheManager
{
///
/// 查询用户当前工作记录
///
///
///
Work GetWorkByUser(string userId);
///
/// 查询分机当前工作记录
///
///
///
Work GetWorkByTel(string telNo);
///
/// 查询分机是否处于工作
///
///
///
Task IsWorkingByTelAsync(string telNo, CancellationToken cancellationToken);
///
/// 查询分机是否处于工作
///
///
///
///
Task IsWorkingByUserAsync(string userId, CancellationToken cancellationToken);
///
/// 根据用户更新工作记录
///
///
///
void UpdateWorkByUser(Work work);
///
/// 查询所有在工作的记录
///
///
List GetWorks();
void AddWorksCache(Work work);
void RemoveCallCache(string id);
}
}