12 lines
466 B
C#
12 lines
466 B
C#
using FictionArchive.Service.NovelService.Models.Novels;
|
|
using FictionArchive.Service.NovelService.Models.SourceAdapters;
|
|
|
|
namespace FictionArchive.Service.NovelService.Services.SourceAdapters;
|
|
|
|
public interface ISourceAdapter
|
|
{
|
|
public SourceDescriptor SourceDescriptor { get; }
|
|
public Task<bool> CanProcessNovel(string url);
|
|
public Task<NovelMetadata> GetMetadata(string novelUrl);
|
|
public Task<ChapterFetchResult> GetRawChapter(string chapterUrl);
|
|
} |