C# Class OpenTidl.OpenTidlClient

Mostrar archivo Open project: jackfagner/OpenTidl Class Usage Examples

Public Methods

Method 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 method

public GetAlbum ( Int32 albumId, Int32 timeout ) : AlbumModel
albumId System.Int32
timeout System.Int32
return OpenTidl.Models.AlbumModel

GetAlbum() public method

public GetAlbum ( Int32 albumId ) : Task
albumId System.Int32
return Task

GetAlbumCover() public method

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

GetAlbumCover() public method

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
return WebStreamModel

GetAlbumReview() public method

public GetAlbumReview ( Int32 albumId, Int32 timeout ) : AlbumReviewModel
albumId System.Int32
timeout System.Int32
return OpenTidl.Models.AlbumReviewModel

GetAlbumReview() public method

public GetAlbumReview ( Int32 albumId ) : Task
albumId System.Int32
return Task

GetAlbumTracks() public method

public GetAlbumTracks ( Int32 albumId, Int32 timeout ) : JsonList
albumId System.Int32
timeout System.Int32
return JsonList

GetAlbumTracks() public method

public GetAlbumTracks ( Int32 albumId ) : Task>
albumId System.Int32
return Task>

GetAlbums() public method

public GetAlbums ( IEnumerable albumIds, Int32 timeout ) : ModelArray
albumIds IEnumerable
timeout System.Int32
return ModelArray

GetAlbums() public method

public GetAlbums ( IEnumerable albumIds ) : Task>
albumIds IEnumerable
return Task>

GetArtist() public method

public GetArtist ( Int32 artistId, Int32 timeout ) : ArtistModel
artistId System.Int32
timeout System.Int32
return OpenTidl.Models.ArtistModel

GetArtist() public method

public GetArtist ( Int32 artistId ) : Task
artistId System.Int32
return Task

GetArtistAlbums() public method

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
return JsonList

GetArtistAlbums() public method

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

GetArtistBiography() public method

public GetArtistBiography ( Int32 artistId, Int32 timeout ) : ArtistBiographyModel
artistId System.Int32
timeout System.Int32
return OpenTidl.Models.ArtistBiographyModel

GetArtistBiography() public method

public GetArtistBiography ( Int32 artistId ) : Task
artistId System.Int32
return Task

GetArtistLinks() public method

public GetArtistLinks ( Int32 artistId, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
limit System.Int32
timeout System.Int32
return JsonList

GetArtistLinks() public method

public GetArtistLinks ( Int32 artistId, Int32 limit = 9999 ) : Task>
artistId System.Int32
limit System.Int32
return Task>

GetArtistPicture() public method

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

GetArtistPicture() public method

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
return WebStreamModel

GetArtistTopTracks() public method

public GetArtistTopTracks ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
offset System.Int32
limit System.Int32
timeout System.Int32
return JsonList

GetArtistTopTracks() public method

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

GetArtistVideos() public method

public GetArtistVideos ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
offset System.Int32
limit System.Int32
timeout System.Int32
return JsonList

GetArtistVideos() public method

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

GetCountry() public method

public GetCountry ( Int32 timeout ) : CountryModel
timeout System.Int32
return OpenTidl.Models.CountryModel

GetCountry() public method

public GetCountry ( ) : Task
return Task

GetPlaylistImage() public method

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

GetPlaylistImage() public method

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
return WebStreamModel

GetRadioFromArtist() public method

public GetRadioFromArtist ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
offset System.Int32
limit System.Int32
timeout System.Int32
return JsonList

GetRadioFromArtist() public method

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

GetRadioFromTrack() public method

public GetRadioFromTrack ( Int32 trackId, Int32 limit, Int32 timeout ) : JsonList
trackId System.Int32
limit System.Int32
timeout System.Int32
return JsonList

GetRadioFromTrack() public method

public GetRadioFromTrack ( Int32 trackId, Int32 limit = 9999 ) : Task>
trackId System.Int32
limit System.Int32
return Task>

GetSimilarAlbums() public method

public GetSimilarAlbums ( Int32 albumId, Int32 timeout ) : JsonList
albumId System.Int32
timeout System.Int32
return JsonList

GetSimilarAlbums() public method

public GetSimilarAlbums ( Int32 albumId ) : Task>
albumId System.Int32
return Task>

GetSimilarArtists() public method

public GetSimilarArtists ( Int32 artistId, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
artistId System.Int32
offset System.Int32
limit System.Int32
timeout System.Int32
return JsonList

GetSimilarArtists() public method

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

GetTrack() public method

public GetTrack ( Int32 trackId ) : Task
trackId System.Int32
return Task

GetTrack() public method

public GetTrack ( Int32 trackId, Int32 timeout ) : TrackModel
trackId System.Int32
timeout System.Int32
return OpenTidl.Models.TrackModel

GetTrackContributors() public method

public GetTrackContributors ( Int32 trackId, Int32 timeout ) : JsonList
trackId System.Int32
timeout System.Int32
return JsonList

GetTrackContributors() public method

public GetTrackContributors ( Int32 trackId ) : Task>
trackId System.Int32
return Task>

GetVideoImage() public method

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
return WebStreamModel

GetVideoImage() public method

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

GetWebStream() public method

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

LoginWithFacebook() public method

public LoginWithFacebook ( String accessToken, Int32 timeout ) : OpenTidlSession
accessToken String
timeout Int32
return OpenTidlSession

LoginWithFacebook() public method

public LoginWithFacebook ( String accessToken ) : Task
accessToken String
return Task

LoginWithToken() public method

public LoginWithToken ( String authenticationToken, Int32 timeout ) : OpenTidlSession
authenticationToken String
timeout Int32
return OpenTidlSession

LoginWithToken() public method

public LoginWithToken ( String authenticationToken ) : Task
authenticationToken String
return Task

LoginWithTwitter() public method

public LoginWithTwitter ( String accessToken, String accessTokenSecret, Int32 timeout ) : OpenTidlSession
accessToken String
accessTokenSecret String
timeout Int32
return OpenTidlSession

LoginWithTwitter() public method

public LoginWithTwitter ( String accessToken, String accessTokenSecret ) : Task
accessToken String
accessTokenSecret String
return Task

LoginWithUsername() public method

public LoginWithUsername ( String username, String password, Int32 timeout ) : OpenTidlSession
username String
password String
timeout Int32
return OpenTidlSession

LoginWithUsername() public method

public LoginWithUsername ( String username, String password ) : Task
username String
password String
return Task

RecoverPassword() public method

public RecoverPassword ( String username, Int32 timeout ) : RecoverPasswordResponseModel
username String
timeout Int32
return RecoverPasswordResponseModel

RecoverPassword() public method

public RecoverPassword ( String username ) : Task
username String
return Task

RestoreSession() public method

public RestoreSession ( String sessionId, Int32 timeout ) : OpenTidlSession
sessionId String
timeout Int32
return OpenTidlSession

RestoreSession() public method

public RestoreSession ( String sessionId ) : Task
sessionId String
return Task

Search() public method

public Search ( String query, SearchType types, Int32 offset, Int32 limit, Int32 timeout ) : SearchResultModel
query String
types SearchType
offset Int32
limit Int32
timeout Int32
return SearchResultModel

Search() public method

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

SearchAlbums() public method

public SearchAlbums ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
return JsonList

SearchAlbums() public method

public SearchAlbums ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
return Task>

SearchArtists() public method

public SearchArtists ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
return JsonList

SearchArtists() public method

public SearchArtists ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
return Task>

SearchPlaylists() public method

public SearchPlaylists ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
return JsonList

SearchPlaylists() public method

public SearchPlaylists ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
return Task>

SearchTracks() public method

public SearchTracks ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
return JsonList

SearchTracks() public method

public SearchTracks ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
return Task>

SearchVideos() public method

public SearchVideos ( String query, Int32 offset, Int32 limit, Int32 timeout ) : JsonList
query String
offset Int32
limit Int32
timeout Int32
return JsonList

SearchVideos() public method

public SearchVideos ( String query, Int32 offset, Int32 limit = 9999 ) : Task>
query String
offset Int32
limit Int32
return Task>