com.jakewharton.trakt.services
Class UserService

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

public final class UserService
extends TraktApiService


Nested Class Summary
static class UserService.CalendarShowsBuilder
           
static class UserService.FriendsBuilder
           
static class UserService.LibraryMoviesAllBuilder
           
static class UserService.LibraryMoviesCollectionBuilder
           
static class UserService.LibraryMoviesHatedBuilder
           
static class UserService.LibraryMoviesLovedBuilder
           
static class UserService.LibraryShowsAllBuilder
           
static class UserService.LibraryShowsCollectionBuilder
           
static class UserService.LibraryShowsHatedBuilder
           
static class UserService.LibraryShowsLovedBuilder
           
static class UserService.LibraryShowsWatchedBuilder
           
static class UserService.ProfileBuilder
           
static class UserService.WatchedBuilder
           
static class UserService.WatchedEpisodesBuilder
           
static class UserService.WatchedMoviesBuilder
           
static class UserService.WatchingBuilder
           
static class UserService.WatchlistEpisodesBuilder
           
static class UserService.WatchlistMoviesBuilder
           
static class UserService.WatchlistShowsBuilder
           
 
Field Summary
 
Fields inherited from class com.jakewharton.apibuilder.ApiService
CONTENT_ENCODING
 
Constructor Summary
UserService()
           
 
Method Summary
 UserService.CalendarShowsBuilder calendarShows(String username)
          Returns a users shows airing during the time period specified.
 UserService.FriendsBuilder friends(String username)
          Returns an array of the user's friends.
 UserService.LibraryMoviesAllBuilder libraryMoviesAll(String username)
          Returns all movies in a user's library.
 UserService.LibraryMoviesCollectionBuilder libraryMoviesCollection(String username)
          Returns all movies in a user's library collection.
 UserService.LibraryMoviesHatedBuilder libraryMoviesHated(String username)
          Returns all movies a user has hated.
 UserService.LibraryMoviesLovedBuilder libraryMoviesLoved(String username)
          Returns all movies a user has loved.
 UserService.LibraryShowsAllBuilder libraryShowsAll(String username)
          Returns all shows in a user's library.
 UserService.LibraryShowsCollectionBuilder libraryShowsCollection(String username)
          Returns all shows and episodes in a user's library collection.
 UserService.LibraryShowsHatedBuilder libraryShowsHated(String username)
          Returns all shows a user has hated.
 UserService.LibraryShowsLovedBuilder libraryShowsLoved(String username)
          Returns all shows a user has loved.
 UserService.LibraryShowsWatchedBuilder libraryShowsWatched(String username)
          Returns all shows and episodes that a user has watched.
 UserService.ProfileBuilder profile(String username)
          Returns profile information for a user.
 UserService.WatchedBuilder watched(String username)
          Returns the last 100 TV show episodes and movies a user has watched using Trakt.
 UserService.WatchedEpisodesBuilder watchedEpisodes(String username)
          Returns the last 100 TV show episodes a user has watched using Trakt.
 UserService.WatchedMoviesBuilder watchedMovies(String username)
          Returns the last 100 movies a user has watched using Trakt.
 UserService.WatchingBuilder watching(String username)
          Returns the TV show episode or movie a user is currently watching.
 UserService.WatchlistEpisodesBuilder watchlistEpisodes(String username)
          Returns all episodes in a user's watchlist.
 UserService.WatchlistMoviesBuilder watchlistMovies(String username)
          Returns all movies in a user's watchlist.
 UserService.WatchlistShowsBuilder watchlistShows(String username)
          Returns all shows in a user's 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

UserService

public UserService()
Method Detail

calendarShows

public UserService.CalendarShowsBuilder calendarShows(String username)
Returns a users shows airing during the time period specified. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

watching

public UserService.WatchingBuilder watching(String username)
Returns the TV show episode or movie a user is currently watching. If they aren't watching anything, a blank object will be returned. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

watched

public UserService.WatchedBuilder watched(String username)
Returns the last 100 TV show episodes and movies a user has watched using Trakt. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

watchedEpisodes

public UserService.WatchedEpisodesBuilder watchedEpisodes(String username)
Returns the last 100 TV show episodes a user has watched using Trakt. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

watchedMovies

public UserService.WatchedMoviesBuilder watchedMovies(String username)
Returns the last 100 movies a user has watched using Trakt. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

watchlistEpisodes

public UserService.WatchlistEpisodesBuilder watchlistEpisodes(String username)
Returns all episodes in a user's watchlist. Each show will have its own entry and will contain all episodes in the watchlist. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

watchlistMovies

public UserService.WatchlistMoviesBuilder watchlistMovies(String username)
Returns all movies in a user's watchlist. Each movie will indicate when it was added to the watchlist. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

watchlistShows

public UserService.WatchlistShowsBuilder watchlistShows(String username)
Returns all shows in a user's watchlist. Each show will indicate when it was added to the watchlist. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

profile

public UserService.ProfileBuilder profile(String username)
Returns profile information for a user. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

friends

public UserService.FriendsBuilder friends(String username)
Returns an array of the user's friends. Each friend has the detailed profile including what they are currently watching and their recent watches. Protected users won't return any data unless you are friends. Any friends of the main user that are protected won't display data either.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryMoviesAll

public UserService.LibraryMoviesAllBuilder libraryMoviesAll(String username)
Returns all movies in a user's library. Each movie will indicate if it's in the user's collection and how many plays it has. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryMoviesCollection

public UserService.LibraryMoviesCollectionBuilder libraryMoviesCollection(String username)
Returns all movies in a user's library collection. Collection items might include Blu-rays, DVDs, and digital downloads. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryMoviesHated

public UserService.LibraryMoviesHatedBuilder libraryMoviesHated(String username)
Returns all movies a user has hated. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryMoviesLoved

public UserService.LibraryMoviesLovedBuilder libraryMoviesLoved(String username)
Returns all movies a user has loved. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryShowsAll

public UserService.LibraryShowsAllBuilder libraryShowsAll(String username)
Returns all shows in a user's library. Each show will indicate how many plays it has. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryShowsCollection

public UserService.LibraryShowsCollectionBuilder libraryShowsCollection(String username)
Returns all shows and episodes in a user's library collection. Collection items might include Blu-rays, DVDs, and digital downloads. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryShowsHated

public UserService.LibraryShowsHatedBuilder libraryShowsHated(String username)
Returns all shows a user has hated. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryShowsLoved

public UserService.LibraryShowsLovedBuilder libraryShowsLoved(String username)
Returns all shows a user has loved. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.

libraryShowsWatched

public UserService.LibraryShowsWatchedBuilder libraryShowsWatched(String username)
Returns all shows and episodes that a user has watched. This method is useful to sync trakt's data with local media center. Protected users won't return any data unless you are friends.

Parameters:
username - You can get a username by browsing the website and looking at the URL when on a profile page.
Returns:
Builder instance.


Copyright © 2011 Jake Wharton. All Rights Reserved.