mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-31 02:27:04 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			22 lines
		
	
	
		
			704 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			22 lines
		
	
	
		
			704 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);
 | |
| 
 | |
|         Task<IEnumerable<LibraryDto>> GetLibrariesForUserAsync(AppUser user);
 | |
|     }
 | |
| } |