mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-24 00:52:23 -04:00
22 lines
700 B
C#
22 lines
700 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<bool> SaveAllAsync();
|
|
Task<Series> GetSeriesByNameAsync(string name);
|
|
Series GetSeriesByName(string name);
|
|
bool SaveAll();
|
|
Task<IEnumerable<SeriesDto>> GetSeriesDtoForLibraryIdAsync(int libraryId);
|
|
Task<IEnumerable<VolumeDto>> GetVolumesDtoAsync(int seriesId);
|
|
IEnumerable<Volume> GetVolumes(int seriesId);
|
|
Task<SeriesDto> GetSeriesDtoByIdAsync(int seriesId);
|
|
|
|
Task<Volume> GetVolumeAsync(int volumeId);
|
|
}
|
|
} |