C# Class Synology.AudioStationApi.AudioStationSession

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

Private Properties

Свойство Type Description
BuildRequest System.Net.HttpWebRequest
OnFileDownloadResponseReceived void

Méthodes publiques

Méthode Description
AudioStationSession ( ) : System
AudioStationSession ( IVersionDependentResourcesProvider versionDependentResourcesProvider, DsmVersions dsmVersion ) : System
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
BuildRequest ( string url ) : HttpWebRequest
OnFileDownloadResponseReceived ( IAsyncResult ar ) : void

Method Details

AudioStationSession() public méthode

public AudioStationSession ( ) : System
Résultat System

AudioStationSession() public méthode

public AudioStationSession ( IVersionDependentResourcesProvider versionDependentResourcesProvider, DsmVersions dsmVersion ) : System
versionDependentResourcesProvider IVersionDependentResourcesProvider
dsmVersion DsmVersions
Résultat System

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 HttpResponse is passed as argument
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>