C# Класс mobSocial.Services.ArtistPages.ArtistPageApiService

Наследование: IArtistPageApiService
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

ArtistPageApiService() публичный Метод

public ArtistPageApiService ( ThirdPartySettings thirdPartySettings, ICacheProvider cacheProvider ) : System.Collections.Generic
thirdPartySettings mobSocial.Data.Entity.Settings.ThirdPartySettings
cacheProvider ICacheProvider
Результат System.Collections.Generic

DoesRemoteArtistExist() публичный Метод

public DoesRemoteArtistExist ( string name ) : bool
name string
Результат bool

GetArtistSongs() публичный Метод

public GetArtistSongs ( string artistName, int count = 15, int page = 1 ) : IList
artistName string
count int
page int
Результат IList

GetRelatedArtists() публичный Метод

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
Результат IList

GetRemoteArtist() публичный Метод

Returns remote artist as JSON string
public GetRemoteArtist ( string name ) : string
name string The name of artist
Результат string

GetRemoteSong() публичный Метод

public GetRemoteSong ( string remoteEntityId ) : string
remoteEntityId string
Результат string

GetSimilarSongs() публичный Метод

public GetSimilarSongs ( string trackId, int count = 5 ) : IList
trackId string
count int
Результат IList

SearchArtists() публичный Метод

public SearchArtists ( string term, int count = 15, int page = 1 ) : IList
term string
count int
page int
Результат IList

SearchSongs() публичный Метод

public SearchSongs ( string term, string artist = "", int count = 15, int page = 1 ) : IList
term string
artist string
count int
page int
Результат IList