C# Class OpenTidl.OpenTidlClient

Afficher le fichier Open project: jackfagner/OpenTidl Class Usage Examples

Méthodes publiques

Méthode Description
GetAlbum ( Int32 albumId, Int32 timeout ) : AlbumModel
GetAlbum ( Int32 albumId ) : Task
GetAlbumCover ( AlbumModel model, AlbumCoverSize size ) : WebStreamModel

Helper method to retrieve a stream with an album cover image

GetAlbumCover ( String cover, Int32 albumId, AlbumCoverSize size ) : WebStreamModel

Helper method to retrieve a stream with an album cover image

GetAlbumReview ( Int32 albumId, Int32 timeout ) : AlbumReviewModel
GetAlbumReview ( Int32 albumId ) : Task
GetAlbumTracks ( Int32 albumId, Int32 timeout ) : JsonList
GetAlbumTracks ( Int32 albumId ) : Task>
GetAlbums ( IEnumerable albumIds, Int32 timeout ) : ModelArray
GetAlbums ( IEnumerable albumIds ) : Task>
GetArtist ( Int32 artistId, Int32 timeout ) : ArtistModel
GetArtist ( Int32 artistId ) : Task
GetArtistAlbums ( Int32 artistId, AlbumFilter filter, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
GetArtistAlbums ( Int32 artistId, AlbumFilter filter, Int32 offset, Int32 limit = 9999 ) : Task>
GetArtistBiography ( Int32 artistId, Int32 timeout ) : ArtistBiographyModel
GetArtistBiography ( Int32 artistId ) : Task
GetArtistLinks ( Int32 artistId, Int32 limit, Int32 timeout ) : JsonList
GetArtistLinks ( Int32 artistId, Int32 limit = 9999 ) : Task>
GetArtistPicture ( ArtistModel model, ArtistPictureSize size ) : WebStreamModel

Helper method to retrieve a stream with an artists picture

GetArtistPicture ( String picture, Int32 artistId, ArtistPictureSize size ) : WebStreamModel

Helper method to retrieve a stream with an artists picture

GetArtistTopTracks ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
GetArtistTopTracks ( Int32 artistId, Int32 offset, Int32 limit = 9999 ) : Task>
GetArtistVideos ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
GetArtistVideos ( Int32 artistId, Int32 offset, Int32 limit = 9999 ) : Task>
GetCountry ( Int32 timeout ) : CountryModel
GetCountry ( ) : Task
GetPlaylistImage ( PlaylistModel model, PlaylistImageSize size ) : WebStreamModel

Helper method to retrieve a stream with a playlist image

GetPlaylistImage ( String image, String playlistUuid, PlaylistImageSize size ) : WebStreamModel

Helper method to retrieve a stream with a playlist image

GetRadioFromArtist ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
GetRadioFromArtist ( Int32 artistId, Int32 offset, Int32 limit = 9999 ) : Task>
GetRadioFromTrack ( Int32 trackId, Int32 limit, Int32 timeout ) : JsonList
GetRadioFromTrack ( Int32 trackId, Int32 limit = 9999 ) : Task>
GetSimilarAlbums ( Int32 albumId, Int32 timeout ) : JsonList
GetSimilarAlbums ( Int32 albumId ) : Task>
GetSimilarArtists ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
GetSimilarArtists ( Int32 artistId, Int32 offset, Int32 limit = 9999 ) : Task>
GetTrack ( Int32 trackId ) : Task
GetTrack ( Int32 trackId, Int32 timeout ) : TrackModel
GetTrackContributors ( Int32 trackId, Int32 timeout ) : JsonList
GetTrackContributors ( Int32 trackId ) : Task>
GetVideoImage ( String imageId, String imagePath, VideoImageSize size ) : WebStreamModel

Helper method to retrieve a stream with a video conver image

GetVideoImage ( VideoModel model, VideoImageSize size ) : WebStreamModel

Helper method to retrieve a stream with a video conver image

GetWebStream ( String streamUrl ) : WebStreamModel

Helper method to retrieve the audio/video stream with correct user-agent, etc.

LoginWithFacebook ( String accessToken, Int32 timeout ) : OpenTidlSession
LoginWithFacebook ( String accessToken ) : Task
LoginWithToken ( String authenticationToken, Int32 timeout ) : OpenTidlSession
LoginWithToken ( String authenticationToken ) : Task
LoginWithTwitter ( String accessToken, String accessTokenSecret, Int32 timeout ) : OpenTidlSession
LoginWithTwitter ( String accessToken, String accessTokenSecret ) : Task
LoginWithUsername ( String username, String password, Int32 timeout ) : OpenTidlSession
LoginWithUsername ( String username, String password ) : Task
RecoverPassword ( String username, Int32 timeout ) : RecoverPasswordResponseModel
RecoverPassword ( String username ) : Task
RestoreSession ( String sessionId, Int32 timeout ) : OpenTidlSession
RestoreSession ( String sessionId ) : Task
Search ( String query, SearchType types, Int32 offset, Int32 limit, Int32 timeout ) : SearchResultModel
Search ( String query, SearchType types, Int32 offset, Int32 limit = 9999 ) : Task
SearchAlbums ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
SearchAlbums ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
SearchArtists ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
SearchArtists ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
SearchPlaylists ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
SearchPlaylists ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
SearchTracks ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
SearchTracks ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
SearchVideos ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
SearchVideos ( String query, Int32 offset, Int32 limit = 9999 ) : Task>

Method Details

GetAlbum() public méthode

public GetAlbum ( Int32 albumId, Int32 timeout ) : AlbumModel
albumId System.Int32
timeout System.Int32
Résultat OpenTidl.Models.AlbumModel

GetAlbum() public méthode

public GetAlbum ( Int32 albumId ) : Task
albumId System.Int32
Résultat Task

GetAlbumCover() public méthode

Helper method to retrieve a stream with an album cover image
public GetAlbumCover ( AlbumModel model, AlbumCoverSize size ) : WebStreamModel
model OpenTidl.Models.AlbumModel
size AlbumCoverSize
Résultat WebStreamModel

GetAlbumCover() public méthode

Helper method to retrieve a stream with an album cover image
public GetAlbumCover ( String cover, Int32 albumId, AlbumCoverSize size ) : WebStreamModel
cover String
albumId System.Int32
size AlbumCoverSize
Résultat WebStreamModel

GetAlbumReview() public méthode

public GetAlbumReview ( Int32 albumId, Int32 timeout ) : AlbumReviewModel
albumId System.Int32
timeout System.Int32
Résultat OpenTidl.Models.AlbumReviewModel

GetAlbumReview() public méthode

public GetAlbumReview ( Int32 albumId ) : Task
albumId System.Int32
Résultat Task

GetAlbumTracks() public méthode

public GetAlbumTracks ( Int32 albumId, Int32 timeout ) : JsonList
albumId System.Int32
timeout System.Int32
Résultat JsonList

GetAlbumTracks() public méthode

public GetAlbumTracks ( Int32 albumId ) : Task>
albumId System.Int32
Résultat Task>

GetAlbums() public méthode

public GetAlbums ( IEnumerable albumIds, Int32 timeout ) : ModelArray
albumIds IEnumerable
timeout System.Int32
Résultat ModelArray

GetAlbums() public méthode

public GetAlbums ( IEnumerable albumIds ) : Task>
albumIds IEnumerable
Résultat Task>

GetArtist() public méthode

public GetArtist ( Int32 artistId, Int32 timeout ) : ArtistModel
artistId System.Int32
timeout System.Int32
Résultat OpenTidl.Models.ArtistModel

GetArtist() public méthode

public GetArtist ( Int32 artistId ) : Task
artistId System.Int32
Résultat Task

GetArtistAlbums() public méthode

public GetArtistAlbums ( Int32 artistId, AlbumFilter filter, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
filter AlbumFilter
offset System.Int32
limit System.Int32
timeout System.Int32
Résultat JsonList

GetArtistAlbums() public méthode

public GetArtistAlbums ( Int32 artistId, AlbumFilter filter, Int32 offset, Int32 limit = 9999 ) : Task>
artistId System.Int32
filter AlbumFilter
offset System.Int32
limit System.Int32
Résultat Task>

GetArtistBiography() public méthode

public GetArtistBiography ( Int32 artistId, Int32 timeout ) : ArtistBiographyModel
artistId System.Int32
timeout System.Int32
Résultat OpenTidl.Models.ArtistBiographyModel

GetArtistBiography() public méthode

public GetArtistBiography ( Int32 artistId ) : Task
artistId System.Int32
Résultat Task

GetArtistLinks() public méthode

public GetArtistLinks ( Int32 artistId, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
limit System.Int32
timeout System.Int32
Résultat JsonList

GetArtistLinks() public méthode

public GetArtistLinks ( Int32 artistId, Int32 limit = 9999 ) : Task>
artistId System.Int32
limit System.Int32
Résultat Task>

GetArtistPicture() public méthode

Helper method to retrieve a stream with an artists picture
public GetArtistPicture ( ArtistModel model, ArtistPictureSize size ) : WebStreamModel
model OpenTidl.Models.ArtistModel
size ArtistPictureSize
Résultat WebStreamModel

GetArtistPicture() public méthode

Helper method to retrieve a stream with an artists picture
public GetArtistPicture ( String picture, Int32 artistId, ArtistPictureSize size ) : WebStreamModel
picture String
artistId System.Int32
size ArtistPictureSize
Résultat WebStreamModel

GetArtistTopTracks() public méthode

public GetArtistTopTracks ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
offset System.Int32
limit System.Int32
timeout System.Int32
Résultat JsonList

GetArtistTopTracks() public méthode

public GetArtistTopTracks ( Int32 artistId, Int32 offset, Int32 limit = 9999 ) : Task>
artistId System.Int32
offset System.Int32
limit System.Int32
Résultat Task>

GetArtistVideos() public méthode

public GetArtistVideos ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
offset System.Int32
limit System.Int32
timeout System.Int32
Résultat JsonList

GetArtistVideos() public méthode

public GetArtistVideos ( Int32 artistId, Int32 offset, Int32 limit = 9999 ) : Task>
artistId System.Int32
offset System.Int32
limit System.Int32
Résultat Task>

GetCountry() public méthode

public GetCountry ( Int32 timeout ) : CountryModel
timeout System.Int32
Résultat OpenTidl.Models.CountryModel

GetCountry() public méthode

public GetCountry ( ) : Task
Résultat Task

GetPlaylistImage() public méthode

Helper method to retrieve a stream with a playlist image
public GetPlaylistImage ( PlaylistModel model, PlaylistImageSize size ) : WebStreamModel
model OpenTidl.Models.PlaylistModel
size PlaylistImageSize
Résultat WebStreamModel

GetPlaylistImage() public méthode

Helper method to retrieve a stream with a playlist image
public GetPlaylistImage ( String image, String playlistUuid, PlaylistImageSize size ) : WebStreamModel
image String
playlistUuid String
size PlaylistImageSize
Résultat WebStreamModel

GetRadioFromArtist() public méthode

public GetRadioFromArtist ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
offset System.Int32
limit System.Int32
timeout System.Int32
Résultat JsonList

GetRadioFromArtist() public méthode

public GetRadioFromArtist ( Int32 artistId, Int32 offset, Int32 limit = 9999 ) : Task>
artistId System.Int32
offset System.Int32
limit System.Int32
Résultat Task>

GetRadioFromTrack() public méthode

public GetRadioFromTrack ( Int32 trackId, Int32 limit, Int32 timeout ) : JsonList
trackId System.Int32
limit System.Int32
timeout System.Int32
Résultat JsonList

GetRadioFromTrack() public méthode

public GetRadioFromTrack ( Int32 trackId, Int32 limit = 9999 ) : Task>
trackId System.Int32
limit System.Int32
Résultat Task>

GetSimilarAlbums() public méthode

public GetSimilarAlbums ( Int32 albumId, Int32 timeout ) : JsonList
albumId System.Int32
timeout System.Int32
Résultat JsonList

GetSimilarAlbums() public méthode

public GetSimilarAlbums ( Int32 albumId ) : Task>
albumId System.Int32
Résultat Task>

GetSimilarArtists() public méthode

public GetSimilarArtists ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
offset System.Int32
limit System.Int32
timeout System.Int32
Résultat JsonList

GetSimilarArtists() public méthode

public GetSimilarArtists ( Int32 artistId, Int32 offset, Int32 limit = 9999 ) : Task>
artistId System.Int32
offset System.Int32
limit System.Int32
Résultat Task>

GetTrack() public méthode

public GetTrack ( Int32 trackId ) : Task
trackId System.Int32
Résultat Task

GetTrack() public méthode

public GetTrack ( Int32 trackId, Int32 timeout ) : TrackModel
trackId System.Int32
timeout System.Int32
Résultat OpenTidl.Models.TrackModel

GetTrackContributors() public méthode

public GetTrackContributors ( Int32 trackId, Int32 timeout ) : JsonList
trackId System.Int32
timeout System.Int32
Résultat JsonList

GetTrackContributors() public méthode

public GetTrackContributors ( Int32 trackId ) : Task>
trackId System.Int32
Résultat Task>

GetVideoImage() public méthode

Helper method to retrieve a stream with a video conver image
public GetVideoImage ( String imageId, String imagePath, VideoImageSize size ) : WebStreamModel
imageId String
imagePath String
size VideoImageSize
Résultat WebStreamModel

GetVideoImage() public méthode

Helper method to retrieve a stream with a video conver image
public GetVideoImage ( VideoModel model, VideoImageSize size ) : WebStreamModel
model OpenTidl.Models.VideoModel
size VideoImageSize
Résultat WebStreamModel

GetWebStream() public méthode

Helper method to retrieve the audio/video stream with correct user-agent, etc.
public GetWebStream ( String streamUrl ) : WebStreamModel
streamUrl String
Résultat WebStreamModel

LoginWithFacebook() public méthode

public LoginWithFacebook ( String accessToken, Int32 timeout ) : OpenTidlSession
accessToken String
timeout Int32
Résultat OpenTidlSession

LoginWithFacebook() public méthode

public LoginWithFacebook ( String accessToken ) : Task
accessToken String
Résultat Task

LoginWithToken() public méthode

public LoginWithToken ( String authenticationToken, Int32 timeout ) : OpenTidlSession
authenticationToken String
timeout Int32
Résultat OpenTidlSession

LoginWithToken() public méthode

public LoginWithToken ( String authenticationToken ) : Task
authenticationToken String
Résultat Task

LoginWithTwitter() public méthode

public LoginWithTwitter ( String accessToken, String accessTokenSecret, Int32 timeout ) : OpenTidlSession
accessToken String
accessTokenSecret String
timeout Int32
Résultat OpenTidlSession

LoginWithTwitter() public méthode

public LoginWithTwitter ( String accessToken, String accessTokenSecret ) : Task
accessToken String
accessTokenSecret String
Résultat Task

LoginWithUsername() public méthode

public LoginWithUsername ( String username, String password, Int32 timeout ) : OpenTidlSession
username String
password String
timeout Int32
Résultat OpenTidlSession

LoginWithUsername() public méthode

public LoginWithUsername ( String username, String password ) : Task
username String
password String
Résultat Task

RecoverPassword() public méthode

public RecoverPassword ( String username, Int32 timeout ) : RecoverPasswordResponseModel
username String
timeout Int32
Résultat RecoverPasswordResponseModel

RecoverPassword() public méthode

public RecoverPassword ( String username ) : Task
username String
Résultat Task

RestoreSession() public méthode

public RestoreSession ( String sessionId, Int32 timeout ) : OpenTidlSession
sessionId String
timeout Int32
Résultat OpenTidlSession

RestoreSession() public méthode

public RestoreSession ( String sessionId ) : Task
sessionId String
Résultat Task

Search() public méthode

public Search ( String query, SearchType types, Int32 offset, Int32 limit, Int32 timeout ) : SearchResultModel
query String
types SearchType
offset Int32
limit Int32
timeout Int32
Résultat SearchResultModel

Search() public méthode

public Search ( String query, SearchType types, Int32 offset, Int32 limit = 9999 ) : Task
query String
types SearchType
offset Int32
limit Int32
Résultat Task

SearchAlbums() public méthode

public SearchAlbums ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
Résultat JsonList

SearchAlbums() public méthode

public SearchAlbums ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
Résultat Task>

SearchArtists() public méthode

public SearchArtists ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
Résultat JsonList

SearchArtists() public méthode

public SearchArtists ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
Résultat Task>

SearchPlaylists() public méthode

public SearchPlaylists ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
Résultat JsonList

SearchPlaylists() public méthode

public SearchPlaylists ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
Résultat Task>

SearchTracks() public méthode

public SearchTracks ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
Résultat JsonList

SearchTracks() public méthode

public SearchTracks ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
Résultat Task>

SearchVideos() public méthode

public SearchVideos ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
Résultat JsonList

SearchVideos() public méthode

public SearchVideos ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
Résultat Task>