Class AddWatchlistRequest
java.lang.Object
com.amilesend.tmdb.client.model.acount.AddWatchlistRequest
- All Implemented Interfaces:
AccountBasedRequest, BodyBasedRequest, QueryParameterBasedRequest, SessionBasedRequest
public class AddWatchlistRequest
extends Object
implements BodyBasedRequest, AccountBasedRequest, SessionBasedRequest
The request information associated with adding a media item to an account's watchlist.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleanintThe account identifier (required).intThe unique media identifier (required).The media type (e.g., "movie", or "tv"; required).The session identifier (optional).inthashCode()booleanWhentrue, add the media to a watchlist; else,falseto remove the media from a watchlist (required).okhttp3.HttpUrl.BuilderpopulateQueryParameters(okhttp3.HttpUrl.Builder urlBuilder) Helper method to populate query parameters of aHttpUrl.Builder.toString()Methods inherited from interface AccountBasedRequest
validateAccountIdMethods 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- Parameters:
urlBuilder- the HttpUrl.Builder instance- Returns:
- the HttpUrl.Builder instance
-
builder
-
getAccountId
public int getAccountId()The account identifier (required).- Specified by:
getAccountIdin interfaceAccountBasedRequest- Returns:
- the account identifier
-
getSessionId
The session identifier (optional).- Specified by:
getSessionIdin interfaceSessionBasedRequest- Returns:
- the session identifier
-
getMediaType
The media type (e.g., "movie", or "tv"; required). -
getMediaId
public int getMediaId()The unique media identifier (required). -
isWatchlist
public boolean isWatchlist()Whentrue, add the media to a watchlist; else,falseto remove the media from a watchlist (required). -
equals
-
hashCode
-
toString
-