piwigodotnet/PiwigoDotnet/Piwigo.Client/IPiwigoContext.cs

13 lines
592 B
C#
Raw Normal View History

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;
}