use of com.jakewharton.retrofit.Ok3Client in project philm by chrisbanes.
the class PhilmTmdb method newRestAdapterBuilder.
@Override
protected RestAdapter.Builder newRestAdapterBuilder() {
RestAdapter.Builder b = super.newRestAdapterBuilder();
if (mCacheLocation != null) {
File cacheDir = new File(mCacheLocation, "tmdb_requests");
Cache cache = new Cache(cacheDir, CACHE_SIZE);
OkHttpClient client = new OkHttpClient.Builder().cache(cache).build();
b.setClient(new Ok3Client(client));
}
return b;
}
use of com.jakewharton.retrofit.Ok3Client in project philm by chrisbanes.
the class PhilmTrakt method newRestAdapterBuilder.
@Override
protected RestAdapter.Builder newRestAdapterBuilder() {
RestAdapter.Builder b = super.newRestAdapterBuilder();
if (mCacheLocation != null) {
File cacheDir = new File(mCacheLocation, "trakt_requests");
Cache cache = new Cache(cacheDir, CACHE_SIZE);
OkHttpClient client = new OkHttpClient.Builder().cache(cache).build();
b.setClient(new Ok3Client(client));
}
return b;
}
Aggregations