C# Класс WaveBox.Lastfm

Показать файл Открыть проект

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

Метод Описание
GetAlbumArtistInfo ( AlbumArtist albumArtist ) : string
GetAlbumArtistInfo ( int albumArtistId ) : string
GetArtistInfo ( Artist artist ) : string
GetArtistInfo ( int artistId ) : string
Lastfm ( User theUser ) : System

Initializes a new instance of the WaveBox.ApiHandler.Handlers.Lastfm class.

RemoveHttpHeaders ( string resp ) : string
Scrobble ( IList scrobbles, LfmScrobbleType scrobbleType ) : string

Scrobble the specified songId and recordScrobble.

ScrobbleTypeForString ( string input ) : LfmScrobbleType

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

Метод Описание
CompileApiCall ( string>.SortedDictionary parameters ) : string
CreateAuthUrl ( ) : void

Creates the auth URL.

DoPostRestRequest ( string parameters ) : string

Executes rest requests using the POST method

GetInfo ( string artistName ) : string
GetSessionKeyAndUpdateUser ( string token ) : void

Gets the session key and updates the user's lastfm session in the database.

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

GetAlbumArtistInfo() публичный статический Метод

public static GetAlbumArtistInfo ( AlbumArtist albumArtist ) : string
albumArtist WaveBox.Core.Model.AlbumArtist
Результат string

GetAlbumArtistInfo() публичный статический Метод

public static GetAlbumArtistInfo ( int albumArtistId ) : string
albumArtistId int
Результат string

GetArtistInfo() публичный статический Метод

public static GetArtistInfo ( Artist artist ) : string
artist WaveBox.Core.Model.Artist
Результат string

GetArtistInfo() публичный статический Метод

public static GetArtistInfo ( int artistId ) : string
artistId int
Результат string

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

Initializes a new instance of the WaveBox.ApiHandler.Handlers.Lastfm class.
public Lastfm ( User theUser ) : System
theUser WaveBox.Core.Model.User
Результат System

RemoveHttpHeaders() публичный статический Метод

public static RemoveHttpHeaders ( string resp ) : string
resp string
Результат string

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

Scrobble the specified songId and recordScrobble.
public Scrobble ( IList scrobbles, LfmScrobbleType scrobbleType ) : string
scrobbles IList
scrobbleType LfmScrobbleType
Результат string

ScrobbleTypeForString() публичный статический Метод

public static ScrobbleTypeForString ( string input ) : LfmScrobbleType
input string
Результат LfmScrobbleType