forked from ddrilling/AsbCloudServer
30 lines
985 B
C#
30 lines
985 B
C#
using AsbCloudApp.Data;
|
||
using AsbCloudApp.Requests;
|
||
using System.Collections.Generic;
|
||
using System.Threading;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace AsbCloudApp.Services;
|
||
|
||
/// <summary>
|
||
/// Сервис сообщений
|
||
/// </summary>
|
||
public interface IMessageService
|
||
{
|
||
/// <summary>
|
||
/// Получить статистику сообщений по параметрам запроса
|
||
/// </summary>
|
||
/// <param name="request"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<IEnumerable<StatCriticalMessageDto>> GetStat(MessageRequest request, CancellationToken token);
|
||
|
||
/// <summary>
|
||
/// Получить PaginationContainer с сообщениями по параметрам
|
||
/// </summary>
|
||
/// <param name="request"></param>
|
||
/// <param name="token"></param>
|
||
/// <returns></returns>
|
||
Task<PaginationContainer<MessageDto>> GetPaginatedMessagesAsync(MessageRequest request, CancellationToken token);
|
||
|
||
} |