public class Album extends LfmEntity implements ImageEntity, MusicBrainzEntity, NameEntity, UrlEntity, PlayCountEntity, IdEntity, UserPlayCountEntity, ArtistEntity, ReleaseDateEntity, WikiEntity, TagsEntity, TracksEntity, StreamableEntity
| Modifier and Type | Field and Description |
|---|---|
static Map<ImageSize,URL> |
DEFAULT_IMAGES |
| Constructor and Description |
|---|
Album(Element albumElement)
Create an Album from a dom4j Element.
|
| Modifier and Type | Method and Description |
|---|---|
static PostQuery<Boolean> |
addTags(String artist,
String album,
List<String> tags,
String sk)
Tag an album using a list of user supplied tags.
|
boolean |
equals(Object obj) |
Artist |
getArtist() |
static UnauthenticatedGetQuery<Affiliations> |
getBuylinks(String artist,
String album,
String mbid,
net.dontdrinkandroot.utils.ISO_3166_1_alpha2 country)
Get a list of Buy Links for a particular Album.
|
Long |
getId() |
Map<ImageSize,URL> |
getImages() |
static UnauthenticatedGetQuery<Album> |
getInfo(String artist,
String album,
String mbid,
String username,
net.dontdrinkandroot.utils.ISO_3166_1_alpha2 lang)
Get the metadata for an album on Last.fm using the album name or a musicbrainz id.
|
Integer |
getListeners() |
String |
getMbid() |
String |
getName() |
Integer |
getPlayCount() |
Integer |
getRank() |
Date |
getReleaseDate() |
static UnauthenticatedGetQuery<PaginatedResult<List<Shout>>> |
getShouts(String artist,
String album,
String mbid,
Integer limit,
Integer page)
Get shouts for this album.
|
Streamable |
getStreamable() |
List<Tag> |
getTags() |
static UnauthenticatedGetQuery<ArrayList<Tag>> |
getTags(String artist,
String album,
String mbid,
String user)
Get the tags applied by an individual user to an album on Last.fm.
|
static UnauthenticatedGetQuery<ArrayList<Tag>> |
getTopTags(String artist,
String album,
String mbid)
Get the top tags for an album on Last.fm, ordered by popularity.
|
List<Track> |
getTracks() |
URL |
getUrl() |
Integer |
getUserPlayCount() |
Wiki |
getWiki() |
int |
hashCode() |
static PostQuery<Boolean> |
removeTag(String artist,
String album,
String tag,
String sk)
Remove a user's tag from an album.
|
static UnauthenticatedGetQuery<PaginatedResult<List<Album>>> |
search(String album,
Integer limit,
Integer page)
Search for an album by name.
|
void |
setArtist(Artist artist) |
void |
setId(Long id) |
void |
setImages(Map<ImageSize,URL> images) |
void |
setListeners(Integer listeners) |
void |
setMbid(String mbid) |
void |
setName(String name) |
void |
setPlayCount(Integer playCount) |
void |
setRank(Integer rank) |
void |
setReleaseDate(Date releaseDate) |
void |
setStreamable(Streamable streamable) |
void |
setTags(List<Tag> tags) |
void |
setTracks(List<Track> tracks) |
void |
setUrl(URL url) |
void |
setUserPlayCount(Integer userPlayCount) |
void |
setWiki(Wiki wiki) |
static PostQuery<Boolean> |
share(String artist,
String album,
List<String> recipient,
Boolean publicViewable,
String message,
String sk)
Share an album with one or more Last.fm users or other friends.
|
public Album(Element albumElement)
albumElement - The Element to convert.public final String getName()
getName in interface NameEntitypublic final void setName(String name)
setName in interface NameEntitypublic final Artist getArtist()
getArtist in interface ArtistEntitypublic final void setArtist(Artist artist)
setArtist in interface ArtistEntitypublic final String getMbid()
getMbid in interface MbidEntitypublic final void setMbid(String mbid)
setMbid in interface MbidEntitypublic final Date getReleaseDate()
getReleaseDate in interface ReleaseDateEntitypublic final void setReleaseDate(Date releaseDate)
setReleaseDate in interface ReleaseDateEntitypublic final Map<ImageSize,URL> getImages()
getImages in interface ImageEntitypublic final void setImages(Map<ImageSize,URL> images)
setImages in interface ImageEntitypublic final Integer getUserPlayCount()
getUserPlayCount in interface UserPlayCountEntitypublic final void setUserPlayCount(Integer userPlayCount)
setUserPlayCount in interface UserPlayCountEntitypublic final Integer getListeners()
getListeners in interface ListenersEntitypublic final void setListeners(Integer listeners)
setListeners in interface ListenersEntitypublic final Integer getPlayCount()
getPlayCount in interface PlayCountEntitypublic final void setPlayCount(Integer playCount)
setPlayCount in interface PlayCountEntitypublic final List<Track> getTracks()
getTracks in interface TracksEntitypublic final void setTracks(List<Track> tracks)
setTracks in interface TracksEntitypublic final List<Tag> getTags()
getTags in interface TagsEntitypublic final void setTags(List<Tag> tags)
setTags in interface TagsEntitypublic final Wiki getWiki()
getWiki in interface WikiEntitypublic final void setWiki(Wiki wiki)
setWiki in interface WikiEntitypublic final Integer getRank()
getRank in interface RankEntitypublic final void setRank(Integer rank)
setRank in interface RankEntitypublic void setStreamable(Streamable streamable)
setStreamable in interface StreamableEntitypublic Streamable getStreamable()
getStreamable in interface StreamableEntitypublic static PostQuery<Boolean> addTags(String artist, String album, List<String> tags, String sk)
artist - The artist name in question (Required).album - The album name in question (Required).tags - A list of user supplied tags to apply to this album. Accepts a maximum of 10 tags
(Required).sk - A session key generated by authenticating a user via the authentication protocol
(Required).public static UnauthenticatedGetQuery<Affiliations> getBuylinks(String artist, String album, String mbid, net.dontdrinkandroot.utils.ISO_3166_1_alpha2 country)
artist - The artist name in question (Required unless mbid).album - The album in question (Required unless mbid).mbid - A MusicBrainz id for the album in question (Optional).country - A country name, as defined by the ISO 3166-1 country names standard (Optional).public static UnauthenticatedGetQuery<Album> getInfo(String artist, String album, String mbid, String username, net.dontdrinkandroot.utils.ISO_3166_1_alpha2 lang)
Playlist#fetch on how to get the album playlist.artist - The artist name in question (Optional).album - The album name in question (Optional).mbid - The musicbrainz id for the album (Optional).username - The username for the context of the request. If supplied, the user's playcount for
this album is included in the response. (Optional).lang - The language to return the biography in, expressed as an ISO 639 alpha-2 code.
(Optional).public static UnauthenticatedGetQuery<PaginatedResult<List<Shout>>> getShouts(String artist, String album, String mbid, Integer limit, Integer page)
artist - The artist name (Required unless mbid).album - The album title (Required unless mbid).mbid - The musicbrainz id for the artist (Optional).limit - The number of results to fetch per page (Optional). Defaults to 50.page - The page number to fetch (Optional). Defaults to first page.public static UnauthenticatedGetQuery<ArrayList<Tag>> getTags(String artist, String album, String mbid, String user)
artist - The artist name in question (Required).album - The album name in question (Required).mbid - The musicbrainz id for the album (Optional).user - The user to look up (Required).public static UnauthenticatedGetQuery<ArrayList<Tag>> getTopTags(String artist, String album, String mbid)
artist - The artist name in question (Required).album - The album name in question (Required).mbid - The musicbrainz id for the album (Optional).public static PostQuery<Boolean> removeTag(String artist, String album, String tag, String sk)
artist - The artist name in question (Required).album - The album name in question (Required).tag - A single user tag to remove from this album. (Required).sk - A session key generated by authenticating a user via the authentication protocol.
(Required).public static UnauthenticatedGetQuery<PaginatedResult<List<Album>>> search(String album, Integer limit, Integer page)
album - The album name (Required).limit - The number of results to fetch per page (Optional). Defaults to 30.page - The page number to fetch (Optional). Defaults to first page.public static PostQuery<Boolean> share(String artist, String album, List<String> recipient, Boolean publicViewable, String message, String sk)
artist - An artist name (Required).album - An album name (Required).recipient - Email Address | Last.fm Username - A comma delimited list of email addresses or
Last.fm usernames (Required). Maximum is 10.publicViewable - Optionally show in the sharing users activity feed. Defaults to 0 (false)
(Optional).message - An optional message to send with the recommendation (Optional). If not supplied a
default message will be used.Copyright © 2012. All Rights Reserved.