forked from ddrilling/AsbCloudServer
32 lines
1.0 KiB
C#
32 lines
1.0 KiB
C#
using AsbCloudApp.Data;
|
|
using AsbCloudApp.Data.SAUB;
|
|
using AsbCloudApp.Requests;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services;
|
|
|
|
/// <summary>
|
|
/// Сервис сообщений панели оператора
|
|
/// </summary>
|
|
public interface IMessageService : ITelemetryDataEditorService
|
|
{
|
|
/// <summary>
|
|
/// Получить сообщения по параметрам
|
|
/// </summary>
|
|
/// <param name="request"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task<PaginationContainer<MessageDto>> GetMessagesAsync(MessageRequest request, CancellationToken token);
|
|
|
|
/// <summary>
|
|
/// Метод для сохранения сообщения от панели
|
|
/// </summary>
|
|
/// <param name="uid"></param>
|
|
/// <param name="dtos"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task InsertAsync(string uid, IEnumerable<TelemetryMessageDto> dtos,
|
|
CancellationToken token);
|
|
} |