|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.umass.lastfm.ImageHolder
de.umass.lastfm.User
Contains user information and provides bindings to the methods in the user. namespace.
Field Summary |
Fields inherited from class de.umass.lastfm.ImageHolder |
imageUrls |
Method Summary | |
int |
getAge()
|
static PaginatedResult |
getArtistTracks(String user,
String artist,
int page,
long startTimestamp,
long endTimestamp,
String apiKey)
Get a list of tracks by a given artist scrobbled by this user, including scrobble time. |
static PaginatedResult |
getArtistTracks(String user,
String artist,
String apiKey)
Get a list of tracks by a given artist scrobbled by this user, including scrobble time. |
static PaginatedResult |
getBannedTracks(String user,
int page,
String apiKey)
Returns the tracks banned by the user. |
static PaginatedResult |
getBannedTracks(String user,
String apiKey)
Returns the tracks banned by the user. |
String |
getCountry()
|
static Collection |
getEvents(String user,
String apiKey)
GetS a list of upcoming events that this user is attending. |
static PaginatedResult |
getFriends(String user,
boolean recenttracks,
int page,
int limit,
String apiKey)
|
static PaginatedResult |
getFriends(String user,
String apiKey)
|
String |
getGender()
|
String |
getId()
|
String |
getImageURL()
|
static User |
getInfo(String user,
String apiKey)
Retrieves profile information about the specified user. |
String |
getLanguage()
|
static PaginatedResult |
getLovedTracks(String user,
int page,
String apiKey)
Retrieves the loved tracks by a user. |
static PaginatedResult |
getLovedTracks(String user,
String apiKey)
Retrieves the loved tracks by a user. |
String |
getName()
|
static Collection |
getNeighbours(String user,
int limit,
String apiKey)
|
static Collection |
getNeighbours(String user,
String apiKey)
|
static Collection |
getNewReleases(String user,
boolean useRecommendations,
String apiKey)
Gets a list of forthcoming releases based on a user's musical taste. |
static Collection |
getNewReleases(String user,
String apiKey)
Gets a list of forthcoming releases based on a user's musical taste. |
int |
getNumPlaylists()
|
static PaginatedResult |
getPastEvents(String user,
int page,
String apiKey)
Gets a paginated list of all events a user has attended in the past. |
static PaginatedResult |
getPastEvents(String user,
String apiKey)
Get the first page of a paginated result of all events a user has attended in the past. |
int |
getPlaycount()
|
static Collection |
getPlaylists(String user,
String apiKey)
Gets a list of a user's playlists on Last.fm. |
String |
getRealname()
|
static PaginatedResult |
getRecentTracks(String user,
int page,
int limit,
String apiKey)
|
static PaginatedResult |
getRecentTracks(String user,
String apiKey)
|
static PaginatedResult |
getRecommendedArtists(int page,
Session session)
Get Last.fm artist recommendations for a user. |
static PaginatedResult |
getRecommendedArtists(Session session)
Get Last.fm artist recommendations for a user. |
static PaginatedResult |
getRecommendedEvents(int page,
Session session)
|
static PaginatedResult |
getRecommendedEvents(Session session)
|
Date |
getRegisteredDate()
|
static PaginatedResult |
getShouts(String user,
int page,
int limit,
String apiKey)
Get shouts for a user. |
static PaginatedResult |
getShouts(String user,
int page,
String apiKey)
Get shouts for a user. |
static PaginatedResult |
getShouts(String user,
String apiKey)
Get shouts for a user. |
static Collection |
getTopAlbums(String user,
String apiKey)
|
static Collection |
getTopAlbums(String user,
String period,
String apiKey)
|
static Collection |
getTopArtists(String user,
String apiKey)
|
static Collection |
getTopArtists(String user,
String period,
String apiKey)
|
static Collection |
getTopTags(String user,
int limit,
String apiKey)
|
static Collection |
getTopTags(String user,
String apiKey)
|
static Collection |
getTopTracks(String user,
String apiKey)
|
static Collection |
getTopTracks(String user,
String period,
String apiKey)
|
String |
getUrl()
|
static Chart |
getWeeklyAlbumChart(String user,
int limit,
String apiKey)
|
static Chart |
getWeeklyAlbumChart(String user,
String apiKey)
|
static Chart |
getWeeklyAlbumChart(String user,
String from,
String to,
int limit,
String apiKey)
|
static Chart |
getWeeklyArtistChart(String user,
int limit,
String apiKey)
|
static Chart |
getWeeklyArtistChart(String user,
String apiKey)
|
static Chart |
getWeeklyArtistChart(String user,
String from,
String to,
int limit,
String apiKey)
|
static LinkedHashMap |
getWeeklyChartList(String user,
String apiKey)
|
static Collection |
getWeeklyChartListAsCharts(String user,
String apiKey)
|
static Chart |
getWeeklyTrackChart(String user,
int limit,
String apiKey)
|
static Chart |
getWeeklyTrackChart(String user,
String apiKey)
|
static Chart |
getWeeklyTrackChart(String user,
String from,
String to,
int limit,
String apiKey)
|
boolean |
isSubscriber()
|
static Result |
shout(String user,
String message,
Session session)
Shout on this user's shoutbox |
Methods inherited from class de.umass.lastfm.ImageHolder |
availableSizes, getImageURL, loadImages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public String getName()
public String getRealname()
public String getUrl()
public int getAge()
public String getCountry()
public String getGender()
public String getLanguage()
public int getNumPlaylists()
public int getPlaycount()
public boolean isSubscriber()
public String getImageURL()
public String getId()
public Date getRegisteredDate()
public static PaginatedResult getArtistTracks(String user, String artist, String apiKey)
user
- The last.fm username to fetch the recent tracks ofartist
- The artist name you are interested inapiKey
- A Last.fm API key
public static PaginatedResult getArtistTracks(String user, String artist, int page, long startTimestamp, long endTimestamp, String apiKey)
user
- The last.fm username to fetch the recent tracks ofartist
- The artist name you are interested inpage
- An integer used to fetch a specific page of tracksstartTimestamp
- An unix timestamp to start atendTimestamp
- An unix timestamp to end atapiKey
- A Last.fm API key
public static PaginatedResult getFriends(String user, String apiKey)
public static PaginatedResult getFriends(String user, boolean recenttracks, int page, int limit, String apiKey)
public static Collection getNeighbours(String user, String apiKey)
public static Collection getNeighbours(String user, int limit, String apiKey)
public static PaginatedResult getRecentTracks(String user, String apiKey)
public static PaginatedResult getRecentTracks(String user, int page, int limit, String apiKey)
public static Collection getTopAlbums(String user, String apiKey)
public static Collection getTopAlbums(String user, String period, String apiKey)
public static Collection getTopArtists(String user, String apiKey)
public static Collection getTopArtists(String user, String period, String apiKey)
public static Collection getTopTracks(String user, String apiKey)
public static Collection getTopTracks(String user, String period, String apiKey)
public static Collection getTopTags(String user, String apiKey)
public static Collection getTopTags(String user, int limit, String apiKey)
public static Chart getWeeklyAlbumChart(String user, String apiKey)
public static Chart getWeeklyAlbumChart(String user, int limit, String apiKey)
public static Chart getWeeklyAlbumChart(String user, String from, String to, int limit, String apiKey)
public static Chart getWeeklyArtistChart(String user, String apiKey)
public static Chart getWeeklyArtistChart(String user, int limit, String apiKey)
public static Chart getWeeklyArtistChart(String user, String from, String to, int limit, String apiKey)
public static Chart getWeeklyTrackChart(String user, String apiKey)
public static Chart getWeeklyTrackChart(String user, int limit, String apiKey)
public static Chart getWeeklyTrackChart(String user, String from, String to, int limit, String apiKey)
public static LinkedHashMap getWeeklyChartList(String user, String apiKey)
public static Collection getWeeklyChartListAsCharts(String user, String apiKey)
public static Collection getEvents(String user, String apiKey)
user
- The user to fetch the events for.apiKey
- A Last.fm API key.
public static PaginatedResult getPastEvents(String user, String apiKey)
user
- The username to fetch the events for.apiKey
- A Last.fm API key.
Event
spublic static PaginatedResult getPastEvents(String user, int page, String apiKey)
user
- The username to fetch the events for.page
- The page number to scan to.apiKey
- A Last.fm API key.
Event
spublic static PaginatedResult getRecommendedEvents(Session session)
public static PaginatedResult getRecommendedEvents(int page, Session session)
public static Collection getPlaylists(String user, String apiKey)
Playlist.fetch()
.
user
- The last.fm username to fetch the playlists of.apiKey
- A Last.fm API key.
public static PaginatedResult getLovedTracks(String user, String apiKey)
user
- The user name to fetch the loved tracks for.apiKey
- A Last.fm API key.
public static PaginatedResult getLovedTracks(String user, int page, String apiKey)
user
- The user name to fetch the loved tracks for.page
- The page number to scan toapiKey
- A Last.fm API key.
public static User getInfo(String user, String apiKey)
user
- A usernameapiKey
- A Last.fm API key.
public static PaginatedResult getRecommendedArtists(Session session)
session
- A Session instance
Artist
spublic static PaginatedResult getRecommendedArtists(int page, Session session)
page
- The page to fetchsession
- A Session instance
Artist
spublic static Result shout(String user, String message, Session session)
user
- The name of the user to shout onmessage
- The message to post to the shoutboxsession
- A Session instance
public static Collection getNewReleases(String user, String apiKey)
user
- The Last.fm usernameapiKey
- A Last.fm API key
Album
releasespublic static Collection getNewReleases(String user, boolean useRecommendations, String apiKey)
user
- The Last.fm usernameuseRecommendations
- If true, the feed contains new releases based on Last.fm's artist recommendations for this user.
Otherwise, it is based on their library (the default)apiKey
- A Last.fm API key
Album
releasespublic static PaginatedResult getBannedTracks(String user, String apiKey)
user
- The user nameapiKey
- A Last.fm API key
public static PaginatedResult getBannedTracks(String user, int page, String apiKey)
user
- The user namepage
- The page number to fetchapiKey
- A Last.fm API key
public static PaginatedResult getShouts(String user, String apiKey)
user
- The username to fetch shouts forapiKey
- A Last.fm API key.
public static PaginatedResult getShouts(String user, int page, String apiKey)
user
- The username to fetch shouts forpage
- The page number to fetchapiKey
- A Last.fm API key.
public static PaginatedResult getShouts(String user, int page, int limit, String apiKey)
user
- The username to fetch shouts forpage
- The page number to fetchlimit
- An integer used to limit the number of shouts returned per page or -1 for defaultapiKey
- A Last.fm API key.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |