C# Class WebHelpers.WebHelper

Afficher le fichier Open project: gzb1985/doumi

Méthodes publiques

Méthode Description
BookParse ( string xmlFile ) : List
ConvertExtendedAscii ( string rawHtml ) : string
DownloadBookInfo ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
DownloadBookReviewDetail ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
DownloadBookReviews ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
DownloadString ( string url, Action onDownloadCompleted, System.Action onConnectionFailed, Action onProgressChanged ) : void
GetBookBuyInfo ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
InternetIsAvailable ( ) : bool
InternetIsAvailableNotify ( ) : bool
ReviewsParse ( string xmlFile ) : List
SearchBook ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
WebHelper ( ) : System

Private Methods

Méthode Description
IsThemeDark ( ) : bool
ParseBookReviewDetail ( string rawHtml ) : string
ParseBuyLinks ( string rawHtmlInfo ) : List
ShowUnexpectedError ( ) : void

Method Details

BookParse() public méthode

public BookParse ( string xmlFile ) : List
xmlFile string
Résultat List

ConvertExtendedAscii() public static méthode

public static ConvertExtendedAscii ( string rawHtml ) : string
rawHtml string
Résultat string

DownloadBookInfo() public méthode

public DownloadBookInfo ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
Résultat void

DownloadBookReviewDetail() public méthode

public DownloadBookReviewDetail ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
Résultat void

DownloadBookReviews() public méthode

public DownloadBookReviews ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
Résultat void

DownloadString() public méthode

public DownloadString ( string url, Action onDownloadCompleted, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onDownloadCompleted Action
onConnectionFailed System.Action
onProgressChanged Action
Résultat void

GetBookBuyInfo() public méthode

public GetBookBuyInfo ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
Résultat void

InternetIsAvailable() public static méthode

public static InternetIsAvailable ( ) : bool
Résultat bool

InternetIsAvailableNotify() public méthode

public InternetIsAvailableNotify ( ) : bool
Résultat bool

ReviewsParse() public méthode

public ReviewsParse ( string xmlFile ) : List
xmlFile string
Résultat List

SearchBook() public méthode

public SearchBook ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
Résultat void

WebHelper() public méthode

public WebHelper ( ) : System
Résultat System