2024-07-04 11:02:45 +05:00
|
|
|
using AsbCloudApp.Data;
|
2022-04-08 13:10:06 +05:00
|
|
|
using AsbCloudApp.Data.SAUB;
|
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
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Сервис сообщений панели оператора
|
|
|
|
/// </summary>
|
2024-07-23 17:26:23 +05:00
|
|
|
public interface IMessageService : ITelemetryDataEditorService
|
2021-04-23 10:21:25 +05:00
|
|
|
{
|
2022-08-09 11:10:01 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Получить сообщения по параметрам
|
|
|
|
/// </summary>
|
2023-02-02 11:08:25 +05:00
|
|
|
/// <param name="request"></param>
|
2022-08-09 11:10:01 +05:00
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
2023-02-02 11:08:25 +05:00
|
|
|
Task<PaginationContainer<MessageDto>> GetMessagesAsync(MessageRequest request, CancellationToken token);
|
2022-01-05 17:50:45 +05:00
|
|
|
|
2022-08-09 11:10:01 +05:00
|
|
|
/// <summary>
|
|
|
|
/// Метод для сохранения сообщения от панели
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="uid"></param>
|
|
|
|
/// <param name="dtos"></param>
|
|
|
|
/// <param name="token"></param>
|
|
|
|
/// <returns></returns>
|
2021-08-11 16:54:42 +05:00
|
|
|
Task InsertAsync(string uid, IEnumerable<TelemetryMessageDto> dtos,
|
|
|
|
CancellationToken token);
|
2021-04-23 10:21:25 +05:00
|
|
|
}
|
|
|
|
}
|