@Override public void onErrorResponse(VolleyError error) { parameters.result = error.toString(); Log.d(TAG, "onErrorResponse :" + error.toString()); parameters.responseCode = error.networkResponse.statusCode; if (listener != null) listener.faild(parameters); }
@Override public void onResponse(String response) { parameters.result = response; parameters.responseCode = 200; if (listener != null) listener.success(parameters); }