TrackService
FinalYes
Table of Contents
Methods
- doNeedDownloadTrack() : bool
- doNeedNeedAiProcessing() : bool
- doNeedNeedAttachToDisk() : bool
- downloadAgent() : string
- downloadTrackFile() : Result
- getInstance() : self
- processTrack() : Result
Methods
doNeedDownloadTrack()
public
doNeedDownloadTrack(Track $track) : bool
Parameters
- $track : Track
Return values
booldoNeedNeedAiProcessing()
public
doNeedNeedAiProcessing(Track $track) : bool
Parameters
- $track : Track
Return values
booldoNeedNeedAttachToDisk()
public
doNeedNeedAttachToDisk(Track $track) : bool
Parameters
- $track : Track
Return values
booldownloadAgent()
public
static downloadAgent(int $trackId[, int $retryCount = 1 ]) : string
Parameters
- $trackId : int
- $retryCount : int = 1
Return values
stringdownloadTrackFile()
public
downloadTrackFile(Track $track[, bool $retryOnFailure = true ]) : Result
Parameters
- $track : Track
- $retryOnFailure : bool = true
Return values
ResultgetInstance()
public
static getInstance() : self
Return values
selfprocessTrack()
public
processTrack(Track $track) : Result
Parameters
- $track : Track