Package de.umass.lastfm
Class MusicEntry
- java.lang.Object
-
- de.umass.lastfm.ImageHolder
-
- de.umass.lastfm.MusicEntry
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringidprotected intlistenersprotected java.lang.Stringmbidprotected java.lang.Stringnameprotected intpercentageChangeThis property is only available on hype charts, likeChart.getHypedArtists(String)orGroup.getHype(String, String)protected intplaycountprotected booleanstreamableprotected java.util.Collection<java.lang.String>tagsprotected java.lang.Stringurlprotected intuserPlaycount-
Fields inherited from class de.umass.lastfm.ImageHolder
imageUrls
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMusicEntry(java.lang.String name, java.lang.String url)protectedMusicEntry(java.lang.String name, java.lang.String url, java.lang.String mbid, int playcount, int listeners, boolean streamable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetId()intgetListeners()java.lang.StringgetMbid()java.lang.StringgetName()intgetPercentageChange()Returns the value of the "percentage change" fields in weekly hype charts responses, such as inGroup.getHype(String, String)orChart.getHypedArtists(String).intgetPlaycount()java.util.Collection<java.lang.String>getTags()java.lang.StringgetUrl()intgetUserPlaycount()java.util.DategetWikiLastChanged()java.lang.StringgetWikiSummary()java.lang.StringgetWikiText()booleanisStreamable()protected static voidloadStandardInfo(MusicEntry entry, DomElement element)Loads all generic information from an XMLDomElementinto the givenMusicEntryinstance, i.e.-
Methods inherited from class de.umass.lastfm.ImageHolder
availableSizes, getImageURL, loadImages
-
-
-
-
Field Detail
-
name
protected java.lang.String name
-
url
protected java.lang.String url
-
mbid
protected java.lang.String mbid
-
playcount
protected int playcount
-
userPlaycount
protected int userPlaycount
-
listeners
protected int listeners
-
streamable
protected boolean streamable
-
id
protected java.lang.String id
-
percentageChange
protected int percentageChange
This property is only available on hype charts, likeChart.getHypedArtists(String)orGroup.getHype(String, String)
-
tags
protected java.util.Collection<java.lang.String> tags
-
-
Method Detail
-
getListeners
public int getListeners()
-
getMbid
public java.lang.String getMbid()
-
getName
public java.lang.String getName()
-
getId
public java.lang.String getId()
-
getPlaycount
public int getPlaycount()
-
getUserPlaycount
public int getUserPlaycount()
-
isStreamable
public boolean isStreamable()
-
getUrl
public java.lang.String getUrl()
-
getTags
public java.util.Collection<java.lang.String> getTags()
-
getPercentageChange
public int getPercentageChange()
Returns the value of the "percentage change" fields in weekly hype charts responses, such as inGroup.getHype(String, String)orChart.getHypedArtists(String).- Returns:
- Weekly percentage change
-
loadStandardInfo
protected static void loadStandardInfo(MusicEntry entry, DomElement element)
Loads all generic information from an XMLDomElementinto the givenMusicEntryinstance, i.e. the following tags:
- playcount/plays
- listeners
- streamable
- name
- url
- mbid
- image
- tags
- Parameters:
entry- An entryelement- XML source element
-
getWikiLastChanged
public java.util.Date getWikiLastChanged()
-
getWikiSummary
public java.lang.String getWikiSummary()
-
getWikiText
public java.lang.String getWikiText()
-
-