|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.dontdrinkandroot.lastfm.api.model.LfmEntity
net.dontdrinkandroot.lastfm.api.model.Artist
public class Artist
| Field Summary | |
|---|---|
static java.util.Map<ImageSize,java.net.URL> |
DEFAULT_IMAGES
|
| Constructor Summary | |
|---|---|
Artist(org.w3c.dom.Element element)
Create an Artist from an xml element. |
|
Artist(java.lang.String name)
|
|
| Method Summary | |
|---|---|
static PostQuery<java.lang.Boolean> |
addTags(java.lang.String artist,
java.util.List<java.lang.String> tags,
java.lang.String sk)
Tag an artist with one or more user supplied tags. |
boolean |
equals(java.lang.Object obj)
|
static UnauthenticatedGetQuery<java.util.ArrayList<Artist>> |
getCorrection(java.lang.String artistName)
Use the last.fm corrections data to check whether the supplied artist has a correction to a canonical artist |
static UnauthenticatedGetQuery<PaginatedResult<java.util.List<Event>>> |
getEvents(java.lang.String artist,
java.lang.String mbid,
java.lang.Boolean festivalsOnly,
java.lang.Integer limit,
java.lang.Integer page)
Get a list of upcoming events for this artist. |
java.util.Map<ImageSize,java.net.URL> |
getImages()
|
static UnauthenticatedGetQuery<PaginatedResult<java.util.List<Image>>> |
getImages(java.lang.String artist,
java.lang.String mbid,
java.lang.String order,
java.lang.Integer limit,
java.lang.Integer page)
Get Images for this artist in a variety of sizes. |
static UnauthenticatedGetQuery<Artist> |
getInfo(java.lang.String artist,
java.lang.String mbid,
java.lang.String username,
net.dontdrinkandroot.utils.ISO_3166_1_alpha2 lang)
Get the metadata for an artist on Last.fm. |
java.lang.Integer |
getListeners()
|
java.lang.Float |
getMatch()
|
java.lang.String |
getMbid()
|
java.lang.String |
getName()
|
java.lang.Integer |
getPlayCount()
|
java.lang.Integer |
getRank()
|
static UnauthenticatedGetQuery<PaginatedResult<java.util.List<Shout>>> |
getShouts(java.lang.String artist,
java.lang.String mbid,
java.lang.Integer limit,
java.lang.Integer page)
Get shouts for this artist. |
java.util.List<Artist> |
getSimilar()
|
static UnauthenticatedGetQuery<java.util.ArrayList<Artist>> |
getSimilar(java.lang.String artist,
java.lang.String mbid,
java.lang.Integer limit)
Get all the artists similar to this artist. |
Streamable |
getStreamable()
|
java.lang.Integer |
getTagCount()
|
java.util.List<Tag> |
getTags()
|
static UnauthenticatedGetQuery<java.util.ArrayList<Tag>> |
getTags(java.lang.String artist,
java.lang.String mbid,
java.lang.String user)
Get the tags applied by an individual user to an artist on Last.fm. |
static UnauthenticatedGetQuery<java.util.ArrayList<Tag>> |
getTopTags(java.lang.String artist,
java.lang.String mbid)
Get the top tags for an artist on Last.fm, ordered by popularity. |
static UnauthenticatedGetQuery<PaginatedResult<java.util.List<Track>>> |
getTopTracks(java.lang.String artist,
java.lang.String mbid,
java.lang.Integer limit,
java.lang.Integer page)
Get the top tracks by an artist on Last.fm, ordered by popularity |
java.net.URL |
getUrl()
|
java.lang.Integer |
getUserPlayCount()
|
Wiki |
getWiki()
|
int |
hashCode()
|
static PostQuery<java.lang.Boolean> |
removeTag(java.lang.String artist,
java.lang.String tag,
java.lang.String sk)
Remove a user's tag from an artist. |
void |
setImages(java.util.Map<ImageSize,java.net.URL> images)
|
void |
setListeners(java.lang.Integer listeners)
|
void |
setMatch(java.lang.Float match)
|
void |
setMbid(java.lang.String mbid)
|
void |
setName(java.lang.String name)
|
void |
setPlayCount(java.lang.Integer playCount)
|
void |
setRank(java.lang.Integer rank)
|
void |
setSimilar(java.util.List<Artist> similar)
|
void |
setStreamable(Streamable streamable)
|
void |
setTagCount(java.lang.Integer tagCount)
|
void |
setTags(java.util.List<Tag> tags)
|
void |
setUrl(java.net.URL url)
|
void |
setUserPlayCount(java.lang.Integer userPlayCount)
|
void |
setWiki(Wiki wiki)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final transient java.util.Map<ImageSize,java.net.URL> DEFAULT_IMAGES
| Constructor Detail |
|---|
public Artist(org.w3c.dom.Element element)
element - The xml element to convert.public Artist(java.lang.String name)
| Method Detail |
|---|
public final java.lang.Float getMatch()
getMatch in interface MatchEntitypublic final void setMatch(java.lang.Float match)
setMatch in interface MatchEntitypublic final java.lang.Integer getRank()
getRank in interface RankEntitypublic final void setRank(java.lang.Integer rank)
setRank in interface RankEntitypublic final java.lang.String getMbid()
getMbid in interface MbidEntitypublic final void setMbid(java.lang.String mbid)
setMbid in interface MbidEntitypublic final java.lang.String getName()
getName in interface NameEntitypublic final void setName(java.lang.String name)
setName in interface NameEntitypublic final java.net.URL getUrl()
getUrl in interface UrlEntitypublic final void setUrl(java.net.URL url)
setUrl in interface UrlEntitypublic final java.util.Map<ImageSize,java.net.URL> getImages()
getImages in interface ImageEntitypublic final void setImages(java.util.Map<ImageSize,java.net.URL> images)
setImages in interface ImageEntitypublic final Streamable getStreamable()
getStreamable in interface StreamableEntitypublic final void setStreamable(Streamable streamable)
setStreamable in interface StreamableEntitypublic final java.lang.Integer getListeners()
getListeners in interface ListenersEntitypublic final void setListeners(java.lang.Integer listeners)
setListeners in interface ListenersEntitypublic final java.lang.Integer getPlayCount()
getPlayCount in interface PlayCountEntitypublic final void setPlayCount(java.lang.Integer playCount)
setPlayCount in interface PlayCountEntitypublic final void setTagCount(java.lang.Integer tagCount)
public final java.lang.Integer getTagCount()
public final java.util.List<Artist> getSimilar()
public final void setSimilar(java.util.List<Artist> similar)
public final java.util.List<Tag> getTags()
getTags in interface TagsEntitypublic final void setTags(java.util.List<Tag> tags)
setTags in interface TagsEntitypublic final Wiki getWiki()
getWiki in interface WikiEntitypublic final void setWiki(Wiki wiki)
setWiki in interface WikiEntitypublic java.lang.Integer getUserPlayCount()
getUserPlayCount in interface UserPlayCountEntitypublic void setUserPlayCount(java.lang.Integer userPlayCount)
setUserPlayCount in interface UserPlayCountEntitypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic final java.lang.String toString()
toString in class java.lang.Object
public static PostQuery<java.lang.Boolean> addTags(java.lang.String artist,
java.util.List<java.lang.String> tags,
java.lang.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<java.util.ArrayList<Artist>> getCorrection(java.lang.String artistName)
artistName - The artist name to correct (Required).
public static UnauthenticatedGetQuery<PaginatedResult<java.util.List<Event>>> getEvents(java.lang.String artist,
java.lang.String mbid,
java.lang.Boolean festivalsOnly,
java.lang.Integer limit,
java.lang.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<java.util.List<Image>>> getImages(java.lang.String artist,
java.lang.String mbid,
java.lang.String order,
java.lang.Integer limit,
java.lang.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(java.lang.String artist,
java.lang.String mbid,
java.lang.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<java.util.List<Shout>>> getShouts(java.lang.String artist,
java.lang.String mbid,
java.lang.Integer limit,
java.lang.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<java.util.ArrayList<Artist>> getSimilar(java.lang.String artist,
java.lang.String mbid,
java.lang.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<java.util.ArrayList<Tag>> getTags(java.lang.String artist,
java.lang.String mbid,
java.lang.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<java.util.ArrayList<Tag>> getTopTags(java.lang.String artist,
java.lang.String mbid)
artist - The artist name in question (Required unless mbid).mbid - The musicbrainz id for the artist (Optional).
public static UnauthenticatedGetQuery<PaginatedResult<java.util.List<Track>>> getTopTracks(java.lang.String artist,
java.lang.String mbid,
java.lang.Integer limit,
java.lang.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<java.lang.Boolean> removeTag(java.lang.String artist,
java.lang.String tag,
java.lang.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).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||