piwigodotnet/PiwigoDotnet/Piwigo.Client/IAlbumApi.cs

19 lines
1.2 KiB
C#
Raw Normal View History

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);
2022-10-21 21:22:53 +02:00
Task MoveAsync(int albumId, int parentAlbumId, string apiToken, CancellationToken cancellationToken = default);
Task DeleteRepresentativeAsync(int albumId, CancellationToken cancellationToken = default);
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);
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);
Task<IReadOnlyCollection<Album>> GetAllAsync(CancellationToken cancellationToken = default);
}