mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
20 lines
686 B
C#
20 lines
686 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using API.DTOs;
|
|
using API.Entities;
|
|
|
|
namespace API.Interfaces
|
|
{
|
|
public interface IUserRepository
|
|
{
|
|
void Update(AppUser user);
|
|
void Update(AppUserPreferences preferences);
|
|
public void Delete(AppUser user);
|
|
Task<AppUser> GetUserByUsernameAsync(string username);
|
|
Task<IEnumerable<MemberDto>> GetMembersAsync();
|
|
Task<IEnumerable<AppUser>> GetAdminUsersAsync();
|
|
Task<AppUserRating> GetUserRating(int seriesId, int userId);
|
|
void AddRatingTracking(AppUserRating userRating);
|
|
Task<AppUserPreferences> GetPreferencesAsync(string username);
|
|
}
|
|
} |