C# Class mobSocial.Services.ArtistPages.ArtistPageApiService

Inheritance: IArtistPageApiService
Afficher le fichier Open project: mobsoftware/mobsocial

Méthodes publiques

Méthode Description
ArtistPageApiService ( ThirdPartySettings thirdPartySettings, ICacheProvider cacheProvider ) : System.Collections.Generic
DoesRemoteArtistExist ( string name ) : bool
GetArtistSongs ( string artistName, int count = 15, int page = 1 ) : IList
GetRelatedArtists ( string remoteEntityId, int count = 5 ) : IList

Gets related artists based on current artists

GetRemoteArtist ( string name ) : string

Returns remote artist as JSON string

GetRemoteSong ( string remoteEntityId ) : string
GetSimilarSongs ( string trackId, int count = 5 ) : IList
SearchArtists ( string term, int count = 15, int page = 1 ) : IList
SearchSongs ( string term, string artist = "", int count = 15, int page = 1 ) : IList

Private Methods

Méthode Description
GetApiUrl ( string endPoint, string parameterString = "" ) : string

Returns the API url.

ParseEchonestArtist ( JToken artist ) : string

Parses echonest json artist data to a generic artist json data. Can have different implementation for a different API

ParseEchonestTrack ( JToken track, JToken song ) : string

Parses echonest json track data to a generic track json data. Can have different implementation for a different API

Method Details

ArtistPageApiService() public méthode

public ArtistPageApiService ( ThirdPartySettings thirdPartySettings, ICacheProvider cacheProvider ) : System.Collections.Generic
thirdPartySettings mobSocial.Data.Entity.Settings.ThirdPartySettings
cacheProvider ICacheProvider
Résultat System.Collections.Generic

DoesRemoteArtistExist() public méthode

public DoesRemoteArtistExist ( string name ) : bool
name string
Résultat bool

GetArtistSongs() public méthode

public GetArtistSongs ( string artistName, int count = 15, int page = 1 ) : IList
artistName string
count int
page int
Résultat IList

GetRelatedArtists() public méthode

Gets related artists based on current artists
public GetRelatedArtists ( string remoteEntityId, int count = 5 ) : IList
remoteEntityId string The entity id of artist on remote server. We store it in Artist.RemoteEntityId
count int Maximum number of results to be returned
Résultat IList

GetRemoteArtist() public méthode

Returns remote artist as JSON string
public GetRemoteArtist ( string name ) : string
name string The name of artist
Résultat string

GetRemoteSong() public méthode

public GetRemoteSong ( string remoteEntityId ) : string
remoteEntityId string
Résultat string

GetSimilarSongs() public méthode

public GetSimilarSongs ( string trackId, int count = 5 ) : IList
trackId string
count int
Résultat IList

SearchArtists() public méthode

public SearchArtists ( string term, int count = 15, int page = 1 ) : IList
term string
count int
page int
Résultat IList

SearchSongs() public méthode

public SearchSongs ( string term, string artist = "", int count = 15, int page = 1 ) : IList
term string
artist string
count int
page int
Résultat IList