mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-03 19:17:05 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			623 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			623 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using System.Collections.Generic;
 | 
						|
using System.Threading.Tasks;
 | 
						|
using API.DTOs;
 | 
						|
using API.Entities;
 | 
						|
 | 
						|
namespace API.Interfaces
 | 
						|
{
 | 
						|
    public interface ILibraryRepository
 | 
						|
    {
 | 
						|
        void Add(Library library);
 | 
						|
        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<IEnumerable<Library>> GetLibrariesAsync();
 | 
						|
        Task<bool> DeleteLibrary(int libraryId);
 | 
						|
    }
 | 
						|
} |