C# Class RadioDld.Model.Download

Inheritance: Episode
Datei anzeigen Open project: ribbons/RadioDownloader Class Usage Examples

Public Methods

Method Description
Add ( int epids ) : bool
BumpPlayCount ( int epid ) : void
Cleanup ( Status status, System.DateTime olderThan, int progid, bool orphans, bool played, bool noDeleteAudio ) : void
Compare ( int epid1, int epid2 ) : int
Count ( ) : long
CountErrored ( ) : long
CountNew ( ) : long
CreateSaveFileName ( string formatString, Programme progInfo, Episode epInfo ) : string
Download ( SQLiteMonDataReader reader ) : System
Download ( int epid ) : System
FetchAll ( ) : List
FetchLatest ( int count ) : List
FetchVisible ( DataSearch dataSearch ) : List
FindFreeSaveFileName ( string formatString, Programme progInfo, Episode epInfo, string baseSavePath ) : string
IsDownload ( int epid ) : bool
Remove ( int epid ) : void
ReportError ( int epid ) : void
Reset ( int epid ) : void
ResetAsync ( int epid, bool auto ) : void
SetComplete ( int epid, string fileName ) : void
SetErrorred ( int epid, ErrorType errorType, object details ) : void
UpdatePaths ( Status status, string newPath, string newFormat ) : void

Protected Methods

Method Description
FetchData ( SQLiteMonDataReader reader ) : void

Private Methods

Method Description
AddAsync ( int epids ) : void
BumpPlayCountAsync ( int epid ) : void
Download ( ) : System
Episode_Updated ( int epid ) : void
RemoveAsync ( int epid, bool auto ) : void

Method Details

Add() public static method

public static Add ( int epids ) : bool
epids int
return bool

BumpPlayCount() public static method

public static BumpPlayCount ( int epid ) : void
epid int
return void

Cleanup() public static method

public static Cleanup ( Status status, System.DateTime olderThan, int progid, bool orphans, bool played, bool noDeleteAudio ) : void
status Status
olderThan System.DateTime
progid int
orphans bool
played bool
noDeleteAudio bool
return void

Compare() public static method

public static Compare ( int epid1, int epid2 ) : int
epid1 int
epid2 int
return int

Count() public static method

public static Count ( ) : long
return long

CountErrored() public static method

public static CountErrored ( ) : long
return long

CountNew() public static method

public static CountNew ( ) : long
return long

CreateSaveFileName() public static method

public static CreateSaveFileName ( string formatString, Programme progInfo, Episode epInfo ) : string
formatString string
progInfo Programme
epInfo Episode
return string

Download() public method

public Download ( SQLiteMonDataReader reader ) : System
reader SQLiteMonDataReader
return System

Download() public method

public Download ( int epid ) : System
epid int
return System

FetchAll() public static method

public static FetchAll ( ) : List
return List

FetchData() protected method

protected FetchData ( SQLiteMonDataReader reader ) : void
reader SQLiteMonDataReader
return void

FetchLatest() public static method

public static FetchLatest ( int count ) : List
count int
return List

FetchVisible() public static method

public static FetchVisible ( DataSearch dataSearch ) : List
dataSearch DataSearch
return List

FindFreeSaveFileName() public static method

public static FindFreeSaveFileName ( string formatString, Programme progInfo, Episode epInfo, string baseSavePath ) : string
formatString string
progInfo Programme
epInfo Episode
baseSavePath string
return string

IsDownload() public static method

public static IsDownload ( int epid ) : bool
epid int
return bool

Remove() public static method

public static Remove ( int epid ) : void
epid int
return void

ReportError() public static method

public static ReportError ( int epid ) : void
epid int
return void

Reset() public static method

public static Reset ( int epid ) : void
epid int
return void

ResetAsync() public static method

public static ResetAsync ( int epid, bool auto ) : void
epid int
auto bool
return void

SetComplete() public static method

public static SetComplete ( int epid, string fileName ) : void
epid int
fileName string
return void

SetErrorred() public static method

public static SetErrorred ( int epid, ErrorType errorType, object details ) : void
epid int
errorType ErrorType
details object
return void

UpdatePaths() public static method

public static UpdatePaths ( Status status, string newPath, string newFormat ) : void
status Status
newPath string
newFormat string
return void