SHARE
TWEET

Untitled

a guest Mar 24th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class Repository {
  2.  
  3.     private static Repository instance;
  4.  
  5.     public static Repository getInstance(){
  6.         if(instance == null){
  7.             instance = new Repository();
  8.         }
  9.         return instance;
  10.     }
  11.  
  12.  
  13.     public LiveData<ResponseBody> makeReactiveQuery(){
  14.         return LiveDataReactiveStreams.fromPublisher(ServiceGenerator.getRequestApi()
  15.                 .makeQuery()
  16.                 .subscribeOn(Schedulers.io()));
  17.     }
  18. }
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