forked from ddrilling/AsbCloudServer
19 lines
819 B
C#
19 lines
819 B
C#
using AsbCloudApp.Data;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IMeasureService
|
|
{
|
|
Task<Dictionary<int, string>> GetCategoriesAsync(CancellationToken token);
|
|
Task<MeasureDto> GetLastAsync(int idWell, int idCategory, CancellationToken token);
|
|
Task<IEnumerable<MeasureDto>> GetHisoryAsync(int idWell, int? idCategory, CancellationToken token);
|
|
Task<int> InsertAsync(int idWell, MeasureDto data, CancellationToken token);
|
|
Task<int> UpdateAsync(int idWell, MeasureDto data, CancellationToken token);
|
|
Task<int> MarkAsDeleteAsync(int idWell, int idData, CancellationToken token);
|
|
Task<int> DeleteAsync(int idWell, int idData, CancellationToken token);
|
|
}
|
|
}
|