C# Class SDownload.Framework.Streams.SCTrackStream

Represents a Song file downloaded from SoundCloud
Inheritance: BaseStream
Afficher le fichier Open project: brkastner/SDownload Class Usage Examples

Méthodes publiques

Свойство Type Description
Genre String

Méthodes publiques

Méthode Description
Download ( bool ignoreExtras = false ) : Task

Downloads the necessary files and handles any exceptions

Finish ( bool close = true ) : bool

Updates the ID3 tags for the song file, then moves it into iTunes if the setting is enabled.

SCTrackStream ( String url, InfoReportProxy view ) : System

Gather and prepare all the necessary information for downloading the actual remote resource

SCTrackStream ( String url, InfoReportProxy view, SCTrackData trackData ) : System

Gather and prepare all the necessary information for downloading the actual remote resource

Validate ( ) : Task

Confirms the file tags can actually be read, proving the file is valid. TODO: Possibly find a better way to validate more file types quicker TODO: perhaps by reading the resolved url ending rather than assuming mp3 immediately

Private Methods

Méthode Description
AddToiTunes ( ) : void

Add the song to iTunes

GetDownloadUrl ( ) : String

Gets the download url for the main resource

RetryDownload ( ) : Task
UpdateId3Tags ( ) : void

Update the ID3 tags

Method Details

Download() public méthode

Downloads the necessary files and handles any exceptions
public Download ( bool ignoreExtras = false ) : Task
ignoreExtras bool If the extra files associated with the main resource should be skipped
Résultat Task

Finish() public méthode

Updates the ID3 tags for the song file, then moves it into iTunes if the setting is enabled.
public Finish ( bool close = true ) : bool
close bool
Résultat bool

SCTrackStream() public méthode

Gather and prepare all the necessary information for downloading the actual remote resource
public SCTrackStream ( String url, InfoReportProxy view ) : System
url String The URL to the individual song
view InfoReportProxy The proxy to report information back to
Résultat System

SCTrackStream() public méthode

Gather and prepare all the necessary information for downloading the actual remote resource
public SCTrackStream ( String url, InfoReportProxy view, SCTrackData trackData ) : System
url String The URL to the individual song
view InfoReportProxy The proxy to report information back to
trackData SDownload.Framework.Models.SCTrackData The track's metadata retrieved from SoundCloud
Résultat System

Validate() public méthode

Confirms the file tags can actually be read, proving the file is valid. TODO: Possibly find a better way to validate more file types quicker TODO: perhaps by reading the resolved url ending rather than assuming mp3 immediately
public Validate ( ) : Task
Résultat Task

Property Details

Genre public_oe property

The genre of the song
public String Genre
Résultat String