C# Class RadioDld.CachedWebClient

Mostrar archivo Open project: ribbons/RadioDownloader Class Usage Examples

Public Methods

Method Description
DownloadData ( Uri uri, int fetchIntervalHrs, string userAgent ) : byte[]
DownloadString ( Uri uri, int fetchIntervalHrs, string userAgent ) : string
GetInstance ( ) : CachedWebClient

Private Methods

Method Description
AddToHTTPCache ( Uri uri, bool requestSuccess, byte data ) : void
CachedWebClient ( ) : System
DatabasePath ( ) : string
DownloadData ( Uri uri, int fetchIntervalHrs ) : byte[]
DownloadString ( Uri uri, int fetchIntervalHrs ) : string
FetchDbConn ( ) : SQLiteConnection
GetHTTPCacheContent ( Uri uri, bool &requestSuccess ) : byte[]
GetHTTPCacheLastUpdate ( Uri uri ) : DateTime?

Method Details

DownloadData() public method

public DownloadData ( Uri uri, int fetchIntervalHrs, string userAgent ) : byte[]
uri System.Uri
fetchIntervalHrs int
userAgent string
return byte[]

DownloadString() public method

public DownloadString ( Uri uri, int fetchIntervalHrs, string userAgent ) : string
uri System.Uri
fetchIntervalHrs int
userAgent string
return string

GetInstance() public static method

public static GetInstance ( ) : CachedWebClient
return CachedWebClient