|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jakewharton.apibuilder.ApiService
com.jakewharton.trakt.TraktApiService
com.jakewharton.trakt.services.MovieService
public class MovieService
Nested Class Summary | |
---|---|
static class |
MovieService.CancelWatchingBuilder
|
static class |
MovieService.LibraryBuilder
|
static class |
MovieService.ScrobbleBuilder
|
static class |
MovieService.SeenBuilder
|
static class |
MovieService.ShoutsBuilder
|
static class |
MovieService.SummaryBuilder
|
static class |
MovieService.TrendingBuilder
|
static class |
MovieService.UnlibraryBuilder
|
static class |
MovieService.UnseenBuilder
|
static class |
MovieService.UnwatchlistBuilder
|
static class |
MovieService.WatchingBuilder
|
static class |
MovieService.WatchingNowBuilder
|
static class |
MovieService.WatchlistBuilder
|
Field Summary |
---|
Fields inherited from class com.jakewharton.apibuilder.ApiService |
---|
CONTENT_ENCODING |
Constructor Summary | |
---|---|
MovieService()
|
Method Summary | |
---|---|
MovieService.CancelWatchingBuilder |
cancelWatching()
Notify Trakt that a user has stopped watching a movie. |
MovieService.LibraryBuilder |
library()
Add unwatched movies to your library. |
MovieService.ScrobbleBuilder |
scrobble(int tmdbId)
Notify Trakt that a user has finsihed watching a movie. |
MovieService.ScrobbleBuilder |
scrobble(String imdbId)
Notify Trakt that a user has finsihed watching a movie. |
MovieService.ScrobbleBuilder |
scrobble(String title,
int year)
Notify Trakt that a user has finsihed watching a movie. |
MovieService.SeenBuilder |
seen()
Add movies watched outside of Trakt to your library. |
MovieService.ShoutsBuilder |
shouts(int tmdbId)
Returns all shouts for a movie. |
MovieService.ShoutsBuilder |
shouts(String titleOrImdbId)
Returns all shouts for a movie. |
MovieService.SummaryBuilder |
summary(String query)
Returns information for a movie including ratings and top watchers. |
MovieService.TrendingBuilder |
trending()
Returns all movies being watched right now. |
MovieService.UnlibraryBuilder |
unlibrary()
Remove movies from your library collection. |
MovieService.UnseenBuilder |
unseen()
Remove movies watched outside of Trakt from your library. |
MovieService.UnwatchlistBuilder |
unwatchlist()
Remove one or more movies from your watchlist. |
MovieService.WatchingBuilder |
watching(int tmdbId)
Notify trakt that a user has started watching a movie. |
MovieService.WatchingBuilder |
watching(String imdbId)
Notify trakt that a user has started watching a movie. |
MovieService.WatchingBuilder |
watching(String title,
int year)
Notify trakt that a user has started watching a movie. |
MovieService.WatchingNowBuilder |
watchingNow(String query)
Returns a array of all users watching a movie. |
MovieService.WatchlistBuilder |
watchlist()
Add one or more movies to your watchlist. |
Methods inherited from class com.jakewharton.trakt.TraktApiService |
---|
get, post, setApiKey, setAuthentication, setMediaCenterDate, setMediaCenterVersion, setPluginVersion, setUseSsl, unmarshall, unmarshall, unmarshall |
Methods inherited from class com.jakewharton.apibuilder.ApiService |
---|
acceptGzip, addRequestHeader, closeConnection, closeStream, convertStreamToString, executeDelete, executeDelete, executeGet, executeGet, executeMethod, executePost, executePost, getConnectTimeout, getParametersString, getReadTimeout, getRequestHeader, getRequestHeaderNames, getWrappedInputStream, removeRequestHeader, setConnectTimeout, setReadTimeout |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MovieService()
Method Detail |
---|
public MovieService.CancelWatchingBuilder cancelWatching()
Notify Trakt that a user has stopped watching a movie.
Warning: This method requires a developer API key.
public MovieService.ScrobbleBuilder scrobble(String imdbId)
Notify Trakt that a user has finsihed watching a movie. This commits the movie to the users profile. You should use movie/watching prior to calling this method.
Warning: This method requires a developer API key.
imdbId
- IMDB ID for the movie.
public MovieService.ScrobbleBuilder scrobble(int tmdbId)
Notify Trakt that a user has finsihed watching a movie. This commits the movie to the users profile. You should use movie/watching prior to calling this method.
Warning: This method requires a developer API key.
tmdbId
- TMDB (themoviedb.org) ID for the movie.
public MovieService.ScrobbleBuilder scrobble(String title, int year)
Notify Trakt that a user has finsihed watching a movie. This commits the movie to the users profile. You should use movie/watching prior to calling this method.
Warning: This method requires a developer API key.
title
- Movie title.year
- Movie year.
public MovieService.SeenBuilder seen()
public MovieService.LibraryBuilder library()
public MovieService.SummaryBuilder summary(String query)
query
- Either the slug (i.e. the-social-network-2010), IMDB ID, or
TMDB ID. You can get a movie's slug by browsing the website and looking
at the URL when on a movie summary page.
public MovieService.UnlibraryBuilder unlibrary()
public MovieService.UnseenBuilder unseen()
public MovieService.UnwatchlistBuilder unwatchlist()
public MovieService.WatchingBuilder watching(String imdbId)
Warning: This method requires a developer API key.
imdbId
- IMDB ID for the movie.
public MovieService.WatchingBuilder watching(int tmdbId)
Warning: This method requires a developer API key.
tmdbId
- TMDB (themoviedb.org) ID for the movie.
public MovieService.WatchingBuilder watching(String title, int year)
title
- Movie title.year
- Movie year.
public MovieService.WatchingNowBuilder watchingNow(String query)
query
- Either the slug (i.e. the-social-network-2010), IMDB ID, or
TMDB ID. You can get a movie's slug by browsing the website and looking
at the URL when on a movie summary page.
public MovieService.WatchlistBuilder watchlist()
public MovieService.ShoutsBuilder shouts(String titleOrImdbId)
titleOrImdbId
- Movie title or IMDB ID.
public MovieService.ShoutsBuilder shouts(int tmdbId)
tmdbId
- TMDB ID.
public MovieService.TrendingBuilder trending()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |