com.jakewharton.trakt.services
Class MovieService

java.lang.Object
  extended by com.jakewharton.apibuilder.ApiService
      extended by com.jakewharton.trakt.TraktApiService
          extended by com.jakewharton.trakt.services.MovieService

public class MovieService
extends TraktApiService


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

MovieService

public MovieService()
Method Detail

cancelWatching

public MovieService.CancelWatchingBuilder cancelWatching()

Notify Trakt that a user has stopped watching a movie.

Warning: This method requires a developer API key.

Returns:
Builder instance.

scrobble

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.

Parameters:
imdbId - IMDB ID for the movie.
Returns:
Builder instance.

scrobble

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.

Parameters:
tmdbId - TMDB (themoviedb.org) ID for the movie.
Returns:
Builder instance.

scrobble

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.

Parameters:
title - Movie title.
year - Movie year.
Returns:
Builder instance.

seen

public MovieService.SeenBuilder seen()
Add movies watched outside of Trakt to your library.

Returns:
Builder instance.

library

public MovieService.LibraryBuilder library()
Add unwatched movies to your library.

Returns:
Builder instance.

summary

public MovieService.SummaryBuilder summary(String query)
Returns information for a movie including ratings and top watchers.

Parameters:
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.
Returns:
Builder instance.

unlibrary

public MovieService.UnlibraryBuilder unlibrary()
Remove movies from your library collection.

Returns:
Builder instance.

unseen

public MovieService.UnseenBuilder unseen()
Remove movies watched outside of Trakt from your library.

Returns:
Builder instance.

unwatchlist

public MovieService.UnwatchlistBuilder unwatchlist()
Remove one or more movies from your watchlist.

Returns:
Builder instance.

watching

public MovieService.WatchingBuilder watching(String imdbId)
Notify trakt that a user has started watching a movie.

Warning: This method requires a developer API key.

Parameters:
imdbId - IMDB ID for the movie.
Returns:
Builder instance.

watching

public MovieService.WatchingBuilder watching(int tmdbId)
Notify trakt that a user has started watching a movie.

Warning: This method requires a developer API key.

Parameters:
tmdbId - TMDB (themoviedb.org) ID for the movie.
Returns:
Builder instance.

watching

public MovieService.WatchingBuilder watching(String title,
                                             int year)
Notify trakt that a user has started watching a movie.

Parameters:
title - Movie title.
year - Movie year.
Returns:
Builder instance.

watchingNow

public MovieService.WatchingNowBuilder watchingNow(String query)
Returns a array of all users watching a movie.

Parameters:
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.
Returns:
Builder instance.

watchlist

public MovieService.WatchlistBuilder watchlist()
Add one or more movies to your watchlist.

Returns:
Builder instance.

shouts

public MovieService.ShoutsBuilder shouts(String titleOrImdbId)
Returns all shouts for a movie. Most recent shouts returned first.

Parameters:
titleOrImdbId - Movie title or IMDB ID.
Returns:
Builder instance.

shouts

public MovieService.ShoutsBuilder shouts(int tmdbId)
Returns all shouts for a movie. Most recent shouts returned first.

Parameters:
tmdbId - TMDB ID.
Returns:
Builder instance.

trending

public MovieService.TrendingBuilder trending()
Returns all movies being watched right now.

Returns:
Builder instance.


Copyright © 2011 Jake Wharton. All Rights Reserved.