DD.WellWorkover.Cloud/AsbCloudApp/Services/IMessageService.cs

30 lines
990 B
C#
Raw Normal View History

using AsbCloudApp.Data;
using AsbCloudApp.Requests;
2021-04-23 10:21:25 +05:00
using System.Collections.Generic;
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-08-19 10:01:07 +05:00
/// </summary>
public interface IMessageService
2021-04-23 10:21:25 +05:00
{
2022-08-09 11:10:01 +05:00
/// <summary>
/// Получить статистику сообщений по параметрам запроса
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>
Task<IEnumerable<StatCriticalMessageDto>> GetStatAsync(MessageRequest request, CancellationToken token);
2024-08-19 10:01:07 +05:00
/// <summary>
/// Получить PaginationContainer с сообщениями по параметрам
2024-08-19 10:01:07 +05:00
/// </summary>
/// <param name="request"></param>
2024-08-19 10:01:07 +05:00
/// <param name="token"></param>
/// <returns></returns>
Task<PaginationContainer<MessageDto>> GetPaginatedMessagesAsync(MessageRequest request, CancellationToken token);
2021-04-23 10:21:25 +05:00
}