Search in sources :

Example 11 with PhilmPerson

use of app.philm.in.model.PhilmPerson in project philm by chrisbanes.

the class MovieController method fetchPersonCreditsIfNeeded.

private void fetchPersonCreditsIfNeeded(final int callingId, String id) {
    Preconditions.checkNotNull(id, "id cannot be null");
    PhilmPerson person = mMoviesState.getPerson(id);
    if (person != null && !person.hasFetchedCredits()) {
        fetchPersonCredits(callingId, person);
    }
}
Also used : PhilmPerson(app.philm.in.model.PhilmPerson)

Aggregations

PhilmPerson (app.philm.in.model.PhilmPerson)11 MoviesState (app.philm.in.state.MoviesState)5 PhilmPersonCredit (app.philm.in.model.PhilmPersonCredit)3 ArrayList (java.util.ArrayList)3 PersonCastCredit (com.uwetrottmann.tmdb.entities.PersonCastCredit)2 PersonCrewCredit (com.uwetrottmann.tmdb.entities.PersonCrewCredit)2 Bundle (android.os.Bundle)1 TextView (android.widget.TextView)1 Display (app.philm.in.Display)1 ColorScheme (app.philm.in.model.ColorScheme)1 PhilmMovie (app.philm.in.model.PhilmMovie)1 PhilmMovieVideo (app.philm.in.model.PhilmMovieVideo)1 PhilmImageView (app.philm.in.view.PhilmImageView)1 Rating (com.jakewharton.trakt.enumerations.Rating)1 List (java.util.List)1