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

24 lines
1.4 KiB
C#
Raw Normal View History

2021-08-29 17:25:16 +05:00
using AsbCloudApp.Data;
using System.Collections.Generic;
using System.IO;
2021-08-29 17:25:16 +05:00
using System.Threading;
using System.Threading.Tasks;
namespace AsbCloudApp.Services
{
public interface IDrillingProgramService
{
Task<IEnumerable<UserDto>> GetAvailableUsers(int idWell, CancellationToken token = default);
Task<IEnumerable<FileCategoryDto>> GetCategoriesAsync(CancellationToken token = default);
Task<DrillingProgramStateDto> GetStateAsync(int idWell, int idUser,
CancellationToken token = default);
Task<int> AddFile(int idWell, int idFileCategory, int idUser, string fileFullName, System.IO.Stream fileStream, CancellationToken token = default);
Task<int> AddPartsAsync(int idWell, IEnumerable<int> idFileCategories, CancellationToken token = default);
Task<int> RemovePartsAsync(int idWell, IEnumerable<int> idFileCategories, CancellationToken token = default);
Task<int> AddUserAsync(int idWell, int idFileCategory, int idUser, int idUserRole, CancellationToken token = default);
Task<int> RemoveUserAsync(int idWell, int idFileCategory, int idUser, int idUserRole, CancellationToken token = default);
Task<int> AddOrReplaceFileMarkAsync(FileMarkDto fileMarkDto, int idUser, CancellationToken token);
Task<int> MarkAsDeletedFileMarkAsync(int idFileMark, CancellationToken token);
2022-02-28 14:44:15 +05:00
void ClearError(int idWell);
2021-08-29 17:25:16 +05:00
}
}