Search in sources :

Example 1 with PhilmTrakt

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

the class NetworkProvider method provideTraktClient.

@Provides
@Singleton
public Trakt provideTraktClient(@CacheDirectory File cacheLocation) {
    Trakt trakt = new PhilmTrakt(cacheLocation);
    trakt.setApiKey(Constants.TRAKT_API_KEY);
    trakt.setIsDebug(Constants.DEBUG_NETWORK);
    return trakt;
}
Also used : PhilmTrakt(app.philm.in.network.PhilmTrakt) Trakt(com.jakewharton.trakt.Trakt) PhilmTrakt(app.philm.in.network.PhilmTrakt) Singleton(javax.inject.Singleton) Provides(dagger.Provides)

Aggregations

PhilmTrakt (app.philm.in.network.PhilmTrakt)1 Trakt (com.jakewharton.trakt.Trakt)1 Provides (dagger.Provides)1 Singleton (javax.inject.Singleton)1