Class GetEpisodeByIdRequest
java.lang.Object
com.amilesend.omdb.client.model.GetByIdRequestBase
com.amilesend.omdb.client.model.tv.GetEpisodeByIdRequest
- All Implemented Interfaces:
QueryParameterBasedRequest, GetEpisodeBasedRequest
The request to fetch TV episode information by its associates IMDB identifier.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classGetEpisodeByIdRequest.GetEpisodeByIdRequestBuilder<C extends GetEpisodeByIdRequest, B extends GetEpisodeByIdRequest.GetEpisodeByIdRequestBuilder<C,B>> Nested classes/interfaces inherited from class GetByIdRequestBase
GetByIdRequestBase.GetByIdRequestBaseBuilder<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 GetByIdRequestBase
getImdbId, getPlot
-
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 classGetByIdRequestBase- 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 classGetByIdRequestBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classGetByIdRequestBase
-
toString
- Overrides:
toStringin classGetByIdRequestBase
-