Пример #1
0
 @Background
 public void switchWatchlistMovie(Movie movie) {
   if (movie.inWatchlist) {
     traktWrapper.movieService().unwatchlist().movie(movie.imdbId).fire();
   } else {
     traktWrapper.movieService().watchlist().movie(movie.imdbId).fire();
   }
 }
Пример #2
0
 @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;
 }