public final class SDIGetTrackChartsRequest extends SDIAbsJsonRequest<SDIGetTrackChartsRequest.Result>
Modifier and Type | Class and Description |
---|---|
static class |
SDIGetTrackChartsRequest.Result |
static class |
SDIGetTrackChartsRequest.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 |
---|
SDIGetTrackChartsRequest() |
Modifier and Type | Method and Description |
---|---|
static SDIGetTrackChartsRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
int page) |
static SDIGetTrackChartsRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
int page,
int pageSize) |
static SDIGetTrackChartsRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
int page,
int pageSize,
java.lang.String period,
java.lang.String toDate,
java.lang.Boolean streamable,
java.lang.Integer 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 SDIGetTrackChartsRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, int page) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException, java.security.SignatureException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
java.io.IOException
java.security.SignatureException
public static SDIGetTrackChartsRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, int page, int pageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException, java.security.SignatureException
java.lang.InterruptedException
java.util.concurrent.ExecutionException
com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.databind.JsonMappingException
java.io.IOException
java.security.SignatureException
public static SDIGetTrackChartsRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, int page, int pageSize, java.lang.String period, java.lang.String toDate, java.lang.Boolean streamable, java.lang.Integer licensorId, java.lang.String country, java.lang.Integer imageSize) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, java.io.IOException, java.security.SignatureException
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.page
- The page to retrieve (note: one-indexed).pageSize
- The size of the page to retrieve. This value must not exceed MAX_PAGE_SIZE
.period
- optional The time period for which the chart is generated. Default value is a week.toDate
- format is YYYYMMDD optional The last day the chart should include data for. If not provided, by default the most recent
chart for requested period will be returned.streamable
- optional If provided search results will contain only tracks that can/cannot be streamedlicensorId
- optional If provided search results will contain only tracks from this licensor. A minus sign prefix excludes
tracks from that licensor (e.g. -5)country
- optional 2 letter ISO country code of the country whose tracks you would like to searchimageSize
- optional 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