Class AddRatingRequest
java.lang.Object
com.amilesend.tmdb.client.model.movie.type.MovieRequestBase
com.amilesend.tmdb.client.model.movie.AddRatingRequest
- All Implemented Interfaces:
BodyBasedRequest, GuestSessionBasedRequest, QueryParameterBasedRequest, SessionBasedRequest
public class AddRatingRequest
extends MovieRequestBase
implements SessionBasedRequest, GuestSessionBasedRequest, BodyBasedRequest
Request to add a rating for a movie for the associated (guest) session.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAddRatingRequest.AddRatingRequestBuilder<C extends AddRatingRequest, B extends AddRatingRequest.AddRatingRequestBuilder<C,B>> Nested classes/interfaces inherited from class MovieRequestBase
MovieRequestBase.MovieRequestBaseBuilder<C,B> -
Method Summary
Modifier and TypeMethodDescriptionstatic AddRatingRequest.AddRatingRequestBuilder<?, ?> builder()booleanThe guest session identifier (optional).The session identifier (optional).doublegetValue()The rating value (required).inthashCode()okhttp3.HttpUrl.BuilderpopulateQueryParameters(okhttp3.HttpUrl.Builder urlBuilder) Helper method to populate query parameters of aHttpUrl.Builder.toString()Methods inherited from class MovieRequestBase
getMovieIdMethods inherited from interface GuestSessionBasedRequest
populateGuestSessionIdQueryParameterIfDefinedMethods inherited from interface SessionBasedRequest
populateSessionIdQueryParameterIfDefined
-
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 classMovieRequestBase- Parameters:
urlBuilder- the HttpUrl.Builder instance- Returns:
- the HttpUrl.Builder instance
-
builder
-
getGuestSessionId
The guest session identifier (optional).- Specified by:
getGuestSessionIdin interfaceGuestSessionBasedRequest- Returns:
- the guest session identifier
-
getSessionId
The session identifier (optional).- Specified by:
getSessionIdin interfaceSessionBasedRequest- Returns:
- the session identifier
-
getValue
public double getValue()The rating value (required). -
equals
- Overrides:
equalsin classMovieRequestBase
-
hashCode
public int hashCode()- Overrides:
hashCodein classMovieRequestBase
-
toString
- Overrides:
toStringin classMovieRequestBase
-