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

43 lines
1.5 KiB
C#
Raw Normal View History

2021-04-23 10:21:25 +05:00
using AsbCloudApp.Data;
2022-04-08 13:10:06 +05:00
using AsbCloudApp.Data.SAUB;
2021-04-23 10:21:25 +05:00
using System;
using System.Collections.Generic;
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>
2021-04-23 10:21:25 +05:00
public interface IMessageService
{
2022-08-09 11:10:01 +05:00
/// <summary>
/// Получить сообщения по параметрам
/// </summary>
/// <param name="idWell"></param>
/// <param name="categoryids"></param>
/// <param name="begin"></param>
/// <param name="end"></param>
/// <param name="searchString"></param>
/// <param name="skip"></param>
/// <param name="take"></param>
/// <param name="token"></param>
/// <returns></returns>
2021-09-10 11:28:57 +05:00
Task<PaginationContainer<MessageDto>> GetMessagesAsync(int idWell,
IEnumerable<int> categoryids = default, DateTime begin = default,
2021-09-10 11:28:57 +05:00
DateTime end = default, string searchString = default,
int skip = 0, int take = 32,
CancellationToken token = default);
2022-08-09 11:10:01 +05:00
/// <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);
2021-04-23 10:21:25 +05:00
}
}