2019-07-19 15:01:34 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace LeanCloud.Storage.Internal
|
|
|
|
|
{
|
|
|
|
|
public interface IAVFileController
|
|
|
|
|
{
|
|
|
|
|
Task<FileState> SaveAsync(FileState state,
|
|
|
|
|
Stream dataStream,
|
2019-08-28 17:00:03 +08:00
|
|
|
|
string sessionToken,
|
2019-07-19 15:01:34 +08:00
|
|
|
|
IProgress<AVUploadProgressEventArgs> progress,
|
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
Task DeleteAsync(FileState state,
|
|
|
|
|
string sessionToken,
|
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
|
|
|
|
|
|
Task<FileState> GetAsync(string objectId,
|
|
|
|
|
string sessionToken,
|
|
|
|
|
CancellationToken cancellationToken);
|
|
|
|
|
}
|
|
|
|
|
}
|