forked from ddrilling/AsbCloudServer
32 lines
915 B
C#
32 lines
915 B
C#
using System.Threading;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AsbCloudApp.Services
|
|
{
|
|
//TODO: Óäàëèòü ýòîò ôóíêöèîíàë
|
|
|
|
/// <summary>
|
|
/// Ñåðâèñ âûêëàäûâàíèÿ ôàéëà íà Google disk
|
|
/// </summary>
|
|
public interface IFileShareService
|
|
{
|
|
/// <summary>
|
|
/// Îïóáëèêîâàòü
|
|
/// </summary>
|
|
/// <param name="filePath"></param>
|
|
/// <param name="originalName"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task<string> PublishFileToCloudAsync(string filePath, string originalName,
|
|
CancellationToken token);
|
|
|
|
/// <summary>
|
|
/// Óäàëèòü ïóáëèêàöèþ
|
|
/// </summary>
|
|
/// <param name="sharedFileId"></param>
|
|
/// <param name="token"></param>
|
|
/// <returns></returns>
|
|
Task DeleteFileAsync(string sharedFileId,
|
|
CancellationToken token = default);
|
|
}
|
|
} |