C# Class WebNovelConverter.Sources.RoyalRoadLSource

Inheritance: WebNovelSource
Datei anzeigen Open project: Mitch528/WebNovelConverter

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
RoyalRoadLSource ( ) : System

Protected Methods

Method Description
CollectChapterLinks ( string baseUrl, IEnumerable linkElements, bool>.Func linkFilter = null ) : IEnumerable
ExpandSpoilers ( IElement rootElement ) : void

Expands spoilers in HTML for easy reading. Expects:

Spoilerxxx

RemoveDonation ( IElement rootElement ) : void
RemoveNavigation ( IElement rootElement ) : void

Private Methods

Method Description
CleanupHTML ( string html ) : string
RemoveEmptyTags ( IElement rootElement ) : void

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

ExpandSpoilers() protected method

Expands spoilers in HTML for easy reading. Expects:
Spoilerxxx
protected ExpandSpoilers ( IElement rootElement ) : void
rootElement IElement
return void

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

RemoveDonation() protected method

protected RemoveDonation ( IElement rootElement ) : void
rootElement IElement
return void

RemoveNavigation() protected method

protected RemoveNavigation ( IElement rootElement ) : void
rootElement IElement
return void

RoyalRoadLSource() public method

public RoyalRoadLSource ( ) : System
return System