public final class SDIArtistSearchRequest extends SDIAbsJsonRequest<SDIArtistSearchRequest.Result>
Modifier and Type | Class and Description |
---|---|
static class |
SDIArtistSearchRequest.Result |
static class |
SDIArtistSearchRequest.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 |
---|
SDIArtistSearchRequest() |
Modifier and Type | Method and Description |
---|---|
static SDIArtistSearchRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String query)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
static SDIArtistSearchRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String query,
int page)
Get the current charts for tracks
Note: The page property is one-indexed (hence the first page is 1, not zero).
|
static SDIArtistSearchRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String query,
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 SDIArtistSearchRequest.Result |
execute(android.content.Context context,
SDIServerUtil.OauthConsumer consumer,
com.android.volley.RequestQueue queue,
java.lang.String query,
int page,
int pageSize,
java.lang.String sort,
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 SDIArtistSearchRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String query) throws java.io.UnsupportedEncodingException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.io.IOException
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.query
- The search query 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
public static SDIArtistSearchRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String query, int page) throws java.io.UnsupportedEncodingException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.io.IOException
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.query
- The search query 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
public static SDIArtistSearchRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String query, 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.query
- The search query 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
public static SDIArtistSearchRequest.Result execute(android.content.Context context, SDIServerUtil.OauthConsumer consumer, com.android.volley.RequestQueue queue, java.lang.String query, int page, int pageSize, java.lang.String sort, java.lang.String streamable, java.lang.String licensorId, java.lang.String country, java.lang.Integer imageSize) throws java.io.UnsupportedEncodingException, java.util.concurrent.ExecutionException, java.lang.InterruptedException, java.io.IOException
context
- The application context.queue
- (Optional) The Volley request queue used to execute the network request.query
- The search query string.sort
- Orders the returned results. Supplied as a string in the format: "{sortColumn} {sortOrder}", for example:
"popularity desc" will show most popular artists first regardless of search match score. Currently you can sort by name,
popularity and score. If no sort is supplied, the default is "score desc". If no order is supplied the default is ascending.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
java.io.UnsupportedEncodingException