C# Class WebNovelConverter.Sources.WebNovelSource

显示文件 Open project: Mitch528/WebNovelConverter

Protected Properties

Property Type Description
EmptyLinks WebNovelConverter.Sources.Models.ChapterLink[]
Parser AngleSharp.Parser.Html.HtmlParser

Public Methods

Method Description
GetChapterAsync ( ChapterLink link, ChapterRetrievalOptions options = default(ChapterRetrievalOptions), CancellationToken token = default(CancellationToken) ) : Task
GetChapterLinksAsync ( string baseUrl, CancellationToken token = default(CancellationToken) ) : Task>
GetNovelInfoAsync ( string baseUrl, CancellationToken token = default(CancellationToken) ) : Task
GetNovelTitleAsync ( string baseUrl, CancellationToken token = default(CancellationToken) ) : Task

Protected Methods

Method Description
CollectChapterLinks ( string baseUrl, IEnumerable linkElements, bool>.Func linkFilter = null ) : IEnumerable
GetWebPageAsync ( string url, CancellationToken token = default(CancellationToken) ) : Task
WebNovelSource ( string sourceName ) : System

Method Details

CollectChapterLinks() protected method

protected CollectChapterLinks ( string baseUrl, IEnumerable linkElements, bool>.Func linkFilter = null ) : IEnumerable
baseUrl string
linkElements IEnumerable
linkFilter bool>.Func
return IEnumerable

GetChapterAsync() public method

public GetChapterAsync ( ChapterLink link, ChapterRetrievalOptions options = default(ChapterRetrievalOptions), CancellationToken token = default(CancellationToken) ) : Task
link WebNovelConverter.Sources.Models.ChapterLink
options ChapterRetrievalOptions
token System.Threading.CancellationToken
return Task

GetChapterLinksAsync() public method

public GetChapterLinksAsync ( string baseUrl, CancellationToken token = default(CancellationToken) ) : Task>
baseUrl string
token System.Threading.CancellationToken
return Task>

GetNovelInfoAsync() public method

public GetNovelInfoAsync ( string baseUrl, CancellationToken token = default(CancellationToken) ) : Task
baseUrl string
token System.Threading.CancellationToken
return Task

GetNovelTitleAsync() public method

public GetNovelTitleAsync ( string baseUrl, CancellationToken token = default(CancellationToken) ) : Task
baseUrl string
token System.Threading.CancellationToken
return Task

GetWebPageAsync() protected method

protected GetWebPageAsync ( string url, CancellationToken token = default(CancellationToken) ) : Task
url string
token System.Threading.CancellationToken
return Task

WebNovelSource() protected method

protected WebNovelSource ( string sourceName ) : System
sourceName string
return System

Property Details

EmptyLinks protected_oe static_oe property

protected static ChapterLink[],WebNovelConverter.Sources.Models EmptyLinks
return WebNovelConverter.Sources.Models.ChapterLink[]

Parser protected_oe property

protected HtmlParser,AngleSharp.Parser.Html Parser
return AngleSharp.Parser.Html.HtmlParser