public abstract class MusicLookup extends Object
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BASE_LOOKUP_URL |
protected static com.neovisionaries.i18n.CountryCode |
DEFAULT_COUNTRY |
protected static int |
DEFAULT_LIMIT |
| Constructor and Description |
|---|
MusicLookup() |
| Modifier and Type | Method and Description |
|---|---|
protected static org.json.JSONObject |
executeQuery(String urlString) |
static org.json.JSONObject |
getAlbumById(long id)
get an album by it's id
|
protected static org.json.JSONObject |
getById(long id)
retrieve a media item by its id
|
static org.json.JSONObject |
getSongById(long id)
get a song by it's id
|
static org.json.JSONObject |
hotTracks()
get the top 100 hot tracks in the default iTunes store
|
static org.json.JSONObject |
hotTracks(com.neovisionaries.i18n.CountryCode countryCode)
get the top 100 hot tracks in the specified iTunes store
|
static org.json.JSONObject |
hotTracks(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
get the top (limit) hot tracks in the specified iTunes store
|
static org.json.JSONObject |
hotTracks(int limit)
get the top (limit) hot tracks in the default iTunes store
|
static org.json.JSONObject |
newMusic()
get the top 100 new songs in the default iTunes store
|
static org.json.JSONObject |
newMusic(com.neovisionaries.i18n.CountryCode countryCode)
get the top 100 new songs in the specified iTunes store
|
static org.json.JSONObject |
newMusic(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
get the top (limit) new songs in the specified iTunes store
|
static org.json.JSONObject |
newMusic(int limit)
get the top (limit) new songs in the default iTunes store
|
static org.json.JSONObject |
recentReleases()
get the top 100 recent releases in the default iTunes store
|
static org.json.JSONObject |
recentReleases(com.neovisionaries.i18n.CountryCode countryCode)
get the top 100 recent releases in the specified iTunes store
|
static org.json.JSONObject |
recentReleases(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
get the top (limit) recent releases in the specified iTunes store
|
static org.json.JSONObject |
recentReleases(int limit)
get the top (limit) recent releases in the default iTunes store
|
static org.json.JSONObject |
topAlbums()
get the top 100 top albums in the default iTunes store
|
static org.json.JSONObject |
topAlbums(com.neovisionaries.i18n.CountryCode countryCode)
get the top 100 top albums in the specified iTunes store
|
static org.json.JSONObject |
topAlbums(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
get the top (limit) top albums in the specified iTunes store
|
static org.json.JSONObject |
topAlbums(int limit)
get the top (limit) top albums in the default iTunes store
|
static org.json.JSONObject |
topSongs()
get the top 100 songs in the default iTunes store
|
static org.json.JSONObject |
topSongs(com.neovisionaries.i18n.CountryCode countryCode)
get the top 100 songs in the specified iTunes store
|
static org.json.JSONObject |
topSongs(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
get the top (limit) songs in the specified iTunes store
|
static org.json.JSONObject |
topSongs(int limit)
get the top (limit) songs in the default iTunes store
|
protected static final String BASE_LOOKUP_URL
protected static final int DEFAULT_LIMIT
protected static final com.neovisionaries.i18n.CountryCode DEFAULT_COUNTRY
public static org.json.JSONObject getSongById(long id)
throws NoMatchFoundException
id - The id of the songNoMatchFoundException - if no song is found with the passed idpublic static org.json.JSONObject topSongs()
public static org.json.JSONObject topSongs(int limit)
limit - the maximum number of songs to returnpublic static org.json.JSONObject topSongs(com.neovisionaries.i18n.CountryCode countryCode)
countryCode - country code of the itunes store to searchpublic static org.json.JSONObject topSongs(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
countryCode - country code of the itunes store to searchlimit - the maximum number of songs to returnpublic static org.json.JSONObject hotTracks()
public static org.json.JSONObject hotTracks(int limit)
limit - the maximum number of songs to returnpublic static org.json.JSONObject hotTracks(com.neovisionaries.i18n.CountryCode countryCode)
countryCode - country code of the itunes store to searchpublic static org.json.JSONObject hotTracks(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
countryCode - country code of the itunes store to searchlimit - the maximum number of tracks to returnpublic static org.json.JSONObject newMusic()
public static org.json.JSONObject newMusic(int limit)
limit - the maximum number of songs to returnpublic static org.json.JSONObject newMusic(com.neovisionaries.i18n.CountryCode countryCode)
countryCode - country code of the itunes store to searchpublic static org.json.JSONObject newMusic(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
countryCode - country code of the itunes store to searchlimit - the maximum number of songs to returnpublic static org.json.JSONObject recentReleases()
public static org.json.JSONObject recentReleases(int limit)
limit - the maximum number of songs to returnpublic static org.json.JSONObject recentReleases(com.neovisionaries.i18n.CountryCode countryCode)
countryCode - country code of the itunes store to searchpublic static org.json.JSONObject recentReleases(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
countryCode - country code of the itunes store to searchlimit - the maximum number of songs to returnpublic static org.json.JSONObject getAlbumById(long id)
throws NoMatchFoundException
id - The id of the albumNoMatchFoundException - if no album is found with the passed idpublic static org.json.JSONObject topAlbums()
public static org.json.JSONObject topAlbums(int limit)
limit - the maximum number of songs to returnpublic static org.json.JSONObject topAlbums(com.neovisionaries.i18n.CountryCode countryCode)
countryCode - country code of the itunes store to searchpublic static org.json.JSONObject topAlbums(com.neovisionaries.i18n.CountryCode countryCode,
int limit)
countryCode - country code of the itunes store to searchlimit - the maximum number of songs to returnprotected static org.json.JSONObject getById(long id)
throws NoMatchFoundException
id - the itunes id for the itemNoMatchFoundException - if no matching item is foundprotected static org.json.JSONObject executeQuery(String urlString)
Copyright © 2018. All rights reserved.