2022-10-21 00:23:54 +02:00
|
|
|
using Piwigo.Client.Contract;
|
|
|
|
|
2022-10-15 00:23:49 +02:00
|
|
|
namespace Piwigo.Client;
|
|
|
|
|
2022-10-21 00:23:54 +02:00
|
|
|
public interface IImageApi
|
|
|
|
{
|
2022-10-22 22:38:25 +02:00
|
|
|
Task<ImageUploaded> Add(ImageUpload imageUpload, CancellationToken cancellationToken = default);
|
2022-10-22 20:24:12 +02:00
|
|
|
Task AddChunkAsync(byte[] data, string originalSum, int position, CancellationToken cancellationToken = default);
|
|
|
|
|
2022-10-22 20:36:20 +02:00
|
|
|
Task<bool> ReadyForUploadAsync(CancellationToken cancellationToken = default);
|
2022-10-22 22:38:25 +02:00
|
|
|
|
2022-10-21 00:23:54 +02:00
|
|
|
Task<PagedImages> GetImages(int albumId, bool recursive, PagingInfo page, ImageFilter filter, ImageOrder order = ImageOrder.Name,
|
|
|
|
CancellationToken cancellationToken = default);
|
2022-10-22 22:38:25 +02:00
|
|
|
|
2022-10-22 20:36:20 +02:00
|
|
|
/*
|
|
|
|
addComment
|
|
|
|
addFile
|
|
|
|
checkFiles
|
|
|
|
delete
|
|
|
|
deleteOrphans
|
|
|
|
emptyLounge
|
|
|
|
exist
|
|
|
|
-> formats
|
|
|
|
delete
|
|
|
|
searchImage
|
|
|
|
getInfo
|
|
|
|
rate
|
|
|
|
search
|
|
|
|
setInfo
|
|
|
|
setMd5sum
|
|
|
|
setPrivacyLevel
|
|
|
|
setRank
|
|
|
|
syncMetadata
|
|
|
|
upload
|
|
|
|
uploadAsync
|
|
|
|
uploadCompleted
|
|
|
|
*/
|
2022-10-21 00:23:54 +02:00
|
|
|
}
|