mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 04:04:19 -04:00
20 lines
625 B
C#
20 lines
625 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<bool> SaveAllAsync();
|
|
Task<IEnumerable<LibraryDto>> GetLibrariesAsync();
|
|
/// <summary>
|
|
/// Checks to see if a library of the same name exists. We only allow unique library names, no duplicates per LibraryType.
|
|
/// </summary>
|
|
/// <param name="libraryName"></param>
|
|
/// <returns></returns>
|
|
Task<bool> LibraryExists(string libraryName);
|
|
}
|
|
} |