Skip to content

Commit

Permalink
Added full url in the function handleStatuses
Browse files Browse the repository at this point in the history
  • Loading branch information
david committed Oct 31, 2019
1 parent 55432a4 commit 8f906dd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static ExampleNetworking getInstance() {
}

@Override
protected void handleStatuses(final Context context, final int statusCode, final JSONObject jsonObject, final DMNetworkIStatusHandleListener listener) {
protected void handleStatuses(final Context context, final int statusCode, final String fullUrl, final JSONObject jsonObject, final DMNetworkIStatusHandleListener listener) {
try {
String status = "";
if (jsonObject != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

abstract class DMNetworkBase implements DMNetworkIBaseMethod {

protected abstract void handleStatuses(final Context context, final int statusCode, final JSONObject jsonObject, final DMNetworkIStatusHandleListener listener);
protected abstract void handleStatuses(final Context context, final int statusCode, final String fullUrl, final JSONObject jsonObject, final DMNetworkIStatusHandleListener listener);

protected abstract int getRequestTimeOut();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private <T, E> void handleResponse(final DMNetworkBaseRequestConfig<T, E> config

showLogs(config.getUrl(), jsonObject, file, jsonType);

handleStatuses(config.getContext(), statusCode, jsonObject, new DMNetworkIStatusHandleListener() {
handleStatuses(config.getContext(), statusCode, config.getUrl(), jsonObject, new DMNetworkIStatusHandleListener() {
@Override
public void onComplete(final String status, final JSONObject jsonObject) {
if (file == null && jsonObject != null) {
Expand Down

0 comments on commit 8f906dd

Please sign in to comment.