feat: 初始功能
This commit is contained in:
16
Services/Abstractions/IFileService.cs
Normal file
16
Services/Abstractions/IFileService.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using CloudPrint.Client.Models;
|
||||
|
||||
namespace CloudPrint.Client.Services.Abstractions;
|
||||
|
||||
public interface IFileService
|
||||
{
|
||||
long MaxFileSizeBytes { get; }
|
||||
IReadOnlyCollection<string> SupportedExtensions { get; }
|
||||
|
||||
bool IsSupported(string path);
|
||||
FileValidationResult ValidateFile(string path, long? maxFileSizeBytes = null);
|
||||
CloudPrintDocument CreateLocalDocument(string path);
|
||||
CloudPrintDocument CopyToLibrary(string sourcePath, string libraryRoot, string categoryName, int categoryId = 0);
|
||||
string PrepareForPrint(PrintJob job);
|
||||
Task<FilePreparationResult> PrepareForPrintAsync(PrintJob job, string cacheRoot, CancellationToken cancellationToken = default);
|
||||
}
|
||||
Reference in New Issue
Block a user