using GB5Shared.DTO.Framework.Criteria; using GB5Shared.DTO.Framework.Login; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Threading.Tasks; namespace FrameworkDAL.CustomCode.Notification { public interface INotificationDAL { Task GetNotificationUser(int first, int max, CriteriaDTO criteriaDTO, LoginDTO loginDTO); Task UpdateNotificationTo(int notificationToId, LoginDTO loginDTO); Task UpdateAllNotification(int userId, LoginDTO loginDTO); Task DeleteAllNotification(int userId, LoginDTO loginDTO); Task DeleteOneNotification(int notificationToId, LoginDTO loginDTO); /// /// Writes one TNOTIFICATION row + one TNOTIFICATIONTO row per recipient. /// Returns the new NotificationId. /// Task SaveNotification( string message, int fromUserId, int dataId, List toUserIds, LoginDTO loginDTO, CancellationToken cancellationToken = default); } }