C# Class Synology.AudioStationApi.RemoteFileMockAudioStationSession

Inheritance: IAudioStationSession
Afficher le fichier Open project: salfab/open-syno

Méthodes publiques

Méthode 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

Méthode Description
OnFileDownloadResponseReceived ( IAsyncResult ar ) : void

Method Details

GetAlbumsForArtist() public méthode

public GetAlbumsForArtist ( SynoItem artist, Action callback, Action callbackError ) : void
artist SynoItem
callback Action
callbackError Action
Résultat void

GetAlbumsForArtistAsync() public méthode

public GetAlbumsForArtistAsync ( SynoItem artist ) : Task>
artist SynoItem
Résultat Task>

GetFileStream() public méthode

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.
Résultat void

GetTracksForAlbum() public méthode

public GetTracksForAlbum ( SynoItem album, Action callback, Action callbackError ) : void
album SynoItem
callback Action
callbackError Action
Résultat void

GetTracksForAlbumAsync() public méthode

public GetTracksForAlbumAsync ( SynoItem album ) : Task>
album SynoItem
Résultat Task>

LoginAsync() public méthode

public LoginAsync ( string login, string password, Action callback, Action callbackError, bool useSsl ) : void
login string
password string
callback Action
callbackError Action
useSsl bool
Résultat void

SearchAlbums() public méthode

public SearchAlbums ( string album ) : Task>
album string
Résultat Task>

SearchAllMusic() public méthode

public SearchAllMusic ( string pattern, Action callback, Action callbackError ) : void
pattern string
callback Action
callbackError Action
Résultat void

SearchArtist() public méthode

public SearchArtist ( string pattern, Action callback, Action callbackError ) : void
pattern string
callback Action
callbackError Action
Résultat void

SearchArtistAsync() public méthode

public SearchArtistAsync ( string artistName ) : Task>
artistName string
Résultat Task>