C# 클래스 SDownload.Framework.Streams.SCTrackStream

Represents a Song file downloaded from SoundCloud
상속: BaseStream
파일 보기 프로젝트 열기: brkastner/SDownload 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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