2022-10-15 00:07:59 +02:00
|
|
|
using Microsoft.Extensions.Logging;
|
2022-10-17 00:16:30 +02:00
|
|
|
using Piwigo.Client.Contract;
|
2022-10-15 00:07:59 +02:00
|
|
|
|
|
|
|
namespace Piwigo.Client;
|
|
|
|
|
|
|
|
public interface IPiwigoContext
|
|
|
|
{
|
|
|
|
bool IsLoggedIn { get; }
|
2022-10-17 23:22:48 +02:00
|
|
|
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;
|
2022-10-15 00:07:59 +02:00
|
|
|
}
|