2021-08-27 17:55:22 +05:00
|
|
|
|
using AsbCloudApp.Data;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Threading;
|
2021-08-11 16:54:42 +05:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
2021-08-02 11:39:39 +05:00
|
|
|
|
{
|
2021-08-27 17:55:22 +05:00
|
|
|
|
public interface ILastDataService
|
2021-08-02 11:39:39 +05:00
|
|
|
|
{
|
2021-08-27 17:55:22 +05:00
|
|
|
|
Task<Dictionary<int, string>> GetCategoriesAsync(CancellationToken token);
|
|
|
|
|
Task<IEnumerable<LastDataDto>> GetHisoryAsync(int idWell, int idCategory, CancellationToken token);
|
|
|
|
|
Task<IEnumerable<LastDataDto>> GetAllLastAsync(int idWell, CancellationToken token);
|
|
|
|
|
Task<int> InsertAsync(int idWell, LastDataDto data, CancellationToken token);
|
|
|
|
|
Task<int> UpdateAsync(int idWell, LastDataDto data, CancellationToken token);
|
|
|
|
|
Task<int> MarkAsDeleteAsync(int idWell, int idData, CancellationToken token);
|
|
|
|
|
Task<int> DeleteAsync(int idWell, int idData, CancellationToken token);
|
2021-08-02 11:39:39 +05:00
|
|
|
|
}
|
|
|
|
|
}
|