public class Tag extends LfmEntity implements NameEntity, UrlEntity, CountEntity, TaggingsEntity, ReachEntity, StreamableEntity, WikiEntity
| Constructor and Description |
|---|
Tag() |
Tag(Element element)
Construct Tag from dom Element.
|
Tag(String name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getCount() |
static UnauthenticatedGetQuery<Tag> |
getInfo(String tag,
net.dontdrinkandroot.utils.ISO_3166_1_alpha2 lang)
Get the metadata for a tag.
|
String |
getName() |
Integer |
getReach() |
Streamable |
getStreamable() |
Integer |
getTaggings() |
static UnauthenticatedGetQuery<PaginatedResult<List<Album>>> |
getTopAlbums(String tagName,
Integer limit,
Integer page)
Get the top albums tagged by this tag, ordered by tag count.
|
static UnauthenticatedGetQuery<PaginatedResult<List<Artist>>> |
getTopArtists(String tagName,
Integer limit,
Integer page)
Get the top artists tagged by this tag, ordered by tag count.
|
static UnauthenticatedGetQuery<ArrayList<Tag>> |
getTopTags()
Fetches the top global tags on Last.fm, sorted by popularity (number oftimes used).
|
static UnauthenticatedGetQuery<PaginatedResult<List<Track>>> |
getTopTracks(String tagName,
Integer limit,
Integer page)
Get the top tracks tagged by this tag, ordered by tag count.
|
URL |
getUrl() |
Wiki |
getWiki() |
int |
hashCode() |
void |
setCount(Integer count) |
void |
setName(String name) |
void |
setReach(Integer reach) |
void |
setStreamable(Streamable streamable) |
void |
setTaggings(Integer taggings) |
void |
setUrl(URL url) |
void |
setWiki(Wiki wiki) |
String |
toString() |
public Tag()
public Tag(Element element)
element - The dom Element to convert.public Tag(String name)
public final String getName()
getName in interface NameEntitypublic final void setName(String name)
setName in interface NameEntitypublic final Integer getCount()
getCount in interface CountEntitypublic final void setCount(Integer count)
setCount in interface CountEntitypublic final Integer getReach()
getReach in interface ReachEntitypublic final void setReach(Integer reach)
setReach in interface ReachEntitypublic final Integer getTaggings()
getTaggings in interface TaggingsEntitypublic final void setTaggings(Integer taggings)
setTaggings in interface TaggingsEntitypublic final Streamable getStreamable()
getStreamable in interface StreamableEntitypublic final void setStreamable(Streamable streamable)
setStreamable in interface StreamableEntitypublic final Wiki getWiki()
getWiki in interface WikiEntitypublic final void setWiki(Wiki wiki)
setWiki in interface WikiEntitypublic static UnauthenticatedGetQuery<Tag> getInfo(String tag, net.dontdrinkandroot.utils.ISO_3166_1_alpha2 lang)
tag - The tag name (Required).lang - The language to return the wiki in, expressed as an ISO 639 alpha-2 code
(Optional).public static UnauthenticatedGetQuery<PaginatedResult<List<Album>>> getTopAlbums(String tagName, Integer limit, Integer page)
tagName - The tag name (Required).limit - The number of results to fetch per page (Optional). Defaults to 50.page - he page number to fetch (Optional). Defaults to first page.public static UnauthenticatedGetQuery<PaginatedResult<List<Artist>>> getTopArtists(String tagName, Integer limit, Integer page)
tagName - The tag name (Required).limit - The number of results to fetch per page (Optional). Defaults to 50.page - he page number to fetch (Optional). Defaults to first page.public static UnauthenticatedGetQuery<ArrayList<Tag>> getTopTags()
public static UnauthenticatedGetQuery<PaginatedResult<List<Track>>> getTopTracks(String tagName, Integer limit, Integer page)
tagName - The tag name (Required).limit - The number of results to fetch per page (Optional). Defaults to 50.page - he page number to fetch (Optional). Defaults to first page.Copyright © 2013 dontdrinkandroot. All Rights Reserved.