SHARE
TWEET

Untitled

a guest Apr 26th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   @Override
  2.     public void onCreate() {
  3.         retrofitInterface = RetrofitClient.getInstance().create(RetrofitInterface.class);
  4.         loadAllData();
  5.     }
  6.  
  7.     private void loadAllData(){
  8.         compositeDisposable.add(retrofitInterface
  9.  
  10.                 .getAllCountries()
  11.                 .flattenAsObservable((Function<List<Country>, Iterable<?>>) countries -> countries)
  12.                 .flatMap( country -> getFlags(country.getFlag))
  13.                 .subscribe());
  14.  
  15.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top