mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-31 10:37:04 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			761 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			761 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<Library> GetFullLibraryForIdAsync(int libraryId);
 | |
|         Task<IEnumerable<LibraryDto>> GetLibraryDtosForUsernameAsync(string userName);
 | |
|         Task<IEnumerable<Library>> GetLibrariesAsync();
 | |
|         Task<bool> DeleteLibrary(int libraryId);
 | |
|         Task<IEnumerable<Library>> GetLibrariesForUserIdAsync(int userId);
 | |
|     }
 | |
| } |