Search in sources :

Example 1 with CrewMember

use of com.uwetrottmann.tmdb.entities.CrewMember in project philm by chrisbanes.

the class TmdbCrewEntityMapper method mapCredits.

public List<PhilmMovieCredit> mapCredits(List<CrewMember> entities) {
    final ArrayList<PhilmMovieCredit> credits = new ArrayList<>(entities.size());
    for (CrewMember entity : entities) {
        credits.add(new PhilmMovieCredit(map(entity), entity.job, entity.department));
    }
    Collections.sort(credits);
    return credits;
}
Also used : PhilmMovieCredit(app.philm.in.model.PhilmMovieCredit) ArrayList(java.util.ArrayList) CrewMember(com.uwetrottmann.tmdb.entities.CrewMember)

Aggregations

PhilmMovieCredit (app.philm.in.model.PhilmMovieCredit)1 CrewMember (com.uwetrottmann.tmdb.entities.CrewMember)1 ArrayList (java.util.ArrayList)1