public final class SDIGetArtistReleasesRequest extends SDIAbsJsonRequest<SDIGetArtistReleasesRequest.Result>
Modifier and Type | Class and Description |
---|---|
static class |
SDIGetArtistReleasesRequest.Result |
static class |
SDIGetArtistReleasesRequest.ResultCode |
SDIAbsJsonRequest.JsonArtist, SDIAbsJsonRequest.JsonChart<T>, SDIAbsJsonRequest.JsonPrice, SDIAbsJsonRequest.JsonRelease, SDIAbsJsonRequest.JsonTrack
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_PAGE_SIZE |
static java.lang.String |
DEFAULT_PERIOD |
static int |
MAX_PAGE_SIZE |
Constructor and Description |
---|
SDIGetArtistReleasesRequest() |
Modifier and Type | Method and Description |
---|---|
static SDIGetArtistReleasesRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String artistId)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
static SDIGetArtistReleasesRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String artistId,
int page)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
static SDIGetArtistReleasesRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String artistId,
int page,
int pageSize)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
static SDIGetArtistReleasesRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String artistId,
int page,
int pageSize,
java.lang.String type,
java.lang.String streamable,
java.lang.String licensorId,
java.lang.String country,
java.lang.Integer imageSize)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
addUserAgent
public static final java.lang.String DEFAULT_PERIOD
public static final int DEFAULT_PAGE_SIZE
public static final int MAX_PAGE_SIZE
public static SDIGetArtistReleasesRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String artistId) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.artistId
- The unique identifier of the artist.java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
java.security.SignatureException
public static SDIGetArtistReleasesRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String artistId, int page) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.artistId
- The unique identifier of the artist.page
- Page number of the result set. If not supplied, defaults to 1java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
java.security.SignatureException
public static SDIGetArtistReleasesRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String artistId, int page, int pageSize) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.artistId
- The unique identifier of the artist.page
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
java.security.SignatureException
public static SDIGetArtistReleasesRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String artistId, int page, int pageSize, java.lang.String type, java.lang.String streamable, java.lang.String licensorId, java.lang.String country, java.lang.Integer imageSize) throws java.io.IOException, java.util.concurrent.ExecutionException, java.lang.InterruptedException
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.artistId
- The unique identifier of the artist.type
- Releases can be of type album, single or video. If specified, results are filtered by release type.streamable
- If provided search results will contain only artists that can/cannot be streamedlicensorId
- If provided search results will contain only artists from this licensor. A minus sign prefix excludes artists from
that licensor (e.g. -5)country
- 2 letter ISO country code of the country whose artists you would like to searchpage
- Page number of the result set. If not supplied, defaults to 1pageSize
- Number of items to be returned per page. If not supplied, defaults to 10. Maximum page size is 500imageSize
- The requested width of the image in pixelsjava.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
java.security.SignatureException