2023-07-10 16:56:55 +05:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
using AsbCloudApp.Data;
|
2023-07-11 18:57:25 +05:00
|
|
|
using AsbCloudApp.Requests;
|
2023-07-10 16:56:55 +05:00
|
|
|
using AsbCloudApp.Services;
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Repositories;
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Репозиторий для уведомлений
|
|
|
|
/// </summary>
|
|
|
|
public interface INotificationRepository : ICrudRepository<NotificationDto>
|
|
|
|
{
|
|
|
|
/// <summary>
|
2023-07-11 18:57:25 +05:00
|
|
|
/// Получение уведомлений по параметрам
|
2023-07-10 16:56:55 +05:00
|
|
|
/// </summary>
|
|
|
|
/// <param name="idUser"></param>
|
2023-07-11 18:57:25 +05:00
|
|
|
/// <param name="request"></param>
|
2023-07-10 16:56:55 +05:00
|
|
|
/// <param name="cancellationToken"></param>
|
|
|
|
/// <returns></returns>
|
2023-07-11 18:57:25 +05:00
|
|
|
Task<PaginationContainer<NotificationDto>> GetNotificationsAsync(int idUser,
|
|
|
|
NotificationRequest request,
|
2023-07-10 16:56:55 +05:00
|
|
|
CancellationToken cancellationToken);
|
|
|
|
}
|