Modifier | Constructor and Description |
---|---|
private |
Library() |
Modifier and Type | Method and Description |
---|---|
static Result |
addAlbum(String artist,
String album,
Session session)
Add an album to a user's Last.fm library
|
static Result |
addArtist(String artist,
Session session)
Add an artist to a user's Last.fm library
|
static Result |
addTrack(String artist,
String track,
Session session)
Add a track to a user's Last.fm library
|
static PaginatedResult<Album> |
getAlbums(String user,
int page,
int limit,
String apiKey)
Retrieves a paginated list of all the albums in a user's library.
|
static PaginatedResult<Album> |
getAlbums(String user,
int page,
String apiKey)
Retrieves a paginated list of all the albums in a user's library.
|
static PaginatedResult<Album> |
getAlbums(String user,
String apiKey)
Retrieves a paginated list of all the albums in a user's library.
|
static Collection<Album> |
getAllAlbums(String user,
String apiKey)
Retrieves all albums in a user's library.
|
static Collection<Artist> |
getAllArtists(String user,
String apiKey)
Retrieves all artists in a user's library.
|
static Collection<Track> |
getAllTracks(String user,
String apiKey)
Retrieves all tracks in a user's library.
|
static PaginatedResult<Artist> |
getArtists(String user,
int page,
int limit,
String apiKey)
Retrieves a paginated list of all the artists in a user's library.
|
static PaginatedResult<Artist> |
getArtists(String user,
int page,
String apiKey)
Retrieves a paginated list of all the artists in a user's library.
|
static PaginatedResult<Artist> |
getArtists(String user,
String apiKey)
Retrieves a paginated list of all the artists in a user's library.
|
static PaginatedResult<Track> |
getTracks(String user,
int page,
int limit,
String apiKey)
Retrieves a paginated list of all the tracks in a user's library.
|
static PaginatedResult<Track> |
getTracks(String user,
int page,
String apiKey)
Retrieves a paginated list of all the tracks in a user's library.
|
static PaginatedResult<Track> |
getTracks(String user,
String apiKey)
Retrieves a paginated list of all the tracks in a user's library.
|
static Result |
removeAlbum(String artist,
String album,
Session session)
Remove an album from a user's Last.fm library
|
static Result |
removeArtist(String artist,
Session session)
Remove an artist from a user's Last.fm library
|
static Result |
removeScrobble(String artist,
String track,
long timestamp,
Session session)
Remove a scrobble from a user's Last.fm library
|
static Result |
removeTrack(String artist,
String track,
Session session)
Remove a track from a user's Last.fm library
|
private Library()
public static PaginatedResult<Artist> getArtists(String user, String apiKey)
user
- The user whose library you want to fetch.apiKey
- A Last.fm API key.PaginatedResult
of the artistspublic static PaginatedResult<Artist> getArtists(String user, int page, String apiKey)
user
- The user whose library you want to fetch.page
- The page number you wish to scan to.apiKey
- A Last.fm API key.PaginatedResult
of the artistspublic static PaginatedResult<Artist> getArtists(String user, int page, int limit, String apiKey)
user
- The user whose library you want to fetch.page
- The page number you wish to scan to.limit
- Limit the number of artists returned (maximum/default is 50).apiKey
- A Last.fm API key.PaginatedResult
of the artistspublic static Collection<Artist> getAllArtists(String user, String apiKey)
user
- The user whose library you want to fetch.apiKey
- A Last.fm API key.public static PaginatedResult<Album> getAlbums(String user, String apiKey)
user
- The user whose library you want to fetch.apiKey
- A Last.fm API key.PaginatedResult
of the albumspublic static PaginatedResult<Album> getAlbums(String user, int page, String apiKey)
user
- The user whose library you want to fetch.page
- The page number you wish to scan to.apiKey
- A Last.fm API key.PaginatedResult
of the albumspublic static PaginatedResult<Album> getAlbums(String user, int page, int limit, String apiKey)
user
- The user whose library you want to fetch.page
- The page number you wish to scan to.limit
- Limit the number of albums returned (maximum/default is 50).apiKey
- A Last.fm API key.PaginatedResult
of the albumspublic static Collection<Album> getAllAlbums(String user, String apiKey)
user
- The user whose library you want to fetch.apiKey
- A Last.fm API key.public static PaginatedResult<Track> getTracks(String user, String apiKey)
user
- The user whose library you want to fetch.apiKey
- A Last.fm API key.PaginatedResult
of the trackspublic static PaginatedResult<Track> getTracks(String user, int page, String apiKey)
user
- The user whose library you want to fetch.page
- The page number you wish to scan to.apiKey
- A Last.fm API key.PaginatedResult
of the trackspublic static PaginatedResult<Track> getTracks(String user, int page, int limit, String apiKey)
user
- The user whose library you want to fetch.page
- The page number you wish to scan to.limit
- Limit the number of albums returned (maximum/default is 50).apiKey
- A Last.fm API key.PaginatedResult
of the trackspublic static Collection<Track> getAllTracks(String user, String apiKey)
user
- The user whose library you want to fetch.apiKey
- A Last.fm API key.public static Result addArtist(String artist, Session session)
artist
- The artist name you wish to addsession
- A Session instancepublic static Result addAlbum(String artist, String album, Session session)
artist
- The artist that composed the trackalbum
- The album name you wish to addsession
- A Session instancepublic static Result addTrack(String artist, String track, Session session)
artist
- The artist that composed the tracktrack
- The track name you wish to addsession
- A Session instancepublic static Result removeArtist(String artist, Session session)
artist
- The artist name you wish to removesession
- A Session instancepublic static Result removeAlbum(String artist, String album, Session session)
artist
- The artist that composed the albumalbum
- The name of the album you wish to removesession
- A Session instancepublic static Result removeTrack(String artist, String track, Session session)
artist
- The artist that composed the tracktrack
- The name of the track that you wish to removesession
- A Session instancepublic static Result removeScrobble(String artist, String track, long timestamp, Session session)
artist
- The artist that composed the tracktrack
- The name of the tracktimestamp
- The unix timestamp of the scrobble that you wish to removesession
- A Session instanceWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses