de.umass.lastfm
Class Chart

java.lang.Object
  extended byde.umass.lastfm.Chart

public class Chart
extends Object

Bean for Chart information. Contains a start date, an end date and a list of entries.

Author:
Janni Kovacs

Constructor Summary
Chart(Date from, Date to, Collection entries)
           
 
Method Summary
 Collection getEntries()
           
 Date getFrom()
           
static PaginatedResult getHypedArtists(int page, String apiKey)
          Get the hyped artists chart.
static PaginatedResult getHypedArtists(String apiKey)
          Get the hyped artists chart.
static PaginatedResult getHypedTracks(int page, String apiKey)
          Get the hyped tracks chart.
static PaginatedResult getHypedTracks(String apiKey)
          Get the hyped tracks chart.
static PaginatedResult getLovedTracks(int page, String apiKey)
          Get the most loved tracks chart.
static PaginatedResult getLovedTracks(String apiKey)
          Get the most loved tracks chart.
 Date getTo()
           
static PaginatedResult getTopArtists(int page, String apiKey)
          Get the top artists chart.
static PaginatedResult getTopArtists(String apiKey)
          Get the top artists chart.
static PaginatedResult getTopTags(int page, String apiKey)
          Get the top tags chart.
static PaginatedResult getTopTags(String apiKey)
          Get the top tags chart.
static PaginatedResult getTopTracks(int page, String apiKey)
          Get the top tracks chart.
static PaginatedResult getTopTracks(String apiKey)
          Get the top tracks chart.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Chart

public Chart(Date from,
             Date to,
             Collection entries)
Method Detail

getEntries

public Collection getEntries()

getFrom

public Date getFrom()

getTo

public Date getTo()

getTopArtists

public static PaginatedResult getTopArtists(String apiKey)
Get the top artists chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Top artists chart

getTopArtists

public static PaginatedResult getTopArtists(int page,
                                            String apiKey)
Get the top artists chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Top artists chart

getTopTags

public static PaginatedResult getTopTags(String apiKey)
Get the top tags chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Top tags chart

getTopTags

public static PaginatedResult getTopTags(int page,
                                         String apiKey)
Get the top tags chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Top tags chart

getTopTracks

public static PaginatedResult getTopTracks(String apiKey)
Get the top tracks chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Top tracks chart

getTopTracks

public static PaginatedResult getTopTracks(int page,
                                           String apiKey)
Get the top tracks chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Top tracks chart

getLovedTracks

public static PaginatedResult getLovedTracks(String apiKey)
Get the most loved tracks chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Most loved tracks chart

getLovedTracks

public static PaginatedResult getLovedTracks(int page,
                                             String apiKey)
Get the most loved tracks chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Most loved tracks chart

getHypedTracks

public static PaginatedResult getHypedTracks(String apiKey)
Get the hyped tracks chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Hyped tracks chart

getHypedTracks

public static PaginatedResult getHypedTracks(int page,
                                             String apiKey)
Get the hyped tracks chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Hyped tracks chart

getHypedArtists

public static PaginatedResult getHypedArtists(String apiKey)
Get the hyped artists chart.

Parameters:
apiKey - A Last.fm API key
Returns:
Hyped artists chart

getHypedArtists

public static PaginatedResult getHypedArtists(int page,
                                              String apiKey)
Get the hyped artists chart.

Parameters:
page - The page to fetch
apiKey - A Last.fm API key
Returns:
Hyped artists chart