mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
18 lines
598 B
C#
18 lines
598 B
C#
using System.Collections.Generic;
|
|
using System.Threading.Tasks;
|
|
using API.DTOs;
|
|
using API.Entities;
|
|
|
|
namespace API.Interfaces
|
|
{
|
|
public interface ILibraryRepository
|
|
{
|
|
void Update(Library library);
|
|
Task<IEnumerable<LibraryDto>> GetLibraryDtosAsync();
|
|
Task<bool> LibraryExists(string libraryName);
|
|
Task<Library> GetLibraryForIdAsync(int libraryId);
|
|
Task<IEnumerable<LibraryDto>> GetLibraryDtosForUsernameAsync(string userName);
|
|
Task<Library> GetLibraryForNameAsync(string libraryName);
|
|
Task<bool> DeleteLibrary(int libraryId);
|
|
}
|
|
} |