|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.umass.lastfm.ImageHolder
de.umass.lastfm.MusicEntry
de.umass.lastfm.Album
public class Album
Bean for Album info.
Field Summary |
---|
Fields inherited from class de.umass.lastfm.MusicEntry |
---|
id, listeners, mbid, name, percentageChange, playcount, streamable, tags, url, userPlaycount |
Fields inherited from class de.umass.lastfm.ImageHolder |
---|
imageUrls |
Method Summary | |
---|---|
static Result |
addTags(String artist,
String album,
String tags,
Session session)
Tag an album using a list of user supplied tags. |
String |
getArtist()
|
static Collection<BuyLink> |
getBuylinks(String artist,
String albumOrMbid,
String country,
String apiKey)
Get a list of Buy Links for a particular Album. |
static Album |
getInfo(String artist,
String albumOrMbid,
String apiKey)
Get the metadata for an album on Last.fm using the album name or a musicbrainz id. |
static Album |
getInfo(String artist,
String albumOrMbid,
String username,
String apiKey)
Get the metadata for an album on Last.fm using the album name or a musicbrainz id. |
Date |
getReleaseDate()
|
static Collection<String> |
getTags(String artist,
String album,
Session session)
Get the tags applied by an individual user to an album on Last.fm. |
static Collection<Tag> |
getTopTags(String artist,
String albumOrMbid,
String apiKey)
Get the top tags for an album on Last.fm, ordered by popularity. |
static Result |
removeTag(String artist,
String album,
String tag,
Session session)
Remove a user's tag from an album. |
static Collection<Album> |
search(String album,
String apiKey)
Search for an album by name. |
Methods inherited from class de.umass.lastfm.MusicEntry |
---|
getId, getListeners, getMbid, getName, getPercentageChange, getPlaycount, getTags, getUrl, getUserPlaycount, getWikiLastChanged, getWikiSummary, getWikiText, isStreamable, loadStandardInfo |
Methods inherited from class de.umass.lastfm.ImageHolder |
---|
availableSizes, getImageURL, loadImages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public String getArtist()
public Date getReleaseDate()
public static Album getInfo(String artist, String albumOrMbid, String apiKey)
artist
- Artist's namealbumOrMbid
- Album name or MBIDapiKey
- The API key
public static Album getInfo(String artist, String albumOrMbid, String username, String apiKey)
artist
- Artist's namealbumOrMbid
- Album name or MBIDusername
- The username for the context of the request. If supplied, the user's playcount for this album is included in the response.apiKey
- The API key
public static Result addTags(String artist, String album, String tags, Session session)
artist
- The artist name in questionalbum
- The album name in questiontags
- A comma delimited list of user supplied tags to apply to this album. Accepts a maximum of 10 tags.session
- The Session instance
Authenticator
public static Result removeTag(String artist, String album, String tag, Session session)
artist
- The artist name in questionalbum
- The album name in questiontag
- A single user tag to remove from this album.session
- The Session instance
Authenticator
public static Collection<String> getTags(String artist, String album, Session session)
artist
- The artist name in questionalbum
- The album name in questionsession
- A Session instance
public static Collection<Album> search(String album, String apiKey)
album
- The album name in question.apiKey
- A Last.fm API key.
public static Collection<BuyLink> getBuylinks(String artist, String albumOrMbid, String country, String apiKey)
artist
- The artist name in questionalbumOrMbid
- Album name or MBIDcountry
- A country name, as defined by the ISO 3166-1 country names standardapiKey
- A Last.fm API key
BuyLink
spublic static Collection<Tag> getTopTags(String artist, String albumOrMbid, String apiKey)
null
for the first parameter.
artist
- The artist namealbumOrMbid
- Album name or MBIDapiKey
- A Last.fm API key
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |