com.jakewharton.trakt.services
Class ShowService.WatchlistBuilder

java.lang.Object
  extended by com.jakewharton.apibuilder.ApiBuilder
      extended by com.jakewharton.trakt.TraktApiBuilder<Void>
          extended by com.jakewharton.trakt.services.ShowService.WatchlistBuilder
Enclosing class:
ShowService

public static final class ShowService.WatchlistBuilder
extends TraktApiBuilder<Void>


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jakewharton.trakt.TraktApiBuilder
TraktApiBuilder.HttpMethod
 
Field Summary
 
Fields inherited from class com.jakewharton.trakt.TraktApiBuilder
FIELD_API_KEY, FIELD_DATE, FIELD_DAYS, FIELD_EPISODE, FIELD_EXTENDED, FIELD_QUERY, FIELD_SEASON, FIELD_TITLE, FIELD_USERNAME
 
Fields inherited from class com.jakewharton.apibuilder.ApiBuilder
API_URL_DELIMITER_END, API_URL_DELIMITER_START
 
Method Summary
 ShowService.WatchlistBuilder imdbId(String imdbId)
          Add a show to be added.
protected  void preFireCallback()
          Perform any required actions before validating the request.
 ShowService.WatchlistBuilder title(String title, int year)
          Add a show to be added.
 ShowService.WatchlistBuilder tvdbId(int tvdbId)
          Add a show to be added.
 
Methods inherited from class com.jakewharton.trakt.TraktApiBuilder
dateToUnixTimestamp, execute, field, field, fire, hasPostParameter, includeDebugStrings, parameter, parameter, parameter, performValidation, postFireCallback, postParameter, postParameter, postParameter, postParameter, print
 
Methods inherited from class com.jakewharton.apibuilder.ApiBuilder
buildUrl, buildUrl, encodeUrl, field, field, field, field, field, hasField, hasParameter, parameter, parameter, parameter, parameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

imdbId

public ShowService.WatchlistBuilder imdbId(String imdbId)
Add a show to be added.

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

tvdbId

public ShowService.WatchlistBuilder tvdbId(int tvdbId)
Add a show to be added.

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

title

public ShowService.WatchlistBuilder title(String title,
                                          int year)
Add a show to be added.

Parameters:
title - Title for the show.
year - Year of the show.
Returns:
Builder instance.

preFireCallback

protected void preFireCallback()
Description copied from class: TraktApiBuilder
Perform any required actions before validating the request.

Overrides:
preFireCallback in class TraktApiBuilder<Void>


Copyright © 2011 Jake Wharton. All Rights Reserved.