2024-07-04 11:02:45 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
2023-02-02 11:08:25 +05:00
|
|
|
|
using AsbCloudApp.Requests;
|
2021-04-23 10:21:25 +05:00
|
|
|
|
using System.Collections.Generic;
|
2021-08-11 16:54:42 +05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2021-04-23 10:21:25 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2024-09-10 10:16:31 +05:00
|
|
|
|
/// Сервис сообщений
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// </summary>
|
2024-09-10 10:16:31 +05:00
|
|
|
|
public interface IMessageService
|
2021-04-23 10:21:25 +05:00
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// <summary>
|
2024-09-10 10:16:31 +05:00
|
|
|
|
/// Получить статистику сообщений по параметрам запроса
|
2022-08-09 11:10:01 +05:00
|
|
|
|
/// </summary>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <param name="request"></param>
|
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-09-11 10:56:26 +05:00
|
|
|
|
Task<IEnumerable<StatCriticalMessageDto>> GetStatAsync(MessageRequest request, CancellationToken token);
|
2022-01-05 17:50:45 +05:00
|
|
|
|
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <summary>
|
2024-09-10 10:16:31 +05:00
|
|
|
|
/// Получить PaginationContainer с сообщениями по параметрам
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// </summary>
|
2024-09-10 10:16:31 +05:00
|
|
|
|
/// <param name="request"></param>
|
2024-08-19 10:01:07 +05:00
|
|
|
|
/// <param name="token"></param>
|
|
|
|
|
/// <returns></returns>
|
2024-09-10 10:16:31 +05:00
|
|
|
|
Task<PaginationContainer<MessageDto>> GetPaginatedMessagesAsync(MessageRequest request, CancellationToken token);
|
|
|
|
|
|
2021-04-23 10:21:25 +05:00
|
|
|
|
}
|