@@ -0,0 +1,2438 @@
+/*%0A * Copyright 2013 Uwe Trottmann%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A * %0A */%0A%0Apackage com.battlelancer.seriesguide.loaders;%0A%0Aimport android.content.Context;%0Aimport android.util.Log;%0A%0Aimport com.battlelancer.seriesguide.loaders.TmdbMovieDetailsLoader.MovieDetails;%0Aimport com.battlelancer.seriesguide.util.ServiceUtils;%0Aimport com.battlelancer.seriesguide.util.Utils;%0Aimport com.jakewharton.apibuilder.ApiException;%0Aimport com.uwetrottmann.tmdb.ServiceManager;%0Aimport com.uwetrottmann.tmdb.TmdbException;%0Aimport com.uwetrottmann.tmdb.entities.Casts;%0Aimport com.uwetrottmann.tmdb.entities.Movie;%0Aimport com.uwetrottmann.tmdb.entities.Trailers;%0A%0A/**%0A * Loads details, trailers and cast of a movie from TMDb wrapped in a%0A * %7B@link MovieDetails%7D object.%0A */%0Apublic class TmdbMovieDetailsLoader extends GenericSimpleLoader%3CMovieDetails%3E %7B%0A%0A    private static final String TAG = %22TmdbMovieDetailsLoader%22;%0A%0A    private int mTmdbId;%0A%0A    public TmdbMovieDetailsLoader(Context context, int tmdbId) %7B%0A        super(context);%0A        mTmdbId = tmdbId;%0A    %7D%0A%0A    @Override%0A    public MovieDetails loadInBackground() %7B%0A        ServiceManager manager = ServiceUtils.getTmdbServiceManager(getContext());%0A%0A        try %7B%0A            MovieDetails details = new MovieDetails();%0A            details.movie = manager.moviesService().summary(mTmdbId).fire();%0A            details.trailers = manager.moviesService().trailers(mTmdbId).fire();%0A            details.casts = manager.moviesService().casts(mTmdbId).fire();%0A            return details;%0A        %7D catch (TmdbException e) %7B%0A            Utils.trackException(getContext(), TAG, e);%0A            Log.w(TAG, e);%0A        %7D catch (ApiException e) %7B%0A            Utils.trackException(getContext(), TAG, e);%0A            Log.w(TAG, e);%0A        %7D%0A%0A        return null;%0A    %7D%0A%0A    public static class MovieDetails %7B%0A        Movie movie;%0A        Trailers trailers;%0A        Casts casts;%0A    %7D%0A%0A%7D%0A

Add movie details loader.