ppamorim

Untitled

Sep 26th, 2014
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.53 KB | None | 0 0
  1. import android.content.Context;
  2.  
  3. import com.squareup.okhttp.OkHttpClient;
  4. import com.squareup.okhttp.Request;
  5. import com.squareup.okhttp.RequestBody;
  6. import com.squareup.okhttp.Response;
  7.  
  8. public class AbstractService {
  9.  
  10.     protected OnRestResponse mRestResponse;
  11.  
  12.     public AbstractService(OnRestResponse response) {
  13.         mRestResponse = response;
  14.     }
  15.  
  16.     public static interface OnRestResponse {
  17.         public void onSuccess(int statusCode, String content);
  18.         public void onFail(int statusCode);
  19.     }
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment