Package com.amilesend.tmdb.client.api
Class AccountApi
java.lang.Object
com.amilesend.tmdb.client.api.ApiBase
com.amilesend.tmdb.client.api.AccountApi
Defines APIs to access user account information. Note: A valid session must be authenticated and obtained. This
can be done via the
SessionManager
.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAccountApi
(com.amilesend.client.connection.Connection connection) Creates a newAccountApi
object. -
Method Summary
Modifier and TypeMethodDescriptionaddFavorite
(@NonNull AddFavoriteRequest request) Adds or removes a movie/TV show from an account's favorite list.addWatchlist
(@NonNull AddWatchlistRequest request) Adds or removes a movie/TV show from an account's watch list.getAccountDetails
(@NonNull GetAccountDetailsRequest request) Gets the account information.getAccountDetailsForSession
(@NonNull GetAccountDetailsForSessionRequest request) Gets the account information associated with a session.getFavoriteMovies
(@NonNull GetFavoriteMoviesRequest request) Gets the list of favorite movies for an account.getFavoriteTvShows
(@NonNull GetFavoriteTvShowsRequest request) Gets the list of favorite TV shows for an account.getLists
(@NonNull GetListsRequest request) Gets the list of a user's configured lists.getRatedMovies
(@NonNull GetRatedMoviesRequest request) Gets the list of movies that a user rated.getRatedTvEpisodes
(@NonNull GetRatedTvEpisodesRequest request) Gets the list of TV show episodes that a user rated.getRatedTvShows
(@NonNull GetRatedTvShowsRequest request) Gets the list of TV shows that a user rated.getWatchlistMovies
(@NonNull GetWatchlistMoviesRequest request) Gets the list of movies on a user's watchlist.getWatchlistTvShows
(@NonNull GetWatchlistTvRequest request) Gets the list of TV shows on a user's watchlist.Methods inherited from class com.amilesend.tmdb.client.api.ApiBase
getConnection
-
Constructor Details
-
AccountApi
public AccountApi(com.amilesend.client.connection.Connection connection) Creates a newAccountApi
object.- Parameters:
connection
- the underlying client connection
-
-
Method Details
-
getAccountDetails
Gets the account information.- Parameters:
request
- the request- Returns:
- the account details
- See Also:
-
getAccountDetailsForSession
public GetAccountDetailsResponse getAccountDetailsForSession(@NonNull GetAccountDetailsForSessionRequest request) Gets the account information associated with a session.- Parameters:
request
- the request- Returns:
- the response
- See Also:
-
addFavorite
Adds or removes a movie/TV show from an account's favorite list.- Parameters:
request
- the request specifying the movie or tv show- Returns:
- the response indicating the status of the request
- See Also:
-
addWatchlist
Adds or removes a movie/TV show from an account's watch list.- Parameters:
request
- the request specifying the move or tv show- Returns:
- the response indicating the status of the request
- See Also:
-
getFavoriteMovies
Gets the list of favorite movies for an account.- Parameters:
request
- the request- Returns:
- the list of movies
- See Also:
-
getFavoriteTvShows
Gets the list of favorite TV shows for an account.- Parameters:
request
- the request- Returns:
- the list of favorite TV shows
- See Also:
-
getLists
Gets the list of a user's configured lists.- Parameters:
request
- the request- Returns:
- the user's lists
- See Also:
-
getRatedMovies
Gets the list of movies that a user rated.- Parameters:
request
- the request- Returns:
- the list of rated movies
- See Also:
-
getRatedTvShows
Gets the list of TV shows that a user rated.- Parameters:
request
- the request- Returns:
- the list of rated TV shows
- See Also:
-
getRatedTvEpisodes
Gets the list of TV show episodes that a user rated.- Parameters:
request
- the request- Returns:
- the list of TV show episodes
- See Also:
-
getWatchlistMovies
Gets the list of movies on a user's watchlist.- Parameters:
request
- the request- Returns:
- the list of movies
- See Also:
-
getWatchlistTvShows
Gets the list of TV shows on a user's watchlist.- Parameters:
request
- the request- Returns:
- the list of TV shows
- See Also:
-