using AsbCloudApp.Data; using System.Collections.Generic; using System.IO; using System.Threading; using System.Threading.Tasks; namespace AsbCloudApp.Services { public interface IDrillingProgramService { Task> GetCategoriesAsync(CancellationToken token = default); Task GetStateAsync(int idWell, int fileChangerId, CancellationToken token = default); Task AddOrReplaceFileMarkAsync(FileMarkDto fileMarkDto, int idUser, CancellationToken token); Task MarkAsDeletedFileMarkAsync(int idFileMark, CancellationToken token); Task AddPartsAsync(int idWell, IEnumerable idFileCategories, CancellationToken token = default); Task RemovePartsAsync(int idWell, IEnumerable idFileCategories, CancellationToken token = default); Task AddUserAsync(int idUser, int idPart, int idUserRole, CancellationToken token = default); Task RemoveUserAsync(int idUser, int idPart, int idUserRole, CancellationToken token = default); Task AddFile(int idPart, int idUser, string fileFullName, Stream fileStream, CancellationToken token = default); Task> GetAvailableUsers(int idWell, CancellationToken token = default); } }