forked from ddrilling/AsbCloudServer
21 lines
731 B
C#
21 lines
731 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
using System.IO;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
public interface IGoogleDriveService
|
|
{
|
|
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);
|
|
}
|
|
} |