12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- 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<FilesVM> GetFoldersAndFilesAsync(string folderId, SearchOptions options = null);
- #endif
- FileVM Create(string folderId, FileCreateVM fileCreate);
- #if ASYNC
- Task<FileVM> CreateAsync(string folderId, FileCreateVM fileCreate);
- #endif
- FileVM CreateFolder(string folderId, FolderCreateVM folderCreate);
- #if ASYNC
- Task<FileVM> CreateFolderAsync(string folderId, FolderCreateVM folderCreate);
- #endif
- FileVM Rename(FileVM folderOrFile, RenameVM newName);
- #if ASYNC
- Task<FileVM> 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<FileResponse> DownloadAsync(string id);
- #endif
- void Delete(FileVM folderOrFile);
- #if ASYNC
- Task DeleteAsync(FileVM folderOrFile);
- #endif
- FileVM GetFile(string id);
- #if ASYNC
- Task<FileVM > GetFileAsync(string id);
- #endif
- }
- }
|