using System.Threading.Tasks; using FastReport.Cloud.FastReport.Models; namespace FastReport.Cloud.FastReport { internal interface IFRCloudFilesProvider { FilesVM GetFoldersAndFiles(string folderId, SearchOptions options = null); #if ASYNC Task GetFoldersAndFilesAsync(string folderId, SearchOptions options = null); #endif FileVM Create(string folderId, FileCreateVM fileCreate); #if ASYNC Task CreateAsync(string folderId, FileCreateVM fileCreate); #endif FileVM CreateFolder(string folderId, FolderCreateVM folderCreate); #if ASYNC Task CreateFolderAsync(string folderId, FolderCreateVM folderCreate); #endif FileVM Rename(FileVM folderOrFile, RenameVM newName); #if ASYNC Task RenameAsync(FileVM folderOrFile, RenameVM newName); #endif void Resave(string id, FileCreateVM updatedFile); #if ASYNC Task ResaveAsync(string id, FileCreateVM updatedFile); #endif FileResponse Download(string id); #if ASYNC Task DownloadAsync(string id); #endif void Delete(FileVM folderOrFile); #if ASYNC Task DeleteAsync(FileVM folderOrFile); #endif FileVM GetFile(string id); #if ASYNC Task GetFileAsync(string id); #endif } }