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-16 22:58:38 +02:00
|
|
|
Task LoginAsync();
|
|
|
|
Task LogoutAsync();
|
2022-10-17 00:16:30 +02:00
|
|
|
Task<T> PostAsync<T>(ILogger logger, string method, IDictionary<string, string> formParams) where T : PiwigoResponse;
|
|
|
|
Task<T> PostAsync<T>(ILogger logger, string method) where T : PiwigoResponse;
|
2022-10-15 00:07:59 +02:00
|
|
|
}
|