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-28 20:00:04 +05:00
|
|
|
|
public interface IMeasureService
|
2021-08-02 11:39:39 +05:00
|
|
|
|
{
|
2021-08-27 17:55:22 +05:00
|
|
|
|
Task<Dictionary<int, string>> GetCategoriesAsync(CancellationToken token);
|
2021-08-28 22:34:57 +05:00
|
|
|
|
Task<MeasureDto> GetLastAsync(int idWell, int idCategory, CancellationToken token);
|
2021-10-05 18:02:02 +05:00
|
|
|
|
Task<IEnumerable<MeasureDto>> GetHisoryAsync(int idWell, CancellationToken token);
|
2021-08-28 20:00:04 +05:00
|
|
|
|
Task<int> InsertAsync(int idWell, MeasureDto data, CancellationToken token);
|
|
|
|
|
Task<int> UpdateAsync(int idWell, MeasureDto data, CancellationToken token);
|
2021-08-27 17:55:22 +05:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
}
|