C# Class WebHelpers.WebHelper

Show file Open project: gzb1985/doumi

Public Methods

Method 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

Method Description
IsThemeDark ( ) : bool
ParseBookReviewDetail ( string rawHtml ) : string
ParseBuyLinks ( string rawHtmlInfo ) : List
ShowUnexpectedError ( ) : void

Method Details

BookParse() public method

public BookParse ( string xmlFile ) : List
xmlFile string
return List

ConvertExtendedAscii() public static method

public static ConvertExtendedAscii ( string rawHtml ) : string
rawHtml string
return string

DownloadBookInfo() public method

public DownloadBookInfo ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
return void

DownloadBookReviewDetail() public method

public DownloadBookReviewDetail ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
return void

DownloadBookReviews() public method

public DownloadBookReviews ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
return void

DownloadString() public method

public DownloadString ( string url, Action onDownloadCompleted, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onDownloadCompleted Action
onConnectionFailed System.Action
onProgressChanged Action
return void

GetBookBuyInfo() public method

public GetBookBuyInfo ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
return void

InternetIsAvailable() public static method

public static InternetIsAvailable ( ) : bool
return bool

InternetIsAvailableNotify() public method

public InternetIsAvailableNotify ( ) : bool
return bool

ReviewsParse() public method

public ReviewsParse ( string xmlFile ) : List
xmlFile string
return List

SearchBook() public method

public SearchBook ( string url, Action onContentReady, System.Action onConnectionFailed, Action onProgressChanged ) : void
url string
onContentReady Action
onConnectionFailed System.Action
onProgressChanged Action
return void

WebHelper() public method

public WebHelper ( ) : System
return System