37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using Piwigo.Client.Contract;
|
|
|
|
namespace Piwigo.Client;
|
|
|
|
public interface IImageApi
|
|
{
|
|
Task<ImageUploaded> AddAsync(ImageUpload imageUpload, CancellationToken cancellationToken = default);
|
|
Task<ImageUploaded> UpdateAsync(int imageId, ImageUpload imageUpload, CancellationToken cancellationToken = default);
|
|
Task<int> AddCommentAsync(int imageId, string? author, string content, string key, CancellationToken cancellationToken = default);
|
|
Task AddChunkAsync(byte[] data, string originalSum, int position, CancellationToken cancellationToken = default);
|
|
Task<bool> ReadyForUploadAsync(CancellationToken cancellationToken = default);
|
|
Task<Image> GetInfoAsync(int imageId, int? commentsPage, int? commentsPerPage, CancellationToken cancellationToken = default);
|
|
|
|
Task<PagedImages> GetImages(int albumId, bool recursive, PagingInfo page, ImageFilter filter, ImageOrder order = ImageOrder.Name,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
/*
|
|
checkFiles
|
|
delete
|
|
deleteOrphans
|
|
emptyLounge
|
|
exist
|
|
-> formats
|
|
delete
|
|
searchImage
|
|
rate
|
|
search
|
|
setInfo
|
|
setMd5sum
|
|
setPrivacyLevel
|
|
setRank
|
|
syncMetadata
|
|
upload
|
|
uploadAsync
|
|
uploadCompleted
|
|
*/
|
|
} |