/// <summary> /// 查看指定的记录是否已读 /// </summary> /// <param name="UserID">用户ID</param> /// <param name="InfoType">信息类型</param> /// <param name="InfoID">信息主键ID</param> /// <returns></returns> public bool IsReadedStatus(string UserID, InformationCategory InfoType, string InfoID) { IInformationStatus dal = baseDal as IInformationStatus; int status = 1;//0未读 1已读 return(dal.CheckStatus(UserID, InfoType, InfoID, status)); }
/// <summary> /// 匹配状态 /// </summary> /// <param name="UserID">用户ID</param> /// <param name="InfoType">信息类型</param> /// <param name="InfoID">信息主键ID</param> /// <param name="Status">状态</param> /// <returns></returns> public bool CheckStatus(string UserID, InformationCategory InfoType, string InfoID, int Status) { IInformationStatus dal = baseDal as IInformationStatus; return(dal.CheckStatus(UserID, InfoType, InfoID, Status)); }
/// <summary> /// 设置状态 /// </summary> /// <param name="UserID">用户ID</param> /// <param name="InfoType">信息类型</param> /// <param name="InfoID">信息主键ID</param> /// <param name="Status">状态</param> public void SetStatus(Int32 userId, Int32 InfoType, Int32 InfoId, Int32 Status) { IInformationStatus dal = baseDal as IInformationStatus; dal.SetStatus(userId, InfoType, InfoId, Status); }
/// <summary> /// 设置状态 /// </summary> /// <param name="UserID">用户ID</param> /// <param name="InfoType">信息类型</param> /// <param name="InfoID">信息主键ID</param> /// <param name="Status">状态</param> public void SetStatus(string UserID, InformationCategory InfoType, string InfoID, int Status) { IInformationStatus dal = baseDal as IInformationStatus; dal.SetStatus(UserID, InfoType, InfoID, Status); }