public class Artist extends LfmEntity implements MusicBrainzEntity, ImageEntity, NameEntity, UrlEntity, PlayCountEntity, StreamableEntity, UserPlayCountEntity, WikiEntity, TagsEntity, MatchEntity
| Modifier and Type | Field and Description |
|---|---|
static Map<ImageSize,URL> |
DEFAULT_IMAGES |
| Constructor and Description |
|---|
Artist(Element element)
Create an Artist from an xml element.
|
Artist(String name) |
| Modifier and Type | Method and Description |
|---|---|
static PostQuery<Boolean> |
addTags(String artist,
List<String> tags,
String sk)
Tag an artist with one or more user supplied tags.
|
boolean |
equals(Object obj) |
static UnauthenticatedGetQuery<ArrayList<Artist>> |
getCorrection(String artistName)
Use the last.fm corrections data to check whether the supplied artist has a correction to a
canonical artist
|
static UnauthenticatedGetQuery<PaginatedResult<List<Event>>> |
getEvents(String artist,
String mbid,
Boolean festivalsOnly,
Integer limit,
Integer page)
Get a list of upcoming events for this artist.
|
Map<ImageSize,URL> |
getImages() |
static UnauthenticatedGetQuery<PaginatedResult<List<Image>>> |
getImages(String artist,
String mbid,
String order,
Integer limit,
Integer page)
Get Images for this artist in a variety of sizes.
|
static UnauthenticatedGetQuery<Artist> |
getInfo(String artist,
String mbid,
String username,
net.dontdrinkandroot.utils.ISO_3166_1_alpha2 lang)
Get the metadata for an artist on Last.fm.
|
Integer |
getListeners() |
Float |
getMatch() |
String |
getMbid() |
String |
getName() |
Integer |
getPlayCount() |
Integer |
getRank() |
static UnauthenticatedGetQuery<PaginatedResult<List<Shout>>> |
getShouts(String artist,
String mbid,
Integer limit,
Integer page)
Get shouts for this artist.
|
List<Artist> |
getSimilar() |
static UnauthenticatedGetQuery<ArrayList<Artist>> |
getSimilar(String artist,
String mbid,
Integer limit)
Get all the artists similar to this artist.
|
Streamable |
getStreamable() |
Integer |
getTagCount() |
List<Tag> |
getTags() |
static UnauthenticatedGetQuery<ArrayList<Tag>> |
getTags(String artist,
String mbid,
String user)
Get the tags applied by an individual user to an artist on Last.fm.
|
static UnauthenticatedGetQuery<ArrayList<Tag>> |
getTopTags(String artist,
String mbid)
Get the top tags for an artist on Last.fm, ordered by popularity.
|
static UnauthenticatedGetQuery<PaginatedResult<List<Track>>> |
getTopTracks(String artist,
String mbid,
Integer limit,
Integer page)
Get the top tracks by an artist on Last.fm, ordered by popularity
|
URL |
getUrl() |
Integer |
getUserPlayCount() |
Wiki |
getWiki() |
int |
hashCode() |
static PostQuery<Boolean> |
removeTag(String artist,
String tag,
String sk)
Remove a user's tag from an artist.
|
void |
setImages(Map<ImageSize,URL> images) |
void |
setListeners(Integer listeners) |
void |
setMatch(Float match) |
void |
setMbid(String mbid) |
void |
setName(String name) |
void |
setPlayCount(Integer playCount) |
void |
setRank(Integer rank) |
void |
setSimilar(List<Artist> similar) |
void |
setStreamable(Streamable streamable) |
void |
setTagCount(Integer tagCount) |
void |
setTags(List<Tag> tags) |
void |
setUrl(URL url) |
void |
setUserPlayCount(Integer userPlayCount) |
void |
setWiki(Wiki wiki) |
String |
toString() |
public Artist(Element element)
element - The xml element to convert.public Artist(String name)
public final Float getMatch()
getMatch in interface MatchEntitypublic final void setMatch(Float match)
setMatch in interface MatchEntitypublic final Integer getRank()
getRank in interface RankEntitypublic final void setRank(Integer rank)
setRank in interface RankEntitypublic final String getMbid()
getMbid in interface MbidEntitypublic final void setMbid(String mbid)
setMbid in interface MbidEntitypublic final String getName()
getName in interface NameEntitypublic final void setName(String name)
setName in interface NameEntitypublic final Map<ImageSize,URL> getImages()
getImages in interface ImageEntitypublic final void setImages(Map<ImageSize,URL> images)
setImages in interface ImageEntitypublic final Streamable getStreamable()
getStreamable in interface StreamableEntitypublic final void setStreamable(Streamable streamable)
setStreamable in interface StreamableEntitypublic 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 void setTagCount(Integer tagCount)
public final Integer getTagCount()
public 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 Integer getUserPlayCount()
getUserPlayCount in interface UserPlayCountEntitypublic void setUserPlayCount(Integer userPlayCount)
setUserPlayCount in interface UserPlayCountEntitypublic static PostQuery<Boolean> addTags(String artist, List<String> tags, String sk)
artist - The artist name in question (Required).tags - A comma delimited list of user supplied tags to apply to this artist (Required).
Accepts a maximum of 10 tags.public static UnauthenticatedGetQuery<ArrayList<Artist>> getCorrection(String artistName)
artistName - The artist name to correct (Required).public static UnauthenticatedGetQuery<PaginatedResult<List<Event>>> getEvents(String artist, String mbid, Boolean festivalsOnly, Integer limit, Integer page)
artist - The artist name (Required unless mbid).mbid - The musicbrainz id for the artist (Optional).festivalsOnly - Whether only festivals should be returned, or all events (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<PaginatedResult<List<Image>>> getImages(String artist, String mbid, String order, Integer limit, Integer page)
artist - The artist name in question (Required unless mbid).mbid - The musicbrainz id for the artist (Optional).order - Sort ordering can be either 'popularity' (default) or 'dateadded' (Optional).
While ordering by popularity officially selected images by labels and artists will
be ordered first. This is ignored and set to 'dateadded' when requested as rss.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<Artist> getInfo(String artist, String mbid, String username, net.dontdrinkandroot.utils.ISO_3166_1_alpha2 lang)
artist - The artist name in question (Optional).mbid - The musicbrainz id for the artist (Optional).username - The username for the context of the request (Optional). If supplied, the user's
playcount for this artist is included in the response.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 mbid, Integer limit, Integer page)
artist - The artist name (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<Artist>> getSimilar(String artist, String mbid, Integer limit)
artist - The artist name in question (Required unless mbid).mbid - The musicbrainz id for the artist (Optional).limit - Limit the number of similar artists returned (Optional).public static UnauthenticatedGetQuery<ArrayList<Tag>> getTags(String artist, String mbid, String user)
artist - The artist name in question (Required).mbid - The musicbrainz id for the artist (Optional).user - The User to look up. (Required).public static UnauthenticatedGetQuery<ArrayList<Tag>> getTopTags(String artist, String mbid)
artist - The artist name in question (Required unless mbid).mbid - The musicbrainz id for the artist (Optional).public static UnauthenticatedGetQuery<PaginatedResult<List<Track>>> getTopTracks(String artist, String mbid, Integer limit, Integer page)
artist - The artist name in question (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). Default to 50.public static PostQuery<Boolean> removeTag(String artist, String tag, String sk)
artist - The artist name in question (Required).tag - A single user tag to remove from this artist (Required).sk - A session key generated by authenticating a user via the authentication protocol
(Required).Copyright © 2013 dontdrinkandroot. All Rights Reserved.