Skip to content

Commit

Permalink
Added ok response listeners
Browse files Browse the repository at this point in the history
  • Loading branch information
ander7agar committed Feb 1, 2017
1 parent f79268a commit 7e85cf2
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.zanjou.http.response;

import android.util.Log;

import org.json.JSONException;
import org.json.JSONObject;

/**
* Created by Andersson G. Acosta on 10/01/17.
*/
public abstract class OkJsonResponseListener extends JsonResponseListener {

private static final String TAG = "OkResponseListener";

@Override
public void onErrorResponse(JSONObject jsonObject) throws JSONException {

}

@Override
public void onParseError(JSONException e) {
Log.e(TAG, "Error", e);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package com.zanjou.http.response;

import android.util.Log;

import org.json.JSONException;
import org.json.JSONObject;
import org.w3c.dom.Document;

/**
* Created by Andersson G. Acosta on 10/01/17.
*/
public abstract class OkXmlResponseListener extends XmlResponseListener {

private static final String TAG = "OkResponseListener";


@Override
public void onErrorResponse(Document document) {

}

@Override
public void onParseError(Exception e) {
Log.e(TAG, "Error", e);
}
}

0 comments on commit 7e85cf2

Please sign in to comment.