oqtane.framework/Oqtane.Client/Services/Interfaces/IFileService.cs
2020-02-11 14:25:38 -05:00

22 lines
752 B
C#

using Oqtane.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Oqtane.Services
{
public interface IFileService
{
Task<List<File>> GetFilesAsync(int FolderId);
Task<List<File>> GetFilesAsync(string Folder);
Task<File> GetFileAsync(int FileId);
Task<File> AddFileAsync(File File);
Task<File> UpdateFileAsync(File File);
Task DeleteFileAsync(int FileId);
Task<File> UploadFileAsync(string Url, int FolderId);
Task<string> UploadFilesAsync(int FolderId, string[] Files, string FileUploadName);
Task<string> UploadFilesAsync(string Folder, string[] Files, string FileUploadName);
Task<byte[]> DownloadFileAsync(int FileId);
}
}