mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-30 18:22:29 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			25 lines
		
	
	
		
			915 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			915 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System.Collections.Generic;
 | |
| using System.Threading.Tasks;
 | |
| using API.DTOs;
 | |
| using API.Entities;
 | |
| 
 | |
| namespace API.Interfaces
 | |
| {
 | |
|     public interface ISeriesRepository
 | |
|     {
 | |
|         void Update(Series series);
 | |
|         Task<Series> GetSeriesByNameAsync(string name);
 | |
|         Series GetSeriesByName(string name);
 | |
|         Task<IEnumerable<SeriesDto>> GetSeriesDtoForLibraryIdAsync(int libraryId, int userId = 0);
 | |
|         Task<IEnumerable<VolumeDto>> GetVolumesDtoAsync(int seriesId, int userId = 0);
 | |
|         IEnumerable<Volume> GetVolumes(int seriesId);
 | |
|         Task<SeriesDto> GetSeriesDtoByIdAsync(int seriesId);
 | |
| 
 | |
|         Task<Volume> GetVolumeAsync(int volumeId);
 | |
|         Task<VolumeDto> GetVolumeDtoAsync(int volumeId);
 | |
| 
 | |
|         Task<IEnumerable<Volume>> GetVolumesForSeriesAsync(int[] seriesIds);
 | |
|         Task<bool> DeleteSeriesAsync(int seriesId);
 | |
|         Task<Volume> GetVolumeByIdAsync(int volumeId);
 | |
|     }
 | |
| } |