29 lines
900 B
C#
29 lines
900 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using TIAMWebApp.Shared.Application.Models;
|
|
using TIAMWebApp.Shared.Application.Models.PageModels;
|
|
|
|
namespace TIAMWebApp.Shared.Application.Interfaces
|
|
{
|
|
public interface IUserDataService
|
|
{
|
|
public User? User { get; set; }
|
|
public Dictionary<int, string> userRoleTypes { get; set; }
|
|
|
|
public Task<User> IsLoggedInAsync();
|
|
|
|
//mock method for now
|
|
public Task<User> AuthorizeUserAsync(int userType);
|
|
|
|
public Task<string> AuthenticateUser(LoginModel loginModel);
|
|
public Task<(bool isSuccess, string ErrorMessage)> CreateUser(RegistrationModel regModel);
|
|
public Task<string> TestUserApi(int Param);
|
|
|
|
public Task<Dictionary<int, string>> GetUserRolesAsync(User user);
|
|
|
|
Task<bool> RefreshToken();
|
|
}
|
|
} |