This repository has been archived on 2025-05-14. You can view files and clone it, but cannot push or open issues or pull requests.
Pavel Vesely cf6643aef3 Client fixes
Client is partially done.
227 warnings left out of 1500
I like Rider
2020-03-15 15:19:35 +01:00

23 lines
823 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);
Task<List<File>> GetFilesAsync(int siteId, string folderPath);
}
}