Class GetEpisodeByTitleRequest
java.lang.Object
com.amilesend.omdb.client.model.GetByTitleRequestBase
com.amilesend.omdb.client.model.tv.GetEpisodeByTitleRequest
- All Implemented Interfaces:
QueryParameterBasedRequest, GetEpisodeBasedRequest
public class GetEpisodeByTitleRequest
extends GetByTitleRequestBase
implements GetEpisodeBasedRequest
The request to fetch TV episode information by its title.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGetEpisodeByTitleRequest.GetEpisodeByTitleRequestBuilder<C extends GetEpisodeByTitleRequest, B extends GetEpisodeByTitleRequest.GetEpisodeByTitleRequestBuilder<C,B>> Nested classes/interfaces inherited from class GetByTitleRequestBase
GetByTitleRequestBase.GetByTitleRequestBaseBuilder<C,B> -
Field Summary
Fields inherited from interface QueryParameterBasedRequest
JSON_RESPONSE_TYPE -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanintThe episode number.intThe season number.inthashCode()okhttp3.HttpUrl.BuilderpopulateQueryParameters(okhttp3.HttpUrl.Builder urlBuilder) Helper method to populate query parameters of aHttpUrl.Builder.toString()Methods inherited from class GetByTitleRequestBase
getPlot, getTitle, getYear
-
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- Overrides:
populateQueryParametersin classGetByTitleRequestBase- Parameters:
urlBuilder- the HttpUrl.Builder instance- Returns:
- the HttpUrl.Builder instance
-
builder
-
getSeason
public int getSeason()The season number. -
getEpisode
public int getEpisode()The episode number. -
equals
- Overrides:
equalsin classGetByTitleRequestBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classGetByTitleRequestBase
-
toString
- Overrides:
toStringin classGetByTitleRequestBase
-