2022-10-15 00:07:59 +02:00
|
|
|
using Piwigo.Client.Contract;
|
|
|
|
|
|
|
|
namespace Piwigo.Client;
|
|
|
|
|
2022-10-16 23:00:03 +02:00
|
|
|
public interface IAlbumApi
|
2022-10-15 00:07:59 +02:00
|
|
|
{
|
2022-10-17 23:22:48 +02:00
|
|
|
Task<AlbumOrphans> CalculateOrphansAsync(int albumId, CancellationToken cancellationToken = default);
|
|
|
|
Task DeleteAsync(int albumId, string apiToken, CancellationToken cancellationToken = default);
|
2022-10-21 21:22:53 +02:00
|
|
|
Task MoveAsync(int albumId, int parentAlbumId, string apiToken, CancellationToken cancellationToken = default);
|
2022-10-17 23:22:48 +02:00
|
|
|
Task DeleteRepresentativeAsync(int albumId, CancellationToken cancellationToken = default);
|
2022-10-17 23:54:38 +02:00
|
|
|
Task RefreshRepresentativeAsync(int albumId, CancellationToken cancellationToken = default);
|
|
|
|
Task SetRepresentativeAsync(int albumId, int imageId, CancellationToken cancellationToken = default);
|
2022-10-17 23:56:45 +02:00
|
|
|
Task SetRankAsync(int albumId, int rank, CancellationToken cancellationToken = default);
|
2022-10-21 21:29:08 +02:00
|
|
|
Task SetInfoAsync(int albumId, string name, string? comment, AlbumStatus? status, CancellationToken cancellationToken = default);
|
|
|
|
Task<int> AddAsync(string name, int? parentId = null, string? comment = null, bool? visible = null, AlbumStatus? status = null, bool? commentable = null,
|
|
|
|
AlbumPosition? position = null, CancellationToken cancellationToken = default);
|
2022-10-16 22:58:38 +02:00
|
|
|
|
2022-10-17 23:22:48 +02:00
|
|
|
Task<IReadOnlyCollection<Album>> GetAllAsync(CancellationToken cancellationToken = default);
|
2022-10-15 00:07:59 +02:00
|
|
|
}
|