public final class SDIGetReleaseTracksRequest extends SDIAbsXmlRequest<SDIGetReleaseTracksRequest.Result>
Modifier and Type | Class and Description |
---|---|
static class |
SDIGetReleaseTracksRequest.Response |
static class |
SDIGetReleaseTracksRequest.Result |
static class |
SDIGetReleaseTracksRequest.ResultCode |
static class |
SDIGetReleaseTracksRequest.XMLTracksResult |
SDIAbsXmlRequest.Error, SDIAbsXmlRequest.XMLArtist, SDIAbsXmlRequest.XMLBio, SDIAbsXmlRequest.XMLCurrency, SDIAbsXmlRequest.XMLLabel, SDIAbsXmlRequest.XMLLicensor, SDIAbsXmlRequest.XMLPrice, SDIAbsXmlRequest.XMLRelease, SDIAbsXmlRequest.XMLTrack
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 |
---|
SDIGetReleaseTracksRequest() |
Modifier and Type | Method and Description |
---|---|
static SDIGetReleaseTracksRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String releaseId)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
static SDIGetReleaseTracksRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String releaseId,
int page)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
static SDIGetReleaseTracksRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String releaseId,
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 SDIGetReleaseTracksRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String releaseId,
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).
|
static SDIGetReleaseTracksRequest.Response |
parseResponse(org.simpleframework.xml.Serializer serializer,
java.lang.String xmlResponse) |
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 SDIGetReleaseTracksRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String releaseId) throws java.io.UnsupportedEncodingException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.lang.Exception
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.releaseId
- The search releaseId string.java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
java.security.SignatureException
java.io.UnsupportedEncodingException
java.lang.Exception
public static SDIGetReleaseTracksRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String releaseId, int page) throws java.io.UnsupportedEncodingException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.lang.Exception
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.releaseId
- The search releaseId string.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
java.io.UnsupportedEncodingException
java.lang.Exception
public static SDIGetReleaseTracksRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String releaseId, int page, int pageSize) throws java.io.UnsupportedEncodingException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.lang.Exception
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.releaseId
- The search releaseId string.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
java.io.UnsupportedEncodingException
java.lang.Exception
public static SDIGetReleaseTracksRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String releaseId, java.lang.String country, java.lang.Integer imageSize) throws java.io.UnsupportedEncodingException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.lang.Exception
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.releaseId
- The search releaseId string.country
- 2 letter ISO country code of the country whose artists you would like to searchimageSize
- 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
java.io.UnsupportedEncodingException
java.lang.Exception
public static SDIGetReleaseTracksRequest.Response parseResponse(org.simpleframework.xml.Serializer serializer, java.lang.String xmlResponse) throws java.lang.Exception
java.lang.Exception