C# Class Synology.AudioStationApi.RemoteFileMockAudioStationSession

Inheritance: IAudioStationSession
Mostrar archivo Open project: salfab/open-syno

Public Methods

Method Description
GetAlbumsForArtist ( SynoItem artist, Action callback, Action callbackError ) : void
GetAlbumsForArtistAsync ( SynoItem artist ) : Task>
GetFileStream ( SynoTrack synoTrack, SynoTrack>.Action callback ) : void

Gets the remote file network stream.

The caller is responsible for closing the stream after the call to DownloadFile returns

GetTracksForAlbum ( SynoItem album, Action callback, Action callbackError ) : void
GetTracksForAlbumAsync ( SynoItem album ) : Task>
LoginAsync ( string login, string password, Action callback, Action callbackError, bool useSsl ) : void
SearchAlbums ( string album ) : Task>
SearchAllMusic ( string pattern, Action callback, Action callbackError ) : void
SearchArtist ( string pattern, Action callback, Action callbackError ) : void
SearchArtistAsync ( string artistName ) : Task>

Private Methods

Method Description
OnFileDownloadResponseReceived ( IAsyncResult ar ) : void

Method Details

GetAlbumsForArtist() public method

public GetAlbumsForArtist ( SynoItem artist, Action callback, Action callbackError ) : void
artist SynoItem
callback Action
callbackError Action
return void

GetAlbumsForArtistAsync() public method

public GetAlbumsForArtistAsync ( SynoItem artist ) : Task>
artist SynoItem
return Task>

GetFileStream() public method

Gets the remote file network stream.
The caller is responsible for closing the stream after the call to DownloadFile returns
public GetFileStream ( SynoTrack synoTrack, SynoTrack>.Action callback ) : void
synoTrack SynoTrack The track wor which to retrieve the stream.
callback SynoTrack>.Action The method to call after the stream is open. The stream itself and its content length are passed as arguments.
return void

GetTracksForAlbum() public method

public GetTracksForAlbum ( SynoItem album, Action callback, Action callbackError ) : void
album SynoItem
callback Action
callbackError Action
return void

GetTracksForAlbumAsync() public method

public GetTracksForAlbumAsync ( SynoItem album ) : Task>
album SynoItem
return Task>

LoginAsync() public method

public LoginAsync ( string login, string password, Action callback, Action callbackError, bool useSsl ) : void
login string
password string
callback Action
callbackError Action
useSsl bool
return void

SearchAlbums() public method

public SearchAlbums ( string album ) : Task>
album string
return Task>

SearchAllMusic() public method

public SearchAllMusic ( string pattern, Action callback, Action callbackError ) : void
pattern string
callback Action
callbackError Action
return void

SearchArtist() public method

public SearchArtist ( string pattern, Action callback, Action callbackError ) : void
pattern string
callback Action
callbackError Action
return void

SearchArtistAsync() public method

public SearchArtistAsync ( string artistName ) : Task>
artistName string
return Task>