C# Класс SDownload.Framework.Streams.SCTrackStream

Represents a Song file downloaded from SoundCloud
Наследование: BaseStream
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Genre String

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Download() публичный Метод

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
Результат Task

Finish() публичный Метод

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
Результат bool

SCTrackStream() публичный Метод

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
Результат System

SCTrackStream() публичный Метод

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
Результат System

Validate() публичный Метод

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
Результат Task

Описание свойств

Genre публичное свойство

The genre of the song
public String Genre
Результат String