Class SearchRequestBase
java.lang.Object
com.amilesend.omdb.client.model.SearchRequestBase
- All Implemented Interfaces:
QueryParameterBasedRequest
- Direct Known Subclasses:
SearchMovieRequest, SearchSeriesRequest
Request to search for media information based on the title.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSearchRequestBase.SearchRequestBaseBuilder<C extends SearchRequestBase, B extends SearchRequestBase.SearchRequestBaseBuilder<C,B>> -
Field Summary
Fields inherited from interface QueryParameterBasedRequest
JSON_RESPONSE_TYPE -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchRequestBase.SearchRequestBaseBuilder<?, ?> builder()booleangetPage()The page number of the response to return.getTitle()The title of the content to search for.getYear()The year of the movie release.inthashCode()okhttp3.HttpUrl.BuilderpopulateQueryParameters(okhttp3.HttpUrl.Builder urlBuilder) Helper method to populate query parameters of aHttpUrl.Builder.toString()
-
Method Details
-
populateQueryParameters
public okhttp3.HttpUrl.Builder populateQueryParameters( okhttp3.HttpUrl.Builder urlBuilder) Description copied from interface:QueryParameterBasedRequestHelper method to populate query parameters of aHttpUrl.Builder.- Specified by:
populateQueryParametersin interfaceQueryParameterBasedRequest- Parameters:
urlBuilder- the HttpUrl.Builder instance- Returns:
- the HttpUrl.Builder instance
-
builder
-
getTitle
The title of the content to search for. -
getYear
The year of the movie release. -
getPage
The page number of the response to return. -
equals
-
hashCode
-
toString
-