2022-07-08 17:31:58 +02:00
|
|
|
|
using RMWPFUserInterface.Models;
|
2022-07-23 17:09:13 +02:00
|
|
|
|
using System.Net.Http;
|
2022-07-08 17:31:58 +02:00
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
2022-07-22 16:45:33 +02:00
|
|
|
|
namespace RMWPFInterfaceLibrary.Api
|
2022-07-08 17:31:58 +02:00
|
|
|
|
{
|
|
|
|
|
public interface IAPIHelper
|
|
|
|
|
{
|
2022-07-23 17:09:13 +02:00
|
|
|
|
HttpClient ApiClient { get; }
|
2022-07-30 14:21:25 +02:00
|
|
|
|
void LogOffUser();
|
2022-07-08 17:31:58 +02:00
|
|
|
|
Task<AuthenticatedUser> Authenticate(string username, string password);
|
2022-07-22 16:45:33 +02:00
|
|
|
|
Task GetLogedInUserInfo(string token);
|
2022-07-08 17:31:58 +02:00
|
|
|
|
}
|
|
|
|
|
}
|