Search in sources :

Example 1 with PhilmTmdb

use of app.philm.in.network.PhilmTmdb in project philm by chrisbanes.

the class NetworkProvider method provideTmdbClient.

@Provides
@Singleton
public Tmdb provideTmdbClient(@CacheDirectory File cacheLocation) {
    Tmdb tmdb = new PhilmTmdb(cacheLocation);
    tmdb.setApiKey(Constants.TMDB_API_KEY);
    tmdb.setIsDebug(Constants.DEBUG_NETWORK);
    return tmdb;
}
Also used : Tmdb(com.uwetrottmann.tmdb.Tmdb) PhilmTmdb(app.philm.in.network.PhilmTmdb) PhilmTmdb(app.philm.in.network.PhilmTmdb) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

PhilmTmdb (app.philm.in.network.PhilmTmdb)1 Tmdb (com.uwetrottmann.tmdb.Tmdb)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1