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.String
id
protected int
listeners
protected java.lang.String
mbid
protected java.lang.String
name
protected int
percentageChange
This property is only available on hype charts, likeChart.getHypedArtists(String)
orGroup.getHype(String, String)
protected int
playcount
protected boolean
streamable
protected java.util.Collection<java.lang.String>
tags
protected java.lang.String
url
protected int
userPlaycount
-
Fields inherited from class de.umass.lastfm.ImageHolder
imageUrls
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
MusicEntry(java.lang.String name, java.lang.String url)
protected
MusicEntry(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.String
getId()
int
getListeners()
java.lang.String
getMbid()
java.lang.String
getName()
int
getPercentageChange()
Returns the value of the "percentage change" fields in weekly hype charts responses, such as inGroup.getHype(String, String)
orChart.getHypedArtists(String)
.int
getPlaycount()
java.util.Collection<java.lang.String>
getTags()
java.lang.String
getUrl()
int
getUserPlaycount()
java.util.Date
getWikiLastChanged()
java.lang.String
getWikiSummary()
java.lang.String
getWikiText()
boolean
isStreamable()
protected static void
loadStandardInfo(MusicEntry entry, DomElement element)
Loads all generic information from an XMLDomElement
into the givenMusicEntry
instance, 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 XMLDomElement
into the givenMusicEntry
instance, 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()
-
-