piwigodotnet/PiwigoDotnet/Piwigo.Client/IAlbumApi.cs
Philipp Häfelfinger f3ff670ef0 adds DeleteRepresentativeAsync to album api
passes cancellation token to all async requests
2022-10-17 23:23:25 +02:00

17 lines
741 B
C#

using Piwigo.Client.Contract;
namespace Piwigo.Client;
public interface IAlbumApi
{
Task<AlbumOrphans> CalculateOrphansAsync(int albumId, CancellationToken cancellationToken = default);
Task DeleteAsync(int albumId, string apiToken, CancellationToken cancellationToken = default);
Task DeleteRepresentativeAsync(int albumId, CancellationToken cancellationToken = default);
Task<int> AddAsync(string name, int? parentId = null, string? comment = null, bool? visible = null, CategoryStatus? status = null, bool? commentable = null,
CategoryPosition? position = null, CancellationToken cancellationToken = default);
Task<IReadOnlyCollection<Album>> GetAllAsync(CancellationToken cancellationToken = default);
}