public final class SDIReleaseSearchRequest extends SDIAbsJsonRequest<SDIReleaseSearchRequest.Result>
Modifier and Type | Class and Description |
---|---|
static class |
SDIReleaseSearchRequest.Result |
static class |
SDIReleaseSearchRequest.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 |
---|
SDIReleaseSearchRequest() |
Modifier and Type | Method and Description |
---|---|
static SDIReleaseSearchRequest.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 SDIReleaseSearchRequest.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 SDIReleaseSearchRequest.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 SDIReleaseSearchRequest.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 type,
java.lang.String streamable,
java.lang.String licensorId,
java.lang.String labelId,
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 SDIReleaseSearchRequest.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.lang.Exception
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
java.lang.Exception
public static SDIReleaseSearchRequest.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.lang.Exception
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
java.lang.Exception
public static SDIReleaseSearchRequest.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.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.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
java.io.UnsupportedEncodingException
java.lang.Exception
public static SDIReleaseSearchRequest.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 type, java.lang.String streamable, java.lang.String licensorId, java.lang.String labelId, 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.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 500type
- If specified results are filtered by given release type (multiple types separated by commas can be passed).labelId
- If provided search results will only contain releases from this label.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 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