20 lines
872 B
C#
20 lines
872 B
C#
using SteUp.Shared.Core.Dto;
|
|
using SteUp.Shared.Core.Entities;
|
|
|
|
namespace SteUp.Shared.Core.Interface.System;
|
|
|
|
public interface IAttachedService
|
|
{
|
|
Task<AttachedDto?> SelectImageFromCamera();
|
|
Task<List<AttachedDto>?> SelectImageFromGallery();
|
|
|
|
Task<List<AttachedDto>?> GetInspectionFiles(Ispezione ispezione);
|
|
Task<string?> SaveInspectionFile(Ispezione ispezione, byte[] file, string fileName, CancellationToken ct = default);
|
|
bool RemoveInspectionFile(Ispezione ispezione, string fileName);
|
|
|
|
Task<string> SaveToTempStorage(Stream file, string fileName, CancellationToken ct = default);
|
|
Task CleanTempStorageAsync(CancellationToken ct = default);
|
|
Task OpenFile(string fileName, string filePath);
|
|
|
|
Task<(string originalUrl, string thumbUrl)> SaveAndCreateThumbAsync(byte[] bytes, string fileName, CancellationToken ct = default);
|
|
} |