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);
|
2022-10-16 23:53:17 +02:00
|
|
|
|
2022-10-17 23:22:48 +02:00
|
|
|
Task DeleteAsync(int albumId, string apiToken, CancellationToken cancellationToken = default);
|
|
|
|
|
|
|
|
Task DeleteRepresentativeAsync(int albumId, CancellationToken cancellationToken = default);
|
2022-10-17 00:16:30 +02:00
|
|
|
|
2022-10-16 22:58:38 +02:00
|
|
|
Task<int> AddAsync(string name, int? parentId = null, string? comment = null, bool? visible = null, CategoryStatus? status = null, bool? commentable = null,
|
2022-10-17 23:22:48 +02:00
|
|
|
CategoryPosition? 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
|
|
|
}
|