public class TmdbAccount extends AbstractMethod
apiKey, httpTools, MAPPER| Constructor and Description |
|---|
TmdbAccount(String apiKey,
HttpTools httpTools)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
Account |
getAccount(String sessionId)
Get the basic information for an account.
|
ResultList<MovieBasic> |
getFavoriteMovies(String sessionId,
int accountId)
Get the list of favorite movies for an account.
|
ResultList<TVBasic> |
getFavoriteTv(String sessionId,
int accountId)
Get the list of favorite TV series for an account.
|
ResultList<MovieBasic> |
getGuestRatedMovies(String guestSessionId,
String language,
Integer page,
SortBy sortBy)
Get a list of rated movies for a specific guest session id.
|
ResultList<MovieBasic> |
getRatedMovies(String sessionId,
int accountId,
Integer page,
String sortBy,
String language)
Get the list of rated movies (and associated rating) for an account.
|
ResultList<TVBasic> |
getRatedTV(String sessionId,
int accountId,
Integer page,
String sortBy,
String language)
Get the list of rated TV shows (and associated rating) for an account.
|
ResultList<UserList> |
getUserLists(String sessionId,
int accountId)
Get all lists of a given user
|
ResultList<MovieBasic> |
getWatchListMovie(String sessionId,
int accountId,
Integer page,
String sortBy,
String language)
Get the list of movies on an accounts watch list.
|
ResultList<TVBasic> |
getWatchListTV(String sessionId,
int accountId,
Integer page,
String sortBy,
String language)
Get the list of movies on an accounts watch list.
|
StatusCode |
modifyFavoriteStatus(String sessionId,
int accountId,
MediaType mediaType,
int mediaId,
boolean setFavorite)
Add or remove a movie to an accounts favorite list.
|
StatusCode |
modifyWatchList(String sessionId,
int accountId,
MediaType mediaType,
Integer movieId,
boolean addToWatchlist)
Add or remove a movie to an accounts watch list.
|
getMediaChanges, getTypeReference, processWrapper, processWrapperListpublic Account getAccount(String sessionId) throws MovieDbException
sessionId - MovieDbExceptionpublic ResultList<UserList> getUserLists(String sessionId, int accountId) throws MovieDbException
sessionId - accountId - MovieDbExceptionpublic ResultList<MovieBasic> getFavoriteMovies(String sessionId, int accountId) throws MovieDbException
sessionId - accountId - MovieDbExceptionpublic ResultList<TVBasic> getFavoriteTv(String sessionId, int accountId) throws MovieDbException
sessionId - accountId - MovieDbExceptionpublic StatusCode modifyFavoriteStatus(String sessionId, int accountId, MediaType mediaType, int mediaId, boolean setFavorite) throws MovieDbException
sessionId - accountId - mediaType - mediaId - setFavorite - MovieDbExceptionpublic ResultList<MovieBasic> getRatedMovies(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException
sessionId - accountId - page - sortBy - language - MovieDbExceptionpublic ResultList<TVBasic> getRatedTV(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException
sessionId - accountId - page - sortBy - language - MovieDbExceptionpublic ResultList<MovieBasic> getWatchListMovie(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException
sessionId - accountId - page - sortBy - language - MovieDbExceptionpublic ResultList<TVBasic> getWatchListTV(String sessionId, int accountId, Integer page, String sortBy, String language) throws MovieDbException
sessionId - accountId - page - sortBy - language - MovieDbExceptionpublic StatusCode modifyWatchList(String sessionId, int accountId, MediaType mediaType, Integer movieId, boolean addToWatchlist) throws MovieDbException
sessionId - accountId - movieId - mediaType - addToWatchlist - MovieDbExceptionpublic ResultList<MovieBasic> getGuestRatedMovies(String guestSessionId, String language, Integer page, SortBy sortBy) throws MovieDbException
guestSessionId - language - page - sortBy - only CREATED_AT_ASC or CREATED_AT_DESC is supportedMovieDbExceptionCopyright © 2012–2017. All rights reserved.