2021-10-28 15:08:06 +05:00
|
|
|
using System.Threading;
|
|
|
|
using System.Threading.Tasks;
|
2021-10-27 17:00:27 +05:00
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
namespace AsbCloudApp.Services
|
|
|
|
{
|
|
|
|
public interface IGoogleDriveService
|
|
|
|
{
|
2021-10-28 15:08:06 +05:00
|
|
|
Task<string> GetFileWebLinkAsync(string idFile,
|
|
|
|
CancellationToken token = default);
|
|
|
|
Task<string> CreateFolderAsync(string folderName,
|
|
|
|
CancellationToken token = default) ;
|
|
|
|
|
|
|
|
Task CreatePublicPermissionForFileAsync(string idFile,
|
|
|
|
CancellationToken token = default);
|
|
|
|
Task<string> UploadFileAsync(Stream file, string fileName, string fileMime,
|
|
|
|
string fileDescription, CancellationToken token = default);
|
|
|
|
Task DeleteFileAsync(string fileId,
|
|
|
|
CancellationToken token = default);
|
2021-10-27 17:00:27 +05:00
|
|
|
}
|
|
|
|
}
|