com.jakewharton.trakt.services
Class RateService

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

public class RateService
extends TraktApiService


Nested Class Summary
static class RateService.EpisodeBuilder
           
static class RateService.MovieBuilder
           
static class RateService.ShowBuilder
           
 
Field Summary
 
Fields inherited from class com.jakewharton.apibuilder.ApiService
CONTENT_ENCODING
 
Constructor Summary
RateService()
           
 
Method Summary
 RateService.EpisodeBuilder episode(int tvdbId)
          Rate an episode on Trakt.
 RateService.EpisodeBuilder episode(String title, int year)
          Rate an episode on Trakt.
 RateService.MovieBuilder movie(String imdbId)
          Rate a movie on Trakt.
 RateService.MovieBuilder movie(String title, int year)
          Rate a movie on Trakt.
 RateService.ShowBuilder show(int tvdbId)
          Rate a show on Trakt.
 RateService.ShowBuilder show(String title, int year)
          Rate a show on Trakt.
 
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

RateService

public RateService()
Method Detail

episode

public RateService.EpisodeBuilder episode(int tvdbId)
Rate an episode on Trakt. Depending on the user settings, this will also send out social updates to Facebook, Twitter, and Tumblr.

Parameters:
tvdbId - TVDB ID for the show.
Returns:
Builder instance.

episode

public RateService.EpisodeBuilder episode(String title,
                                          int year)
Rate an episode on Trakt. Depending on the user settings, this will also send out social updates to Facebook, Twitter, and Tumblr.

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

movie

public RateService.MovieBuilder movie(String imdbId)
Rate a movie on Trakt. Depending on the user settings, this will also send out social updates to Facebook, Twitter, and Tumblr.

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

movie

public RateService.MovieBuilder movie(String title,
                                      int year)
Rate a movie on Trakt. Depending on the user settings, this will also send out social updates to Facebook, Twitter, and Tumblr.

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

show

public RateService.ShowBuilder show(int tvdbId)
Rate a show on Trakt. Depending on the user settings, this will also send out social updates to Facebook, Twitter, and Tumblr.

Parameters:
tvdbId - TVDB ID for the show.
Returns:
Builder instance.

show

public RateService.ShowBuilder show(String title,
                                    int year)
Rate a show on Trakt. Depending on the user settings, this will also send out social updates to Facebook, Twitter, and Tumblr.

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


Copyright © 2011 Jake Wharton. All Rights Reserved.