mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-05-31 12:14:44 -04:00
25 lines
827 B
C#
25 lines
827 B
C#
using System.Threading.Tasks;
|
|
using API.DTOs;
|
|
|
|
namespace API.Interfaces
|
|
{
|
|
public interface IScannerService
|
|
{
|
|
/// <summary>
|
|
/// Given a library id, scans folders for said library. Parses files and generates DB updates. Will overwrite
|
|
/// cover images if forceUpdate is true.
|
|
/// </summary>
|
|
/// <param name="libraryId">Library to scan against</param>
|
|
/// <param name="forceUpdate">Force overwriting for cover images</param>
|
|
void ScanLibrary(int libraryId, bool forceUpdate);
|
|
|
|
void ScanLibraries();
|
|
|
|
/// <summary>
|
|
/// Performs a forced scan of just a series folder.
|
|
/// </summary>
|
|
/// <param name="libraryId"></param>
|
|
/// <param name="seriesId"></param>
|
|
void ScanSeries(int libraryId, int seriesId);
|
|
}
|
|
} |