|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.atunes.kernel.modules.contextInformation.lastfm.LastFmService
public class LastFmService
The Class LastFmService. This class is responsible of retrieve information from Last.fm web services.
Constructor Summary | |
---|---|
LastFmService(Proxy proxy,
java.lang.String user,
java.lang.String password)
Instantiates a new Last.fm service |
Method Summary | |
---|---|
AlbumInfo |
getAlbum(java.lang.String artist,
java.lang.String album)
Gets the album. |
AlbumListInfo |
getAlbumList(java.lang.String artist)
Gets the album list. |
java.lang.String |
getArtistTopTag(java.lang.String artist)
Gets the artist top tag. |
java.awt.Image |
getImage(AlbumInfo album,
AudioFile file)
Gets the image. |
java.awt.Image |
getImage(ArtistInfo artist)
Gets the image. |
java.awt.Image |
getImage(SimilarArtistsInfo similar)
Gets the image. |
SimilarArtistsInfo |
getSimilarArtists(java.lang.String artist)
Gets the similar artists. |
java.lang.String |
getWikiText(java.lang.String artist)
Gets the wiki text. |
java.lang.String |
getWikiURL(java.lang.String artist)
Gets the wiki url. |
void |
submit(AudioFile file,
long secondsPlayed)
Submits song to Last.fm |
void |
submitNowPlayingInfo(AudioFile file)
Submits now playing info to Last.fm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LastFmService(Proxy proxy, java.lang.String user, java.lang.String password)
proxy
- the proxyuser
- the Last.fm usernamepassword
- the Last.fm passwordMethod Detail |
---|
public AlbumInfo getAlbum(java.lang.String artist, java.lang.String album)
artist
- the artistalbum
- the album
public AlbumListInfo getAlbumList(java.lang.String artist)
artist
- the artist
public java.lang.String getArtistTopTag(java.lang.String artist)
artist
- the artist
public java.awt.Image getImage(AlbumInfo album, AudioFile file)
album
- the album
public java.awt.Image getImage(ArtistInfo artist)
artist
- the artist
public java.awt.Image getImage(SimilarArtistsInfo similar)
similar
- the similar
public SimilarArtistsInfo getSimilarArtists(java.lang.String artist)
artist
- the artist
public java.lang.String getWikiText(java.lang.String artist)
artist
- the artist
public java.lang.String getWikiURL(java.lang.String artist)
artist
- the artist
public void submit(AudioFile file, long secondsPlayed) throws ScrobblerException
file
- audio filesecondsPlayed
- seconds the audio file has already played
ScrobblerException
public void submitNowPlayingInfo(AudioFile file) throws ScrobblerException
file
- audio file
ScrobblerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |