13 lines
592 B
C#
13 lines
592 B
C#
using Microsoft.Extensions.Logging;
|
|
using Piwigo.Client.Contract;
|
|
|
|
namespace Piwigo.Client;
|
|
|
|
public interface IPiwigoContext
|
|
{
|
|
bool IsLoggedIn { get; }
|
|
Task LoginAsync(CancellationToken cancellationToken = default);
|
|
Task LogoutAsync(CancellationToken cancellationToken = default);
|
|
Task<T> PostAsync<T>(ILogger logger, string method, IDictionary<string, string> formParams, CancellationToken cancellationToken = default) where T : PiwigoResponse;
|
|
Task<T> PostAsync<T>(ILogger logger, string method, CancellationToken cancellationToken = default) where T : PiwigoResponse;
|
|
} |