piwigodotnet/PiwigoDotnet/Piwigo.Client/IPiwigoContext.cs

13 lines
408 B
C#

using Microsoft.Extensions.Logging;
using Piwigo.Client.Contract;
namespace Piwigo.Client;
public interface IPiwigoContext
{
bool IsLoggedIn { get; }
Task LoginAsync();
Task LogoutAsync();
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;
}