C# Class WaveBox.Lastfm

ファイルを表示 Open project: einsteinx2/WaveBox

Public Methods

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

Private Methods

Method Description
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.

Method Details

GetAlbumArtistInfo() public static method

public static GetAlbumArtistInfo ( AlbumArtist albumArtist ) : string
albumArtist WaveBox.Core.Model.AlbumArtist
return string

GetAlbumArtistInfo() public static method

public static GetAlbumArtistInfo ( int albumArtistId ) : string
albumArtistId int
return string

GetArtistInfo() public static method

public static GetArtistInfo ( Artist artist ) : string
artist WaveBox.Core.Model.Artist
return string

GetArtistInfo() public static method

public static GetArtistInfo ( int artistId ) : string
artistId int
return string

Lastfm() public method

Initializes a new instance of the WaveBox.ApiHandler.Handlers.Lastfm class.
public Lastfm ( User theUser ) : System
theUser WaveBox.Core.Model.User
return System

RemoveHttpHeaders() public static method

public static RemoveHttpHeaders ( string resp ) : string
resp string
return string

Scrobble() public method

Scrobble the specified songId and recordScrobble.
public Scrobble ( IList scrobbles, LfmScrobbleType scrobbleType ) : string
scrobbles IList
scrobbleType LfmScrobbleType
return string

ScrobbleTypeForString() public static method

public static ScrobbleTypeForString ( string input ) : LfmScrobbleType
input string
return LfmScrobbleType