public final class SDIGetArtistChartsRequest extends SDIAbsJsonRequest<SDIGetArtistChartsRequest.Result>
Modifier and Type | Class and Description |
---|---|
static class |
SDIGetArtistChartsRequest.Result
The result of a
SDIGetArtistChartsRequest network request. |
static class |
SDIGetArtistChartsRequest.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 |
---|
SDIGetArtistChartsRequest() |
Modifier and Type | Method and Description |
---|---|
static SDIGetArtistChartsRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
int page)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
static SDIGetArtistChartsRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
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 SDIGetArtistChartsRequest.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)
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 SDIGetArtistChartsRequest.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
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.page
- The page to retrieve (note: one-indexed).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 SDIGetArtistChartsRequest.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
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
.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 SDIGetArtistChartsRequest.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) throws java.lang.InterruptedException, java.util.concurrent.ExecutionException, 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.java.util.concurrent.ExecutionException
java.lang.InterruptedException
java.io.IOException
com.fasterxml.jackson.databind.JsonMappingException
com.fasterxml.jackson.core.JsonParseException
java.security.SignatureException