@Background public void switchWatchlistMovie(Movie movie) { if (movie.inWatchlist) { traktWrapper.movieService().unwatchlist().movie(movie.imdbId).fire(); } else { traktWrapper.movieService().watchlist().movie(movie.imdbId).fire(); } }
@Background public void checkinMovie(Movie movie) { Response r = traktWrapper.movieService().checkin(movie.imdbId).fire(); if (r.status.equals("failure")) { throw new TraktException("None", null, new ApiException("checkinfailed"), r); } traktWrapper.currentItem = (MediaBase) movie; traktWrapper.currentItemActivity = SingleMovieActivity.class; }